@oniratec/onira-react-ui 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +41 -55
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +347 -0
- package/dist/index.js +7218 -13164
- package/dist/index.js.map +1 -0
- package/package.json +14 -3
package/dist/index.cjs
CHANGED
|
@@ -1,56 +1,42 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const React=require("react"),ReactDOM=require("react-dom");function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const React__namespace=_interopNamespaceDefault(React),ReactDOM__namespace=_interopNamespaceDefault(ReactDOM);function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var e=React,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(h,d,y){var M,q={},F=null,K=null;y!==void 0&&(F=""+y),d.key!==void 0&&(F=""+d.key),d.ref!==void 0&&(K=d.ref);for(M in d)i.call(d,M)&&!a.hasOwnProperty(M)&&(q[M]=d[M]);if(h&&h.defaultProps)for(M in d=h.defaultProps,d)q[M]===void 0&&(q[M]=d[M]);return{$$typeof:t,type:h,key:F,ref:K,props:q,_owner:s.current}}return reactJsxRuntime_production_min.Fragment=n,reactJsxRuntime_production_min.jsx=l,reactJsxRuntime_production_min.jsxs=l,reactJsxRuntime_production_min}var reactJsxRuntime_development={};var hasRequiredReactJsxRuntime_development;function requireReactJsxRuntime_development(){return hasRequiredReactJsxRuntime_development||(hasRequiredReactJsxRuntime_development=1,process.env.NODE_ENV!=="production"&&(function(){var e=React,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),W=Symbol.iterator,j="@@iterator";function Q(le){if(le===null||typeof le!="object")return null;var Ee=W&&le[W]||le[j];return typeof Ee=="function"?Ee:null}var G=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function H(le){{for(var Ee=arguments.length,Se=new Array(Ee>1?Ee-1:0),Te=1;Te<Ee;Te++)Se[Te-1]=arguments[Te];V("error",le,Se)}}function V(le,Ee,Se){{var Te=G.ReactDebugCurrentFrame,Oe=Te.getStackAddendum();Oe!==""&&(Ee+="%s",Se=Se.concat([Oe]));var Le=Se.map(function(Ne){return String(Ne)});Le.unshift("Warning: "+Ee),Function.prototype.apply.call(console[le],console,Le)}}var J=!1,te=!1,re=!1,ie=!1,se=!1,ue;ue=Symbol.for("react.module.reference");function ge(le){return!!(typeof le=="string"||typeof le=="function"||le===i||le===a||se||le===s||le===y||le===M||ie||le===K||J||te||re||typeof le=="object"&&le!==null&&(le.$$typeof===F||le.$$typeof===q||le.$$typeof===l||le.$$typeof===h||le.$$typeof===d||le.$$typeof===ue||le.getModuleId!==void 0))}function de(le,Ee,Se){var Te=le.displayName;if(Te)return Te;var Oe=Ee.displayName||Ee.name||"";return Oe!==""?Se+"("+Oe+")":Se}function fe(le){return le.displayName||"Context"}function ve(le){if(le==null)return null;if(typeof le.tag=="number"&&H("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof le=="function")return le.displayName||le.name||null;if(typeof le=="string")return le;switch(le){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case s:return"StrictMode";case y:return"Suspense";case M:return"SuspenseList"}if(typeof le=="object")switch(le.$$typeof){case h:var Ee=le;return fe(Ee)+".Consumer";case l:var Se=le;return fe(Se._context)+".Provider";case d:return de(le,le.render,"ForwardRef");case q:var Te=le.displayName||null;return Te!==null?Te:ve(le.type)||"Memo";case F:{var Oe=le,Le=Oe._payload,Ne=Oe._init;try{return ve(Ne(Le))}catch{return null}}}return null}var me=Object.assign,he=0,ne,ae,Z,ee,ce,oe,pe;function ye(){}ye.__reactDisabledLog=!0;function be(){{if(he===0){ne=console.log,ae=console.info,Z=console.warn,ee=console.error,ce=console.group,oe=console.groupCollapsed,pe=console.groupEnd;var le={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:le,log:le,warn:le,error:le,group:le,groupCollapsed:le,groupEnd:le})}he++}}function Ce(){{if(he--,he===0){var le={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:me({},le,{value:ne}),info:me({},le,{value:ae}),warn:me({},le,{value:Z}),error:me({},le,{value:ee}),group:me({},le,{value:ce}),groupCollapsed:me({},le,{value:oe}),groupEnd:me({},le,{value:pe})})}he<0&&H("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var we=G.ReactCurrentDispatcher,xe;function Pe(le,Ee,Se){{if(xe===void 0)try{throw Error()}catch(Oe){var Te=Oe.stack.trim().match(/\n( *(at )?)/);xe=Te&&Te[1]||""}return`
|
|
2
|
-
`+xe+le}}var Fe=!1,Re;{var Ae=typeof WeakMap=="function"?WeakMap:Map;Re=new Ae}function Ie(le,Ee){if(!le||Fe)return"";{var Se=Re.get(le);if(Se!==void 0)return Se}var Te;Fe=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=we.current,we.current=null,be();try{if(Ee){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(Ue){Te=Ue}Reflect.construct(le,[],Ne)}else{try{Ne.call()}catch(Ue){Te=Ue}le.call(Ne.prototype)}}else{try{throw Error()}catch(Ue){Te=Ue}le()}}catch(Ue){if(Ue&&Te&&typeof Ue.stack=="string"){for(var ke=Ue.stack.split(`
|
|
3
|
-
`),ze=Te.stack.split(`
|
|
4
|
-
`),
|
|
5
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const jsxRuntime=require("react/jsx-runtime"),React=require("react"),lucideReact=require("lucide-react"),clsx=require("clsx"),tailwindMerge=require("tailwind-merge"),SelectPrimitive=require("@radix-ui/react-select"),DropdownMenuPrimitive=require("@radix-ui/react-dropdown-menu"),TooltipPrimitive=require("@radix-ui/react-tooltip");function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const React__namespace=_interopNamespaceDefault(React),SelectPrimitive__namespace=_interopNamespaceDefault(SelectPrimitive),DropdownMenuPrimitive__namespace=_interopNamespaceDefault(DropdownMenuPrimitive),TooltipPrimitive__namespace=_interopNamespaceDefault(TooltipPrimitive),m=e=>{let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t)},C=(e,t)=>Math.floor(e/Math.pow(10,t)%10),v=(e,t)=>!(C(e,t)%2),f=(e,t,r)=>{const i=e%t;return r&&C(e,r)%2===0?-i:i},u=(e,t,r)=>t[e%r],_=e=>{e.slice(0,1)==="#"&&(e=e.slice(1));const t=parseInt(e.substr(0,2),16),r=parseInt(e.substr(2,2),16),i=parseInt(e.substr(4,2),16);return(t*299+r*587+i*114)/1e3>=128?"#000000":"#FFFFFF"},A=4,o=80;function $(e,t){const r=m(e),i=t&&t.length;return Array.from({length:A},(s,n)=>({color:u(r+n,t,i),translateX:f(r*(n+1),o/2-(n+17),1),translateY:f(r*(n+1),o/2-(n+17),2),rotate:f(r*(n+1),360),isSquare:v(r,2)}))}const k=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=$(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+o+" "+o,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:o,height:o,children:jsxRuntime.jsx("rect",{width:o,height:o,rx:i?void 0:o*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:o,height:o,fill:a[0].color}),jsxRuntime.jsx("rect",{x:(o-60)/2,y:(o-20)/2,width:o,height:a[1].isSquare?o:o/8,fill:a[1].color,transform:"translate("+a[1].translateX+" "+a[1].translateY+") rotate("+a[1].rotate+" "+o/2+" "+o/2+")"}),jsxRuntime.jsx("circle",{cx:o/2,cy:o/2,fill:a[2].color,r:o/5,transform:"translate("+a[2].translateX+" "+a[2].translateY+")"}),jsxRuntime.jsx("line",{x1:0,y1:o/2,x2:o,y2:o/2,strokeWidth:2,stroke:a[3].color,transform:"translate("+a[3].translateX+" "+a[3].translateY+") rotate("+a[3].rotate+" "+o/2+" "+o/2+")"})]})]})},p=90,B=5;function U(e,t){const r=m(e),i=t&&t.length,s=Array.from({length:B},(a,l)=>u(r+l,t,i)),n=[];return n[0]=s[0],n[1]=s[1],n[2]=s[1],n[3]=s[2],n[4]=s[2],n[5]=s[3],n[6]=s[3],n[7]=s[0],n[8]=s[4],n}const E=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=U(e,t),l=React.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+p+" "+p,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:p,height:p,children:jsxRuntime.jsx("rect",{width:p,height:p,rx:i?void 0:p*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("path",{d:"M0 0h90v45H0z",fill:a[0]}),jsxRuntime.jsx("path",{d:"M0 45h90v45H0z",fill:a[1]}),jsxRuntime.jsx("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:a[2]}),jsxRuntime.jsx("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:a[3]}),jsxRuntime.jsx("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:a[4]}),jsxRuntime.jsx("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:a[5]}),jsxRuntime.jsx("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:a[6]}),jsxRuntime.jsx("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:a[7]}),jsxRuntime.jsx("circle",{cx:45,cy:45,r:23,fill:a[8]})]})]})},L=64,x=80;function T(e,t){const r=m(e),i=t&&t.length;return Array.from({length:L},(s,n)=>u(r%(n+1),t,i))}const O=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=T(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+x+" "+x,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,"mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:x,height:x,children:jsxRuntime.jsx("rect",{width:x,height:x,rx:i?void 0:x*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:10,height:10,fill:a[0]}),jsxRuntime.jsx("rect",{x:20,width:10,height:10,fill:a[1]}),jsxRuntime.jsx("rect",{x:40,width:10,height:10,fill:a[2]}),jsxRuntime.jsx("rect",{x:60,width:10,height:10,fill:a[3]}),jsxRuntime.jsx("rect",{x:10,width:10,height:10,fill:a[4]}),jsxRuntime.jsx("rect",{x:30,width:10,height:10,fill:a[5]}),jsxRuntime.jsx("rect",{x:50,width:10,height:10,fill:a[6]}),jsxRuntime.jsx("rect",{x:70,width:10,height:10,fill:a[7]}),jsxRuntime.jsx("rect",{y:10,width:10,height:10,fill:a[8]}),jsxRuntime.jsx("rect",{y:20,width:10,height:10,fill:a[9]}),jsxRuntime.jsx("rect",{y:30,width:10,height:10,fill:a[10]}),jsxRuntime.jsx("rect",{y:40,width:10,height:10,fill:a[11]}),jsxRuntime.jsx("rect",{y:50,width:10,height:10,fill:a[12]}),jsxRuntime.jsx("rect",{y:60,width:10,height:10,fill:a[13]}),jsxRuntime.jsx("rect",{y:70,width:10,height:10,fill:a[14]}),jsxRuntime.jsx("rect",{x:20,y:10,width:10,height:10,fill:a[15]}),jsxRuntime.jsx("rect",{x:20,y:20,width:10,height:10,fill:a[16]}),jsxRuntime.jsx("rect",{x:20,y:30,width:10,height:10,fill:a[17]}),jsxRuntime.jsx("rect",{x:20,y:40,width:10,height:10,fill:a[18]}),jsxRuntime.jsx("rect",{x:20,y:50,width:10,height:10,fill:a[19]}),jsxRuntime.jsx("rect",{x:20,y:60,width:10,height:10,fill:a[20]}),jsxRuntime.jsx("rect",{x:20,y:70,width:10,height:10,fill:a[21]}),jsxRuntime.jsx("rect",{x:40,y:10,width:10,height:10,fill:a[22]}),jsxRuntime.jsx("rect",{x:40,y:20,width:10,height:10,fill:a[23]}),jsxRuntime.jsx("rect",{x:40,y:30,width:10,height:10,fill:a[24]}),jsxRuntime.jsx("rect",{x:40,y:40,width:10,height:10,fill:a[25]}),jsxRuntime.jsx("rect",{x:40,y:50,width:10,height:10,fill:a[26]}),jsxRuntime.jsx("rect",{x:40,y:60,width:10,height:10,fill:a[27]}),jsxRuntime.jsx("rect",{x:40,y:70,width:10,height:10,fill:a[28]}),jsxRuntime.jsx("rect",{x:60,y:10,width:10,height:10,fill:a[29]}),jsxRuntime.jsx("rect",{x:60,y:20,width:10,height:10,fill:a[30]}),jsxRuntime.jsx("rect",{x:60,y:30,width:10,height:10,fill:a[31]}),jsxRuntime.jsx("rect",{x:60,y:40,width:10,height:10,fill:a[32]}),jsxRuntime.jsx("rect",{x:60,y:50,width:10,height:10,fill:a[33]}),jsxRuntime.jsx("rect",{x:60,y:60,width:10,height:10,fill:a[34]}),jsxRuntime.jsx("rect",{x:60,y:70,width:10,height:10,fill:a[35]}),jsxRuntime.jsx("rect",{x:10,y:10,width:10,height:10,fill:a[36]}),jsxRuntime.jsx("rect",{x:10,y:20,width:10,height:10,fill:a[37]}),jsxRuntime.jsx("rect",{x:10,y:30,width:10,height:10,fill:a[38]}),jsxRuntime.jsx("rect",{x:10,y:40,width:10,height:10,fill:a[39]}),jsxRuntime.jsx("rect",{x:10,y:50,width:10,height:10,fill:a[40]}),jsxRuntime.jsx("rect",{x:10,y:60,width:10,height:10,fill:a[41]}),jsxRuntime.jsx("rect",{x:10,y:70,width:10,height:10,fill:a[42]}),jsxRuntime.jsx("rect",{x:30,y:10,width:10,height:10,fill:a[43]}),jsxRuntime.jsx("rect",{x:30,y:20,width:10,height:10,fill:a[44]}),jsxRuntime.jsx("rect",{x:30,y:30,width:10,height:10,fill:a[45]}),jsxRuntime.jsx("rect",{x:30,y:40,width:10,height:10,fill:a[46]}),jsxRuntime.jsx("rect",{x:30,y:50,width:10,height:10,fill:a[47]}),jsxRuntime.jsx("rect",{x:30,y:60,width:10,height:10,fill:a[48]}),jsxRuntime.jsx("rect",{x:30,y:70,width:10,height:10,fill:a[49]}),jsxRuntime.jsx("rect",{x:50,y:10,width:10,height:10,fill:a[50]}),jsxRuntime.jsx("rect",{x:50,y:20,width:10,height:10,fill:a[51]}),jsxRuntime.jsx("rect",{x:50,y:30,width:10,height:10,fill:a[52]}),jsxRuntime.jsx("rect",{x:50,y:40,width:10,height:10,fill:a[53]}),jsxRuntime.jsx("rect",{x:50,y:50,width:10,height:10,fill:a[54]}),jsxRuntime.jsx("rect",{x:50,y:60,width:10,height:10,fill:a[55]}),jsxRuntime.jsx("rect",{x:50,y:70,width:10,height:10,fill:a[56]}),jsxRuntime.jsx("rect",{x:70,y:10,width:10,height:10,fill:a[57]}),jsxRuntime.jsx("rect",{x:70,y:20,width:10,height:10,fill:a[58]}),jsxRuntime.jsx("rect",{x:70,y:30,width:10,height:10,fill:a[59]}),jsxRuntime.jsx("rect",{x:70,y:40,width:10,height:10,fill:a[60]}),jsxRuntime.jsx("rect",{x:70,y:50,width:10,height:10,fill:a[61]}),jsxRuntime.jsx("rect",{x:70,y:60,width:10,height:10,fill:a[62]}),jsxRuntime.jsx("rect",{x:70,y:70,width:10,height:10,fill:a[63]})]})]})},c=36;function b(e,t){const r=m(e),i=t&&t.length,s=u(r,t,i),n=f(r,10,1),a=n<5?n+c/9:n,l=f(r,10,2),h=l<5?l+c/9:l;return{wrapperColor:s,faceColor:_(s),backgroundColor:u(r+13,t,i),wrapperTranslateX:a,wrapperTranslateY:h,wrapperRotate:f(r,360),wrapperScale:1+f(r,c/12)/10,isMouthOpen:v(r,2),isCircle:v(r,1),eyeSpread:f(r,5),mouthSpread:f(r,3),faceRotate:f(r,10,3),faceTranslateX:a>c/6?a/2:f(r,8,1),faceTranslateY:h>c/6?h/2:f(r,7,2)}}const S=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=b(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+c+" "+c,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:c,height:c,children:jsxRuntime.jsx("rect",{width:c,height:c,rx:i?void 0:c*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:c,height:c,fill:a.backgroundColor}),jsxRuntime.jsx("rect",{x:"0",y:"0",width:c,height:c,transform:"translate("+a.wrapperTranslateX+" "+a.wrapperTranslateY+") rotate("+a.wrapperRotate+" "+c/2+" "+c/2+") scale("+a.wrapperScale+")",fill:a.wrapperColor,rx:a.isCircle?c:c/6}),jsxRuntime.jsxs("g",{transform:"translate("+a.faceTranslateX+" "+a.faceTranslateY+") rotate("+a.faceRotate+" "+c/2+" "+c/2+")",children:[a.isMouthOpen?jsxRuntime.jsx("path",{d:"M15 "+(19+a.mouthSpread)+"c2 1 4 1 6 0",stroke:a.faceColor,fill:"none",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:"M13,"+(19+a.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:a.faceColor}),jsxRuntime.jsx("rect",{x:14-a.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:a.faceColor}),jsxRuntime.jsx("rect",{x:20+a.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:a.faceColor})]})]})]})},R=4,w=80;function X(e,t){const r=m(e),i=t&&t.length;return Array.from({length:R},(s,n)=>u(r+n,t,i))}const Y=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=X(e,t),l=e.replace(/\s/g,""),h=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+w+" "+w,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:w,height:w,children:jsxRuntime.jsx("rect",{width:w,height:w,rx:i?void 0:w*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntime.jsx("path",{fill:"url(#gradient_paint0_linear_"+l+")",d:"M0 0h80v40H0z"}),jsxRuntime.jsx("path",{fill:"url(#gradient_paint1_linear_"+l+")",d:"M0 40h80v40H0z"})]}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:"gradient_paint0_linear_"+l,x1:w/2,y1:0,x2:w/2,y2:w/2,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:a[0]}),jsxRuntime.jsx("stop",{offset:1,stopColor:a[1]})]}),jsxRuntime.jsxs("linearGradient",{id:"gradient_paint1_linear_"+l,x1:w/2,y1:w/2,x2:w/2,y2:w,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:a[2]}),jsxRuntime.jsx("stop",{offset:1,stopColor:a[3]})]})]})]})},D=3,g=80;function N(e,t){const r=m(e),i=t&&t.length;return Array.from({length:D},(s,n)=>({color:u(r+n,t,i),translateX:f(r*(n+1),g/10,1),translateY:f(r*(n+1),g/10,2),scale:1.2+f(r*(n+1),g/20)/10,rotate:f(r*(n+1),360,1)}))}const I=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=N(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+g+" "+g,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:g,height:g,children:jsxRuntime.jsx("rect",{width:g,height:g,rx:i?void 0:g*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:g,height:g,fill:a[0].color}),jsxRuntime.jsx("path",{filter:`url(#filter_${l})`,d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:a[1].color,transform:"translate("+a[1].translateX+" "+a[1].translateY+") rotate("+a[1].rotate+" "+g/2+" "+g/2+") scale("+a[2].scale+")"}),jsxRuntime.jsx("path",{filter:`url(#filter_${l})`,style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:a[2].color,transform:"translate("+a[2].translateX+" "+a[2].translateY+") rotate("+a[2].rotate+" "+g/2+" "+g/2+") scale("+a[2].scale+")"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:`filter_${l}`,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntime.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),jsxRuntime.jsx("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"})]})})]})},z={pixel:O,bauhaus:k,ring:E,beam:S,sunset:Y,marble:I,geometric:S,abstract:k},P=({variant:e="marble",colors:t=["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"],name:r="Clara Barton",title:i=!1,size:s="40px",square:n=!1,...a})=>{const l=z[e]||I;return jsxRuntime.jsx(l,{colors:t,name:r,title:i,size:s,square:n,...a})},colors=["#148103","#ccfbd6ff","#334155"],PersonAvatar=({personId:e})=>jsxRuntime.jsx(P,{size:40,name:e,variant:"beam",colors}),ProfileAvatar=({userId:e})=>jsxRuntime.jsx(P,{size:40,name:e,variant:"bauhaus",colors}),Box=({children:e})=>jsxRuntime.jsx("div",{className:"w-75 rounded-lg bg-white p-4 shadow-xl",children:e});function setRef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function composeRefs(...e){return t=>{let r=!1;const i=e.map(s=>{const n=setRef(s,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let s=0;s<i.length;s++){const n=i[s];typeof n=="function"?n():setRef(e[s],null)}}}}function createSlot(e){const t=createSlotClone(e),r=React__namespace.forwardRef((i,s)=>{const{children:n,...a}=i,l=React__namespace.Children.toArray(n),h=l.find(isSlottable);if(h){const d=h.props.children,F=l.map(J=>J===h?React__namespace.Children.count(d)>1?React__namespace.Children.only(null):React__namespace.isValidElement(d)?d.props.children:null:J);return jsxRuntime.jsx(t,{...a,ref:s,children:React__namespace.isValidElement(d)?React__namespace.cloneElement(d,void 0,F):null})}return jsxRuntime.jsx(t,{...a,ref:s,children:n})});return r.displayName=`${e}.Slot`,r}var Slot=createSlot("Slot");function createSlotClone(e){const t=React__namespace.forwardRef((r,i)=>{const{children:s,...n}=r;if(React__namespace.isValidElement(s)){const a=getElementRef(s),l=mergeProps(n,s.props);return s.type!==React__namespace.Fragment&&(l.ref=i?composeRefs(i,a):a),React__namespace.cloneElement(s,l)}return React__namespace.Children.count(s)>1?React__namespace.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function isSlottable(e){return React__namespace.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(e,t){const r={...t};for(const i in t){const s=e[i],n=t[i];/^on[A-Z]/.test(i)?s&&n?r[i]=(...l)=>{const h=n(...l);return s(...l),h}:s&&(r[i]=s):i==="style"?r[i]={...s,...n}:i==="className"&&(r[i]=[s,n].filter(Boolean).join(" "))}return{...e,...r}}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cn(...e){return tailwindMerge.twMerge(clsx.clsx(e))}const Button=React__namespace.forwardRef(({className:e,asChild:t=!1,variant:r="primary",size:i="md",loading:s=!1,disabled:n,children:a,...l},h)=>{const d=t?Slot:"button";return jsxRuntime.jsxs(d,{ref:h,className:cn("oniratec-button",e),"data-variant":r,"data-size":i,disabled:n||s,...l,children:[s&&jsxRuntime.jsx(lucideReact.Loader2,{className:"oniratec-button__spinner"}),jsxRuntime.jsx("span",{className:"oniratec-button__content",children:a})]})});Button.displayName="Button";const Logo=({src:e,alt:t,width:r=70,height:i=70,className:s,ImageComponent:n,...a})=>{const l=n??"img";return jsxRuntime.jsx(l,{type:void 0,props:void 0,src:e,alt:t,width:r,height:i,className:cn("inline-block object-contain",s),...a},null)},Card=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("rounded-xl bg-white p-6 shadow-sm ring-1 ring-gray-100 transition-shadow hover:shadow-md",t),children:e}),CardHeader=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("mb-2",t),children:e}),CardTitle=({children:e,className:t})=>jsxRuntime.jsx("h3",{className:cn("text-sm font-medium text-gray-500",t),children:e}),CardContent=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("text-2xl font-semibold",t),children:e}),DropdownMenu=DropdownMenuPrimitive__namespace.Root,DropdownMenuTrigger=DropdownMenuPrimitive__namespace.Trigger,DropdownMenuGroup=DropdownMenuPrimitive__namespace.Group,DropdownMenuPortal=DropdownMenuPrimitive__namespace.Portal,DropdownMenuSub=DropdownMenuPrimitive__namespace.Sub,DropdownMenuRadioGroup=DropdownMenuPrimitive__namespace.RadioGroup,DropdownMenuContent=React__namespace.forwardRef(({className:e,sideOffset:t=6,...r},i)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal,{children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Content,{ref:i,sideOffset:t,className:cn("oniratec-dropdown",e),...r})}));DropdownMenuContent.displayName="DropdownMenuContent";const DropdownMenuItem=React__namespace.forwardRef(({className:e,inset:t,icon:r,children:i,...s},n)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.Item,{ref:n,className:cn("oniratec-dropdown__item",t&&"oniratec-dropdown__item--inset",e),...s,children:[r?jsxRuntime.jsx("span",{className:"oniratec-dropdown__icon",children:r}):jsxRuntime.jsx("span",{"aria-hidden":!0}),i]}));DropdownMenuItem.displayName="DropdownMenuItem";const DropdownMenuCheckboxItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.CheckboxItem,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...r,children:[jsxRuntime.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));DropdownMenuCheckboxItem.displayName="DropdownMenuCheckboxItem";const DropdownMenuRadioItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.RadioItem,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...r,children:[jsxRuntime.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));DropdownMenuRadioItem.displayName="DropdownMenuRadioItem";const DropdownMenuLabel=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Label,{ref:r,className:cn("oniratec-dropdown__label",e),...t}));DropdownMenuLabel.displayName="DropdownMenuLabel";const DropdownMenuSeparator=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Separator,{ref:r,className:cn("oniratec-dropdown__separator",e),...t}));DropdownMenuSeparator.displayName="DropdownMenuSeparator";const DropdownMenuSubTrigger=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.SubTrigger,{ref:i,className:cn("oniratec-dropdown__item",e),...r,children:[t,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"oniratec-dropdown__chevron"})]}));DropdownMenuSubTrigger.displayName="DropdownMenuSubTrigger";const DropdownMenuSubContent=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.SubContent,{ref:r,className:cn("oniratec-dropdown",e),...t}));DropdownMenuSubContent.displayName="DropdownMenuSubContent";const FieldContext=React__namespace.createContext(null);function useField(){const e=React__namespace.useContext(FieldContext);if(!e)throw new Error("Field components must be used inside <Field>");return e}function Field({className:e,error:t,required:r,...i}){const s=React__namespace.useId();return jsxRuntime.jsx(FieldContext.Provider,{value:{id:s,error:t,required:r},children:jsxRuntime.jsx("div",{className:cn("oniratec-field",e),...i})})}const FieldControl=React.forwardRef((e,t)=>{const{id:r,error:i}=useField();return jsxRuntime.jsx(Slot,{ref:t,id:r,"aria-invalid":!!i,...e})});FieldControl.displayName="FieldControl";const FieldLabel=React__namespace.forwardRef(({className:e,children:t,...r},i)=>{const{id:s,required:n}=useField();return jsxRuntime.jsxs("label",{ref:i,htmlFor:s,className:cn("oniratec-field__label",e),...r,children:[t,n&&jsxRuntime.jsx("span",{className:"oniratec-field__required",children:"*"})]})});FieldLabel.displayName="FieldLabel";const FieldMessage=React__namespace.forwardRef(({className:e,children:t,...r},i)=>{const{error:s}=useField(),n=s??t;return n?jsxRuntime.jsx("p",{ref:i,className:cn("oniratec-field__message",e),...r,children:n}):null});FieldMessage.displayName="FieldMessage";const PasswordInput=React.forwardRef(({className:e,containerClassName:t,...r},i)=>{const[s,n]=React.useState(!1),a=()=>{n(l=>!l)};return jsxRuntime.jsxs("div",{className:cn("relative",t),children:[jsxRuntime.jsx("input",{ref:i,type:s?"text":"password",className:cn("flex h-10 w-full rounded-md border border-slate-300 bg-transparent px-3 py-2 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...r}),jsxRuntime.jsx("button",{type:"button",className:cn("absolute top-1/2 right-3 -translate-y-1/2 transform"),onClick:a,children:s?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-5 w-5 text-slate-400"}):jsxRuntime.jsx(lucideReact.EyeIcon,{className:"h-5 w-5 text-slate-400"})})]})});PasswordInput.displayName="PasswordInput";const Input=React__namespace.forwardRef(({className:e,isInvalid:t,...r},i)=>jsxRuntime.jsx("input",{ref:i,"data-invalid":t?"true":void 0,className:cn("oniratec-input",e),...r}));Input.displayName="Input";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,s;for(r=0;r<i;r+=1){s=e[r].prototype;for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(r,i){var s=0,n=[],a;switch(r){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(s=0;s<i;s+=1)n.push(a);return n}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,r){var i,s,n,a,l,h,d,F;switch(a=Math.floor(e*6),l=e*6-a,h=r*(1-t),d=r*(1-l*t),F=r*(1-(1-l)*t),a%6){case 0:i=r,s=F,n=h;break;case 1:i=d,s=r,n=h;break;case 2:i=h,s=r,n=F;break;case 3:i=h,s=d,n=r;break;case 4:i=F,s=h,n=r;break;case 5:i=r,s=h,n=d;break}return[i,s,n]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),s=Math.min(e,t,r),n=i-s,a,l=i===0?0:n/i,h=i/255;switch(i){case s:a=0;break;case e:a=t-r+n*(t<r?6:0),a/=6*n;break;case t:a=r-e+n*2,a/=6*n;break;case r:a=e-t+n*4,a/=6*n;break}return[a,l,h]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,n){return i<0&&(i=0),s<0&&(s=0),n<0&&(n=0),"#"+e[i]+e[s]+e[n]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(q){r({data:q})}},n={postMessage:function(q){s.onmessage({data:q})}};function a(y){if(window.Worker&&window.Blob&&getWebWorker()){var q=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),H=URL.createObjectURL(q);return new Worker(H)}return r=y,s}function l(){i||(i=a(function(q){function H(){function te(he,re){var se,W,K=he.length,oe,ne,ce,pe;for(W=0;W<K;W+=1)if(se=he[W],"ks"in se&&!se.completed){if(se.completed=!0,se.hasMask){var de=se.masksProperties;for(ne=de.length,oe=0;oe<ne;oe+=1)if(de[oe].pt.k.i)Q(de[oe].pt.k);else for(pe=de[oe].pt.k.length,ce=0;ce<pe;ce+=1)de[oe].pt.k[ce].s&&Q(de[oe].pt.k[ce].s[0]),de[oe].pt.k[ce].e&&Q(de[oe].pt.k[ce].e[0])}se.ty===0?(se.layers=M(se.refId,re),te(se.layers,re)):se.ty===4?V(se.shapes):se.ty===5&&me(se)}}function j(he,re){if(he){var se=0,W=he.length;for(se=0;se<W;se+=1)he[se].t===1&&(he[se].data.layers=M(he[se].data.refId,re),te(he[se].data.layers,re))}}function Z(he,re){for(var se=0,W=re.length;se<W;){if(re[se].id===he)return re[se];se+=1}return null}function M(he,re){var se=Z(he,re);return se?se.layers.__used?JSON.parse(JSON.stringify(se.layers)):(se.layers.__used=!0,se.layers):null}function V(he){var re,se=he.length,W,K;for(re=se-1;re>=0;re-=1)if(he[re].ty==="sh")if(he[re].ks.k.i)Q(he[re].ks.k);else for(K=he[re].ks.k.length,W=0;W<K;W+=1)he[re].ks.k[W].s&&Q(he[re].ks.k[W].s[0]),he[re].ks.k[W].e&&Q(he[re].ks.k[W].e[0]);else he[re].ty==="gr"&&V(he[re].it)}function Q(he){var re,se=he.i.length;for(re=0;re<se;re+=1)he.i[re][0]+=he.v[re][0],he.i[re][1]+=he.v[re][1],he.o[re][0]+=he.v[re][0],he.o[re][1]+=he.v[re][1]}function ee(he,re){var se=re?re.split("."):[100,100,100];return he[0]>se[0]?!0:se[0]>he[0]?!1:he[1]>se[1]?!0:se[1]>he[1]?!1:he[2]>se[2]?!0:se[2]>he[2]?!1:null}var ie=(function(){var he=[4,4,14];function re(W){var K=W.t.d;W.t.d={k:[{s:K,t:0}]}}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===5&&re(W[K])}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ae=(function(){var he=[4,7,99];return function(re){if(re.chars&&!ee(he,re.v)){var se,W=re.chars.length;for(se=0;se<W;se+=1){var K=re.chars[se];K.data&&K.data.shapes&&(V(K.data.shapes),K.data.ip=0,K.data.op=99999,K.data.st=0,K.data.sr=1,K.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},re.chars[se].t||(K.data.shapes.push({ty:"no"}),K.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),le=(function(){var he=[5,7,15];function re(W){var K=W.t.p;typeof K.a=="number"&&(K.a={a:0,k:K.a}),typeof K.p=="number"&&(K.p={a:0,k:K.p}),typeof K.r=="number"&&(K.r={a:0,k:K.r})}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===5&&re(W[K])}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ye=(function(){var he=[4,1,9];function re(W){var K,oe=W.length,ne,ce;for(K=0;K<oe;K+=1)if(W[K].ty==="gr")re(W[K].it);else if(W[K].ty==="fl"||W[K].ty==="st")if(W[K].c.k&&W[K].c.k[0].i)for(ce=W[K].c.k.length,ne=0;ne<ce;ne+=1)W[K].c.k[ne].s&&(W[K].c.k[ne].s[0]/=255,W[K].c.k[ne].s[1]/=255,W[K].c.k[ne].s[2]/=255,W[K].c.k[ne].s[3]/=255),W[K].c.k[ne].e&&(W[K].c.k[ne].e[0]/=255,W[K].c.k[ne].e[1]/=255,W[K].c.k[ne].e[2]/=255,W[K].c.k[ne].e[3]/=255);else W[K].c.k[0]/=255,W[K].c.k[1]/=255,W[K].c.k[2]/=255,W[K].c.k[3]/=255}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===4&&re(W[K].shapes)}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ue=(function(){var he=[4,4,18];function re(W){var K,oe=W.length,ne,ce;for(K=oe-1;K>=0;K-=1)if(W[K].ty==="sh")if(W[K].ks.k.i)W[K].ks.k.c=W[K].closed;else for(ce=W[K].ks.k.length,ne=0;ne<ce;ne+=1)W[K].ks.k[ne].s&&(W[K].ks.k[ne].s[0].c=W[K].closed),W[K].ks.k[ne].e&&(W[K].ks.k[ne].e[0].c=W[K].closed);else W[K].ty==="gr"&&re(W[K].it)}function se(W){var K,oe,ne=W.length,ce,pe,de,xe;for(oe=0;oe<ne;oe+=1){if(K=W[oe],K.hasMask){var be=K.masksProperties;for(pe=be.length,ce=0;ce<pe;ce+=1)if(be[ce].pt.k.i)be[ce].pt.k.c=be[ce].cl;else for(xe=be[ce].pt.k.length,de=0;de<xe;de+=1)be[ce].pt.k[de].s&&(be[ce].pt.k[de].s[0].c=be[ce].cl),be[ce].pt.k[de].e&&(be[ce].pt.k[de].e[0].c=be[ce].cl)}K.ty===4&&re(K.shapes)}}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})();function fe(he){he.__complete||(ye(he),ie(he),ae(he),le(he),ue(he),te(he.layers,he.assets),j(he.chars,he.assets),he.__complete=!0)}function me(he){he.t.a.length===0&&"m"in he.t.p}var ve={};return ve.completeData=fe,ve.checkColors=ye,ve.checkChars=ae,ve.checkPathProperties=le,ve.checkShapes=ue,ve.completeLayers=te,ve}if(n.dataManager||(n.dataManager=H()),n.assetLoader||(n.assetLoader=(function(){function te(Z){var M=Z.getResponseHeader("content-type");return M&&Z.responseType==="json"&&M.indexOf("json")!==-1||Z.response&&_typeof$5(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function j(Z,M,V,Q){var ee,ie=new XMLHttpRequest;try{ie.responseType="json"}catch{}ie.onreadystatechange=function(){if(ie.readyState===4)if(ie.status===200)ee=te(ie),V(ee);else try{ee=te(ie),V(ee)}catch(ae){Q&&Q(ae)}};try{ie.open(["G","E","T"].join(""),Z,!0)}catch{ie.open(["G","E","T"].join(""),M+"/"+Z,!0)}ie.send()}return{load:j}})()),q.data.type==="loadAnimation")n.assetLoader.load(q.data.path,q.data.fullPath,function(te){n.dataManager.completeData(te),n.postMessage({id:q.data.id,payload:te,status:"success"})},function(){n.postMessage({id:q.data.id,status:"error"})});else if(q.data.type==="complete"){var G=q.data.animation;n.dataManager.completeData(G),n.postMessage({id:q.data.id,payload:G,status:"success"})}else q.data.type==="loadData"&&n.assetLoader.load(q.data.path,q.data.fullPath,function(te){n.postMessage({id:q.data.id,payload:te,status:"success"})},function(){n.postMessage({id:q.data.id,status:"error"})})}),i.onmessage=function(y){var q=y.data,H=q.id,G=t[H];t[H]=null,q.status==="success"?G.onComplete(q.payload):G.onError&&G.onError()})}function h(y,q){e+=1;var H="processId_"+e;return t[H]={onComplete:y,onError:q},H}function d(y,q,H){l();var G=h(q,H);i.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:G})}function F(y,q,H){l();var G=h(q,H);i.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:G})}function J(y,q,H){l();var G=h(q,H);i.postMessage({type:"complete",animation:y,id:G})}return{loadAnimation:d,loadData:F,completeAnimation:J}})(),ImagePreloader=(function(){var e=(function(){var j=createTag("canvas");j.width=1,j.height=1;var Z=j.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),j})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(j,Z,M){var V="";if(j.e)V=j.p;else if(Z){var Q=j.p;Q.indexOf("images/")!==-1&&(Q=Q.split("/")[1]),V=Z+Q}else V=M,V+=j.u?j.u:"",V+=j.p;return V}function s(j){var Z=0,M=setInterval((function(){var V=j.getBBox();(V.width||Z>500)&&(this._imageLoaded(),clearInterval(M)),Z+=1}).bind(this),50)}function n(j){var Z=i(j,this.assetsPath,this.path),M=createNS("image");isSafari?this.testImageLoaded(M):M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){V.img=e,this._imageLoaded()}).bind(this),!1),M.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(M):this._elementHelper.appendChild(M);var V={img:M,assetData:j};return V}function a(j){var Z=i(j,this.assetsPath,this.path),M=createTag("img");M.crossOrigin="anonymous",M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){V.img=e,this._imageLoaded()}).bind(this),!1),M.src=Z;var V={img:M,assetData:j};return V}function l(j){var Z={assetData:j},M=i(j,this.assetsPath,this.path);return dataManager.loadData(M,(function(V){Z.img=V,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function h(j,Z){this.imagesLoadedCb=Z;var M,V=j.length;for(M=0;M<V;M+=1)j[M].layers||(!j[M].t||j[M].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(j[M]))):j[M].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(j[M]))))}function d(j){this.path=j||""}function F(j){this.assetsPath=j||""}function J(j){for(var Z=0,M=this.images.length;Z<M;){if(this.images[Z].assetData===j)return this.images[Z].img;Z+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function q(){return this.totalImages===this.loadedAssets}function H(){return this.totalFootages===this.loadedFootagesCount}function G(j,Z){j==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function te(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return te.prototype={loadAssets:h,setAssetsPath:F,setPath:d,loadedImages:q,loadedFootages:H,destroy:y,getAsset:J,createImgData:a,createImageData:n,imageLoaded:t,footageLoaded:r,setCacheType:G},te})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),(function(){this.removeEventListener(t,r)}).bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var r=t.split(`\r
|
|
2
|
+
`),i={},s,n=0,a=0;a<r.length;a+=1)s=r[a].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),n+=1);if(n===0)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var s=t[i],n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(t[i].cm)}catch{try{n.payload=e(t[i].cm)}catch{n.payload={name:t[i].cm}}}r.push(n)}return r}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var n=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=n!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var a=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";a==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,s=e.layers,n,a=s.length;for(n=0;n<a;n+=1)for(r=0;r<i;){if(t[r].id===s[n].id){t[r]=s[n];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],r=0,i=0,s=0,n=!0,a=!1;function l(re){for(var se=0,W=re.target;se<i;)t[se].animation===W&&(t.splice(se,1),se-=1,i-=1,W.isPaused||J()),se+=1}function h(re,se){if(!re)return null;for(var W=0;W<i;){if(t[W].elem===re&&t[W].elem!==null)return t[W].animation;W+=1}var K=new AnimationItem;return y(K,re),K.setData(re,se),K}function d(){var re,se=t.length,W=[];for(re=0;re<se;re+=1)W.push(t[re].animation);return W}function F(){s+=1,ye()}function J(){s-=1}function y(re,se){re.addEventListener("destroy",l),re.addEventListener("_active",F),re.addEventListener("_idle",J),t.push({elem:se,animation:re}),i+=1}function q(re){var se=new AnimationItem;return y(se,null),se.setParams(re),se}function H(re,se){var W;for(W=0;W<i;W+=1)t[W].animation.setSpeed(re,se)}function G(re,se){var W;for(W=0;W<i;W+=1)t[W].animation.setDirection(re,se)}function te(re){var se;for(se=0;se<i;se+=1)t[se].animation.play(re)}function j(re){var se=re-r,W;for(W=0;W<i;W+=1)t[W].animation.advanceTime(se);r=re,s&&!a?window.requestAnimationFrame(j):n=!0}function Z(re){r=re,window.requestAnimationFrame(j)}function M(re){var se;for(se=0;se<i;se+=1)t[se].animation.pause(re)}function V(re,se,W){var K;for(K=0;K<i;K+=1)t[K].animation.goToAndStop(re,se,W)}function Q(re){var se;for(se=0;se<i;se+=1)t[se].animation.stop(re)}function ee(re){var se;for(se=0;se<i;se+=1)t[se].animation.togglePause(re)}function ie(re){var se;for(se=i-1;se>=0;se-=1)t[se].animation.destroy(re)}function ae(re,se,W){var K=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),oe,ne=K.length;for(oe=0;oe<ne;oe+=1)W&&K[oe].setAttribute("data-bm-type",W),h(K[oe],re);if(se&&ne===0){W||(W="svg");var ce=document.getElementsByTagName("body")[0];ce.innerText="";var pe=createTag("div");pe.style.width="100%",pe.style.height="100%",pe.setAttribute("data-bm-type",W),ce.appendChild(pe),h(pe,re)}}function le(){var re;for(re=0;re<i;re+=1)t[re].animation.resize()}function ye(){!a&&s&&n&&(window.requestAnimationFrame(Z),n=!1)}function ue(){a=!0}function fe(){a=!1,ye()}function me(re,se){var W;for(W=0;W<i;W+=1)t[W].animation.setVolume(re,se)}function ve(re){var se;for(se=0;se<i;se+=1)t[se].animation.mute(re)}function he(re){var se;for(se=0;se<i;se+=1)t[se].animation.unmute(re)}return e.registerAnimation=h,e.loadAnimation=q,e.setSpeed=H,e.setDirection=G,e.play=te,e.pause=M,e.stop=Q,e.togglePause=ee,e.searchAnimations=ae,e.resize=le,e.goToAndStop=V,e.destroy=ie,e.freeze=ue,e.unfreeze=fe,e.setVolume=me,e.mute=ve,e.unmute=he,e.getRegisteredAnimations=d,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=r;var t={};function r(Z,M,V,Q,ee){var ie=ee||("bez_"+Z+"_"+M+"_"+V+"_"+Q).replace(/\./g,"p");if(t[ie])return t[ie];var ae=new j([Z,M,V,Q]);return t[ie]=ae,ae}var i=4,s=.001,n=1e-7,a=10,l=11,h=1/(l-1),d=typeof Float32Array=="function";function F(Z,M){return 1-3*M+3*Z}function J(Z,M){return 3*M-6*Z}function y(Z){return 3*Z}function q(Z,M,V){return((F(M,V)*Z+J(M,V))*Z+y(M))*Z}function H(Z,M,V){return 3*F(M,V)*Z*Z+2*J(M,V)*Z+y(M)}function G(Z,M,V,Q,ee){var ie,ae,le=0;do ae=M+(V-M)/2,ie=q(ae,Q,ee)-Z,ie>0?V=ae:M=ae;while(Math.abs(ie)>n&&++le<a);return ae}function te(Z,M,V,Q){for(var ee=0;ee<i;++ee){var ie=H(M,V,Q);if(ie===0)return M;var ae=q(M,V,Q)-Z;M-=ae/ie}return M}function j(Z){this._p=Z,this._mSampleValues=d?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return j.prototype={get:function(M){var V=this._p[0],Q=this._p[1],ee=this._p[2],ie=this._p[3];return this._precomputed||this._precompute(),V===Q&&ee===ie?M:M===0?0:M===1?1:q(this._getTForX(M),Q,ie)},_precompute:function(){var M=this._p[0],V=this._p[1],Q=this._p[2],ee=this._p[3];this._precomputed=!0,(M!==V||Q!==ee)&&this._calcSampleValues()},_calcSampleValues:function(){for(var M=this._p[0],V=this._p[2],Q=0;Q<l;++Q)this._mSampleValues[Q]=q(Q*h,M,V)},_getTForX:function(M){for(var V=this._p[0],Q=this._p[2],ee=this._mSampleValues,ie=0,ae=1,le=l-1;ae!==le&&ee[ae]<=M;++ae)ie+=h;--ae;var ye=(M-ee[ae])/(ee[ae+1]-ee[ae]),ue=ie+ye*h,fe=H(ue,V,Q);return fe>=s?te(M,ue,V,Q):fe===0?ue:G(M,ie,ie+h,V,Q)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,r){var i=0,s=e,n=createSizedArray(s),a={newElement:l,release:h};function l(){var d;return i?(i-=1,d=n[i]):d=t(),d}function h(d){i===s&&(n=pooling.double(n),s*=2),r&&r(d),n[i]=d,i+=1}return a}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,s=r.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(y,q,H,G,te,j){var Z=y*G+q*te+H*j-te*G-j*y-H*q;return Z>-.001&&Z<.001}function r(y,q,H,G,te,j,Z,M,V){if(H===0&&j===0&&V===0)return t(y,q,G,te,Z,M);var Q=e.sqrt(e.pow(G-y,2)+e.pow(te-q,2)+e.pow(j-H,2)),ee=e.sqrt(e.pow(Z-y,2)+e.pow(M-q,2)+e.pow(V-H,2)),ie=e.sqrt(e.pow(Z-G,2)+e.pow(M-te,2)+e.pow(V-j,2)),ae;return Q>ee?Q>ie?ae=Q-ee-ie:ae=ie-ee-Q:ie>ee?ae=ie-ee-Q:ae=ee-Q-ie,ae>-1e-4&&ae<1e-4}var i=(function(){return function(y,q,H,G){var te=getDefaultCurveSegments(),j,Z,M,V,Q,ee=0,ie,ae=[],le=[],ye=bezierLengthPool.newElement();for(M=H.length,j=0;j<te;j+=1){for(Q=j/(te-1),ie=0,Z=0;Z<M;Z+=1)V=bmPow(1-Q,3)*y[Z]+3*bmPow(1-Q,2)*Q*H[Z]+3*(1-Q)*bmPow(Q,2)*G[Z]+bmPow(Q,3)*q[Z],ae[Z]=V,le[Z]!==null&&(ie+=bmPow(ae[Z]-le[Z],2)),le[Z]=ae[Z];ie&&(ie=bmSqrt(ie),ee+=ie),ye.percents[j]=Q,ye.lengths[j]=ee}return ye.addedLength=ee,ye}})();function s(y){var q=segmentsLengthPool.newElement(),H=y.c,G=y.v,te=y.o,j=y.i,Z,M=y._length,V=q.lengths,Q=0;for(Z=0;Z<M-1;Z+=1)V[Z]=i(G[Z],G[Z+1],te[Z],j[Z+1]),Q+=V[Z].addedLength;return H&&M&&(V[Z]=i(G[Z],G[0],te[Z],j[0]),Q+=V[Z].addedLength),q.totalLength=Q,q}function n(y){this.segmentLength=0,this.points=new Array(y)}function a(y,q){this.partialLength=y,this.point=q}var l=(function(){var y={};return function(q,H,G,te){var j=(q[0]+"_"+q[1]+"_"+H[0]+"_"+H[1]+"_"+G[0]+"_"+G[1]+"_"+te[0]+"_"+te[1]).replace(/\./g,"p");if(!y[j]){var Z=getDefaultCurveSegments(),M,V,Q,ee,ie,ae=0,le,ye,ue=null;q.length===2&&(q[0]!==H[0]||q[1]!==H[1])&&t(q[0],q[1],H[0],H[1],q[0]+G[0],q[1]+G[1])&&t(q[0],q[1],H[0],H[1],H[0]+te[0],H[1]+te[1])&&(Z=2);var fe=new n(Z);for(Q=G.length,M=0;M<Z;M+=1){for(ye=createSizedArray(Q),ie=M/(Z-1),le=0,V=0;V<Q;V+=1)ee=bmPow(1-ie,3)*q[V]+3*bmPow(1-ie,2)*ie*(q[V]+G[V])+3*(1-ie)*bmPow(ie,2)*(H[V]+te[V])+bmPow(ie,3)*H[V],ye[V]=ee,ue!==null&&(le+=bmPow(ye[V]-ue[V],2));le=bmSqrt(le),ae+=le,fe.points[M]=new a(le,ye),ue=ye}fe.segmentLength=ae,y[j]=fe}return y[j]}})();function h(y,q){var H=q.percents,G=q.lengths,te=H.length,j=bmFloor((te-1)*y),Z=y*q.addedLength,M=0;if(j===te-1||j===0||Z===G[j])return H[j];for(var V=G[j]>Z?-1:1,Q=!0;Q;)if(G[j]<=Z&&G[j+1]>Z?(M=(Z-G[j])/(G[j+1]-G[j]),Q=!1):j+=V,j<0||j>=te-1){if(j===te-1)return H[j];Q=!1}return H[j]+(H[j+1]-H[j])*M}function d(y,q,H,G,te,j){var Z=h(te,j),M=1-Z,V=e.round((M*M*M*y[0]+(Z*M*M+M*Z*M+M*M*Z)*H[0]+(Z*Z*M+M*Z*Z+Z*M*Z)*G[0]+Z*Z*Z*q[0])*1e3)/1e3,Q=e.round((M*M*M*y[1]+(Z*M*M+M*Z*M+M*M*Z)*H[1]+(Z*Z*M+M*Z*Z+Z*M*Z)*G[1]+Z*Z*Z*q[1])*1e3)/1e3;return[V,Q]}var F=createTypedArray("float32",8);function J(y,q,H,G,te,j,Z){te<0?te=0:te>1&&(te=1);var M=h(te,Z);j=j>1?1:j;var V=h(j,Z),Q,ee=y.length,ie=1-M,ae=1-V,le=ie*ie*ie,ye=M*ie*ie*3,ue=M*M*ie*3,fe=M*M*M,me=ie*ie*ae,ve=M*ie*ae+ie*M*ae+ie*ie*V,he=M*M*ae+ie*M*V+M*ie*V,re=M*M*V,se=ie*ae*ae,W=M*ae*ae+ie*V*ae+ie*ae*V,K=M*V*ae+ie*V*V+M*ae*V,oe=M*V*V,ne=ae*ae*ae,ce=V*ae*ae+ae*V*ae+ae*ae*V,pe=V*V*ae+ae*V*V+V*ae*V,de=V*V*V;for(Q=0;Q<ee;Q+=1)F[Q*4]=e.round((le*y[Q]+ye*H[Q]+ue*G[Q]+fe*q[Q])*1e3)/1e3,F[Q*4+1]=e.round((me*y[Q]+ve*H[Q]+he*G[Q]+re*q[Q])*1e3)/1e3,F[Q*4+2]=e.round((se*y[Q]+W*H[Q]+K*G[Q]+oe*q[Q])*1e3)/1e3,F[Q*4+3]=e.round((ne*y[Q]+ce*H[Q]+pe*G[Q]+de*q[Q])*1e3)/1e3;return F}return{getSegmentsLength:s,getNewSegment:J,getPointInSegment:d,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,n=s,a=this.keyframes.length-1,l=!0,h,d,F;l;){if(h=this.keyframes[n],d=this.keyframes[n+1],n===a-1&&e>=d.t-r){h.h&&(h=d),s=0;break}if(d.t-r>e){s=n;break}n<a-1?n+=1:(s=0,l=!1)}F=this.keyframesMetadata[n]||{};var J,y,q,H,G,te,j=d.t-r,Z=h.t-r,M;if(h.to){F.bezierData||(F.bezierData=bez.buildBezierData(h.s,d.s||h.e,h.to,h.ti));var V=F.bezierData;if(e>=j||e<Z){var Q=e>=j?V.points.length-1:0;for(y=V.points[Q].point.length,J=0;J<y;J+=1)i[J]=V.points[Q].point[J]}else{F.__fnct?te=F.__fnct:(te=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y,h.n).get,F.__fnct=te),q=te((e-Z)/(j-Z));var ee=V.segmentLength*q,ie,ae=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastAddedLength:0;for(G=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastPoint:0,l=!0,H=V.points.length;l;){if(ae+=V.points[G].partialLength,ee===0||q===0||G===V.points.length-1){for(y=V.points[G].point.length,J=0;J<y;J+=1)i[J]=V.points[G].point[J];break}else if(ee>=ae&&ee<ae+V.points[G+1].partialLength){for(ie=(ee-ae)/V.points[G+1].partialLength,y=V.points[G].point.length,J=0;J<y;J+=1)i[J]=V.points[G].point[J]+(V.points[G+1].point[J]-V.points[G].point[J])*ie;break}G<H-1?G+=1:l=!1}t._lastPoint=G,t._lastAddedLength=ae-V.points[G].partialLength,t._lastKeyframeIndex=n}}else{var le,ye,ue,fe,me;if(a=h.s.length,M=d.s||h.e,this.sh&&h.h!==1)if(e>=j)i[0]=M[0],i[1]=M[1],i[2]=M[2];else if(e<=Z)i[0]=h.s[0],i[1]=h.s[1],i[2]=h.s[2];else{var ve=createQuaternion(h.s),he=createQuaternion(M),re=(e-Z)/(j-Z);quaternionToEuler(i,slerp(ve,he,re))}else for(n=0;n<a;n+=1)h.h!==1&&(e>=j?q=1:e<Z?q=0:(h.o.x.constructor===Array?(F.__fnct||(F.__fnct=[]),F.__fnct[n]?te=F.__fnct[n]:(le=h.o.x[n]===void 0?h.o.x[0]:h.o.x[n],ye=h.o.y[n]===void 0?h.o.y[0]:h.o.y[n],ue=h.i.x[n]===void 0?h.i.x[0]:h.i.x[n],fe=h.i.y[n]===void 0?h.i.y[0]:h.i.y[n],te=BezierFactory.getBezierEasing(le,ye,ue,fe).get,F.__fnct[n]=te)):F.__fnct?te=F.__fnct:(le=h.o.x,ye=h.o.y,ue=h.i.x,fe=h.i.y,te=BezierFactory.getBezierEasing(le,ye,ue,fe).get,h.keyframeMetadata=te),q=te((e-Z)/(j-Z)))),M=d.s||h.e,me=h.h===1?h.s[n]:h.s[n]+(M[n]-h.s[n])*q,this.propType==="multidimensional"?i[n]=me:i=me}return t.lastIndex=s,i}function slerp(e,t,r){var i=[],s=e[0],n=e[1],a=e[2],l=e[3],h=t[0],d=t[1],F=t[2],J=t[3],y,q,H,G,te;return q=s*h+n*d+a*F+l*J,q<0&&(q=-q,h=-h,d=-d,F=-F,J=-J),1-q>1e-6?(y=Math.acos(q),H=Math.sin(y),G=Math.sin((1-r)*y)/H,te=Math.sin(r*y)/H):(G=1-r,te=r),i[0]=G*s+te*h,i[1]=G*n+te*d,i[2]=G*a+te*F,i[3]=G*l+te*J,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],s=t[2],n=t[3],a=Math.atan2(2*i*n-2*r*s,1-2*i*i-2*s*s),l=Math.asin(2*r*i+2*s*n),h=Math.atan2(2*r*n-2*i*s,1-2*r*r-2*s*s);e[0]=a/degToRads,e[1]=l/degToRads,e[2]=h/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),n=Math.cos(r/2),a=Math.cos(i/2),l=Math.sin(t/2),h=Math.sin(r/2),d=Math.sin(i/2),F=s*n*a-l*h*d,J=l*h*a+s*n*d,y=l*n*a+s*h*d,q=s*h*a-l*n*d;return[J,y,q,F]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),s=0;s<n;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){this.propType="multidimensional";var s,n=t.k.length,a,l,h,d;for(s=0;s<n-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(a=t.k[s].s,l=t.k[s+1].s,h=t.k[s].to,d=t.k[s].ti,(a.length===2&&!(a[0]===l[0]&&a[1]===l[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],a[0]+h[0],a[1]+h[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],l[0]+d[0],l[1]+d[1])||a.length===3&&!(a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],a[0]+h[0],a[1]+h[1],a[2]+h[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],l[0]+d[0],l[1]+d[1],l[2]+d[2]))&&(t.k[s].to=null,t.k[s].ti=null),a[0]===l[0]&&a[1]===l[1]&&h[0]===0&&h[1]===0&&d[0]===0&&d[1]===0&&(a.length===2||a[2]===l[2]&&h[2]===0&&d[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var F=t.k[0].s.length;for(this.v=createTypedArray("float32",F),this.pv=createTypedArray("float32",F),s=0;s<F;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",F)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(r,i,s,n,a){i.sid&&(i=r.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(r,i,n,a);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(r,i,n,a);else switch(s){case 0:l=new KeyframedValueProperty(r,i,n,a);break;case 1:l=new KeyframedMultidimensionalProperty(r,i,n,a);break}return l.effectsSequence.length&&a.addDynamicProperty(l),l}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,i,s){var n;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[];break}(!n[i]||n[i]&&!s)&&(n[i]=pointPool.newElement()),n[i][0]=e,n[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,s,n,a,l){this.setXYAt(e,t,"v",a,l),this.setXYAt(r,i,"o",a,l),this.setXYAt(s,n,"i",a,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var n=this._length-1,a=this._length,l;for(l=s;l<a;l+=1)e.setTripleAt(t[n][0],t[n][1],i[n][0],i[n][1],r[n][0],r[n][1],l,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var n=s._length,a;for(a=0;a<n;a+=1)pointPool.release(s.v[a]),pointPool.release(s.i[a]),pointPool.release(s.o[a]),s.v[a]=null,s.i[a]=null,s.o[a]=null;s._length=0,s.c=!1}function r(s){var n=i.newElement(),a,l=s._length===void 0?s.v.length:s._length;for(n.setLength(l),n.c=s.c,a=0;a<l;a+=1)n.setTripleAt(s.v[a][0],s.v[a][1],s.o[a][0],s.o[a][1],s.i[a][0],s.i[a][1],a);return n}var i=poolFactory(4,e,t);return i.clone=r,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:n},t=0,r=4,i=createSizedArray(r);function s(){var a;return t?(t-=1,a=i[t]):a=new ShapeCollection,a}function n(a){var l,h=a._length;for(l=0;l<h;l+=1)shapePool.release(a.shapes[l]);a._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=a,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(j,Z,M){var V=M.lastIndex,Q,ee,ie,ae,le,ye,ue,fe,me,ve=this.keyframes;if(j<ve[0].t-this.offsetTime)Q=ve[0].s[0],ie=!0,V=0;else if(j>=ve[ve.length-1].t-this.offsetTime)Q=ve[ve.length-1].s?ve[ve.length-1].s[0]:ve[ve.length-2].e[0],ie=!0;else{for(var he=V,re=ve.length-1,se=!0,W,K,oe;se&&(W=ve[he],K=ve[he+1],!(K.t-this.offsetTime>j));)he<re-1?he+=1:se=!1;if(oe=this.keyframesMetadata[he]||{},ie=W.h===1,V=he,!ie){if(j>=K.t-this.offsetTime)fe=1;else if(j<W.t-this.offsetTime)fe=0;else{var ne;oe.__fnct?ne=oe.__fnct:(ne=BezierFactory.getBezierEasing(W.o.x,W.o.y,W.i.x,W.i.y).get,oe.__fnct=ne),fe=ne((j-(W.t-this.offsetTime))/(K.t-this.offsetTime-(W.t-this.offsetTime)))}ee=K.s?K.s[0]:W.e[0]}Q=W.s[0]}for(ye=Z._length,ue=Q.i[0].length,M.lastIndex=V,ae=0;ae<ye;ae+=1)for(le=0;le<ue;le+=1)me=ie?Q.i[ae][le]:Q.i[ae][le]+(ee.i[ae][le]-Q.i[ae][le])*fe,Z.i[ae][le]=me,me=ie?Q.o[ae][le]:Q.o[ae][le]+(ee.o[ae][le]-Q.o[ae][le])*fe,Z.o[ae][le]=me,me=ie?Q.v[ae][le]:Q.v[ae][le]+(ee.v[ae][le]-Q.v[ae][le])*fe,Z.v[ae][le]=me}function r(){var j=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,M=this.keyframes[this.keyframes.length-1].t-this.offsetTime,V=this._caching.lastFrame;return V!==e&&(V<Z&&j<Z||V>M&&j>M)||(this._caching.lastIndex=V<j?this._caching.lastIndex:0,this.interpolateShape(j,this.pv,this._caching)),this._caching.lastFrame=j,this.pv}function i(){this.paths=this.localShapeCollection}function s(j,Z){if(j._length!==Z._length||j.c!==Z.c)return!1;var M,V=j._length;for(M=0;M<V;M+=1)if(j.v[M][0]!==Z.v[M][0]||j.v[M][1]!==Z.v[M][1]||j.o[M][0]!==Z.o[M][0]||j.o[M][1]!==Z.o[M][1]||j.i[M][0]!==Z.i[M][0]||j.i[M][1]!==Z.i[M][1])return!1;return!0}function n(j){s(this.v,j)||(this.v=shapePool.clone(j),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var j;this.kf?j=this.pv:this.data.ks?j=this.data.ks.k:j=this.data.pt.k;var Z,M=this.effectsSequence.length;for(Z=0;Z<M;Z+=1)j=this.effectsSequence[Z](j);this.setVValue(j),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(j,Z,M){this.propType="shape",this.comp=j.comp,this.container=j,this.elem=j,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var V=M===3?Z.pt.k:Z.ks.k;this.v=shapePool.clone(V),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function h(j){this.effectsSequence.push(j),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=a,l.prototype.setVValue=n,l.prototype.addEffect=h;function d(j,Z,M){this.propType="shape",this.comp=j.comp,this.elem=j,this.container=j,this.offsetTime=j.data.st,this.keyframes=M===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var V=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,V),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}d.prototype.getValue=a,d.prototype.interpolateShape=t,d.prototype.setVValue=n,d.prototype.addEffect=h;var F=(function(){var j=roundCorner;function Z(M,V){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=V.d,this.elem=M,this.comp=M.comp,this.frameId=-1,this.initDynamicPropertyContainer(M),this.p=PropertyFactory.getProp(M,V.p,1,0,this),this.s=PropertyFactory.getProp(M,V.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var V=this.p.v[0],Q=this.p.v[1],ee=this.s.v[0]/2,ie=this.s.v[1]/2,ae=this.d!==3,le=this.v;le.v[0][0]=V,le.v[0][1]=Q-ie,le.v[1][0]=ae?V+ee:V-ee,le.v[1][1]=Q,le.v[2][0]=V,le.v[2][1]=Q+ie,le.v[3][0]=ae?V-ee:V+ee,le.v[3][1]=Q,le.i[0][0]=ae?V-ee*j:V+ee*j,le.i[0][1]=Q-ie,le.i[1][0]=ae?V+ee:V-ee,le.i[1][1]=Q-ie*j,le.i[2][0]=ae?V+ee*j:V-ee*j,le.i[2][1]=Q+ie,le.i[3][0]=ae?V-ee:V+ee,le.i[3][1]=Q+ie*j,le.o[0][0]=ae?V+ee*j:V-ee*j,le.o[0][1]=Q-ie,le.o[1][0]=ae?V+ee:V-ee,le.o[1][1]=Q+ie*j,le.o[2][0]=ae?V-ee*j:V+ee*j,le.o[2][1]=Q+ie,le.o[3][0]=ae?V-ee:V+ee,le.o[3][1]=Q-ie*j}},extendPrototype([DynamicPropertyContainer],Z),Z})(),J=(function(){function j(Z,M){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=M,this.frameId=-1,this.d=M.d,this.initDynamicPropertyContainer(Z),M.sy===1?(this.ir=PropertyFactory.getProp(Z,M.ir,0,0,this),this.is=PropertyFactory.getProp(Z,M.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(Z,M.pt,0,0,this),this.p=PropertyFactory.getProp(Z,M.p,1,0,this),this.r=PropertyFactory.getProp(Z,M.r,0,degToRads,this),this.or=PropertyFactory.getProp(Z,M.or,0,0,this),this.os=PropertyFactory.getProp(Z,M.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return j.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var M=Math.floor(this.pt.v)*2,V=Math.PI*2/M,Q=!0,ee=this.or.v,ie=this.ir.v,ae=this.os.v,le=this.is.v,ye=2*Math.PI*ee/(M*2),ue=2*Math.PI*ie/(M*2),fe,me,ve,he,re=-Math.PI/2;re+=this.r.v;var se=this.data.d===3?-1:1;for(this.v._length=0,fe=0;fe<M;fe+=1){me=Q?ee:ie,ve=Q?ae:le,he=Q?ye:ue;var W=me*Math.cos(re),K=me*Math.sin(re),oe=W===0&&K===0?0:K/Math.sqrt(W*W+K*K),ne=W===0&&K===0?0:-W/Math.sqrt(W*W+K*K);W+=+this.p.v[0],K+=+this.p.v[1],this.v.setTripleAt(W,K,W-oe*he*ve*se,K-ne*he*ve*se,W+oe*he*ve*se,K+ne*he*ve*se,fe,!0),Q=!Q,re+=V*se}},convertPolygonToPath:function(){var M=Math.floor(this.pt.v),V=Math.PI*2/M,Q=this.or.v,ee=this.os.v,ie=2*Math.PI*Q/(M*4),ae,le=-Math.PI*.5,ye=this.data.d===3?-1:1;for(le+=this.r.v,this.v._length=0,ae=0;ae<M;ae+=1){var ue=Q*Math.cos(le),fe=Q*Math.sin(le),me=ue===0&&fe===0?0:fe/Math.sqrt(ue*ue+fe*fe),ve=ue===0&&fe===0?0:-ue/Math.sqrt(ue*ue+fe*fe);ue+=+this.p.v[0],fe+=+this.p.v[1],this.v.setTripleAt(ue,fe,ue-me*ie*ee*ye,fe-ve*ie*ee*ye,ue+me*ie*ee*ye,fe+ve*ie*ee*ye,ae,!0),le+=V*ye}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],j),j})(),y=(function(){function j(Z,M){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=M.d,this.initDynamicPropertyContainer(Z),this.p=PropertyFactory.getProp(Z,M.p,1,0,this),this.s=PropertyFactory.getProp(Z,M.s,1,0,this),this.r=PropertyFactory.getProp(Z,M.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return j.prototype={convertRectToPath:function(){var M=this.p.v[0],V=this.p.v[1],Q=this.s.v[0]/2,ee=this.s.v[1]/2,ie=bmMin(Q,ee,this.r.v),ae=ie*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(M+Q,V-ee+ie,M+Q,V-ee+ie,M+Q,V-ee+ae,0,!0),this.v.setTripleAt(M+Q,V+ee-ie,M+Q,V+ee-ae,M+Q,V+ee-ie,1,!0),ie!==0?(this.v.setTripleAt(M+Q-ie,V+ee,M+Q-ie,V+ee,M+Q-ae,V+ee,2,!0),this.v.setTripleAt(M-Q+ie,V+ee,M-Q+ae,V+ee,M-Q+ie,V+ee,3,!0),this.v.setTripleAt(M-Q,V+ee-ie,M-Q,V+ee-ie,M-Q,V+ee-ae,4,!0),this.v.setTripleAt(M-Q,V-ee+ie,M-Q,V-ee+ae,M-Q,V-ee+ie,5,!0),this.v.setTripleAt(M-Q+ie,V-ee,M-Q+ie,V-ee,M-Q+ae,V-ee,6,!0),this.v.setTripleAt(M+Q-ie,V-ee,M+Q-ae,V-ee,M+Q-ie,V-ee,7,!0)):(this.v.setTripleAt(M-Q,V+ee,M-Q+ae,V+ee,M-Q,V+ee,2),this.v.setTripleAt(M-Q,V-ee,M-Q,V-ee+ae,M-Q,V-ee,3))):(this.v.setTripleAt(M+Q,V-ee+ie,M+Q,V-ee+ae,M+Q,V-ee+ie,0,!0),ie!==0?(this.v.setTripleAt(M+Q-ie,V-ee,M+Q-ie,V-ee,M+Q-ae,V-ee,1,!0),this.v.setTripleAt(M-Q+ie,V-ee,M-Q+ae,V-ee,M-Q+ie,V-ee,2,!0),this.v.setTripleAt(M-Q,V-ee+ie,M-Q,V-ee+ie,M-Q,V-ee+ae,3,!0),this.v.setTripleAt(M-Q,V+ee-ie,M-Q,V+ee-ae,M-Q,V+ee-ie,4,!0),this.v.setTripleAt(M-Q+ie,V+ee,M-Q+ie,V+ee,M-Q+ae,V+ee,5,!0),this.v.setTripleAt(M+Q-ie,V+ee,M+Q-ae,V+ee,M+Q-ie,V+ee,6,!0),this.v.setTripleAt(M+Q,V+ee-ie,M+Q,V+ee-ie,M+Q,V+ee-ae,7,!0)):(this.v.setTripleAt(M-Q,V-ee,M-Q+ae,V-ee,M-Q,V-ee,1,!0),this.v.setTripleAt(M-Q,V+ee,M-Q,V+ee-ae,M-Q,V+ee,2,!0),this.v.setTripleAt(M+Q,V+ee,M+Q-ae,V+ee,M+Q,V+ee,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],j),j})();function q(j,Z,M){var V;if(M===3||M===4){var Q=M===3?Z.pt:Z.ks,ee=Q.k;ee.length?V=new d(j,Z,M):V=new l(j,Z,M)}else M===5?V=new y(j,Z):M===6?V=new F(j,Z):M===7&&(V=new J(j,Z));return V.k&&j.addDynamicProperty(V),V}function H(){return l}function G(){return d}var te={};return te.getShapeProp=q,te.getConstructorFunction=H,te.getKeyframedConstructorFunction=G,te})();var Matrix=(function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(K,-oe,0,0,oe,K,0,0,0,0,1,0,0,0,0,1)}function a(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(1,0,0,0,0,K,-oe,0,0,oe,K,0,0,0,0,1)}function l(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(K,0,oe,0,0,1,0,0,-oe,0,K,0,0,0,0,1)}function h(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(K,-oe,0,0,oe,K,0,0,0,0,1,0,0,0,0,1)}function d(W,K){return this._t(1,K,W,1,0,0)}function F(W,K){return this.shear(r(W),r(K))}function J(W,K){var oe=e(K),ne=t(K);return this._t(oe,ne,0,0,-ne,oe,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(W),1,0,0,0,0,1,0,0,0,0,1)._t(oe,-ne,0,0,ne,oe,0,0,0,0,1,0,0,0,0,1)}function y(W,K,oe){return!oe&&oe!==0&&(oe=1),W===1&&K===1&&oe===1?this:this._t(W,0,0,0,0,K,0,0,0,0,oe,0,0,0,0,1)}function q(W,K,oe,ne,ce,pe,de,xe,be,Pe,Ee,Me,Ce,Se,Te,_e){return this.props[0]=W,this.props[1]=K,this.props[2]=oe,this.props[3]=ne,this.props[4]=ce,this.props[5]=pe,this.props[6]=de,this.props[7]=xe,this.props[8]=be,this.props[9]=Pe,this.props[10]=Ee,this.props[11]=Me,this.props[12]=Ce,this.props[13]=Se,this.props[14]=Te,this.props[15]=_e,this}function H(W,K,oe){return oe=oe||0,W!==0||K!==0||oe!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,W,K,oe,1):this}function G(W,K,oe,ne,ce,pe,de,xe,be,Pe,Ee,Me,Ce,Se,Te,_e){var ge=this.props;if(W===1&&K===0&&oe===0&&ne===0&&ce===0&&pe===1&&de===0&&xe===0&&be===0&&Pe===0&&Ee===1&&Me===0)return ge[12]=ge[12]*W+ge[15]*Ce,ge[13]=ge[13]*pe+ge[15]*Se,ge[14]=ge[14]*Ee+ge[15]*Te,ge[15]*=_e,this._identityCalculated=!1,this;var Re=ge[0],ze=ge[1],Ie=ge[2],Fe=ge[3],je=ge[4],Le=ge[5],we=ge[6],De=ge[7],Ve=ge[8],Ae=ge[9],Oe=ge[10],ke=ge[11],Be=ge[12],Ne=ge[13],$e=ge[14],Ge=ge[15];return ge[0]=Re*W+ze*ce+Ie*be+Fe*Ce,ge[1]=Re*K+ze*pe+Ie*Pe+Fe*Se,ge[2]=Re*oe+ze*de+Ie*Ee+Fe*Te,ge[3]=Re*ne+ze*xe+Ie*Me+Fe*_e,ge[4]=je*W+Le*ce+we*be+De*Ce,ge[5]=je*K+Le*pe+we*Pe+De*Se,ge[6]=je*oe+Le*de+we*Ee+De*Te,ge[7]=je*ne+Le*xe+we*Me+De*_e,ge[8]=Ve*W+Ae*ce+Oe*be+ke*Ce,ge[9]=Ve*K+Ae*pe+Oe*Pe+ke*Se,ge[10]=Ve*oe+Ae*de+Oe*Ee+ke*Te,ge[11]=Ve*ne+Ae*xe+Oe*Me+ke*_e,ge[12]=Be*W+Ne*ce+$e*be+Ge*Ce,ge[13]=Be*K+Ne*pe+$e*Pe+Ge*Se,ge[14]=Be*oe+Ne*de+$e*Ee+Ge*Te,ge[15]=Be*ne+Ne*xe+$e*Me+Ge*_e,this._identityCalculated=!1,this}function te(W){var K=W.props;return this.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])}function j(){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 Z(W){for(var K=0;K<16;){if(W.props[K]!==this.props[K])return!1;K+=1}return!0}function M(W){var K;for(K=0;K<16;K+=1)W.props[K]=this.props[K];return W}function V(W){var K;for(K=0;K<16;K+=1)this.props[K]=W[K]}function Q(W,K,oe){return{x:W*this.props[0]+K*this.props[4]+oe*this.props[8]+this.props[12],y:W*this.props[1]+K*this.props[5]+oe*this.props[9]+this.props[13],z:W*this.props[2]+K*this.props[6]+oe*this.props[10]+this.props[14]}}function ee(W,K,oe){return W*this.props[0]+K*this.props[4]+oe*this.props[8]+this.props[12]}function ie(W,K,oe){return W*this.props[1]+K*this.props[5]+oe*this.props[9]+this.props[13]}function ae(W,K,oe){return W*this.props[2]+K*this.props[6]+oe*this.props[10]+this.props[14]}function le(){var W=this.props[0]*this.props[5]-this.props[1]*this.props[4],K=this.props[5]/W,oe=-this.props[1]/W,ne=-this.props[4]/W,ce=this.props[0]/W,pe=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/W,de=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/W,xe=new Matrix;return xe.props[0]=K,xe.props[1]=oe,xe.props[4]=ne,xe.props[5]=ce,xe.props[12]=pe,xe.props[13]=de,xe}function ye(W){var K=this.getInverseMatrix();return K.applyToPointArray(W[0],W[1],W[2]||0)}function ue(W){var K,oe=W.length,ne=[];for(K=0;K<oe;K+=1)ne[K]=ye(W[K]);return ne}function fe(W,K,oe){var ne=createTypedArray("float32",6);if(this.isIdentity())ne[0]=W[0],ne[1]=W[1],ne[2]=K[0],ne[3]=K[1],ne[4]=oe[0],ne[5]=oe[1];else{var ce=this.props[0],pe=this.props[1],de=this.props[4],xe=this.props[5],be=this.props[12],Pe=this.props[13];ne[0]=W[0]*ce+W[1]*de+be,ne[1]=W[0]*pe+W[1]*xe+Pe,ne[2]=K[0]*ce+K[1]*de+be,ne[3]=K[0]*pe+K[1]*xe+Pe,ne[4]=oe[0]*ce+oe[1]*de+be,ne[5]=oe[0]*pe+oe[1]*xe+Pe}return ne}function me(W,K,oe){var ne;return this.isIdentity()?ne=[W,K,oe]:ne=[W*this.props[0]+K*this.props[4]+oe*this.props[8]+this.props[12],W*this.props[1]+K*this.props[5]+oe*this.props[9]+this.props[13],W*this.props[2]+K*this.props[6]+oe*this.props[10]+this.props[14]],ne}function ve(W,K){if(this.isIdentity())return W+","+K;var oe=this.props;return Math.round((W*oe[0]+K*oe[4]+oe[12])*100)/100+","+Math.round((W*oe[1]+K*oe[5]+oe[13])*100)/100}function he(){for(var W=0,K=this.props,oe="matrix3d(",ne=1e4;W<16;)oe+=i(K[W]*ne)/ne,oe+=W===15?")":",",W+=1;return oe}function re(W){var K=1e4;return W<1e-6&&W>0||W>-1e-6&&W<0?i(W*K)/K:W}function se(){var W=this.props,K=re(W[0]),oe=re(W[1]),ne=re(W[4]),ce=re(W[5]),pe=re(W[12]),de=re(W[13]);return"matrix("+K+","+oe+","+ne+","+ce+","+pe+","+de+")"}return function(){this.reset=s,this.rotate=n,this.rotateX=a,this.rotateY=l,this.rotateZ=h,this.skew=F,this.skewFromAxis=J,this.shear=d,this.scale=y,this.setTransform=q,this.translate=H,this.transform=G,this.multiply=te,this.applyToPoint=Q,this.applyToX=ee,this.applyToY=ie,this.applyToZ=ae,this.applyToPointArray=me,this.applyToTriplePoints=fe,this.applyToPointStringified=ve,this.toCSS=he,this.to2dCSS=se,this.clone=M,this.cloneFromProps=V,this.equals=Z,this.inversePoints=ue,this.inversePoint=ye,this.getInverseMatrix=le,this._t=this.transform,this.isIdentity=j,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=r,e.getModifier=i;function r(s,n){t[s]||(t[s]=n)}function i(s,n,a){return new t[s](n,a)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,s){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a=[],l,h=n.length,d;for(l=0;l<h;l+=1)if(d=n[l],!(d.e*s<i||d.s*s>i+r)){var F,J;d.s*s<=i?F=0:F=(d.s*s-i)/r,d.e*s>=i+r?J=1:J=(d.e*s-i)/r,a.push([F,J])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var n,a,l=this.shapes.length,h,d,F,J,y,q=0;if(r===t)for(a=0;a<l;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(a=0;a<l;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var H=[],G,te;for(a=0;a<l;a+=1)if(G=this.shapes[a],!G.shape._mdf&&!this._mdf&&!e&&this.m!==2)G.shape.paths=G.localShapeCollection;else{if(n=G.shape.paths,d=n._length,y=0,!G.shape._mdf&&G.pathsData.length)y=G.totalShapeLength;else{for(F=this.releasePathsData(G.pathsData),h=0;h<d;h+=1)J=bez.getSegmentsLength(n.shapes[h]),F.push(J),y+=J.totalLength;G.totalShapeLength=y,G.pathsData=F}q+=y,G.shape._mdf=!0}var j=t,Z=r,M=0,V;for(a=l-1;a>=0;a-=1)if(G=this.shapes[a],G.shape._mdf){for(te=G.localShapeCollection,te.releaseShapes(),this.m===2&&l>1?(V=this.calculateShapeEdges(t,r,G.totalShapeLength,M,q),M+=G.totalShapeLength):V=[[j,Z]],d=V.length,h=0;h<d;h+=1){j=V[h][0],Z=V[h][1],H.length=0,Z<=1?H.push({s:G.totalShapeLength*j,e:G.totalShapeLength*Z}):j>=1?H.push({s:G.totalShapeLength*(j-1),e:G.totalShapeLength*(Z-1)}):(H.push({s:G.totalShapeLength*j,e:G.totalShapeLength}),H.push({s:0,e:G.totalShapeLength*(Z-1)}));var Q=this.addShapes(G,H[0]);if(H[0].s!==H[0].e){if(H.length>1){var ee=G.shape.paths.shapes[G.shape.paths._length-1];if(ee.c){var ie=Q.pop();this.addPaths(Q,te),Q=this.addShapes(G,H[1],ie)}else this.addPaths(Q,te),Q=this.addShapes(G,H[1])}this.addPaths(Q,te)}}G.shape.paths=te}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,s,n,a){s.setXYAt(t[0],t[1],"o",n),s.setXYAt(r[0],r[1],"i",n+1),a&&s.setXYAt(e[0],e[1],"v",n),s.setXYAt(i[0],i[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i=e.pathsData,s=e.shape.paths.shapes,n,a=e.shape.paths._length,l,h,d=0,F,J,y,q,H=[],G,te=!0;for(r?(J=r._length,G=r._length):(r=shapePool.newElement(),J=0,G=0),H.push(r),n=0;n<a;n+=1){for(y=i[n].lengths,r.c=s[n].c,h=s[n].c?y.length:y.length+1,l=1;l<h;l+=1)if(F=y[l-1],d+F.addedLength<t.s)d+=F.addedLength,r.c=!1;else if(d>t.e){r.c=!1;break}else t.s<=d&&t.e>=d+F.addedLength?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[l],s[n].v[l],r,J,te),te=!1):(q=bez.getNewSegment(s[n].v[l-1],s[n].v[l],s[n].o[l-1],s[n].i[l],(t.s-d)/F.addedLength,(t.e-d)/F.addedLength,y[l-1]),this.addSegmentFromArray(q,r,J,te),te=!1,r.c=!1),d+=F.addedLength,J+=1;if(s[n].c&&y.length){if(F=y[l-1],d<=t.e){var j=y[l-1].addedLength;t.s<=d&&t.e>=d+j?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[0],s[n].v[0],r,J,te),te=!1):(q=bez.getNewSegment(s[n].v[l-1],s[n].v[0],s[n].o[l-1],s[n].i[0],(t.s-d)/j,(t.e-d)/j,y[l-1]),this.addSegmentFromArray(q,r,J,te),te=!1,r.c=!1)}else r.c=!1;d+=F.addedLength,J+=1}if(r._length&&(r.setXYAt(r.v[G][0],r.v[G][1],"i",G),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>t.e)break;n<a-1&&(r=shapePool.newElement(),te=!0,H.push(r),J=0)}return H};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],s=e._length,n=0;for(n=0;n<s;n+=1)i[0]+=e.v[n][0],i[1]+=e.v[n][1];i[0]/=s,i[1]/=s;var a=shapePool.newElement();a.c=e.c;var l,h,d,F,J,y;for(n=0;n<s;n+=1)l=e.v[n][0]+(i[0]-e.v[n][0])*r,h=e.v[n][1]+(i[1]-e.v[n][1])*r,d=e.o[n][0]+(i[0]-e.o[n][0])*-r,F=e.o[n][1]+(i[1]-e.o[n][1])*-r,J=e.i[n][0]+(i[0]-e.i[n][0])*-r,y=e.i[n][1]+(i[1]-e.i[n][1])*-r,a.setTripleAt(l,h,d,F,J,y,n);return a},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v;if(a!==0){var l,h;for(r=0;r<i;r+=1){if(l=this.shapes[r],h=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)h.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(h){var d=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||d,this.a&&h.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&h.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&h.skewFromAxis(-this.sk.v,this.sa.v),this.r?h.rotate(-this.r.v):h.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?h.translate(this.px.v,this.py.v,-this.pz.v):h.translate(this.px.v,this.py.v,0):h.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(h){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||h){var d;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var F,J;if(d=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(F=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/d,0),J=this.p.getValueAtTime(this.p.keyframes[0].t/d,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(F=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),J=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(F=this.p.pv,J=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){F=[],J=[];var y=this.px,q=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(F[0]=y.getValueAtTime((y.keyframes[0].t+.01)/d,0),F[1]=q.getValueAtTime((q.keyframes[0].t+.01)/d,0),J[0]=y.getValueAtTime(y.keyframes[0].t/d,0),J[1]=q.getValueAtTime(q.keyframes[0].t/d,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(F[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/d,0),F[1]=q.getValueAtTime(q.keyframes[q.keyframes.length-1].t/d,0),J[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/d,0),J[1]=q.getValueAtTime((q.keyframes[q.keyframes.length-1].t-.01)/d,0)):(F=[y.pv,q.pv],J[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/d,y.offsetTime),J[1]=q.getValueAtTime((q._caching.lastFrame+q.offsetTime-.01)/d,q.offsetTime))}else J=e,F=J;this.v.rotate(-Math.atan2(F[1]-J[1],F[0]-J[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 i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function n(h){this._addDynamicProperty(h),this.elem.addDynamicProperty(h),this._isDirty=!0}function a(h,d,F){if(this.elem=h,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(F||h),d.p&&d.p.s?(this.px=PropertyFactory.getProp(h,d.p.x,0,0,this),this.py=PropertyFactory.getProp(h,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(h,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(h,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(h,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(h,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(h,d.rz,0,degToRads,this),d.or.k[0].ti){var J,y=d.or.k.length;for(J=0;J<y;J+=1)d.or.k[J].to=null,d.or.k[J].ti=null}this.or=PropertyFactory.getProp(h,d.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(h,d.r||{k:0},0,degToRads,this);d.sk&&(this.sk=PropertyFactory.getProp(h,d.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(h,d.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(h,d.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(h,d.s||{k:[100,100,100]},1,.01,this),d.o?this.o=PropertyFactory.getProp(h,d.o,0,.01,h):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=n,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(h,d,F){return new a(h,d,F)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,i,s,n){var a=n?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),h=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*a*s,i.p.v[1]*a*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(n?1/l:l,n?1/h:h),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,s,n,a=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}n=0;var d;for(i=0;i<=this._groups.length-1;i+=1){if(d=n<l,this._groups[i]._render=d,this.changeGroupRender(this._groups[i].it,d),!d){var F=this.elemsData[i].it,J=F[F.length-1];J.transform.op.v!==0?(J.transform.op._mdf=!0,J.transform.op.v=0):J.transform.op._mdf=!1}n+=1}this._currentCopies=l;var y=this.o.v,q=y%1,H=y>0?Math.floor(y):Math.ceil(y),G=this.pMatrix.props,te=this.rMatrix.props,j=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(y>0){for(;Z<H;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,q,!1),Z+=q)}else if(y<0){for(;Z>H;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-q,!0),Z-=q)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,n=this._currentCopies;for(var M,V;n;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,V=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),Z!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7],te[8],te[9],te[10],te[11],te[12],te[13],te[14],te[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),M=0;M<V;M+=1)r[M]=this.matrix.props[M];this.matrix.reset()}else for(this.matrix.reset(),M=0;M<V;M+=1)r[M]=this.matrix.props[M];Z+=1,n-=1,i+=s}}else for(n=this._currentCopies,i=0,s=1;n;)t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,i+=s;return a},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var i,s=e._length,n,a,l,h,d,F,J=0,y,q,H,G,te,j;for(i=0;i<s;i+=1)n=e.v[i],l=e.o[i],a=e.i[i],n[0]===l[0]&&n[1]===l[1]&&n[0]===a[0]&&n[1]===a[1]?(i===0||i===s-1)&&!e.c?(r.setTripleAt(n[0],n[1],l[0],l[1],a[0],a[1],J),J+=1):(i===0?h=e.v[s-1]:h=e.v[i-1],d=Math.sqrt(Math.pow(n[0]-h[0],2)+Math.pow(n[1]-h[1],2)),F=d?Math.min(d/2,t)/d:0,te=n[0]+(h[0]-n[0])*F,y=te,j=n[1]-(n[1]-h[1])*F,q=j,H=y-(y-n[0])*roundCorner,G=q-(q-n[1])*roundCorner,r.setTripleAt(y,q,H,G,te,j,J),J+=1,i===s-1?h=e.v[0]:h=e.v[i+1],d=Math.sqrt(Math.pow(n[0]-h[0],2)+Math.pow(n[1]-h[1],2)),F=d?Math.min(d/2,t)/d:0,H=n[0]+(h[0]-n[0])*F,y=H,G=n[1]+(h[1]-n[1])*F,q=G,te=y-(y-n[0])*roundCorner,j=q-(q-n[1])*roundCorner,r.setTripleAt(y,q,H,G,te,j,J),J+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],J),J+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.rd.v;if(a!==0){var l,h;for(r=0;r<i;r+=1){if(l=this.shapes[r],h=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)h.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var i=t*t-4*e*r;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var n=Math.sqrt(i)/(2*e);return[s-n,s+n]}function polynomialCoefficients(e,t,r,i){return[-e+3*t-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var n=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),n=lerpPoint(r,i,e),a=lerpPoint(s,n,e);return[new PolynomialBezier(this.points[0],t,s,a,!0),new PolynomialBezier(a,n,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var s=i;i=r,r=s}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var l=e.point(n[a])[t];l<r?r=l:l>i&&(i=l)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,i,s,n){if(boxIntersect(e,t)){if(r>=n||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var a=splitData(e),l=splitData(t);intersectsImpl(a[0],l[0],r+1,i,s,n),intersectsImpl(a[0],l[1],r+1,i,s,n),intersectsImpl(a[1],l[0],r+1,i,s,n),intersectsImpl(a[1],l[1],r+1,i,s,n)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var s=[e[0],e[1],1],n=[t[0],t[1],1],a=[r[0],r[1],1],l=[i[0],i[1],1],h=crossProduct(crossProduct(s,n),crossProduct(a,l));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,s,n,a){var l=r-Math.PI/2,h=r+Math.PI/2,d=t[0]+Math.cos(r)*i*s,F=t[1]-Math.sin(r)*i*s;e.setTripleAt(d,F,d+Math.cos(l)*n,F-Math.sin(l)*n,d+Math.cos(h)*a,F-Math.sin(h)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[r],n=e.v[i],a=getPerpendicularVector(s,n);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,r,i,s,n,a){var l=getProjectingAngle(t,r),h=t.v[r%t._length],d=t.v[r===0?t._length-1:r-1],F=t.v[(r+1)%t._length],J=n===2?Math.sqrt(Math.pow(h[0]-d[0],2)+Math.pow(h[1]-d[1],2)):0,y=n===2?Math.sqrt(Math.pow(h[0]-F[0],2)+Math.pow(h[1]-F[1],2)):0;setPoint(e,t.v[r%t._length],l,a,i,y/((s+1)*2),J/((s+1)*2))}function zigZagSegment(e,t,r,i,s,n){for(var a=0;a<i;a+=1){var l=(a+1)/(i+1),h=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(l),F=t.point(l);setPoint(e,F,d,n,r,h/((i+1)*2),h/((i+1)*2)),n=-n}return n}ZigZagModifier.prototype.processPath=function(e,t,r,i){var s=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(s-=1),s===0)return n;var a=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,r,i,a);for(var h=0;h<s;h+=1)a=zigZagSegment(n,l,t,r,i,-a),h===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(h+1)%s),zigZagCorner(n,e,h+1,t,r,i,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(a!==0){var d,F;for(r=0;r<i;r+=1){if(d=this.shapes[r],F=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(F.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,n=d.shape.paths._length,s=0;s<n;s+=1)F.addShape(this.processPath(t[s],a,l,h));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,s,n,a,l,h;h=linearOffset(e.points[0],e.points[1],t),r=h[0],i=h[1],h=linearOffset(e.points[1],e.points[2],t),s=h[0],n=h[1],h=linearOffset(e.points[2],e.points[3],t),a=h[0],l=h[1];var d=lineIntersection(r,i,s,n);d===null&&(d=i);var F=lineIntersection(a,l,s,n);return F===null&&(F=a),new PolynomialBezier(r,d,F,l)}function joinLines(e,t,r,i,s){var n=t.points[3],a=r.points[0];if(i===3||pointEqual(n,a))return n;if(i===2){var l=-t.tangentAngle(1),h=-r.tangentAngle(0)+Math.PI,d=lineIntersection(n,polarOffset(n,l+Math.PI/2,100),a,polarOffset(a,l+Math.PI/2,100)),F=d?pointDistance(d,n):pointDistance(n,a)/2,J=polarOffset(n,l,2*F*roundCorner);return e.setXYAt(J[0],J[1],"o",e.length()-1),J=polarOffset(a,h,2*F*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],J[0],J[1],e.length()),a}var y=pointEqual(n,t.points[2])?t.points[0]:t.points[2],q=pointEqual(a,r.points[1])?r.points[3]:r.points[1],H=lineIntersection(y,n,a,q);return H&&pointDistance(H,n)<s?(e.setTripleAt(H[0],H[1],H[0],H[1],H[0],H[1],e.length()),H):n}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,s,n,a;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return n=e.split(r[0]),i=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(s,t)];n=e.split(r[0]),i=n[0];var l=(r[1]-r[0])/(1-r[0]);return n=n[1].split(l),a=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(a,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var s=shapePool.newElement();s.c=e.c;var n=e.length();e.c||(n-=1);var a,l,h,d=[];for(a=0;a<n;a+=1)h=PolynomialBezier.shapeSegment(e,a),d.push(offsetSegmentSplit(h,t));if(!e.c)for(a=n-1;a>=0;a-=1)h=PolynomialBezier.shapeSegmentInverted(e,a),d.push(offsetSegmentSplit(h,t));d=pruneIntersections(d);var F=null,J=null;for(a=0;a<d.length;a+=1){var y=d[a];for(J&&(F=joinLines(s,J,y[0],r,i)),J=y[y.length-1],l=0;l<y.length;l+=1)h=y[l],F&&pointEqual(h.points[0],F)?s.setXYAt(h.points[1][0],h.points[1][1],"o",s.length()-1):s.setTripleAt(h.points[0][0],h.points[0][1],h.points[1][0],h.points[1][1],h.points[0][0],h.points[0][1],s.length()),s.setTripleAt(h.points[3][0],h.points[3][1],h.points[3][0],h.points[3][1],h.points[2][0],h.points[2][1],s.length()),F=h.points[3]}return d.length&&joinLines(s,J,d[0][0],r,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v,l=this.miterLimit.v,h=this.lineJoin;if(a!==0){var d,F;for(r=0;r<i;r+=1){if(d=this.shapes[r],F=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(F.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,n=d.shape.paths._length,s=0;s<n;s+=1)F.addShape(this.processPath(t[s],a,h,l));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",s=t.length,n,a=0;a<s;a+=1)switch(n=t[a].toLowerCase(),n){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:i,weight:e.fWeight||r}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=917631,n=917601,a=917626,l=65039,h=8205,d=127462,F=127487,J=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(re){var se=re.split(","),W,K=se.length,oe=[];for(W=0;W<K;W+=1)se[W]!=="sans-serif"&&se[W]!=="monospace"&&oe.push(se[W]);return oe.join(",")}function q(re,se){var W=createTag("span");W.setAttribute("aria-hidden",!0),W.style.fontFamily=se;var K=createTag("span");K.innerText="giItT1WQy@!-/#",W.style.position="absolute",W.style.left="-10000px",W.style.top="-10000px",W.style.fontSize="300px",W.style.fontVariant="normal",W.style.fontStyle="normal",W.style.fontWeight="normal",W.style.letterSpacing="0",W.appendChild(K),document.body.appendChild(W);var oe=K.offsetWidth;return K.style.fontFamily=y(re)+", "+se,{node:K,w:oe,parent:W}}function H(){var re,se=this.fonts.length,W,K,oe=se;for(re=0;re<se;re+=1)this.fonts[re].loaded?oe-=1:this.fonts[re].fOrigin==="n"||this.fonts[re].origin===0?this.fonts[re].loaded=!0:(W=this.fonts[re].monoCase.node,K=this.fonts[re].monoCase.w,W.offsetWidth!==K?(oe-=1,this.fonts[re].loaded=!0):(W=this.fonts[re].sansCase.node,K=this.fonts[re].sansCase.w,W.offsetWidth!==K&&(oe-=1,this.fonts[re].loaded=!0)),this.fonts[re].loaded&&(this.fonts[re].sansCase.parent.parentNode.removeChild(this.fonts[re].sansCase.parent),this.fonts[re].monoCase.parent.parentNode.removeChild(this.fonts[re].monoCase.parent)));oe!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function G(re,se){var W=document.body&&se?"svg":"canvas",K,oe=getFontProperties(re);if(W==="svg"){var ne=createNS("text");ne.style.fontSize="100px",ne.setAttribute("font-family",re.fFamily),ne.setAttribute("font-style",oe.style),ne.setAttribute("font-weight",oe.weight),ne.textContent="1",re.fClass?(ne.style.fontFamily="inherit",ne.setAttribute("class",re.fClass)):ne.style.fontFamily=re.fFamily,se.appendChild(ne),K=ne}else{var ce=new OffscreenCanvas(500,500).getContext("2d");ce.font=oe.style+" "+oe.weight+" 100px "+re.fFamily,K=ce}function pe(de){return W==="svg"?(K.textContent=de,K.getComputedTextLength()):K.measureText(de).width}return{measureText:pe}}function te(re,se){if(!re){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=re.list;return}if(!document.body){this.isLoaded=!0,re.list.forEach(function(Ee){Ee.helper=G(Ee),Ee.cache={}}),this.fonts=re.list;return}var W=re.list,K,oe=W.length,ne=oe;for(K=0;K<oe;K+=1){var ce=!0,pe,de;if(W[K].loaded=!1,W[K].monoCase=q(W[K].fFamily,"monospace"),W[K].sansCase=q(W[K].fFamily,"sans-serif"),!W[K].fPath)W[K].loaded=!0,ne-=1;else if(W[K].fOrigin==="p"||W[K].origin===3){if(pe=document.querySelectorAll('style[f-forigin="p"][f-family="'+W[K].fFamily+'"], style[f-origin="3"][f-family="'+W[K].fFamily+'"]'),pe.length>0&&(ce=!1),ce){var xe=createTag("style");xe.setAttribute("f-forigin",W[K].fOrigin),xe.setAttribute("f-origin",W[K].origin),xe.setAttribute("f-family",W[K].fFamily),xe.type="text/css",xe.innerText="@font-face {font-family: "+W[K].fFamily+"; font-style: normal; src: url('"+W[K].fPath+"');}",se.appendChild(xe)}}else if(W[K].fOrigin==="g"||W[K].origin===1){for(pe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),de=0;de<pe.length;de+=1)pe[de].href.indexOf(W[K].fPath)!==-1&&(ce=!1);if(ce){var be=createTag("link");be.setAttribute("f-forigin",W[K].fOrigin),be.setAttribute("f-origin",W[K].origin),be.type="text/css",be.rel="stylesheet",be.href=W[K].fPath,document.body.appendChild(be)}}else if(W[K].fOrigin==="t"||W[K].origin===2){for(pe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),de=0;de<pe.length;de+=1)W[K].fPath===pe[de].src&&(ce=!1);if(ce){var Pe=createTag("link");Pe.setAttribute("f-forigin",W[K].fOrigin),Pe.setAttribute("f-origin",W[K].origin),Pe.setAttribute("rel","stylesheet"),Pe.setAttribute("href",W[K].fPath),se.appendChild(Pe)}}W[K].helper=G(W[K],se),W[K].cache={},this.fonts.push(W[K])}ne===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function j(re){if(re){this.chars||(this.chars=[]);var se,W=re.length,K,oe=this.chars.length,ne;for(se=0;se<W;se+=1){for(K=0,ne=!1;K<oe;)this.chars[K].style===re[se].style&&this.chars[K].fFamily===re[se].fFamily&&this.chars[K].ch===re[se].ch&&(ne=!0),K+=1;ne||(this.chars.push(re[se]),oe+=1)}}}function Z(re,se,W){for(var K=0,oe=this.chars.length;K<oe;){if(this.chars[K].ch===re&&this.chars[K].style===se&&this.chars[K].fFamily===W)return this.chars[K];K+=1}return(typeof re=="string"&&re.charCodeAt(0)!==13||!re)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",re,se,W)),t}function M(re,se,W){var K=this.getFontByName(se),oe=re;if(!K.cache[oe]){var ne=K.helper;if(re===" "){var ce=ne.measureText("|"+re+"|"),pe=ne.measureText("||");K.cache[oe]=(ce-pe)/100}else K.cache[oe]=ne.measureText(re)/100}return K.cache[oe]*W}function V(re){for(var se=0,W=this.fonts.length;se<W;){if(this.fonts[se].fName===re)return this.fonts[se];se+=1}return this.fonts[0]}function Q(re){var se=0,W=re.charCodeAt(0);if(W>=55296&&W<=56319){var K=re.charCodeAt(1);K>=56320&&K<=57343&&(se=(W-55296)*1024+K-56320+65536)}return se}function ee(re,se){var W=re.toString(16)+se.toString(16);return J.indexOf(W)!==-1}function ie(re){return re===h}function ae(re){return re===l}function le(re){var se=Q(re);return se>=d&&se<=F}function ye(re){return le(re.substr(0,2))&&le(re.substr(2,2))}function ue(re){return r.indexOf(re)!==-1}function fe(re,se){var W=Q(re.substr(se,2));if(W!==i)return!1;var K=0;for(se+=2;K<5;){if(W=Q(re.substr(se,2)),W<n||W>a)return!1;K+=1,se+=2}return Q(re.substr(se,2))===s}function me(){this.isLoaded=!0}var ve=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ve.isModifier=ee,ve.isZeroWidthJoiner=ie,ve.isFlagEmoji=ye,ve.isRegionalCode=le,ve.isCombinedCharacter=ue,ve.isRegionalFlag=fe,ve.isVariationSelector=ae,ve.BLACK_FLAG_CODE_POINT=i;var he={addChars:j,addFonts:te,getCharData:Z,getFontByName:V,measureText:M,checkLoadedFonts:H,setIsLoaded:me};return ve.prototype=he,ve})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?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,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var i,s=r.length,n;for(i=0;i<s;i+=1)n=new GroupEffect(r[i],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,s,n=this.data.ef;for(r=0;r<i;r+=1){switch(s=null,n[r].ty){case 0:s=new SliderEffect(n[r],t,this);break;case 1:s=new AngleEffect(n[r],t,this);break;case 2:s=new ColorEffect(n[r],t,this);break;case 3:s=new PointEffect(n[r],t,this);break;case 4:case 7:s=new CheckboxEffect(n[r],t,this);break;case 10:s=new LayerIndexEffect(n[r],t,this);break;case 11:s=new MaskIndexEffect(n[r],t,this);break;case 5:s=new EffectsManager(n[r],t);break;default:s=new NoValueEffect(n[r]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),a=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,i){this.globalData=r,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,i,s=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,s=this.layers,n=0,a=s.length;n<a;)s[n].ind==t&&(!i[n]||i[n]===!0?(this.buildItem(n),this.addPendingElement(e)):(r.push(i[n]),i[n].setAsParent(),s[n].parent!==void 0?this.buildElementParenting(e,s[n].parent,r):e.setHierarchy(r))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),i=0;i<s;i+=1)r.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<r;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)n*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=t.length;for(r=0;r<i;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):i=!1;var n,a=r.length,l;for(n=0;n<a;n+=1)l=r[n].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var a,l=this.masksProperties,h=0,d=[],F,J,y=createElementID(),q,H,G,te,j="clipPath",Z="clip-path";for(s=0;s<n;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(j="mask",Z="mask"),(l[s].mode==="s"||l[s].mode==="i")&&h===0?(q=createNS("rect"),q.setAttribute("fill","#ffffff"),q.setAttribute("width",this.element.comp.data.w||0),q.setAttribute("height",this.element.comp.data.h||0),d.push(q)):q=null,a=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:a,lastPath:""},i.appendChild(a);else{h+=1,a.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var M;if(l[s].x.k!==0?(j="mask",Z="mask",te=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),M=createElementID(),H=createNS("filter"),H.setAttribute("id",M),G=createNS("feMorphology"),G.setAttribute("operator","erode"),G.setAttribute("in","SourceGraphic"),G.setAttribute("radius","0"),H.appendChild(G),i.appendChild(H),a.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(G=null,te=null),this.storedData[s]={elem:a,x:te,expan:G,lastPath:"",lastOperator:"",filterId:M,lastRadius:0},l[s].mode==="i"){J=d.length;var V=createNS("g");for(F=0;F<J;F+=1)V.appendChild(d[F]);var Q=createNS("mask");Q.setAttribute("mask-type","alpha"),Q.setAttribute("id",y+"_"+h),Q.appendChild(a),i.appendChild(Q),V.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+h+")"),d.length=0,d.push(V)}else d.push(a);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:q},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(j),n=d.length,s=0;s<n;s+=1)this.maskElement.appendChild(d[s]);h>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(Z,"url("+getLocationHref()+"#"+y+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var s=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),s.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var i=" M"+t.v[0][0]+","+t.v[0][1],s,n;for(n=t._length,s=1;s<n;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&n>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",a)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(i,s){var n=createNS("filter");return n.setAttribute("id",i),s!==!0&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),n=filtersFactory.createFilter(s,!0),a=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var h=e.data.ef[t].ty;if(registeredEffects$1[h]){var d=registeredEffects$1[h].effect;l=new d(n,e.effectsManager.effectElements[t],e,idPrefix+a,r),r=idPrefix+a,registeredEffects$1[h].countsAsEffect&&(a+=1)}l&&this.filters.push(l)}a&&(e.globalData.defs.appendChild(n),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,i,s,n,a;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",t===3?"luminance":"alpha"),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),a.appendChild(n),l.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var h=createNS("mask");h.setAttribute("id",r),h.setAttribute("mask-type","alpha");var d=createNS("g");h.appendChild(d),i=createElementID(),s=filtersFactory.createFilter(i);var F=createNS("feComponentTransfer");F.setAttribute("in","SourceGraphic"),s.appendChild(F);var J=createNS("feFuncA");J.setAttribute("type","table"),J.setAttribute("tableValues","1.0 0.0"),F.appendChild(J),this.globalData.defs.appendChild(s);var y=createNS("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),d.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),d.appendChild(y),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(n),featureSupport.maskType||(h.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),d.appendChild(y),a.appendChild(this.layerElement),d.appendChild(a)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.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 RenderableDOMElement(){}(function(){var e={initElement:function(r,i,s){this.initFrame(),this.initBaseData(r,i,s),this.initTransform(r,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var i;for(t=r-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,s=r.length;i<s;){if(r[i].elem===t)return r[i].pos;i+=1}return 0},addProcessedElement:function(t,r){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=r;return}i.push(new ProcessedElement(t,r))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,n=t.length||0,a;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:t[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2,s;r<i;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,i,s;for(t=0;t<r;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],n,a,l;for(l=t.g.p*4,a=0;a<l;a+=4)n=createNS("stop"),i.appendChild(n),s.push(n);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,n=createNS("mask"),a=createNS("path");n.appendChild(a);var l=createElementID(),h=createElementID();n.setAttribute("id",h);var d=createNS(e.t===1?"linearGradient":"radialGradient");d.setAttribute("id",l),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var F=this.stops;for(i=e.g.p*4;i<s;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(r),F.push(r);a.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=n,this.ost=F,this.maskId=h,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,i,s){if(r===0)return"";var n=t.o,a=t.i,l=t.v,h,d=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(h=1;h<r;h+=1)d+=" C"+s.applyToPointStringified(n[h-1][0],n[h-1][1])+" "+s.applyToPointStringified(a[h][0],a[h][1])+" "+s.applyToPointStringified(l[h][0],l[h][1]);return i&&r&&(d+=" C"+s.applyToPointStringified(n[h-1][0],n[h-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),d+="z"),d},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:i};function i(J){switch(J.ty){case"fl":return l;case"gf":return d;case"gs":return h;case"st":return F;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return n;default:return null}}function s(J,y,q){(q||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(q||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function n(){}function a(J,y,q){var H,G,te,j,Z,M,V=y.styles.length,Q=y.lvl,ee,ie,ae,le;for(M=0;M<V;M+=1){if(j=y.sh._mdf||q,y.styles[M].lvl<Q){for(ie=t.reset(),ae=Q-y.styles[M].lvl,le=y.transformers.length-1;!j&&ae>0;)j=y.transformers[le].mProps._mdf||j,ae-=1,le-=1;if(j)for(ae=Q-y.styles[M].lvl,le=y.transformers.length-1;ae>0;)ie.multiply(y.transformers[le].mProps.v),ae-=1,le-=1}else ie=e;if(ee=y.sh.paths,G=ee._length,j){for(te="",H=0;H<G;H+=1)Z=ee.shapes[H],Z&&Z._length&&(te+=buildShapeString(Z,Z._length,Z.c,ie));y.caches[M]=te}else te=y.caches[M];y.styles[M].d+=J.hd===!0?"":te,y.styles[M]._mdf=j||y.styles[M]._mdf}}function l(J,y,q){var H=y.style;(y.c._mdf||q)&&H.pElem.setAttribute("fill","rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||q)&&H.pElem.setAttribute("fill-opacity",y.o.v)}function h(J,y,q){d(J,y,q),F(J,y,q)}function d(J,y,q){var H=y.gf,G=y.g._hasOpacity,te=y.s.v,j=y.e.v;if(y.o._mdf||q){var Z=J.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(Z,y.o.v)}if(y.s._mdf||q){var M=J.t===1?"x1":"cx",V=M==="x1"?"y1":"cy";H.setAttribute(M,te[0]),H.setAttribute(V,te[1]),G&&!y.g._collapsable&&(y.of.setAttribute(M,te[0]),y.of.setAttribute(V,te[1]))}var Q,ee,ie,ae;if(y.g._cmdf||q){Q=y.cst;var le=y.g.c;for(ie=Q.length,ee=0;ee<ie;ee+=1)ae=Q[ee],ae.setAttribute("offset",le[ee*4]+"%"),ae.setAttribute("stop-color","rgb("+le[ee*4+1]+","+le[ee*4+2]+","+le[ee*4+3]+")")}if(G&&(y.g._omdf||q)){var ye=y.g.o;for(y.g._collapsable?Q=y.cst:Q=y.ost,ie=Q.length,ee=0;ee<ie;ee+=1)ae=Q[ee],y.g._collapsable||ae.setAttribute("offset",ye[ee*2]+"%"),ae.setAttribute("stop-opacity",ye[ee*2+1])}if(J.t===1)(y.e._mdf||q)&&(H.setAttribute("x2",j[0]),H.setAttribute("y2",j[1]),G&&!y.g._collapsable&&(y.of.setAttribute("x2",j[0]),y.of.setAttribute("y2",j[1])));else{var ue;if((y.s._mdf||y.e._mdf||q)&&(ue=Math.sqrt(Math.pow(te[0]-j[0],2)+Math.pow(te[1]-j[1],2)),H.setAttribute("r",ue),G&&!y.g._collapsable&&y.of.setAttribute("r",ue)),y.s._mdf||y.e._mdf||y.h._mdf||y.a._mdf||q){ue||(ue=Math.sqrt(Math.pow(te[0]-j[0],2)+Math.pow(te[1]-j[1],2)));var fe=Math.atan2(j[1]-te[1],j[0]-te[0]),me=y.h.v;me>=1?me=.99:me<=-1&&(me=-.99);var ve=ue*me,he=Math.cos(fe+y.a.v)*ve+te[0],re=Math.sin(fe+y.a.v)*ve+te[1];H.setAttribute("fx",he),H.setAttribute("fy",re),G&&!y.g._collapsable&&(y.of.setAttribute("fx",he),y.of.setAttribute("fy",re))}}}function F(J,y,q){var H=y.style,G=y.d;G&&(G._mdf||q)&&G.dashStr&&(H.pElem.setAttribute("stroke-dasharray",G.dashStr),H.pElem.setAttribute("stroke-dashoffset",G.dashoffset[0])),y.c&&(y.c._mdf||q)&&H.pElem.setAttribute("stroke","rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||q)&&H.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||q)&&(H.pElem.setAttribute("stroke-width",y.w.v),H.msElem&&H.msElem.setAttribute("stroke-width",y.w.v))}return r})();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,i,s=this.stylesList.length,n,a=[],l=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],l=!1,a.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(n)!==-1&&(a.push(r),l=r._isAnimated||l);a.length>1&&l&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var n=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new n(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),n=new SVGShapeData(t,r,s);return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)t.indexOf(this.stylesList[r])===-1&&!this.stylesList[r].closed&&t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,s,n,a){var l=[].concat(n),h,d=e.length-1,F,J,y=[],q=[],H,G,te;for(h=d;h>=0;h-=1){if(te=this.searchProcessedElement(e[h]),te?t[h]=r[te-1]:e[h]._render=a,e[h].ty==="fl"||e[h].ty==="st"||e[h].ty==="gf"||e[h].ty==="gs"||e[h].ty==="no")te?t[h].style.closed=e[h].hd:t[h]=this.createStyleElement(e[h],s),e[h]._render&&t[h].style.pElem.parentNode!==i&&i.appendChild(t[h].style.pElem),y.push(t[h].style);else if(e[h].ty==="gr"){if(!te)t[h]=this.createGroupElement(e[h]);else for(J=t[h].it.length,F=0;F<J;F+=1)t[h].prevViewData[F]=t[h].it[F];this.searchShapes(e[h].it,t[h].it,t[h].prevViewData,t[h].gr,s+1,l,a),e[h]._render&&t[h].gr.parentNode!==i&&i.appendChild(t[h].gr)}else e[h].ty==="tr"?(te||(t[h]=this.createTransformElement(e[h],i)),H=t[h].transform,l.push(H)):e[h].ty==="sh"||e[h].ty==="rc"||e[h].ty==="el"||e[h].ty==="sr"?(te||(t[h]=this.createShapeElement(e[h],l,s)),this.setElementStyles(t[h])):e[h].ty==="tm"||e[h].ty==="rd"||e[h].ty==="ms"||e[h].ty==="pb"||e[h].ty==="zz"||e[h].ty==="op"?(te?(G=t[h],G.closed=!1):(G=ShapeModifiers.getModifier(e[h].ty),G.init(this,e[h]),t[h]=G,this.shapeModifiers.push(G)),q.push(G)):e[h].ty==="rp"&&(te?(G=t[h],G.closed=!0):(G=ShapeModifiers.getModifier(e[h].ty),t[h]=G,G.init(this,e,h,t),this.shapeModifiers.push(G),a=!1),q.push(G));this.addProcessedElement(e[h],h+1)}for(d=y.length,h=0;h<d;h+=1)y[h].closed=!0;for(d=q.length,h=0;h<d;h+=1)q[h].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,i,s,n){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=s,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,i,s,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,a=!0),n.length&&(this.p[0]!==n[0]||this.p[1]!==n[1]||this.p[4]!==n[4]||this.p[5]!==n[5]||this.p[12]!==n[12]||this.p[13]!==n[13])&&(this.p=n,this._mdf.p=!0,a=!0),a};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)r!==this.keysIndex?n=this.effectsSequence[i](n,n.t):n=this.effectsSequence[i](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,s,n,a=!1,l=!1,h="";r<i;)a=l,l=!1,s=e.charCodeAt(r),h=e.charAt(r),FontManager.isCombinedCharacter(s)?a=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?h=e.substr(r,14):(n=e.charCodeAt(r+1),n>=56320&&n<=57343&&(FontManager.isModifier(s,n)?(h=e.substr(r,2),a=!0):FontManager.isFlagEmoji(e.substr(r,4))?h=e.substr(r,4):h=e.substr(r,2))):s>56319?(n=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(a=!0)):FontManager.isZeroWidthJoiner(s)&&(a=!0,l=!0),a?(t[t.length-1]+=h,a=!1):t.push(h),r+=h.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,i=[],s,n,a,l=0,h,d=r.m.g,F=0,J=0,y=0,q=[],H=0,G=0,te,j,Z=t.getFontByName(e.f),M,V=0,Q=getFontProperties(Z);e.fWeight=Q.weight,e.fStyle=Q.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var ee=e.tr/1e3*e.finalSize,ie;if(e.sz)for(var ae=!0,le=e.sz[0],ye=e.sz[1],ue,fe;ae;){fe=this.buildFinalText(e.t),ue=0,H=0,n=fe.length,ee=e.tr/1e3*e.finalSize;var me=-1;for(s=0;s<n;s+=1)ie=fe[s].charCodeAt(0),a=!1,fe[s]===" "?me=s:(ie===13||ie===3)&&(H=0,a=!0,ue+=e.finalLineHeight||e.finalSize*1.2),t.chars?(M=t.getCharData(fe[s],Z.fStyle,Z.fFamily),V=a?0:M.w*e.finalSize/100):V=t.measureText(fe[s],e.f,e.finalSize),H+V>le&&fe[s]!==" "?(me===-1?n+=1:s=me,ue+=e.finalLineHeight||e.finalSize*1.2,fe.splice(s,me===s?1:0,"\r"),me=-1,H=0):(H+=V,H+=ee);ue+=Z.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ye<ue?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=fe,n=e.finalText.length,ae=!1)}H=-ee,V=0;var ve=0,he;for(s=0;s<n;s+=1)if(a=!1,he=e.finalText[s],ie=he.charCodeAt(0),ie===13||ie===3?(ve=0,q.push(H),G=H>G?H:G,H=-2*ee,h="",a=!0,y+=1):h=he,t.chars?(M=t.getCharData(he,Z.fStyle,t.getFontByName(e.f).fFamily),V=a?0:M.w*e.finalSize/100):V=t.measureText(h,e.f,e.finalSize),he===" "?ve+=V+ee:(H+=V+ee+ve,ve=0),i.push({l:V,an:V,add:F,n:a,anIndexes:[],val:h,line:y,animatorJustifyOffset:0}),d==2){if(F+=V,h===""||h===" "||s===n-1){for((h===""||h===" ")&&(F-=V);J<=s;)i[J].an=F,i[J].ind=l,i[J].extra=V,J+=1;l+=1,F=0}}else if(d==3){if(F+=V,h===""||s===n-1){for(h===""&&(F-=V);J<=s;)i[J].an=F,i[J].ind=l,i[J].extra=V,J+=1;F=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,G=H>G?H:G,q.push(H),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=G,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=q;var re=r.a,se,W;j=re.length;var K,oe,ne=[];for(te=0;te<j;te+=1){for(se=re[te],se.a.sc&&(e.strokeColorAnim=!0),se.a.sw&&(e.strokeWidthAnim=!0),(se.a.fc||se.a.fh||se.a.fs||se.a.fb)&&(e.fillColorAnim=!0),oe=0,K=se.s.b,s=0;s<n;s+=1)W=i[s],W.anIndexes[te]=oe,(K==1&&W.val!==""||K==2&&W.val!==""&&W.val!==" "||K==3&&(W.n||W.val==" "||s==n-1)||K==4&&(W.n||s==n-1))&&(se.s.rn===1&&ne.push(oe),oe+=1);r.a[te].s.totalChars=oe;var ce=-1,pe;if(se.s.rn===1)for(s=0;s<n;s+=1)W=i[s],ce!=W.anIndexes[te]&&(ce=W.anIndexes[te],pe=ne.splice(Math.floor(Math.random()*ne.length),1)[0]),W.anIndexes[te]=pe}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=Z.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,r=Math.floor;function i(n,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,a.s||{k:0},0,0,this),"e"in a?this.e=PropertyFactory.getProp(n,a.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(n,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,h=0,d=1,F=1;this.ne.v>0?l=this.ne.v/100:h=-this.ne.v/100,this.xe.v>0?d=1-this.xe.v/100:F=1+this.xe.v/100;var J=BezierFactory.getBezierEasing(l,h,d,F).get,y=0,q=this.finalS,H=this.finalE,G=this.data.sh;if(G===2)H===q?y=a>=H?1:0:y=e(0,t(.5/(H-q)+(a-q)/(H-q),1)),y=J(y);else if(G===3)H===q?y=a>=H?0:1:y=1-e(0,t(.5/(H-q)+(a-q)/(H-q),1)),y=J(y);else if(G===4)H===q?y=0:(y=e(0,t(.5/(H-q)+(a-q)/(H-q),1)),y<.5?y*=2:y=1-2*(y-.5)),y=J(y);else if(G===5){if(H===q)y=0;else{var te=H-q;a=t(e(0,a+.5-q),H-q);var j=-te/2+a,Z=te/2;y=Math.sqrt(1-j*j/(Z*Z))}y=J(y)}else G===6?(H===q?y=0:(a=t(e(0,a+.5-q),H-q),y=(1+Math.cos(Math.PI+Math.PI*2*a/(H-q)))/2),y=J(y)):(a>=r(q)&&(a-q<0?y=e(0,t(t(H,1)-(q-a),1)):y=e(0,t(H-a,1))),y=J(y));if(this.sm.v!==100){var M=this.sm.v*.01;M===0&&(M=1e-8);var V=.5-M*.5;y<V?y=0:(y=(y-V)/M,y>1&&(y=1))}return y*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,h=this.o.v/l,d=this.s.v/l+h,F=this.e.v/l+h;if(d>F){var J=d;d=F,F=J}this.finalS=d,this.finalE=F}},extendPrototype([DynamicPropertyContainer],i);function s(n,a,l){return new i(n,a)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},s=PropertyFactory.getProp,n=t.a;this.a={r:n.r?s(e,n.r,0,degToRads,r):i,rx:n.rx?s(e,n.rx,0,degToRads,r):i,ry:n.ry?s(e,n.ry,0,degToRads,r):i,sk:n.sk?s(e,n.sk,0,degToRads,r):i,sa:n.sa?s(e,n.sa,0,degToRads,r):i,s:n.s?s(e,n.s,1,.01,r):i,a:n.a?s(e,n.a,1,0,r):i,o:n.o?s(e,n.o,0,.01,r):i,p:n.p?s(e,n.p,1,0,r):i,sw:n.sw?s(e,n.sw,0,0,r):i,sc:n.sc?s(e,n.sc,1,0,r):i,fc:n.fc?s(e,n.fc,1,0,r):i,fh:n.fh?s(e,n.fh,0,0,r):i,fs:n.fs?s(e,n.fs,0,.01,r):i,fb:n.fb?s(e,n.fb,0,.01,r):i,t:n.t?s(e,n.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,n=this.mHelper,a=this._renderType,l=this.renderedLetters.length,h,d,F,J,y=e.l,q,H,G,te,j,Z,M,V,Q,ee,ie,ae,le,ye,ue;if(this._hasMaskedPath){if(ue=this._pathData.m,!this._pathData.n||this._pathData._mdf){var fe=ue.v;this._pathData.r.v&&(fe=fe.reverse()),q={tLength:0,segments:[]},J=fe._length-1;var me;for(ae=0,F=0;F<J;F+=1)me=bez.buildBezierData(fe.v[F],fe.v[F+1],[fe.o[F][0]-fe.v[F][0],fe.o[F][1]-fe.v[F][1]],[fe.i[F+1][0]-fe.v[F+1][0],fe.i[F+1][1]-fe.v[F+1][1]]),q.tLength+=me.segmentLength,q.segments.push(me),ae+=me.segmentLength;F=J,ue.v.c&&(me=bez.buildBezierData(fe.v[F],fe.v[0],[fe.o[F][0]-fe.v[F][0],fe.o[F][1]-fe.v[F][1]],[fe.i[0][0]-fe.v[0][0],fe.i[0][1]-fe.v[0][1]]),q.tLength+=me.segmentLength,q.segments.push(me),ae+=me.segmentLength),this._pathData.pi=q}if(q=this._pathData.pi,H=this._pathData.f.v,M=0,Z=1,te=0,j=!0,ee=q.segments,H<0&&ue.v.c)for(q.tLength<Math.abs(H)&&(H=-Math.abs(H)%q.tLength),M=ee.length-1,Q=ee[M].points,Z=Q.length-1;H<0;)H+=Q[Z].partialLength,Z-=1,Z<0&&(M-=1,Q=ee[M].points,Z=Q.length-1);Q=ee[M].points,V=Q[Z-1],G=Q[Z],ie=G.partialLength}J=y.length,h=0,d=0;var ve=e.finalSize*1.2*.714,he=!0,re,se,W,K,oe;K=i.length;var ne,ce=-1,pe,de,xe,be=H,Pe=M,Ee=Z,Me=-1,Ce,Se,Te,_e,ge,Re,ze,Ie,Fe="",je=this.defaultPropsArray,Le;if(e.j===2||e.j===1){var we=0,De=0,Ve=e.j===2?-.5:-1,Ae=0,Oe=!0;for(F=0;F<J;F+=1)if(y[F].n){for(we&&(we+=De);Ae<F;)y[Ae].animatorJustifyOffset=we,Ae+=1;we=0,Oe=!0}else{for(W=0;W<K;W+=1)re=i[W].a,re.t.propType&&(Oe&&e.j===2&&(De+=re.t.v*Ve),se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?we+=re.t.v*ne[0]*Ve:we+=re.t.v*ne*Ve);Oe=!1}for(we&&(we+=De);Ae<F;)y[Ae].animatorJustifyOffset=we,Ae+=1}for(F=0;F<J;F+=1){if(n.reset(),Ce=1,y[F].n)h=0,d+=e.yOffset,d+=he?1:0,H=be,he=!1,this._hasMaskedPath&&(M=Pe,Z=Ee,Q=ee[M].points,V=Q[Z-1],G=Q[Z],ie=G.partialLength,te=0),Fe="",Ie="",Re="",Le="",je=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Me!==y[F].line){switch(e.j){case 1:H+=ae-e.lineWidths[y[F].line];break;case 2:H+=(ae-e.lineWidths[y[F].line])/2;break}Me=y[F].line}ce!==y[F].ind&&(y[ce]&&(H+=y[ce].extra),H+=y[F].an/2,ce=y[F].ind),H+=r[0]*y[F].an*.005;var ke=0;for(W=0;W<K;W+=1)re=i[W].a,re.p.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?ke+=re.p.v[0]*ne[0]:ke+=re.p.v[0]*ne),re.a.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?ke+=re.a.v[0]*ne[0]:ke+=re.a.v[0]*ne);for(j=!0,this._pathData.a.v&&(H=y[0].an*.5+(ae-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*ce/(J-1),H+=this._pathData.f.v);j;)te+ie>=H+ke||!Q?(le=(H+ke-te)/G.partialLength,de=V.point[0]+(G.point[0]-V.point[0])*le,xe=V.point[1]+(G.point[1]-V.point[1])*le,n.translate(-r[0]*y[F].an*.005,-(r[1]*ve)*.01),j=!1):Q&&(te+=G.partialLength,Z+=1,Z>=Q.length&&(Z=0,M+=1,ee[M]?Q=ee[M].points:ue.v.c?(Z=0,M=0,Q=ee[M].points):(te-=G.partialLength,Q=null)),Q&&(V=G,G=Q[Z],ie=G.partialLength));pe=y[F].an/2-y[F].add,n.translate(-pe,0,0)}else pe=y[F].an/2-y[F].add,n.translate(-pe,0,0),n.translate(-r[0]*y[F].an*.005,-r[1]*ve*.01,0);for(W=0;W<K;W+=1)re=i[W].a,re.t.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),(h!==0||e.j!==0)&&(this._hasMaskedPath?ne.length?H+=re.t.v*ne[0]:H+=re.t.v*ne:ne.length?h+=re.t.v*ne[0]:h+=re.t.v*ne));for(e.strokeWidthAnim&&(Te=e.sw||0),e.strokeColorAnim&&(e.sc?Se=[e.sc[0],e.sc[1],e.sc[2]]:Se=[0,0,0]),e.fillColorAnim&&e.fc&&(_e=[e.fc[0],e.fc[1],e.fc[2]]),W=0;W<K;W+=1)re=i[W].a,re.a.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?n.translate(-re.a.v[0]*ne[0],-re.a.v[1]*ne[1],re.a.v[2]*ne[2]):n.translate(-re.a.v[0]*ne,-re.a.v[1]*ne,re.a.v[2]*ne));for(W=0;W<K;W+=1)re=i[W].a,re.s.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?n.scale(1+(re.s.v[0]-1)*ne[0],1+(re.s.v[1]-1)*ne[1],1):n.scale(1+(re.s.v[0]-1)*ne,1+(re.s.v[1]-1)*ne,1));for(W=0;W<K;W+=1){if(re=i[W].a,se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),re.sk.propType&&(ne.length?n.skewFromAxis(-re.sk.v*ne[0],re.sa.v*ne[1]):n.skewFromAxis(-re.sk.v*ne,re.sa.v*ne)),re.r.propType&&(ne.length?n.rotateZ(-re.r.v*ne[2]):n.rotateZ(-re.r.v*ne)),re.ry.propType&&(ne.length?n.rotateY(re.ry.v*ne[1]):n.rotateY(re.ry.v*ne)),re.rx.propType&&(ne.length?n.rotateX(re.rx.v*ne[0]):n.rotateX(re.rx.v*ne)),re.o.propType&&(ne.length?Ce+=(re.o.v*ne[0]-Ce)*ne[0]:Ce+=(re.o.v*ne-Ce)*ne),e.strokeWidthAnim&&re.sw.propType&&(ne.length?Te+=re.sw.v*ne[0]:Te+=re.sw.v*ne),e.strokeColorAnim&&re.sc.propType)for(ge=0;ge<3;ge+=1)ne.length?Se[ge]+=(re.sc.v[ge]-Se[ge])*ne[0]:Se[ge]+=(re.sc.v[ge]-Se[ge])*ne;if(e.fillColorAnim&&e.fc){if(re.fc.propType)for(ge=0;ge<3;ge+=1)ne.length?_e[ge]+=(re.fc.v[ge]-_e[ge])*ne[0]:_e[ge]+=(re.fc.v[ge]-_e[ge])*ne;re.fh.propType&&(ne.length?_e=addHueToRGB(_e,re.fh.v*ne[0]):_e=addHueToRGB(_e,re.fh.v*ne)),re.fs.propType&&(ne.length?_e=addSaturationToRGB(_e,re.fs.v*ne[0]):_e=addSaturationToRGB(_e,re.fs.v*ne)),re.fb.propType&&(ne.length?_e=addBrightnessToRGB(_e,re.fb.v*ne[0]):_e=addBrightnessToRGB(_e,re.fb.v*ne))}}for(W=0;W<K;W+=1)re=i[W].a,re.p.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),this._hasMaskedPath?ne.length?n.translate(0,re.p.v[1]*ne[0],-re.p.v[2]*ne[1]):n.translate(0,re.p.v[1]*ne,-re.p.v[2]*ne):ne.length?n.translate(re.p.v[0]*ne[0],re.p.v[1]*ne[1],-re.p.v[2]*ne[2]):n.translate(re.p.v[0]*ne,re.p.v[1]*ne,-re.p.v[2]*ne));if(e.strokeWidthAnim&&(Re=Te<0?0:Te),e.strokeColorAnim&&(ze="rgb("+Math.round(Se[0]*255)+","+Math.round(Se[1]*255)+","+Math.round(Se[2]*255)+")"),e.fillColorAnim&&e.fc&&(Ie="rgb("+Math.round(_e[0]*255)+","+Math.round(_e[1]*255)+","+Math.round(_e[2]*255)+")"),this._hasMaskedPath){if(n.translate(0,-e.ls),n.translate(0,r[1]*ve*.01+d,0),this._pathData.p.v){ye=(G.point[1]-V.point[1])/(G.point[0]-V.point[0]);var Be=Math.atan(ye)*180/Math.PI;G.point[0]<V.point[0]&&(Be+=180),n.rotate(-Be*Math.PI/180)}n.translate(de,xe,0),H-=r[0]*y[F].an*.005,y[F+1]&&ce!==y[F+1].ind&&(H+=y[F].an/2,H+=e.tr*.001*e.finalSize)}else{switch(n.translate(h,d,0),e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:n.translate(y[F].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[y[F].line]),0,0);break;case 2:n.translate(y[F].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[y[F].line])/2,0,0);break}n.translate(0,-e.ls),n.translate(pe,0,0),n.translate(r[0]*y[F].an*.005,r[1]*ve*.01,0),h+=y[F].l+e.tr*.001*e.finalSize}a==="html"?Fe=n.toCSS():a==="svg"?Fe=n.to2dCSS():je=[n.props[0],n.props[1],n.props[2],n.props[3],n.props[4],n.props[5],n.props[6],n.props[7],n.props[8],n.props[9],n.props[10],n.props[11],n.props[12],n.props[13],n.props[14],n.props[15]],Le=Ce}l<=F?(oe=new LetterProps(Le,Re,ze,Ie,Fe,je),this.renderedLetters.push(oe),l+=1,this.lettersChangedFlag=!0):(oe=this.renderedLetters[F],this.lettersChangedFlag=oe.update(Le,Re,ze,Ie,Fe,je)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i=t.length,s,n="";for(r=0;r<i;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,n+=buildShapeString(s,s.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,i=[],s="";t<r;)e[t]==="\r"||e[t]===""?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var a=r.l||[],l=!!this.globalData.fontManager.chars;t=a.length;var h,d=this.mHelper,F="",J=this.data.singleShape,y=0,q=0,H=!0,G=r.tr*.001*r.finalSize;if(J&&!l&&!r.sz){var te=this.textContainer,j="start";switch(r.j){case 1:j="end";break;case 2:j="middle";break;default:j="start";break}te.setAttribute("text-anchor",j),te.setAttribute("letter-spacing",G);var Z=this.buildTextContents(r.finalText);for(t=Z.length,q=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)h=this.textSpans[e].span||createNS("tspan"),h.textContent=Z[e],h.setAttribute("x",0),h.setAttribute("y",q),h.style.display="inherit",te.appendChild(h),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=h,q+=r.finalLineHeight;this.layerElement.appendChild(te)}else{var M=this.textSpans.length,V;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!J||e===0){if(h=M>e?this.textSpans[e].span:createNS(l?"g":"text"),M<=e){if(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=h,l){var Q=createNS("g");h.appendChild(Q),this.textSpans[e].childSpan=Q}this.textSpans[e].span=h,this.layerElement.appendChild(h)}h.style.display="inherit"}if(d.reset(),J&&(a[e].n&&(y=-G,q+=r.yOffset,q+=H?1:0,H=!1),this.applyTextPropertiesToMatrix(r,d,a[e].line,y,q),y+=a[e].l||0,y+=G),l){V=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var ee;if(V.t===1)ee=new SVGCompElement(V.data,this.globalData,this);else{var ie=emptyShapeData;V.data&&V.data.shapes&&(ie=this.buildShapeData(V.data,r.finalSize)),ee=new SVGShapeElement(ie,this.globalData,this)}if(this.textSpans[e].glyph){var ae=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(ae.layerElement),ae.destroy()}this.textSpans[e].glyph=ee,ee._debug=!0,ee.prepareFrame(0),ee.renderFrame(),this.textSpans[e].childSpan.appendChild(ee.layerElement),V.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else J&&h.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),h.textContent=a[e].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}J&&h&&h.setAttribute("d",F)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,n,a;for(e=0;e<t;e+=1)i[e].n||(s=r[e],n=this.textSpans[e].span,a=this.textSpans[e].glyph,a&&a.renderFrame(),s._mdf.m&&n.setAttribute("transform",s.m),s._mdf.o&&n.setAttribute("opacity",s.o),s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s._mdf.sc&&n.setAttribute("stroke",s.sc),s._mdf.fc&&n.setAttribute("fill",s.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var s=t[i],n=s.getMatte(this.layers[e].tt);r.setMatte(n)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],n=s.getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(r,s):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),r+=s}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,i=t.length,s="_";for(r=0;r<i;r+=1)s+=t[r].transform.key+"_";var n=this.sequences[s];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=n,this.sequenceList.push(n)),n},processSequence:function(t,r){for(var i=0,s=t.transforms.length,n=r;i<s&&!r;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,i=null,s=null;function n(){var h=createNS("svg"),d=createNS("filter"),F=createNS("feColorMatrix");return d.setAttribute("id",t),F.setAttribute("type","matrix"),F.setAttribute("color-interpolation-filters","sRGB"),F.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),d.appendChild(F),h.appendChild(d),h.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(h.style.display="none"),h}function a(){r||(s=n(),document.body.appendChild(s),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(h){return r||a(),r.width=h.width,r.height=h.height,i.filter="url(#"+t+")",r}return{load:a,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<r;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var n=registeredEffects[s].effect;i=new n(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,i=this.masksProperties.length,s,n,a;for(t.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),a=this.viewData[r].v,s=e.applyToPointArray(a.v[0][0],a.v[0][1],0),t.moveTo(s[0],s[1]);var l,h=a._length;for(l=1;l<h;l+=1)n=e.applyToTriplePoints(a.o[l-1],a.i[l],a.v[l]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=e.applyToTriplePoints(a.o[l-1],a.i[0],a.v[0]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),n=s.getContext("2d");n.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var n,a=r.length,l;for(n=0;n<a;n+=1)r[n].closed||(l={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(l),r[n].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,s){var n,a=e.length-1,l,h,d=[],F=[],J,y,q,H=[].concat(s);for(n=a;n>=0;n-=1){if(J=this.searchProcessedElement(e[n]),J?t[n]=r[J-1]:e[n]._shouldRender=i,e[n].ty==="fl"||e[n].ty==="st"||e[n].ty==="gf"||e[n].ty==="gs")J?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],H),d.push(t[n].style);else if(e[n].ty==="gr"){if(!J)t[n]=this.createGroupElement(e[n]);else for(h=t[n].it.length,l=0;l<h;l+=1)t[n].prevViewData[l]=t[n].it[l];this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,i,H)}else e[n].ty==="tr"?(J||(q=this.createTransformElement(e[n]),t[n]=q),H.push(t[n]),this.addTransformToStyleList(t[n])):e[n].ty==="sh"||e[n].ty==="rc"||e[n].ty==="el"||e[n].ty==="sr"?J||(t[n]=this.createShapeElement(e[n])):e[n].ty==="tm"||e[n].ty==="rd"||e[n].ty==="pb"||e[n].ty==="zz"||e[n].ty==="op"?(J?(y=t[n],y.closed=!1):(y=ShapeModifiers.getModifier(e[n].ty),y.init(this,e[n]),t[n]=y,this.shapeModifiers.push(y)),F.push(y)):e[n].ty==="rp"&&(J?(y=t[n],y.closed=!0):(y=ShapeModifiers.getModifier(e[n].ty),t[n]=y,y.init(this,e,n,t),this.shapeModifiers.push(y),i=!1),F.push(y));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),a=F.length,n=0;n<a;n+=1)F[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,i,s,n,a,l,h=this.globalData.renderer,d=this.globalData.canvasContext,F,J;for(e=0;e<t;e+=1)if(J=this.stylesList[e],F=J.type,!((F==="st"||F==="gs")&&J.wi===0||!J.data._shouldRender||J.coOp===0||this.globalData.currentGlobalAlpha===0)){for(h.save(),a=J.elements,F==="st"||F==="gs"?(h.ctxStrokeStyle(F==="st"?J.co:J.grd),h.ctxLineWidth(J.wi),h.ctxLineCap(J.lc),h.ctxLineJoin(J.lj),h.ctxMiterLimit(J.ml||0)):h.ctxFillStyle(F==="fl"?J.co:J.grd),h.ctxOpacity(J.coOp),F!=="st"&&F!=="gs"&&d.beginPath(),h.ctxTransform(J.preTransforms.finalTransform.props),i=a.length,r=0;r<i;r+=1){for((F==="st"||F==="gs")&&(d.beginPath(),J.da&&(d.setLineDash(J.da),d.lineDashOffset=J.do)),l=a[r].trNodes,n=l.length,s=0;s<n;s+=1)l[s].t==="m"?d.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?d.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):d.closePath();(F==="st"||F==="gs")&&(h.ctxStroke(),J.da&&d.setLineDash(this.dashResetter))}F!=="st"&&F!=="gs"&&this.globalData.renderer.ctxFill(J.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var s,n=t.length-1,a;for(a=e,s=n;s>=0;s-=1)t[s].ty==="tr"?(a=r[s].transform,this.renderShapeTransform(e,a)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],a):t[s].ty==="st"?this.renderStroke(t[s],r[s],a):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],a):t[s].ty==="gr"?this.renderShape(a,t[s].it,r[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,s,n,a,l=i._length;r.length=0;var h=e.transforms.finalTransform;for(a=0;a<l;a+=1){var d=i.shapes[a];if(d&&d.v){for(n=d._length,s=1;s<n;s+=1)s===1&&r.push({t:"m",p:h.applyToPointArray(d.v[0][0],d.v[0][1],0)}),r.push({t:"c",pts:h.applyToTriplePoints(d.o[s-1],d.i[s],d.v[s])});n===1&&r.push({t:"m",p:h.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&n&&(r.push({t:"c",pts:h.applyToTriplePoints(d.o[s-1],d.i[0],d.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var n=this.globalData.canvasContext,a=t.s.v,l=t.e.v;if(e.t===1)s=n.createLinearGradient(a[0],a[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),d=Math.atan2(l[1]-a[1],l[0]-a[0]),F=t.h.v;F>=1?F=.99:F<=-1&&(F=-.99);var J=h*F,y=Math.cos(d+t.a.v)*J+a[0],q=Math.sin(d+t.a.v)*J+a[1];s=n.createRadialGradient(y,q,0,a[0],a[1],h)}var H,G=e.g.p,te=t.g.c,j=1;for(H=0;H<G;H+=1)t.g._hasOpacity&&t.g._collapsable&&(j=t.g.o[H*2+1]),s.addColorStop(te[H*4]/100,"rgba("+te[H*4+1]+","+te[H*4+2]+","+te[H*4+3]+","+j+")");i.grd=s}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,n,a=e.l,l=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var h,d,F,J,y,q,H,G,te,j,Z=this.data.singleShape,M=e.tr*.001*e.finalSize,V=0,Q=0,ee=!0,ie=0;for(s=0;s<n;s+=1){h=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d=h&&h.data||{},l.reset(),Z&&a[s].n&&(V=-M,Q+=e.yOffset,Q+=ee?1:0,ee=!1),y=d.shapes?d.shapes[0].it:[],H=y.length,l.scale(e.finalSize/100,e.finalSize/100),Z&&this.applyTextPropertiesToMatrix(e,l,a[s].line,V,Q),te=createSizedArray(H-1);var ae=0;for(q=0;q<H;q+=1)if(y[q].ty==="sh"){for(J=y[q].ks.k.i.length,G=y[q].ks.k,j=[],F=1;F<J;F+=1)F===1&&j.push(l.applyToX(G.v[0][0],G.v[0][1],0),l.applyToY(G.v[0][0],G.v[0][1],0)),j.push(l.applyToX(G.o[F-1][0],G.o[F-1][1],0),l.applyToY(G.o[F-1][0],G.o[F-1][1],0),l.applyToX(G.i[F][0],G.i[F][1],0),l.applyToY(G.i[F][0],G.i[F][1],0),l.applyToX(G.v[F][0],G.v[F][1],0),l.applyToY(G.v[F][0],G.v[F][1],0));j.push(l.applyToX(G.o[F-1][0],G.o[F-1][1],0),l.applyToY(G.o[F-1][0],G.o[F-1][1],0),l.applyToX(G.i[0][0],G.i[0][1],0),l.applyToY(G.i[0][0],G.i[0][1],0),l.applyToX(G.v[0][0],G.v[0][1],0),l.applyToY(G.v[0][0],G.v[0][1],0)),te[ae]=j,ae+=1}Z&&(V+=a[s].l,V+=M),this.textSpans[ie]?this.textSpans[ie].elem=te:this.textSpans[ie]={elem:te},ie+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,i,s,n,a,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;r=h.length;var d,F=null,J=null,y=null,q,H,G=this.globalData.renderer;for(t=0;t<r;t+=1)if(!h[t].n){if(d=l[t],d&&(G.save(),G.ctxTransform(d.p),G.ctxOpacity(d.o)),this.fill){for(d&&d.fc?F!==d.fc&&(G.ctxFillStyle(d.fc),F=d.fc):F!==this.values.fill&&(F=this.values.fill,G.ctxFillStyle(this.values.fill)),q=this.textSpans[t].elem,s=q.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(H=q[i],a=H.length,this.globalData.canvasContext.moveTo(H[0],H[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(H[n],H[n+1],H[n+2],H[n+3],H[n+4],H[n+5]);this.globalData.canvasContext.closePath(),G.ctxFill()}if(this.stroke){for(d&&d.sw?y!==d.sw&&(y=d.sw,G.ctxLineWidth(d.sw)):y!==this.values.sWidth&&(y=this.values.sWidth,G.ctxLineWidth(this.values.sWidth)),d&&d.sc?J!==d.sc&&(J=d.sc,G.ctxStrokeStyle(d.sc)):J!==this.values.stroke&&(J=this.values.stroke,G.ctxStrokeStyle(this.values.stroke)),q=this.textSpans[t].elem,s=q.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(H=q[i],a=H.length,this.globalData.canvasContext.moveTo(H[0],H[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(H[n],H[n+1],H[n+2],H[n+3],H[n+4],H[n+5]);this.globalData.canvasContext.closePath(),G.ctxStroke()}d&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,i=this.img.height,s=r/i,n=this.assetData.w/this.assetData.h,a,l,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>n&&h==="xMidYMid slice"||s<n&&h!=="xMidYMid slice"?(l=i,a=l*n):(a=r,l=a/n),t.drawImage(this.img,(r-a)/2,(i-l)/2,a,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,i;e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var s,n;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),l=a[1]||"meet",h=a[0]||"xMidYMid",d=h.substr(0,4),F=h.substr(4);s=r/i,n=this.transformCanvas.w/this.transformCanvas.h,n>s&&l==="meet"||n<s&&l==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),d==="xMid"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,F==="YMid"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:F==="YMax"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=r[i];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=r.opacity,s.fillStyle=r.fillStyle,s.strokeStyle=r.strokeStyle,s.lineWidth=r.lineWidth,s.lineCap=r.lineCap,s.lineJoin=r.lineJoin,s.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,i=e.transformers,s,n=r._length,a,l,h,d;if(!(n<=1)){for(s=0;s<n-1;s+=1)a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),h=this.getTransformedPoint(i,r.i[s+1]),d=this.getTransformedPoint(i,r.v[s+1]),this.checkBounds(a,l,h,d,t);r.c&&(a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),h=this.getTransformedPoint(i,r.i[0]),d=this.getTransformedPoint(i,r.v[0]),this.checkBounds(a,l,h,d,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,s){this.getBoundsOfCurve(e,t,r,i);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x),s.xMax=bmMax(n.right,s.xMax),s.y=bmMin(n.top,s.y),s.yMax=bmMax(n.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],n,a,l,h,d,F,J,y=0;y<2;++y)a=6*e[y]-12*t[y]+6*r[y],n=-3*e[y]+9*t[y]-9*r[y]+3*i[y],l=3*t[y]-3*e[y],a|=0,n|=0,l|=0,n===0&&a===0||(n===0?(h=-l/a,h>0&&h<1&&s[y].push(this.calculateF(h,e,t,r,i,y))):(d=a*a-4*l*n,d>=0&&(F=(-a+bmSqrt(d))/(2*n),F>0&&F<1&&s[y].push(this.calculateF(F,e,t,r,i,y)),J=(-a-bmSqrt(d))/(2*n),J>0&&J<1&&s[y].push(this.calculateF(J,e,t,r,i,y)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,s,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*i[n]+bmPow(e,3)*s[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,n=e.fStyle;t.fontStyle=n,t.fontWeight=s}var a,l,h=e.l;l=h.length;var d,F,J,y=this.mHelper,q,H="",G=0;for(a=0;a<l;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[G]?d=this.textPaths[G]:(d=createNS("path"),d.setAttribute("stroke-linecap",lineCapEnum[1]),d.setAttribute("stroke-linejoin",lineJoinEnum[2]),d.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[G]?(F=this.textSpans[G],J=F.children[0]):(F=createTag("div"),F.style.lineHeight=0,J=createNS("svg"),J.appendChild(d),styleDiv(F)))):this.isMasked?d=this.textPaths[G]?this.textPaths[G]:createNS("text"):this.textSpans[G]?(F=this.textSpans[G],d=this.textPaths[G]):(F=createTag("span"),styleDiv(F),d=createTag("span"),styleDiv(d),F.appendChild(d)),this.globalData.fontManager.chars){var te=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),j;if(te?j=te.data:j=null,y.reset(),j&&j.shapes&&j.shapes.length&&(q=j.shapes[0].it,y.scale(e.finalSize/100,e.finalSize/100),H=this.createPathShape(y,q),d.setAttribute("d",H)),this.isMasked)this.innerElem.appendChild(d);else{if(this.innerElem.appendChild(F),j&&j.shapes){document.body.appendChild(J);var Z=J.getBBox();J.setAttribute("width",Z.width+2),J.setAttribute("height",Z.height+2),J.setAttribute("viewBox",Z.x-1+" "+(Z.y-1)+" "+(Z.width+2)+" "+(Z.height+2));var M=J.style,V="translate("+(Z.x-1)+"px,"+(Z.y-1)+"px)";M.transform=V,M.webkitTransform=V,h[a].yOffset=Z.y-1}else J.setAttribute("width",1),J.setAttribute("height",1);F.appendChild(J)}}else if(d.textContent=h[a].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(d);else{this.innerElem.appendChild(F);var Q=d.style,ee="translate3d(0,"+-e.finalSize/1.2+"px,0)";Q.transform=ee,Q.webkitTransform=ee}this.isMasked?this.textSpans[G]=d:this.textSpans[G]=F,this.textSpans[G].style.display="block",this.textPaths[G]=d,G+=1}for(;G<this.textSpans.length;)this.textSpans[G].style.display="none",G+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,s=0,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;i=a.length;var l,h,d;for(r=0;r<i;r+=1)a[r].n?s+=1:(h=this.textSpans[r],d=this.textPaths[r],l=n[s],s+=1,l._mdf.m&&(this.isMasked?h.setAttribute("transform",l.m):(h.style.webkitTransform=l.m,h.style.transform=l.m)),h.style.opacity=l.o,l.sw&&l._mdf.sw&&d.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&d.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(d.setAttribute("fill",l.fc),d.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var F=this.innerElem.getBBox();this.currentBBox.w!==F.width&&(this.currentBBox.w=F.width,this.svgElement.setAttribute("width",F.width)),this.currentBBox.h!==F.height&&(this.currentBBox.h=F.height,this.svgElement.setAttribute("height",F.height));var J=1;if(this.currentBBox.w!==F.width+J*2||this.currentBBox.h!==F.height+J*2||this.currentBBox.x!==F.x-J||this.currentBBox.y!==F.y-J){this.currentBBox.w=F.width+J*2,this.currentBBox.h=F.height+J*2,this.currentBBox.x=F.x-J,this.currentBBox.y=F.y-J,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var y="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=y,e.webkitTransform=y}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,n=e.ks.or.k.length;for(s=0;s<n;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,i,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,s=r.container.style;var n=this.pe.v+"px",a="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(r=this.hierarchy.length-1,t=r;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),a=[s[0]/n,s[1]/n,s[2]/n],l=Math.sqrt(a[2]*a[2]+a[0]*a[0]),h=Math.atan2(a[1],l),d=Math.atan2(a[0],-a[2]);this.mat.rotateY(d).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var F=!this._prevMat.equals(this.mat);if((F||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var J,y,q;for(t=0;t<r;t+=1)if(J=this.comp.threeDElements[t],J.type==="3d"){if(F){var H=this.mat.toCSS();q=J.container.style,q.transform=H,q.webkitTransform=H}this.pe._mdf&&(y=J.perspectiveElem.style,y.perspective=this.pe.v+"px",y.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,n,a,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(a=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement(),n=l||n),s+=1;n?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,n):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,s;styleDiv(r);var n=createTag("div");if(styleDiv(n),t==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a,s=n.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}r.appendChild(n);var h={container:n,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,n;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,n,a,l;i>r?(s=e/this.globalData.compSize.w,n=e/this.globalData.compSize.w,a=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,n=t/this.globalData.compSize.h,a=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var h=this.resizerElem.style;h.webkitTransform="matrix3d("+s+",0,0,0,0,"+n+",0,0,0,0,1,0,"+a+","+l+",0,1)",h.transform=h.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(r){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,s=6,n=52,a="random",l=t.pow(i,s),h=t.pow(2,n),d=h*2,F=i-1,J;function y(M,V,Q){var ee=[];V=V===!0?{entropy:!0}:V||{};var ie=te(G(V.entropy?[M,Z(e)]:M===null?j():M,3),ee),ae=new q(ee),le=function(){for(var ue=ae.g(s),fe=l,me=0;ue<h;)ue=(ue+me)*i,fe*=i,me=ae.g(1);for(;ue>=d;)ue/=2,fe/=2,me>>>=1;return(ue+me)/fe};return le.int32=function(){return ae.g(4)|0},le.quick=function(){return ae.g(4)/4294967296},le.double=le,te(Z(ae.S),e),(V.pass||Q||function(ye,ue,fe,me){return me&&(me.S&&H(me,ae),ye.state=function(){return H(ae,{})}),fe?(t[a]=ye,ue):ye})(le,ie,"global"in V?V.global:this==t,V.state)}t["seed"+a]=y;function q(M){var V,Q=M.length,ee=this,ie=0,ae=ee.i=ee.j=0,le=ee.S=[];for(Q||(M=[Q++]);ie<i;)le[ie]=ie++;for(ie=0;ie<i;ie++)le[ie]=le[ae=F&ae+M[ie%Q]+(V=le[ie])],le[ae]=V;ee.g=function(ye){for(var ue,fe=0,me=ee.i,ve=ee.j,he=ee.S;ye--;)ue=he[me=F&me+1],fe=fe*i+he[F&(he[me]=he[ve=F&ve+ue])+(he[ve]=ue)];return ee.i=me,ee.j=ve,fe}}function H(M,V){return V.i=M.i,V.j=M.j,V.S=M.S.slice(),V}function G(M,V){var Q=[],ee=_typeof$2(M),ie;if(V&&ee=="object")for(ie in M)try{Q.push(G(M[ie],V-1))}catch{}return Q.length?Q:ee=="string"?M:M+"\0"}function te(M,V){for(var Q=M+"",ee,ie=0;ie<Q.length;)V[F&ie]=F&(ee^=V[F&ie]*19)+Q.charCodeAt(ie++);return Z(V)}function j(){try{var M=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(M),Z(M)}catch{var V=r.navigator,Q=V&&V.plugins;return[+new Date,r,Q,r.screen,Z(e)]}}function Z(M){return String.fromCharCode.apply(0,M)}te(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,s=[];for(r=0;r<i;r+=1)s[r]=-e[r];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||r==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e*t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e*t[n];return s}return 0}function div(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e/t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e/t[n];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],i=e[2],s=Math.max(t,r,i),n=Math.min(t,r,i),a,l,h=(s+n)/2;if(s===n)a=0,l=0;else{var d=s-n;switch(l=h>.5?d/(2-s-n):d/(s+n),s){case t:a=(r-i)/d+(r<i?6:0);break;case r:a=(i-t)/d+2;break;case i:a=(t-r)/d+4;break}a/=6}return[a,l,h,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],s,n,a;if(r===0)s=i,a=i,n=i;else{var l=i<.5?i*(1+r):i+r-i*r,h=2*i-l;s=hue2rgb(h,l,t+1/3),n=hue2rgb(h,l,t),a=hue2rgb(h,l,t-1/3)}return[s,n,a,e[3]]}function linear(e,t,r,i,s){if((i===void 0||s===void 0)&&(i=t,s=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return i;if(e>=r)return s;var a=r===t?0:(e-t)/(r-t);if(!i.length)return i+(s-i)*a;var l,h=i.length,d=createTypedArray("float32",h);for(l=0;l<h;l+=1)d[l]=i[l]+(s[l]-i[l])*a;return d}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),n=BMMath.random();for(r=0;r<i;r+=1)s[r]=e[r]+n*(t[r]-e[r]);return s}e===void 0&&(e=0);var a=BMMath.random();return e+a*(t-e)}function createPath(e,t,r,i){var s,n=e.length,a=shapePool.newElement();a.setPathData(!!i,n);var l=[0,0],h,d;for(s=0;s<n;s+=1)h=t&&t[s]?t[s]:l,d=r&&r[s]?r[s]:l,a.setTripleAt(e[s][0],e[s][1],d[0]+e[s][0],d[1]+e[s][1],h[0]+e[s][0],h[1]+e[s][1],s,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,r){var i,s,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n);t=5;var l=Math.floor(time*t);for(i=0,s=0;i<l;){for(s=0;s<n;s+=1)a[s]+=-r+r*2*BMMath.random();i+=1}var h=time*t,d=h-Math.floor(h),F=createTypedArray("float32",n);if(n>1){for(s=0;s<n;s+=1)F[s]=this.pv[s]+a[s]+(-r+r*2*BMMath.random())*d;return F}return this.pv+a[0]+(-r+r*2*BMMath.random())*d}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,i,0]}function easeOut(e,t,r,i,s){return applyEase(easeOutBez,e,t,r,i,s)}function easeIn(e,t,r,i,s){return applyEase(easeInBez,e,t,r,i,s)}function ease(e,t,r,i,s){return applyEase(easeInOutBez,e,t,r,i,s)}function applyEase(e,t,r,i,s,n){s===void 0?(s=r,n=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(s)){var l,h=s.length,d=createTypedArray("float32",h);for(l=0;l<h;l+=1)d[l]=(n[l]-s[l])*a+s[l];return d}return(n-s)*a+s}function nearestKey(e){var t,r=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var n={};return n.index=i,n.time=s/elem.comp.globalData.frameRate,n}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,r=0;r<i;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var i=0,s=[];function n(){i+=1}function a(){i-=1,i===0&&h()}function l(d){s.indexOf(d)===-1&&s.push(d)}function h(){var d,F=s.length;for(d=0;d<F;d+=1)s[d].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=n,r.renderer.globalData.popExpression=a,r.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),n,a=i.viewData.length;for(n=0;n<a;n+=1)s[n]=new e(i.viewData[n],i.masksProperties[n]);var l=function(d){for(n=0;n<a;){if(i.masksProperties[n].nm===d)return s[n];n+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(a,l,h){Object.defineProperty(a,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),a.numKeys=l.keyframes?l.keyframes.length:0,a.key=function(d){if(!a.numKeys)return 0;var F="";"s"in l.keyframes[d-1]?F=l.keyframes[d-1].s:"e"in l.keyframes[d-2]?F=l.keyframes[d-2].e:F=l.keyframes[d-2].s;var J=h==="unidimensional"?new Number(F):Object.assign({},F);return J.time=l.keyframes[d-1].t/l.elem.comp.globalData.frameRate,J.value=h==="unidimensional"?F[0]:F,J},a.valueAtTime=l.getValueAtTime,a.speedAtTime=l.getSpeedAtTime,a.velocityAtTime=l.getVelocityAtTime,a.propertyGroup=l.propertyGroup}function i(a){(!a||!("pv"in a))&&(a=e);var l=1/a.mult,h=a.pv*l,d=new Number(h);return d.value=h,r(d,a,"unidimensional"),function(){return a.k&&a.getValue(),h=a.v*l,d.value!==h&&(d=new Number(h),d.value=h,d[0]=h,r(d,a,"unidimensional")),d}}function s(a){(!a||!("pv"in a))&&(a=t);var l=1/a.mult,h=a.data&&a.data.l||a.pv.length,d=createTypedArray("float32",h),F=createTypedArray("float32",h);return d.value=F,r(d,a,"multidimensional"),function(){a.k&&a.getValue();for(var J=0;J<h;J+=1)F[J]=a.v[J]*l,d[J]=F[J];return d}}function n(){return e}return function(a){return a?a.propType==="unidimensional"?i(a):s(a):n}})(),TransformExpressionInterface=(function(){return function(e){function t(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,s,n;return e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(d){var F=new Matrix;if(d!==void 0){var J=this._elem.finalTransform.mProp.getValueAtTime(d);J.clone(F)}else{var y=this._elem.finalTransform.mProp;y.applyToMatrix(F)}return F}function t(d,F){var J=this.getMatrix(F);return J.props[12]=0,J.props[13]=0,J.props[14]=0,this.applyPoint(J,d)}function r(d,F){var J=this.getMatrix(F);return this.applyPoint(J,d)}function i(d,F){var J=this.getMatrix(F);return J.props[12]=0,J.props[13]=0,J.props[14]=0,this.invertPoint(J,d)}function s(d,F){var J=this.getMatrix(F);return this.invertPoint(J,d)}function n(d,F){if(this._elem.hierarchy&&this._elem.hierarchy.length){var J,y=this._elem.hierarchy.length;for(J=0;J<y;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(d)}return d.applyToPointArray(F[0],F[1],F[2]||0)}function a(d,F){if(this._elem.hierarchy&&this._elem.hierarchy.length){var J,y=this._elem.hierarchy.length;for(J=0;J<y;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(d)}return d.inversePoint(F)}function l(d){var F=new Matrix;if(F.reset(),this._elem.finalTransform.mProp.applyToMatrix(F),this._elem.hierarchy&&this._elem.hierarchy.length){var J,y=this._elem.hierarchy.length;for(J=0;J<y;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(F);return F.inversePoint(d)}return F.inversePoint(d)}function h(){return[1,1,1,1]}return function(d){var F;function J(G){q.mask=new MaskManagerInterface(G,d)}function y(G){q.effect=G}function q(G){switch(G){case"ADBE Root Vectors Group":case"Contents":case 2:return q.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return F;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return q.effect;case"ADBE Text Properties":return q.textInterface;default:return null}}q.getMatrix=e,q.invertPoint=a,q.applyPoint=n,q.toWorld=r,q.toWorldVec=t,q.fromWorld=s,q.fromWorldVec=i,q.toComp=r,q.fromComp=l,q.sampleImage=h,q.sourceRectAtTime=d.sourceRectAtTime.bind(d),q._elem=d,F=TransformExpressionInterface(d.finalTransform.mProp);var H=getDescriptor(F,"anchorPoint");return Object.defineProperties(q,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(F,"rotation"),scale:getDescriptor(F,"scale"),position:getDescriptor(F,"position"),opacity:getDescriptor(F,"opacity"),anchorPoint:H,anchor_point:H,transform:{get:function(){return F}},active:{get:function(){return d.isInRange}}}),q.startTime=d.data.st,q.index=d.data.ind,q.source=d.data.refId,q.height=d.data.ty===0?d.data.h:100,q.width=d.data.ty===0?d.data.w:100,q.inPoint=d.data.ip/d.comp.globalData.frameRate,q.outPoint=d.data.op/d.comp.globalData.frameRate,q._name=d.data.nm,q.registerMaskInterface=J,q.registerEffectsInterface=y,q}})(),propertyGroupFactory=(function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}})(),PropertyInterface=(function(){return function(e,t){var r={_name:e};function i(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,n){if(s.effectsManager){var a=[],l=s.data.ef,h,d=s.effectsManager.effectElements.length;for(h=0;h<d;h+=1)a.push(r(l[h],s.effectsManager.effectElements[h],n,s));var F=s.data.ef||[],J=function(q){for(h=0,d=F.length;h<d;){if(q===F[h].nm||q===F[h].mn||q===F[h].ix)return a[h];h+=1}return null};return Object.defineProperty(J,"numProperties",{get:function(){return F.length}}),J}return null}function r(s,n,a,l){function h(q){for(var H=s.ef,G=0,te=H.length;G<te;){if(q===H[G].nm||q===H[G].mn||q===H[G].ix)return H[G].ty===5?F[G]:F[G]();G+=1}throw new Error}var d=propertyGroupFactory(h,a),F=[],J,y=s.ef.length;for(J=0;J<y;J+=1)s.ef[J].ty===5?F.push(r(s.ef[J],n.effectElements[J],n.effectElements[J].propertyGroup,l)):F.push(i(n.effectElements[J],s.ef[J].ty,l,d));return s.mn==="ADBE Color Control"&&Object.defineProperty(h,"color",{get:function(){return F[0]()}}),Object.defineProperties(h,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:d}}),h.enabled=s.en!==0,h.active=h.enabled,h}function i(s,n,a,l){var h=ExpressionPropertyInterface(s.p);function d(){return n===10?a.comp.compInterface(s.p.v):h()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),d}return e})(),ShapePathInterface=(function(){return function(t,r,i){var s=r.sh;function n(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?n.path:null}var a=propertyGroupFactory(n,i);return s.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n}})(),ShapeExpressionInterface=(function(){function e(H,G,te){var j=[],Z,M=H?H.length:0;for(Z=0;Z<M;Z+=1)H[Z].ty==="gr"?j.push(r(H[Z],G[Z],te)):H[Z].ty==="fl"?j.push(i(H[Z],G[Z],te)):H[Z].ty==="st"?j.push(a(H[Z],G[Z],te)):H[Z].ty==="tm"?j.push(l(H[Z],G[Z],te)):H[Z].ty==="tr"||(H[Z].ty==="el"?j.push(d(H[Z],G[Z],te)):H[Z].ty==="sr"?j.push(F(H[Z],G[Z],te)):H[Z].ty==="sh"?j.push(ShapePathInterface(H[Z],G[Z],te)):H[Z].ty==="rc"?j.push(J(H[Z],G[Z],te)):H[Z].ty==="rd"?j.push(y(H[Z],G[Z],te)):H[Z].ty==="rp"?j.push(q(H[Z],G[Z],te)):H[Z].ty==="gf"?j.push(s(H[Z],G[Z],te)):j.push(n(H[Z],G[Z])));return j}function t(H,G,te){var j,Z=function(Q){for(var ee=0,ie=j.length;ee<ie;){if(j[ee]._name===Q||j[ee].mn===Q||j[ee].propertyIndex===Q||j[ee].ix===Q||j[ee].ind===Q)return j[ee];ee+=1}return typeof Q=="number"?j[Q-1]:null};Z.propertyGroup=propertyGroupFactory(Z,te),j=e(H.it,G.it,Z.propertyGroup),Z.numProperties=j.length;var M=h(H.it[H.it.length-1],G.it[G.it.length-1],Z.propertyGroup);return Z.transform=M,Z.propertyIndex=H.cix,Z._name=H.nm,Z}function r(H,G,te){var j=function(Q){switch(Q){case"ADBE Vectors Group":case"Contents":case 2:return j.content;default:return j.transform}};j.propertyGroup=propertyGroupFactory(j,te);var Z=t(H,G,j.propertyGroup),M=h(H.it[H.it.length-1],G.it[G.it.length-1],j.propertyGroup);return j.content=Z,j.transform=M,Object.defineProperty(j,"_name",{get:function(){return H.nm}}),j.numProperties=H.np,j.propertyIndex=H.ix,j.nm=H.nm,j.mn=H.mn,j}function i(H,G,te){function j(Z){return Z==="Color"||Z==="color"?j.color:Z==="Opacity"||Z==="opacity"?j.opacity:null}return Object.defineProperties(j,{color:{get:ExpressionPropertyInterface(G.c)},opacity:{get:ExpressionPropertyInterface(G.o)},_name:{value:H.nm},mn:{value:H.mn}}),G.c.setGroupProperty(PropertyInterface("Color",te)),G.o.setGroupProperty(PropertyInterface("Opacity",te)),j}function s(H,G,te){function j(Z){return Z==="Start Point"||Z==="start point"?j.startPoint:Z==="End Point"||Z==="end point"?j.endPoint:Z==="Opacity"||Z==="opacity"?j.opacity:null}return Object.defineProperties(j,{startPoint:{get:ExpressionPropertyInterface(G.s)},endPoint:{get:ExpressionPropertyInterface(G.e)},opacity:{get:ExpressionPropertyInterface(G.o)},type:{get:function(){return"a"}},_name:{value:H.nm},mn:{value:H.mn}}),G.s.setGroupProperty(PropertyInterface("Start Point",te)),G.e.setGroupProperty(PropertyInterface("End Point",te)),G.o.setGroupProperty(PropertyInterface("Opacity",te)),j}function n(){function H(){return null}return H}function a(H,G,te){var j=propertyGroupFactory(ie,te),Z=propertyGroupFactory(ee,j);function M(ae){Object.defineProperty(ee,H.d[ae].nm,{get:ExpressionPropertyInterface(G.d.dataProps[ae].p)})}var V,Q=H.d?H.d.length:0,ee={};for(V=0;V<Q;V+=1)M(V),G.d.dataProps[V].p.setGroupProperty(Z);function ie(ae){return ae==="Color"||ae==="color"?ie.color:ae==="Opacity"||ae==="opacity"?ie.opacity:ae==="Stroke Width"||ae==="stroke width"?ie.strokeWidth:null}return Object.defineProperties(ie,{color:{get:ExpressionPropertyInterface(G.c)},opacity:{get:ExpressionPropertyInterface(G.o)},strokeWidth:{get:ExpressionPropertyInterface(G.w)},dash:{get:function(){return ee}},_name:{value:H.nm},mn:{value:H.mn}}),G.c.setGroupProperty(PropertyInterface("Color",j)),G.o.setGroupProperty(PropertyInterface("Opacity",j)),G.w.setGroupProperty(PropertyInterface("Stroke Width",j)),ie}function l(H,G,te){function j(M){return M===H.e.ix||M==="End"||M==="end"?j.end:M===H.s.ix?j.start:M===H.o.ix?j.offset:null}var Z=propertyGroupFactory(j,te);return j.propertyIndex=H.ix,G.s.setGroupProperty(PropertyInterface("Start",Z)),G.e.setGroupProperty(PropertyInterface("End",Z)),G.o.setGroupProperty(PropertyInterface("Offset",Z)),j.propertyIndex=H.ix,j.propertyGroup=te,Object.defineProperties(j,{start:{get:ExpressionPropertyInterface(G.s)},end:{get:ExpressionPropertyInterface(G.e)},offset:{get:ExpressionPropertyInterface(G.o)},_name:{value:H.nm}}),j.mn=H.mn,j}function h(H,G,te){function j(M){return H.a.ix===M||M==="Anchor Point"?j.anchorPoint:H.o.ix===M||M==="Opacity"?j.opacity:H.p.ix===M||M==="Position"?j.position:H.r.ix===M||M==="Rotation"||M==="ADBE Vector Rotation"?j.rotation:H.s.ix===M||M==="Scale"?j.scale:H.sk&&H.sk.ix===M||M==="Skew"?j.skew:H.sa&&H.sa.ix===M||M==="Skew Axis"?j.skewAxis:null}var Z=propertyGroupFactory(j,te);return G.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",Z)),G.transform.mProps.p.setGroupProperty(PropertyInterface("Position",Z)),G.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",Z)),G.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",Z)),G.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",Z)),G.transform.mProps.sk&&(G.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",Z)),G.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",Z))),G.transform.op.setGroupProperty(PropertyInterface("Opacity",Z)),Object.defineProperties(j,{opacity:{get:ExpressionPropertyInterface(G.transform.mProps.o)},position:{get:ExpressionPropertyInterface(G.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(G.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(G.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(G.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(G.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(G.transform.mProps.sa)},_name:{value:H.nm}}),j.ty="tr",j.mn=H.mn,j.propertyGroup=te,j}function d(H,G,te){function j(V){return H.p.ix===V?j.position:H.s.ix===V?j.size:null}var Z=propertyGroupFactory(j,te);j.propertyIndex=H.ix;var M=G.sh.ty==="tm"?G.sh.prop:G.sh;return M.s.setGroupProperty(PropertyInterface("Size",Z)),M.p.setGroupProperty(PropertyInterface("Position",Z)),Object.defineProperties(j,{size:{get:ExpressionPropertyInterface(M.s)},position:{get:ExpressionPropertyInterface(M.p)},_name:{value:H.nm}}),j.mn=H.mn,j}function F(H,G,te){function j(V){return H.p.ix===V?j.position:H.r.ix===V?j.rotation:H.pt.ix===V?j.points:H.or.ix===V||V==="ADBE Vector Star Outer Radius"?j.outerRadius:H.os.ix===V?j.outerRoundness:H.ir&&(H.ir.ix===V||V==="ADBE Vector Star Inner Radius")?j.innerRadius:H.is&&H.is.ix===V?j.innerRoundness:null}var Z=propertyGroupFactory(j,te),M=G.sh.ty==="tm"?G.sh.prop:G.sh;return j.propertyIndex=H.ix,M.or.setGroupProperty(PropertyInterface("Outer Radius",Z)),M.os.setGroupProperty(PropertyInterface("Outer Roundness",Z)),M.pt.setGroupProperty(PropertyInterface("Points",Z)),M.p.setGroupProperty(PropertyInterface("Position",Z)),M.r.setGroupProperty(PropertyInterface("Rotation",Z)),H.ir&&(M.ir.setGroupProperty(PropertyInterface("Inner Radius",Z)),M.is.setGroupProperty(PropertyInterface("Inner Roundness",Z))),Object.defineProperties(j,{position:{get:ExpressionPropertyInterface(M.p)},rotation:{get:ExpressionPropertyInterface(M.r)},points:{get:ExpressionPropertyInterface(M.pt)},outerRadius:{get:ExpressionPropertyInterface(M.or)},outerRoundness:{get:ExpressionPropertyInterface(M.os)},innerRadius:{get:ExpressionPropertyInterface(M.ir)},innerRoundness:{get:ExpressionPropertyInterface(M.is)},_name:{value:H.nm}}),j.mn=H.mn,j}function J(H,G,te){function j(V){return H.p.ix===V?j.position:H.r.ix===V?j.roundness:H.s.ix===V||V==="Size"||V==="ADBE Vector Rect Size"?j.size:null}var Z=propertyGroupFactory(j,te),M=G.sh.ty==="tm"?G.sh.prop:G.sh;return j.propertyIndex=H.ix,M.p.setGroupProperty(PropertyInterface("Position",Z)),M.s.setGroupProperty(PropertyInterface("Size",Z)),M.r.setGroupProperty(PropertyInterface("Rotation",Z)),Object.defineProperties(j,{position:{get:ExpressionPropertyInterface(M.p)},roundness:{get:ExpressionPropertyInterface(M.r)},size:{get:ExpressionPropertyInterface(M.s)},_name:{value:H.nm}}),j.mn=H.mn,j}function y(H,G,te){function j(V){return H.r.ix===V||V==="Round Corners 1"?j.radius:null}var Z=propertyGroupFactory(j,te),M=G;return j.propertyIndex=H.ix,M.rd.setGroupProperty(PropertyInterface("Radius",Z)),Object.defineProperties(j,{radius:{get:ExpressionPropertyInterface(M.rd)},_name:{value:H.nm}}),j.mn=H.mn,j}function q(H,G,te){function j(V){return H.c.ix===V||V==="Copies"?j.copies:H.o.ix===V||V==="Offset"?j.offset:null}var Z=propertyGroupFactory(j,te),M=G;return j.propertyIndex=H.ix,M.c.setGroupProperty(PropertyInterface("Copies",Z)),M.o.setGroupProperty(PropertyInterface("Offset",Z)),Object.defineProperties(j,{copies:{get:ExpressionPropertyInterface(M.c)},offset:{get:ExpressionPropertyInterface(M.o)},_name:{value:H.nm}}),j.mn=H.mn,j}return function(H,G,te){var j;function Z(V){if(typeof V=="number")return V=V===void 0?1:V,V===0?te:j[V-1];for(var Q=0,ee=j.length;Q<ee;){if(j[Q]._name===V)return j[Q];Q+=1}return null}function M(){return te}return Z.propertyGroup=propertyGroupFactory(Z,M),j=e(H,G,Z.propertyGroup),Z.numProperties=j.length,Z._name="Contents",Z}})(),TextExpressionInterface=(function(){return function(e){var t;function r(i){return i==="ADBE Text Document"?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var s="",n=i.getFootageData();function a(){return s="",n=i.getFootageData(),l}function l(h){if(n[h])return s=h,n=n[h],_typeof(n)==="object"?l:n;var d=h.indexOf(s);if(d!==-1){var F=parseInt(h.substr(d+s.length),10);return n=n[F],_typeof(n)==="object"?l:n}return""}return a},t=function(i){function s(n){return n==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(r){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(r),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(a,l,h){l.x&&(h.k=!0,h.x=!0,h.initiateExpression=ExpressionManager.initiateExpression,h.effectsSequence.push(h.initiateExpression(a,l,h).bind(h)))}function t(a){return a*=this.elem.globalData.frameRate,a-=this.offsetTime,a!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<a?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(a,this._cachingAtTime),this._cachingAtTime.lastFrame=a),this._cachingAtTime.value}function r(a){var l=-.01,h=this.getValueAtTime(a),d=this.getValueAtTime(a+l),F=0;if(h.length){var J;for(J=0;J<h.length;J+=1)F+=Math.pow(d[J]-h[J],2);F=Math.sqrt(F)*100}else F=0;return F}function i(a){if(this.vel!==void 0)return this.vel;var l=-.001,h=this.getValueAtTime(a),d=this.getValueAtTime(a+l),F;if(h.length){F=createTypedArray("float32",h.length);var J;for(J=0;J<h.length;J+=1)F[J]=(d[J]-h[J])/l}else F=(d-h)/l;return F}function s(){return this.pv}function n(a){this.propertyGroup=a}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:n}})();function addPropertyDecorator(){function e(y,q,H){if(!this.k||!this.keyframes)return this.pv;y=y?y.toLowerCase():"";var G=this.comp.renderedFrame,te=this.keyframes,j=te[te.length-1].t;if(G<=j)return this.pv;var Z,M;H?(q?Z=Math.abs(j-this.elem.comp.globalData.frameRate*q):Z=Math.max(0,j-this.elem.data.ip),M=j-Z):((!q||q>te.length-1)&&(q=te.length-1),M=te[te.length-1-q].t,Z=j-M);var V,Q,ee;if(y==="pingpong"){var ie=Math.floor((G-M)/Z);if(ie%2!==0)return this.getValueAtTime((Z-(G-M)%Z+M)/this.comp.globalData.frameRate,0)}else if(y==="offset"){var ae=this.getValueAtTime(M/this.comp.globalData.frameRate,0),le=this.getValueAtTime(j/this.comp.globalData.frameRate,0),ye=this.getValueAtTime(((G-M)%Z+M)/this.comp.globalData.frameRate,0),ue=Math.floor((G-M)/Z);if(this.pv.length){for(ee=new Array(ae.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=(le[V]-ae[V])*ue+ye[V];return ee}return(le-ae)*ue+ye}else if(y==="continue"){var fe=this.getValueAtTime(j/this.comp.globalData.frameRate,0),me=this.getValueAtTime((j-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ee=new Array(fe.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=fe[V]+(fe[V]-me[V])*((G-j)/this.comp.globalData.frameRate)/5e-4;return ee}return fe+(fe-me)*((G-j)/.001)}return this.getValueAtTime(((G-M)%Z+M)/this.comp.globalData.frameRate,0)}function t(y,q,H){if(!this.k)return this.pv;y=y?y.toLowerCase():"";var G=this.comp.renderedFrame,te=this.keyframes,j=te[0].t;if(G>=j)return this.pv;var Z,M;H?(q?Z=Math.abs(this.elem.comp.globalData.frameRate*q):Z=Math.max(0,this.elem.data.op-j),M=j+Z):((!q||q>te.length-1)&&(q=te.length-1),M=te[q].t,Z=M-j);var V,Q,ee;if(y==="pingpong"){var ie=Math.floor((j-G)/Z);if(ie%2===0)return this.getValueAtTime(((j-G)%Z+j)/this.comp.globalData.frameRate,0)}else if(y==="offset"){var ae=this.getValueAtTime(j/this.comp.globalData.frameRate,0),le=this.getValueAtTime(M/this.comp.globalData.frameRate,0),ye=this.getValueAtTime((Z-(j-G)%Z+j)/this.comp.globalData.frameRate,0),ue=Math.floor((j-G)/Z)+1;if(this.pv.length){for(ee=new Array(ae.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=ye[V]-(le[V]-ae[V])*ue;return ee}return ye-(le-ae)*ue}else if(y==="continue"){var fe=this.getValueAtTime(j/this.comp.globalData.frameRate,0),me=this.getValueAtTime((j+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ee=new Array(fe.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=fe[V]+(fe[V]-me[V])*(j-G)/.001;return ee}return fe+(fe-me)*(j-G)/.001}return this.getValueAtTime((Z-((j-G)%Z+j))/this.comp.globalData.frameRate,0)}function r(y,q){if(!this.k)return this.pv;if(y=(y||.4)*.5,q=Math.floor(q||5),q<=1)return this.pv;var H=this.comp.renderedFrame/this.comp.globalData.frameRate,G=H-y,te=H+y,j=q>1?(te-G)/(q-1):1,Z=0,M=0,V;this.pv.length?V=createTypedArray("float32",this.pv.length):V=0;for(var Q;Z<q;){if(Q=this.getValueAtTime(G+Z*j),this.pv.length)for(M=0;M<this.pv.length;M+=1)V[M]+=Q[M];else V+=Q;Z+=1}if(this.pv.length)for(M=0;M<this.pv.length;M+=1)V[M]/=q;else V/=q;return V}function i(y){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var q=this._transformCachingAtTime.v;if(q.cloneFromProps(this.pre.props),this.appliedTransformations<1){var H=this.a.getValueAtTime(y);q.translate(-H[0]*this.a.mult,-H[1]*this.a.mult,H[2]*this.a.mult)}if(this.appliedTransformations<2){var G=this.s.getValueAtTime(y);q.scale(G[0]*this.s.mult,G[1]*this.s.mult,G[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var te=this.sk.getValueAtTime(y),j=this.sa.getValueAtTime(y);q.skewFromAxis(-te*this.sk.mult,j*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var Z=this.r.getValueAtTime(y);q.rotate(-Z*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var M=this.rz.getValueAtTime(y),V=this.ry.getValueAtTime(y),Q=this.rx.getValueAtTime(y),ee=this.or.getValueAtTime(y);q.rotateZ(-M*this.rz.mult).rotateY(V*this.ry.mult).rotateX(Q*this.rx.mult).rotateZ(-ee[2]*this.or.mult).rotateY(ee[1]*this.or.mult).rotateX(ee[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ie=this.px.getValueAtTime(y),ae=this.py.getValueAtTime(y);if(this.data.p.z){var le=this.pz.getValueAtTime(y);q.translate(ie*this.px.mult,ae*this.py.mult,-le*this.pz.mult)}else q.translate(ie*this.px.mult,ae*this.py.mult,0)}else{var ye=this.p.getValueAtTime(y);q.translate(ye[0]*this.p.mult,ye[1]*this.p.mult,-ye[2]*this.p.mult)}return q}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(y,q,H){var G=n(y,q,H);return G.dynamicProperties.length?G.getValueAtTime=i.bind(G):G.getValueAtTime=s.bind(G),G.setGroupProperty=expressionHelpers.setGroupProperty,G};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(y,q,H,G,te){var j=a(y,q,H,G,te);j.kf?j.getValueAtTime=expressionHelpers.getValueAtTime.bind(j):j.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j.loopOut=e,j.loopIn=t,j.smooth=r,j.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(j),j.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(j),j.numKeys=q.a===1?q.k.length:0,j.propertyIndex=q.ix;var Z=0;return H!==0&&(Z=createTypedArray("float32",q.a===1?q.k[0].s.length:q.k.length)),j._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:Z},expressionHelpers.searchExpressions(y,q,j),j.k&&te.addDynamicProperty(j),j};function l(y){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),y*=this.elem.globalData.frameRate,y-=this.offsetTime,y!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<y?this._caching.lastIndex:0,this._cachingAtTime.lastTime=y,this.interpolateShape(y,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var h=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function F(){}F.prototype={vertices:function(q,H){this.k&&this.getValue();var G=this.v;H!==void 0&&(G=this.getValueAtTime(H,0));var te,j=G._length,Z=G[q],M=G.v,V=createSizedArray(j);for(te=0;te<j;te+=1)q==="i"||q==="o"?V[te]=[Z[te][0]-M[te][0],Z[te][1]-M[te][1]]:V[te]=[Z[te][0],Z[te][1]];return V},points:function(q){return this.vertices("v",q)},inTangents:function(q){return this.vertices("i",q)},outTangents:function(q){return this.vertices("o",q)},isClosed:function(){return this.v.c},pointOnPath:function(q,H){var G=this.v;H!==void 0&&(G=this.getValueAtTime(H,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(G));for(var te=this._segmentsLength,j=te.lengths,Z=te.totalLength*q,M=0,V=j.length,Q=0,ee;M<V;){if(Q+j[M].addedLength>Z){var ie=M,ae=G.c&&M===V-1?0:M+1,le=(Z-Q)/j[M].addedLength;ee=bez.getPointInSegment(G.v[ie],G.v[ae],G.o[ie],G.i[ae],le,j[M]);break}else Q+=j[M].addedLength;M+=1}return ee||(ee=G.c?[G.v[0][0],G.v[0][1]]:[G.v[G._length-1][0],G.v[G._length-1][1]]),ee},vectorOnPath:function(q,H,G){q==1?q=this.v.c:q==0&&(q=.999);var te=this.pointOnPath(q,H),j=this.pointOnPath(q+.001,H),Z=j[0]-te[0],M=j[1]-te[1],V=Math.sqrt(Math.pow(Z,2)+Math.pow(M,2));if(V===0)return[0,0];var Q=G==="tangent"?[Z/V,M/V]:[-M/V,Z/V];return Q},tangentOnPath:function(q,H){return this.vectorOnPath(q,H,"tangent")},normalOnPath:function(q,H){return this.vectorOnPath(q,H,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([F],h),extendPrototype([F],d),d.prototype.getValueAtTime=l,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var J=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(y,q,H,G,te){var j=J(y,q,H,G,te);return j.propertyIndex=q.ix,j.lock=!1,H===3?expressionHelpers.searchExpressions(y,q.pt,j):H===4&&expressionHelpers.searchExpressions(y,q.ks,j),j.k&&y.addDynamicProperty(j),j}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var i=this.calculateExpression(r);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var s,n;for(n=0;n<r.length;n+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[n]),i.appendChild(s),i.appendChild(s);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,i,s){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",i+"_tint_1"),e.appendChild(n),n=createNS("feColorMatrix"),n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(r),this.elem.globalData.defs.appendChild(n);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+a+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=n,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,i,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var n;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,h=s.getTotalLength();n="0 0 0 "+h*a+" ";var d=h*(l-a),F=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,J=Math.floor(d/F),y;for(y=0;y<J;y+=1)n+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+h*10+" 0 0"}else n="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var q=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(q[0]*255)+","+bmFloor(q[1]*255)+","+bmFloor(q[2]*255)+")")}};function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var l=createNS("feFuncG");l.setAttribute("type","table"),n.appendChild(l),this.feFuncG=l;var h=createNS("feFuncB");h.setAttribute("type","table"),n.appendChild(h),this.feFuncB=h,e.appendChild(n)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+t[0],n=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var s=this.filterManager.effectElements,n=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(n=createNS("feComponentTransfer"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,s){for(var n=0,a=256,l,h=Math.min(e,t),d=Math.max(e,t),F=Array.call(null,{length:a}),J,y=0,q=s-i,H=t-e;n<=256;)l=n/256,l<=h?J=H<0?s:i:l>=d?J=H<0?i:s:J=i+q*Math.pow((l-e)/H,1/r),F[y]=J,y+=1,n+=256/(a-1);return F.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,i,s){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",i+"_drop_shadow_1"),h.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=h,e.appendChild(h);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var F=createNS("feComposite");F.setAttribute("in",i+"_drop_shadow_3"),F.setAttribute("in2",i+"_drop_shadow_2"),F.setAttribute("operator","in"),F.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(F);var J=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(J)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),n=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i=r.children,s=0,n=i.length;s<n&&i[s]!==e.layerElement;)s+=1;var a;s<=n-2&&(a=i[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),a?r.insertBefore(l,a):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),s.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:r,n=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+n);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,n=t[3].p.v,a=s?n:t[4].p.v,l=t[5].p.v,h=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(a*.01,n*.01,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-l*degToRads,(h+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _iterableToArrayLimit(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,n,a,l=[],h=!0,d=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(h=(i=n.call(r)).done)&&(l.push(i.value),l.length!==t);h=!0);}catch(F){d=!0,s=F}finally{try{if(!h&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw s}}return l}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(i){_defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function _objectWithoutProperties(e,t){if(e==null)return{};var r,i,s=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(t,r){var i=t.animationData,s=t.loop,n=t.autoplay,a=t.initialSegment,l=t.onComplete,h=t.onLoopComplete,d=t.onEnterFrame,F=t.onSegmentStart,J=t.onConfigReady,y=t.onDataReady,q=t.onDataFailed,H=t.onLoadedImages,G=t.onDOMLoaded,te=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var j=_objectWithoutProperties(t,_excluded$1),Z=React.useState(!1),M=_slicedToArray(Z,2),V=M[0],Q=M[1],ee=React.useRef(),ie=React.useRef(null),ae=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.play()},le=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.stop()},ye=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.pause()},ue=function(ce){var pe;(pe=ee.current)===null||pe===void 0||pe.setSpeed(ce)},fe=function(ce,pe){var de;(de=ee.current)===null||de===void 0||de.goToAndPlay(ce,pe)},me=function(ce,pe){var de;(de=ee.current)===null||de===void 0||de.goToAndStop(ce,pe)},ve=function(ce){var pe;(pe=ee.current)===null||pe===void 0||pe.setDirection(ce)},he=function(ce,pe){var de;(de=ee.current)===null||de===void 0||de.playSegments(ce,pe)},re=function(ce){var pe;(pe=ee.current)===null||pe===void 0||pe.setSubframe(ce)},se=function(ce){var pe;return(pe=ee.current)===null||pe===void 0?void 0:pe.getDuration(ce)},W=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.destroy(),ee.current=void 0},K=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe;if(ie.current){(pe=ee.current)===null||pe===void 0||pe.destroy();var de=_objectSpread2(_objectSpread2(_objectSpread2({},t),ce),{},{container:ie.current});return ee.current=lottie.loadAnimation(de),Q(!!ee.current),function(){var xe;(xe=ee.current)===null||xe===void 0||xe.destroy(),ee.current=void 0}}};React.useEffect(function(){var ne=K();return function(){return ne?.()}},[i,s]),React.useEffect(function(){ee.current&&(ee.current.autoplay=!!n)},[n]),React.useEffect(function(){if(ee.current){if(!a){ee.current.resetSegments(!0);return}!Array.isArray(a)||!a.length||((ee.current.currentRawFrame<a[0]||ee.current.currentRawFrame>a[1])&&(ee.current.currentRawFrame=a[0]),ee.current.setSegment(a[0],a[1]))}},[a]),React.useEffect(function(){var ne=[{name:"complete",handler:l},{name:"loopComplete",handler:h},{name:"enterFrame",handler:d},{name:"segmentStart",handler:F},{name:"config_ready",handler:J},{name:"data_ready",handler:y},{name:"data_failed",handler:q},{name:"loaded_images",handler:H},{name:"DOMLoaded",handler:G},{name:"destroy",handler:te}],ce=ne.filter(function(de){return de.handler!=null});if(ce.length){var pe=ce.map(function(de){var xe;return(xe=ee.current)===null||xe===void 0||xe.addEventListener(de.name,de.handler),function(){var be;(be=ee.current)===null||be===void 0||be.removeEventListener(de.name,de.handler)}});return function(){pe.forEach(function(de){return de()})}}},[l,h,d,F,J,y,q,H,G,te]);var oe=React.createElement("div",_objectSpread2({style:r,ref:ie},j));return{View:oe,play:ae,stop:le,pause:ye,setSpeed:ue,goToAndStop:me,goToAndPlay:fe,setDirection:ve,playSegments:he,setSubframe:re,getDuration:se,destroy:W,animationContainerRef:ie,animationLoaded:V,animationItem:ee.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),r=t.top,i=t.height,s=window.innerHeight-r,n=window.innerHeight+i;return s/n}function getContainerCursorPosition(e,t,r){var i=e.getBoundingClientRect(),s=i.top,n=i.left,a=i.width,l=i.height,h=(t-n)/a,d=(r-s)/l;return{x:h,y:d}}var useInitInteractivity=function e(t){var r=t.wrapperRef,i=t.animationItem,s=t.mode,n=t.actions;React.useEffect(function(){var a=r.current;if(!(!a||!i||!n.length)){i.stop();var l=function(){var F=null,J=function(){var q=getContainerVisibility(a),H=n.find(function(te){var j=te.visibility;return j&&q>=j[0]&&q<=j[1]});if(H){if(H.type==="seek"&&H.visibility&&H.frames.length===2){var G=H.frames[0]+Math.ceil((q-H.visibility[0])/(H.visibility[1]-H.visibility[0])*H.frames[1]);i.goToAndStop(G-i.firstFrame-1,!0)}H.type==="loop"&&(F===null||F!==H.frames||i.isPaused)&&(i.playSegments(H.frames,!0),F=H.frames),H.type==="play"&&i.isPaused&&(i.resetSegments(!0),i.play()),H.type==="stop"&&i.goToAndStop(H.frames[0]-i.firstFrame-1,!0)}};return document.addEventListener("scroll",J),function(){document.removeEventListener("scroll",J)}},h=function(){var F=function(H,G){var te=H,j=G;if(te!==-1&&j!==-1){var Z=getContainerCursorPosition(a,te,j);te=Z.x,j=Z.y}var M=n.find(function(ee){var ie=ee.position;return ie&&Array.isArray(ie.x)&&Array.isArray(ie.y)?te>=ie.x[0]&&te<=ie.x[1]&&j>=ie.y[0]&&j<=ie.y[1]:ie&&!Number.isNaN(ie.x)&&!Number.isNaN(ie.y)?te===ie.x&&j===ie.y:!1});if(M){if(M.type==="seek"&&M.position&&Array.isArray(M.position.x)&&Array.isArray(M.position.y)&&M.frames.length===2){var V=(te-M.position.x[0])/(M.position.x[1]-M.position.x[0]),Q=(j-M.position.y[0])/(M.position.y[1]-M.position.y[0]);i.playSegments(M.frames,!0),i.goToAndStop(Math.ceil((V+Q)/2*(M.frames[1]-M.frames[0])),!0)}M.type==="loop"&&i.playSegments(M.frames,!0),M.type==="play"&&(i.isPaused&&i.resetSegments(!1),i.playSegments(M.frames)),M.type==="stop"&&i.goToAndStop(M.frames[0],!0)}},J=function(H){F(H.clientX,H.clientY)},y=function(){F(-1,-1)};return a.addEventListener("mousemove",J),a.addEventListener("mouseout",y),function(){a.removeEventListener("mousemove",J),a.removeEventListener("mouseout",y)}};switch(s){case"scroll":return l();case"cursor":return h()}}},[s,i])},useLottieInteractivity=function e(t){var r=t.actions,i=t.mode,s=t.lottieObj,n=s.animationItem,a=s.View,l=s.animationContainerRef;return useInitInteractivity({actions:r,animationItem:n,mode:i,wrapperRef:l}),a},_excluded=["style","interactivity"],Lottie=function e(t){var r,i,s,n=t.style,a=t.interactivity,l=_objectWithoutProperties(t,_excluded),h=useLottie(l,n),d=h.View,F=h.play,J=h.stop,y=h.pause,q=h.setSpeed,H=h.goToAndStop,G=h.goToAndPlay,te=h.setDirection,j=h.playSegments,Z=h.setSubframe,M=h.getDuration,V=h.destroy,Q=h.animationContainerRef,ee=h.animationLoaded,ie=h.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:F,stop:J,pause:y,setSpeed:q,goToAndPlay:G,goToAndStop:H,setDirection:te,playSegments:j,setSubframe:Z,getDuration:M,destroy:V,animationContainerRef:Q,animationLoaded:ee,animationItem:ie})},[(r=t.lottieRef)===null||r===void 0?void 0:r.current]),useLottieInteractivity({lottieObj:{View:d,play:F,stop:J,pause:y,setSpeed:q,goToAndStop:H,goToAndPlay:G,setDirection:te,playSegments:j,setSubframe:Z,getDuration:M,destroy:V,animationContainerRef:Q,animationLoaded:ee,animationItem:ie},actions:(i=a?.actions)!==null&&i!==void 0?i:[],mode:(s=a?.mode)!==null&&s!==void 0?s:"scroll"})};const NotFoundState=({lottieJson:e,title:t,description:r,actionLabel:i,onAction:s,fallbackIcon:n})=>jsxRuntime.jsxs("div",{className:"flex h-[60vh] w-full flex-col items-center justify-center text-center",children:[e?jsxRuntime.jsx("div",{className:"mt-20 mb-4 w-1/2",children:jsxRuntime.jsx(Lottie,{animationData:e,loop:!0})}):n&&jsxRuntime.jsx("div",{className:"mb-4 text-gray-400",children:n}),jsxRuntime.jsx("h2",{className:"mb-2 text-lg font-semibold text-gray-700",children:t}),r&&jsxRuntime.jsx("p",{className:"mb-6 max-w-md text-sm text-gray-500",children:r}),i&&s&&jsxRuntime.jsx(Button,{onClick:s,children:i})]}),Select=SelectPrimitive__namespace.Root,SelectValue=SelectPrimitive__namespace.Value,SelectTrigger=React__namespace.forwardRef(({className:e,hasError:t,...r},i)=>jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger,{ref:i,className:cn("oniratec-select__trigger",t&&"oniratec-select__trigger--error",e),...r,children:[jsxRuntime.jsx(SelectPrimitive__namespace.Value,{placeholder:"Seleccionar"}),jsxRuntime.jsx(SelectPrimitive__namespace.Icon,{children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"oniratec-select__chevron"})})]}));SelectTrigger.displayName="SelectTrigger";const SelectContent=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsx(SelectPrimitive__namespace.Portal,{children:jsxRuntime.jsx(SelectPrimitive__namespace.Content,{ref:i,className:cn("oniratec-select",e),...r,children:jsxRuntime.jsx(SelectPrimitive__namespace.Viewport,{className:"oniratec-select__viewport",children:t})})}));SelectContent.displayName="SelectContent";const SelectItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(SelectPrimitive__namespace.Item,{ref:i,className:cn("oniratec-select__item",e),...r,children:[jsxRuntime.jsx(SelectPrimitive__namespace.ItemText,{children:t}),jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator,{className:"oniratec-select__indicator",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})]}));SelectItem.displayName="SelectItem";function Skeleton({className:e}){return jsxRuntime.jsx("div",{className:cn("animate-pulse rounded-md bg-gray-200 dark:bg-gray-200",e)})}const Toggle=({checked:e,defaultChecked:t=!1,onChange:r,size:i="md",disabled:s=!1,label:n,className:a,ariaLabel:l})=>{const h=e!==void 0,[d,F]=React.useState(t),J=h?e:d,y=q=>{h||F(q),r?.(q)};return jsxRuntime.jsxs("label",{className:cn("oniratec-toggle",a),"data-size":i,"data-checked":J?"true":"false","data-disabled":s?"true":void 0,children:[jsxRuntime.jsx("input",{type:"checkbox",className:"oniratec-toggle__input",checked:J,disabled:s,"aria-label":l,onChange:q=>y(q.target.checked)}),jsxRuntime.jsx("span",{className:"oniratec-toggle__track",children:jsxRuntime.jsx("span",{className:"oniratec-toggle__thumb"})}),n&&jsxRuntime.jsx("span",{className:"oniratec-toggle__label",children:n})]})},TooltipProvider=TooltipPrimitive__namespace.Provider,Tooltip=TooltipPrimitive__namespace.Root,TooltipTrigger=TooltipPrimitive__namespace.Trigger,TooltipContent=React.forwardRef(({className:e,sideOffset:t=8,children:r,...i},s)=>jsxRuntime.jsx(TooltipPrimitive__namespace.Portal,{children:jsxRuntime.jsxs(TooltipPrimitive__namespace.Content,{ref:s,sideOffset:t,className:cn("oniratec-tooltip",e),...i,children:[r,jsxRuntime.jsx(TooltipPrimitive__namespace.Arrow,{className:"oniratec-tooltip__arrow"})]})}));TooltipContent.displayName="TooltipContent";function DataTable({columns:e,data:t}){return jsxRuntime.jsx("div",{className:"overflow-hidden rounded-xl border border-slate-200 bg-white",children:jsxRuntime.jsxs("table",{className:"w-full border-collapse",children:[jsxRuntime.jsx("thead",{className:"bg-slate-50",children:jsxRuntime.jsx("tr",{className:"border-b border-slate-200",children:e.map(r=>jsxRuntime.jsx("th",{className:cn("px-4 py-3 text-left text-xs font-semibold tracking-wide text-slate-500 uppercase",r.className),children:r.header},r.key))})}),jsxRuntime.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((r,i)=>jsxRuntime.jsx("tr",{className:"transition-colors hover:bg-slate-50",children:e.map(s=>jsxRuntime.jsx("td",{className:cn("px-4 py-3 text-sm text-slate-700",s.className),children:s.render(r)},s.key))},i))})]})})}const DEFAULT_PAGE_SIZES=[5,10,25,50],PageSizeSelector=({value:e,onChange:t,options:r=DEFAULT_PAGE_SIZES})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:"Mostrar"}),jsxRuntime.jsxs(Select,{value:e.toString(),onValueChange:i=>{t(parseInt(i))},children:[jsxRuntime.jsx(SelectTrigger,{children:jsxRuntime.jsx(SelectValue,{})}),jsxRuntime.jsx(SelectContent,{children:(r??[]).map(i=>jsxRuntime.jsx(SelectItem,{value:i.toString(),children:String(i)},i))})]}),jsxRuntime.jsx("span",{children:"por página"})]}),Pagination=({page:e,pageSize:t,total:r,onPageChange:i,onPageSizeChange:s})=>{const n=Math.ceil(r/t);if(n<=1&&r<=t)return null;const a=e+1;return jsxRuntime.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-4 text-sm text-slate-600",children:[jsxRuntime.jsxs("span",{children:["Página ",a," de ",n]}),jsxRuntime.jsx(PageSizeSelector,{value:t,onChange:s}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("button",{disabled:e===0,onClick:()=>i(e-1),className:"rounded-md border px-3 py-1 disabled:opacity-50",children:"Anterior"}),jsxRuntime.jsx("button",{disabled:e+1>=n,onClick:()=>i(e+1),className:"rounded-md border px-3 py-1 disabled:opacity-50",children:"Siguiente"})]})]})},brand={light:"#148103",dark:"#0f6a02"},fill={primary:{light:"#fefefe",dark:"#0f172a"},secondary:{light:"#0f172a",dark:"#e0e0e0"},disabled:{light:"#e0e0e0",dark:"#394258"}},label={primary:{light:"#0f172a",dark:"#fefefe"},secondary:{light:"#384258",dark:"#f2f2f2"},disabled:{light:"#bdbdbd",dark:"#bdbdbd"}},border={primary:{light:"#e0e0e0",dark:"#394258"},secondary:{light:"#0f172a",dark:"#e0e0e0"},disabled:{light:"#ececec",dark:"#394258"}},functional={focus:{light:"#1982fc",dark:"#1982fc"},error:{light:"#d13a3a",dark:"#d13a3a"}},shadows={card:{sm:"0px 0.5px 12px -5px rgba(30,41,59,0.20)",md:"0px 1px 25px -10px rgba(30,41,59,0.30)",lg:"0px 2px 51px -19px rgba(30,41,59,0.40)",xl:"0px 20px 25px -5px rgba(0,0,0,0.10), 0px 10px 10px -5px rgba(0,0,0,0.04)"}};function createTheme(e){return{mode:e,colors:{brand:brand[e],fill:{primary:fill.primary[e],secondary:fill.secondary[e],disabled:fill.disabled[e]},label:{primary:label.primary[e],secondary:label.secondary[e],disabled:label.disabled[e]},border:{primary:border.primary[e],secondary:border.secondary[e],disabled:border.disabled[e]},focus:functional.focus[e],error:functional.error[e]},shadows:{card:{sm:shadows.card.sm,md:shadows.card.md,lg:shadows.card.lg,xl:shadows.card.xl}}}}const lightTheme=createTheme("light"),darkTheme=createTheme("dark"),defaultTheme=lightTheme;function $constructor(e,t,r){function i(l,h){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:h,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,h);const d=a.prototype,F=Object.keys(d);for(let J=0;J<F.length;J++){const y=F[J];y in l||(l[y]=d[y].bind(l))}}const s=r?.Parent??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var h;const d=r?.Parent?new n:this;i(d,l),(h=d._zod).deferred??(h.deferred=[]);for(const F of d._zod.deferred)F();return d}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class $ZodAsyncError extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class $ZodEncodeError extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const globalConfig={};function config(e){return globalConfig}function getEnumValues(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>t.indexOf(+i)===-1).map(([i,s])=>s)}function jsonStringifyReplacer(e,t){return typeof t=="bigint"?t.toString():t}function cached(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function nullish(e){return e==null}function cleanRegex(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const EVALUATING=Symbol("evaluating");function defineLazy(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==EVALUATING)return i===void 0&&(i=EVALUATING,i=r()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function assignProp(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function mergeDefs(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function esc(e){return JSON.stringify(e)}const captureStackTrace="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function isObject$1(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const allowsEval=cached(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function isPlainObject$1(e){if(isObject$1(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(isObject$1(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function shallowClone(e){return isPlainObject$1(e)?{...e}:Array.isArray(e)?[...e]:e}const propertyKeyTypes=new Set(["string","number","symbol"]);function escapeRegex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function clone(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function normalizeParams(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function optionalKeys(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function pick(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const n=mergeDefs(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return assignProp(this,"shape",a),a},checks:[]});return clone(e,n)}function omit(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const n=mergeDefs(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return assignProp(this,"shape",a),a},checks:[]});return clone(e,n)}function extend(e,t){if(!isPlainObject$1(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const n=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(n,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=mergeDefs(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return assignProp(this,"shape",n),n}});return clone(e,s)}function safeExtend(e,t){if(!isPlainObject$1(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=mergeDefs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return assignProp(this,"shape",i),i}});return clone(e,r)}function merge(e,t){const r=mergeDefs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return assignProp(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return clone(e,r)}function partial(e,t,r){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=mergeDefs(t._zod.def,{get shape(){const l=t._zod.def.shape,h={...l};if(r)for(const d in r){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(h[d]=e?new e({type:"optional",innerType:l[d]}):l[d])}else for(const d in l)h[d]=e?new e({type:"optional",innerType:l[d]}):l[d];return assignProp(this,"shape",h),h},checks:[]});return clone(t,a)}function required(e,t,r){const i=mergeDefs(t._zod.def,{get shape(){const s=t._zod.def.shape,n={...s};if(r)for(const a in r){if(!(a in n))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(n[a]=new e({type:"nonoptional",innerType:s[a]}))}else for(const a in s)n[a]=new e({type:"nonoptional",innerType:s[a]});return assignProp(this,"shape",n),n}});return clone(t,i)}function aborted(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function prefixIssues(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function unwrapMessage(e){return typeof e=="string"?e:e?.message}function finalizeIssue(e,t,r){const i={...e,path:e.path??[]};if(!e.message){const s=unwrapMessage(e.inst?._zod.def?.error?.(e))??unwrapMessage(t?.error?.(e))??unwrapMessage(r.customError?.(e))??unwrapMessage(r.localeError?.(e))??"Invalid input";i.message=s}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function getLengthableOrigin(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function issue(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}const initializer$1=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,jsonStringifyReplacer,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$ZodError=$constructor("$ZodError",initializer$1),$ZodRealError=$constructor("$ZodError",initializer$1,{Parent:Error});function flattenError(e,t=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:r}}function formatError(e,t=r=>r.message){const r={_errors:[]},i=s=>{for(const n of s.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(a=>i({issues:a}));else if(n.code==="invalid_key")i({issues:n.issues});else if(n.code==="invalid_element")i({issues:n.issues});else if(n.path.length===0)r._errors.push(t(n));else{let a=r,l=0;for(;l<n.path.length;){const h=n.path[l];l===n.path.length-1?(a[h]=a[h]||{_errors:[]},a[h]._errors.push(t(n))):a[h]=a[h]||{_errors:[]},a=a[h],l++}}};return i(e),r}const _parse=e=>(t,r,i,s)=>{const n=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new $ZodAsyncError;if(a.issues.length){const l=new(s?.Err??e)(a.issues.map(h=>finalizeIssue(h,n,config())));throw captureStackTrace(l,s?.callee),l}return a.value},_parseAsync=e=>async(t,r,i,s)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new(s?.Err??e)(a.issues.map(h=>finalizeIssue(h,n,config())));throw captureStackTrace(l,s?.callee),l}return a.value},_safeParse=e=>(t,r,i)=>{const s=i?{...i,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},s);if(n instanceof Promise)throw new $ZodAsyncError;return n.issues.length?{success:!1,error:new(e??$ZodError)(n.issues.map(a=>finalizeIssue(a,s,config())))}:{success:!0,data:n.value}},safeParse$1=_safeParse($ZodRealError),_safeParseAsync=e=>async(t,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let n=t._zod.run({value:r,issues:[]},s);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(a=>finalizeIssue(a,s,config())))}:{success:!0,data:n.value}},safeParseAsync$1=_safeParseAsync($ZodRealError),_encode=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _parse(e)(t,r,s)},_decode=e=>(t,r,i)=>_parse(e)(t,r,i),_encodeAsync=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _parseAsync(e)(t,r,s)},_decodeAsync=e=>async(t,r,i)=>_parseAsync(e)(t,r,i),_safeEncode=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _safeParse(e)(t,r,s)},_safeDecode=e=>(t,r,i)=>_safeParse(e)(t,r,i),_safeEncodeAsync=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _safeParseAsync(e)(t,r,s)},_safeDecodeAsync=e=>async(t,r,i)=>_safeParseAsync(e)(t,r,i),$ZodCheck=$constructor("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),$ZodCheckMaxLength=$constructor("$ZodCheckMaxLength",(e,t)=>{var r;$ZodCheck.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!nullish(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=t.maximum)return;const a=getLengthableOrigin(s);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),$ZodCheckMinLength=$constructor("$ZodCheckMinLength",(e,t)=>{var r;$ZodCheck.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!nullish(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const a=getLengthableOrigin(s);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),$ZodCheckLengthEquals=$constructor("$ZodCheckLengthEquals",(e,t)=>{var r;$ZodCheck.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!nullish(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=i=>{const s=i.value,n=s.length;if(n===t.length)return;const a=getLengthableOrigin(s),l=n>t.length;i.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),$ZodCheckOverwrite=$constructor("$ZodCheckOverwrite",(e,t)=>{$ZodCheck.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Doc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
4
|
+
`).filter(a=>a),s=Math.min(...i.map(a=>a.length-a.trimStart().length)),n=i.map(a=>a.slice(s)).map(a=>" ".repeat(this.indent*2)+a);for(const a of n)this.content.push(a)}compile(){const t=Function,r=this?.args,s=[...(this?.content??[""]).map(n=>` ${n}`)];return new t(...r,s.join(`
|
|
5
|
+
`))}}const version={major:4,minor:3,patch:5},$ZodType=$constructor("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=version;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const s of i)for(const n of s._zod.onattach)n(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,l,h)=>{let d=aborted(a),F;for(const J of l){if(J._zod.def.when){if(!J._zod.def.when(a))continue}else if(d)continue;const y=a.issues.length,q=J._zod.check(a);if(q instanceof Promise&&h?.async===!1)throw new $ZodAsyncError;if(F||q instanceof Promise)F=(F??Promise.resolve()).then(async()=>{await q,a.issues.length!==y&&(d||(d=aborted(a,y)))});else{if(a.issues.length===y)continue;d||(d=aborted(a,y))}}return F?F.then(()=>a):a},n=(a,l,h)=>{if(aborted(a))return a.aborted=!0,a;const d=s(l,i,h);if(d instanceof Promise){if(h.async===!1)throw new $ZodAsyncError;return d.then(F=>e._zod.parse(F,h))}return e._zod.parse(d,h)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){const d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(F=>n(F,a,l)):n(d,a,l)}const h=e._zod.parse(a,l);if(h instanceof Promise){if(l.async===!1)throw new $ZodAsyncError;return h.then(d=>s(d,i,l))}return s(h,i,l)}}defineLazy(e,"~standard",()=>({validate:s=>{try{const n=safeParse$1(e,s);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return safeParseAsync$1(e,s).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),$ZodAny=$constructor("$ZodAny",(e,t)=>{$ZodType.init(e,t),e._zod.parse=r=>r}),$ZodUnknown=$constructor("$ZodUnknown",(e,t)=>{$ZodType.init(e,t),e._zod.parse=r=>r}),$ZodNever=$constructor("$ZodNever",(e,t)=>{$ZodType.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function handleArrayResult(e,t,r){e.issues.length&&t.issues.push(...prefixIssues(r,e.issues)),t.value[r]=e.value}const $ZodArray=$constructor("$ZodArray",(e,t)=>{$ZodType.init(e,t),e._zod.parse=(r,i)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const n=[];for(let a=0;a<s.length;a++){const l=s[a],h=t.element._zod.run({value:l,issues:[]},i);h instanceof Promise?n.push(h.then(d=>handleArrayResult(d,r,a))):handleArrayResult(h,r,a)}return n.length?Promise.all(n).then(()=>r):r}});function handlePropertyResult(e,t,r,i,s){if(e.issues.length){if(s&&!(r in i))return;t.issues.push(...prefixIssues(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function normalizeDef(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=optionalKeys(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function handleCatchall(e,t,r,i,s,n){const a=[],l=s.keySet,h=s.catchall._zod,d=h.def.type,F=h.optout==="optional";for(const J in t){if(l.has(J))continue;if(d==="never"){a.push(J);continue}const y=h.run({value:t[J],issues:[]},i);y instanceof Promise?e.push(y.then(q=>handlePropertyResult(q,r,J,t,F))):handlePropertyResult(y,r,J,t,F)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:n}),e.length?Promise.all(e).then(()=>r):r}const $ZodObject=$constructor("$ZodObject",(e,t)=>{if($ZodType.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...l};return Object.defineProperty(t,"shape",{value:h}),h}})}const i=cached(()=>normalizeDef(t));defineLazy(e._zod,"propValues",()=>{const l=t.shape,h={};for(const d in l){const F=l[d]._zod;if(F.values){h[d]??(h[d]=new Set);for(const J of F.values)h[d].add(J)}}return h});const s=isObject$1,n=t.catchall;let a;e._zod.parse=(l,h)=>{a??(a=i.value);const d=l.value;if(!s(d))return l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l;l.value={};const F=[],J=a.shape;for(const y of a.keys){const q=J[y],H=q._zod.optout==="optional",G=q._zod.run({value:d[y],issues:[]},h);G instanceof Promise?F.push(G.then(te=>handlePropertyResult(te,l,y,d,H))):handlePropertyResult(G,l,y,d,H)}return n?handleCatchall(F,d,l,h,i.value,e):F.length?Promise.all(F).then(()=>l):l}}),$ZodObjectJIT=$constructor("$ZodObjectJIT",(e,t)=>{$ZodObject.init(e,t);const r=e._zod.parse,i=cached(()=>normalizeDef(t)),s=y=>{const q=new Doc(["shape","payload","ctx"]),H=i.value,G=M=>{const V=esc(M);return`shape[${V}]._zod.run({ value: input[${V}], issues: [] }, ctx)`};q.write("const input = payload.value;");const te=Object.create(null);let j=0;for(const M of H.keys)te[M]=`key_${j++}`;q.write("const newResult = {};");for(const M of H.keys){const V=te[M],Q=esc(M),ie=y[M]?._zod?.optout==="optional";q.write(`const ${V} = ${G(M)};`),ie?q.write(`
|
|
6
|
+
if (${V}.issues.length) {
|
|
7
|
+
if (${Q} in input) {
|
|
8
|
+
payload.issues = payload.issues.concat(${V}.issues.map(iss => ({
|
|
9
|
+
...iss,
|
|
10
|
+
path: iss.path ? [${Q}, ...iss.path] : [${Q}]
|
|
11
|
+
})));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (${V}.value === undefined) {
|
|
16
|
+
if (${Q} in input) {
|
|
17
|
+
newResult[${Q}] = undefined;
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
newResult[${Q}] = ${V}.value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
`):q.write(`
|
|
24
|
+
if (${V}.issues.length) {
|
|
25
|
+
payload.issues = payload.issues.concat(${V}.issues.map(iss => ({
|
|
26
|
+
...iss,
|
|
27
|
+
path: iss.path ? [${Q}, ...iss.path] : [${Q}]
|
|
28
|
+
})));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (${V}.value === undefined) {
|
|
32
|
+
if (${Q} in input) {
|
|
33
|
+
newResult[${Q}] = undefined;
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
newResult[${Q}] = ${V}.value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
`)}q.write("payload.value = newResult;"),q.write("return payload;");const Z=q.compile();return(M,V)=>Z(y,M,V)};let n;const a=isObject$1,l=!globalConfig.jitless,d=l&&allowsEval.value,F=t.catchall;let J;e._zod.parse=(y,q)=>{J??(J=i.value);const H=y.value;return a(H)?l&&d&&q?.async===!1&&q.jitless!==!0?(n||(n=s(t.shape)),y=n(y,q),F?handleCatchall([],H,y,q,J,e):y):r(y,q):(y.issues.push({expected:"object",code:"invalid_type",input:H,inst:e}),y)}});function handleUnionResults(e,t,r,i){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const s=e.filter(n=>!aborted(n));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(a=>finalizeIssue(a,i,config())))}),t)}const $ZodUnion=$constructor("$ZodUnion",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),defineLazy(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),defineLazy(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),defineLazy(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${s.map(n=>cleanRegex(n.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(s,n)=>{if(r)return i(s,n);let a=!1;const l=[];for(const h of t.options){const d=h._zod.run({value:s.value,issues:[]},n);if(d instanceof Promise)l.push(d),a=!0;else{if(d.issues.length===0)return d;l.push(d)}}return a?Promise.all(l).then(h=>handleUnionResults(h,s,e,n)):handleUnionResults(l,s,e,n)}}),$ZodIntersection=$constructor("$ZodIntersection",(e,t)=>{$ZodType.init(e,t),e._zod.parse=(r,i)=>{const s=r.value,n=t.left._zod.run({value:s,issues:[]},i),a=t.right._zod.run({value:s,issues:[]},i);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([h,d])=>handleIntersectionResults(r,h,d)):handleIntersectionResults(r,n,a)}});function mergeValues(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(isPlainObject$1(e)&&isPlainObject$1(t)){const r=Object.keys(t),i=Object.keys(e).filter(n=>r.indexOf(n)!==-1),s={...e,...t};for(const n of i){const a=mergeValues(e[n],t[n]);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};s[n]=a.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const s=e[i],n=t[i],a=mergeValues(s,n);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function handleIntersectionResults(e,t,r){const i=new Map;let s;for(const l of t.issues)if(l.code==="unrecognized_keys"){s??(s=l);for(const h of l.keys)i.has(h)||i.set(h,{}),i.get(h).l=!0}else e.issues.push(l);for(const l of r.issues)if(l.code==="unrecognized_keys")for(const h of l.keys)i.has(h)||i.set(h,{}),i.get(h).r=!0;else e.issues.push(l);const n=[...i].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(n.length&&s&&e.issues.push({...s,keys:n}),aborted(e))return e;const a=mergeValues(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const $ZodEnum=$constructor("$ZodEnum",(e,t)=>{$ZodType.init(e,t);const r=getEnumValues(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(s=>propertyKeyTypes.has(typeof s)).map(s=>typeof s=="string"?escapeRegex(s):s.toString()).join("|")})$`),e._zod.parse=(s,n)=>{const a=s.value;return i.has(a)||s.issues.push({code:"invalid_value",values:r,input:a,inst:e}),s}}),$ZodTransform=$constructor("$ZodTransform",(e,t)=>{$ZodType.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new $ZodEncodeError(e.constructor.name);const s=t.transform(r.value,r);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(a=>(r.value=a,r));if(s instanceof Promise)throw new $ZodAsyncError;return r.value=s,r}});function handleOptionalResult(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const $ZodOptional=$constructor("$ZodOptional",(e,t)=>{$ZodType.init(e,t),e._zod.optin="optional",e._zod.optout="optional",defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),defineLazy(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${cleanRegex(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>handleOptionalResult(n,r.value)):handleOptionalResult(s,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),$ZodExactOptional=$constructor("$ZodExactOptional",(e,t)=>{$ZodOptional.init(e,t),defineLazy(e._zod,"values",()=>t.innerType._zod.values),defineLazy(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),$ZodNullable=$constructor("$ZodNullable",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),defineLazy(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${cleanRegex(r.source)}|null)$`):void 0}),defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),$ZodDefault=$constructor("$ZodDefault",(e,t)=>{$ZodType.init(e,t),e._zod.optin="optional",defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>handleDefaultResult(n,t)):handleDefaultResult(s,t)}});function handleDefaultResult(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const $ZodPrefault=$constructor("$ZodPrefault",(e,t)=>{$ZodType.init(e,t),e._zod.optin="optional",defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),$ZodNonOptional=$constructor("$ZodNonOptional",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>handleNonOptionalResult(n,e)):handleNonOptionalResult(s,e)}});function handleNonOptionalResult(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const $ZodCatch=$constructor("$ZodCatch",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>finalizeIssue(a,i,config()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(n=>finalizeIssue(n,i,config()))},input:r.value}),r.issues=[]),r)}}),$ZodPipe=$constructor("$ZodPipe",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"values",()=>t.in._zod.values),defineLazy(e._zod,"optin",()=>t.in._zod.optin),defineLazy(e._zod,"optout",()=>t.out._zod.optout),defineLazy(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const n=t.out._zod.run(r,i);return n instanceof Promise?n.then(a=>handlePipeResult(a,t.in,i)):handlePipeResult(n,t.in,i)}const s=t.in._zod.run(r,i);return s instanceof Promise?s.then(n=>handlePipeResult(n,t.out,i)):handlePipeResult(s,t.out,i)}});function handlePipeResult(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const $ZodReadonly=$constructor("$ZodReadonly",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"propValues",()=>t.innerType._zod.propValues),defineLazy(e._zod,"values",()=>t.innerType._zod.values),defineLazy(e._zod,"optin",()=>t.innerType?._zod?.optin),defineLazy(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(handleReadonlyResult):handleReadonlyResult(s)}});function handleReadonlyResult(e){return e.value=Object.freeze(e.value),e}const $ZodCustom=$constructor("$ZodCustom",(e,t)=>{$ZodCheck.init(e,t),$ZodType.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,s=t.fn(i);if(s instanceof Promise)return s.then(n=>handleRefineResult(n,r,i,e));handleRefineResult(s,r,i,e)}});function handleRefineResult(e,t,r,i){if(!e){const s={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),t.issues.push(issue(s))}}var _a;class $ZodRegistry{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const s={...i,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function registry(){return new $ZodRegistry}(_a=globalThis).__zod_globalRegistry??(_a.__zod_globalRegistry=registry());const globalRegistry=globalThis.__zod_globalRegistry;function _any(e){return new e({type:"any"})}function _unknown(e){return new e({type:"unknown"})}function _never(e,t){return new e({type:"never",...normalizeParams(t)})}function _maxLength(e,t){return new $ZodCheckMaxLength({check:"max_length",...normalizeParams(t),maximum:e})}function _minLength(e,t){return new $ZodCheckMinLength({check:"min_length",...normalizeParams(t),minimum:e})}function _length(e,t){return new $ZodCheckLengthEquals({check:"length_equals",...normalizeParams(t),length:e})}function _overwrite(e){return new $ZodCheckOverwrite({check:"overwrite",tx:e})}function _array(e,t,r){return new e({type:"array",element:t,...normalizeParams(r)})}function _refine(e,t,r){return new e({type:"custom",check:"custom",fn:t,...normalizeParams(r)})}function _superRefine(e){const t=_check(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(issue(i,r.value,t._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),r.issues.push(issue(s))}},e(r.value,r)));return t}function _check(e,t){const r=new $ZodCheck({check:"custom",...normalizeParams(t)});return r._zod.check=e,r}function initializeContext(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??globalRegistry,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function process(e,t,r={path:[],schemaPath:[]}){var i;const s=e._zod.def,n=t.seen.get(e);if(n)return n.count++,r.schemaPath.includes(e)&&(n.cycle=r.path),n.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);const l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{const F={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,F);else{const y=a.schema,q=t.processors[s.type];if(!q)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);q(e,t,y,F)}const J=e._zod.parent;J&&(a.ref||(a.ref=J),process(J,t,F),t.seen.get(J).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(a.schema,h),t.io==="input"&&isTransforming(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function extractDefs(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const a of e.seen.entries()){const l=e.metadataRegistry.get(a[0])?.id;if(l){const h=i.get(l);if(h&&h!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(l,a[0])}}const s=a=>{const l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const J=e.external.registry.get(a[0])?.id,y=e.external.uri??(H=>H);if(J)return{ref:y(J)};const q=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=q,{defId:q,ref:`${y("__shared")}#/${l}/${q}`}}if(a[1]===r)return{ref:"#"};const d=`#/${l}/`,F=a[1].schema.id??`__schema${e.counter++}`;return{defId:F,ref:d+F}},n=a=>{if(a[1].schema.$ref)return;const l=a[1],{ref:h,defId:d}=s(a);l.def={...l.schema},d&&(l.defId=d);const F=l.schema;for(const J in F)delete F[J];F.$ref=h};if(e.cycles==="throw")for(const a of e.seen.entries()){const l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
6
40
|
|
|
7
|
-
Check the render method of \``+le+"`."}return""}}function wt(le){return""}var pt={};function Rt(le){{var Ee=ft();if(!Ee){var Se=typeof le=="string"?le:le.displayName||le.name;Se&&(Ee=`
|
|
8
|
-
|
|
9
|
-
Check the top-level render call using <`+Se+">.")}return Ee}}function dt(le,Ee){{if(!le._store||le._store.validated||le.key!=null)return;le._store.validated=!0;var Se=Rt(Ee);if(pt[Se])return;pt[Se]=!0;var Te="";le&&le._owner&&le._owner!==ot.current&&(Te=" It was passed a child from "+ve(le._owner.type)+"."),st(le),H('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Se,Te),st(null)}}function mt(le,Ee){{if(typeof le!="object")return;if(Ke(le))for(var Se=0;Se<le.length;Se++){var Te=le[Se];ct(Te)&&dt(Te,Ee)}else if(ct(le))le._store&&(le._store.validated=!0);else if(le){var Oe=Q(le);if(typeof Oe=="function"&&Oe!==le.entries)for(var Le=Oe.call(le),Ne;!(Ne=Le.next()).done;)ct(Ne.value)&&dt(Ne.value,Ee)}}}function Pt(le){{var Ee=le.type;if(Ee==null||typeof Ee=="string")return;var Se;if(typeof Ee=="function")Se=Ee.propTypes;else if(typeof Ee=="object"&&(Ee.$$typeof===d||Ee.$$typeof===q))Se=Ee.propTypes;else return;if(Se){var Te=ve(Ee);Je(Se,le.props,"prop",Te,le)}else if(Ee.PropTypes!==void 0&&!lt){lt=!0;var Oe=ve(Ee);H("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof Ee.getDefaultProps=="function"&&!Ee.getDefaultProps.isReactClassApproved&&H("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function At(le){{for(var Ee=Object.keys(le.props),Se=0;Se<Ee.length;Se++){var Te=Ee[Se];if(Te!=="children"&&Te!=="key"){st(le),H("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),st(null);break}}le.ref!==null&&(st(le),H("Invalid attribute `ref` supplied to `React.Fragment`."),st(null))}}var vt={};function gt(le,Ee,Se,Te,Oe,Le){{var Ne=ge(le);if(!Ne){var ke="";(le===void 0||typeof le=="object"&&le!==null&&Object.keys(le).length===0)&&(ke+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ze=wt();ze?ke+=ze:ke+=ft();var je;le===null?je="null":Ke(le)?je="array":le!==void 0&&le.$$typeof===t?(je="<"+(ve(le.type)||"Unknown")+" />",ke=" Did you accidentally export a JSX literal instead of a component?"):je=typeof le,H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,ke)}var De=Ct(le,Ee,Se,Oe,Le);if(De==null)return De;if(Ne){var Xe=Ee.children;if(Xe!==void 0)if(Te)if(Ke(Xe)){for(var at=0;at<Xe.length;at++)mt(Xe[at],le);Object.freeze&&Object.freeze(Xe)}else H("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mt(Xe,le)}if(Be.call(Ee,"key")){var nt=ve(le),Ue=Object.keys(Ee).filter(function(Nt){return Nt!=="key"}),ut=Ue.length>0?"{key: someKey, "+Ue.join(": ..., ")+": ...}":"{key: someKey}";if(!vt[nt+ut]){var Ft=Ue.length>0?"{"+Ue.join(": ..., ")+": ...}":"{}";H(`A props object containing a "key" prop is being spread into JSX:
|
|
10
|
-
let props = %s;
|
|
11
|
-
<%s {...props} />
|
|
12
|
-
React keys must be passed directly to JSX without using spread:
|
|
13
|
-
let props = %s;
|
|
14
|
-
<%s key={someKey} {...props} />`,ut,nt,Ft,nt),vt[nt+ut]=!0}}return le===i?At(De):Pt(De),De}}function Tt(le,Ee,Se){return gt(le,Ee,Se,!0)}function Mt(le,Ee,Se){return gt(le,Ee,Se,!1)}var It=Mt,kt=Tt;reactJsxRuntime_development.Fragment=i,reactJsxRuntime_development.jsx=It,reactJsxRuntime_development.jsxs=kt})()),reactJsxRuntime_development}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,process.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production_min():jsxRuntime.exports=requireReactJsxRuntime_development()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();const m=e=>{let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return Math.abs(t)},C=(e,t)=>Math.floor(e/Math.pow(10,t)%10),v=(e,t)=>!(C(e,t)%2),f=(e,t,n)=>{const i=e%t;return n&&C(e,n)%2===0?-i:i},u=(e,t,n)=>t[e%n],_=e=>{e.slice(0,1)==="#"&&(e=e.slice(1));const t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),i=parseInt(e.substr(4,2),16);return(t*299+n*587+i*114)/1e3>=128?"#000000":"#FFFFFF"},A=4,o=80;function $(e,t){const n=m(e),i=t&&t.length;return Array.from({length:A},(s,a)=>({color:u(n+a,t,i),translateX:f(n*(a+1),o/2-(a+17),1),translateY:f(n*(a+1),o/2-(a+17),2),rotate:f(n*(a+1),360),isSquare:v(n,2)}))}const k=({name:e,colors:t,title:n,square:i,size:s,...a})=>{const l=$(e,t),h=React__namespace.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 "+o+" "+o,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...a,children:[n&&jsxRuntimeExports.jsx("title",{children:e}),jsxRuntimeExports.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:o,height:o,children:jsxRuntimeExports.jsx("rect",{width:o,height:o,rx:i?void 0:o*2,fill:"#FFFFFF"})}),jsxRuntimeExports.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntimeExports.jsx("rect",{width:o,height:o,fill:l[0].color}),jsxRuntimeExports.jsx("rect",{x:(o-60)/2,y:(o-20)/2,width:o,height:l[1].isSquare?o:o/8,fill:l[1].color,transform:"translate("+l[1].translateX+" "+l[1].translateY+") rotate("+l[1].rotate+" "+o/2+" "+o/2+")"}),jsxRuntimeExports.jsx("circle",{cx:o/2,cy:o/2,fill:l[2].color,r:o/5,transform:"translate("+l[2].translateX+" "+l[2].translateY+")"}),jsxRuntimeExports.jsx("line",{x1:0,y1:o/2,x2:o,y2:o/2,strokeWidth:2,stroke:l[3].color,transform:"translate("+l[3].translateX+" "+l[3].translateY+") rotate("+l[3].rotate+" "+o/2+" "+o/2+")"})]})]})},p=90,B=5;function U(e,t){const n=m(e),i=t&&t.length,s=Array.from({length:B},(l,h)=>u(n+h,t,i)),a=[];return a[0]=s[0],a[1]=s[1],a[2]=s[1],a[3]=s[2],a[4]=s[2],a[5]=s[3],a[6]=s[3],a[7]=s[0],a[8]=s[4],a}const E=({name:e,colors:t,title:n,square:i,size:s,...a})=>{const l=U(e,t),h=React.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 "+p+" "+p,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...a,children:[n&&jsxRuntimeExports.jsx("title",{children:e}),jsxRuntimeExports.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:p,height:p,children:jsxRuntimeExports.jsx("rect",{width:p,height:p,rx:i?void 0:p*2,fill:"#FFFFFF"})}),jsxRuntimeExports.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntimeExports.jsx("path",{d:"M0 0h90v45H0z",fill:l[0]}),jsxRuntimeExports.jsx("path",{d:"M0 45h90v45H0z",fill:l[1]}),jsxRuntimeExports.jsx("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:l[2]}),jsxRuntimeExports.jsx("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:l[3]}),jsxRuntimeExports.jsx("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:l[4]}),jsxRuntimeExports.jsx("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:l[5]}),jsxRuntimeExports.jsx("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:l[6]}),jsxRuntimeExports.jsx("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:l[7]}),jsxRuntimeExports.jsx("circle",{cx:45,cy:45,r:23,fill:l[8]})]})]})},L=64,x=80;function T(e,t){const n=m(e),i=t&&t.length;return Array.from({length:L},(s,a)=>u(n%(a+1),t,i))}const O=({name:e,colors:t,title:n,square:i,size:s,...a})=>{const l=T(e,t),h=React__namespace.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 "+x+" "+x,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...a,children:[n&&jsxRuntimeExports.jsx("title",{children:e}),jsxRuntimeExports.jsx("mask",{id:h,"mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:x,height:x,children:jsxRuntimeExports.jsx("rect",{width:x,height:x,rx:i?void 0:x*2,fill:"#FFFFFF"})}),jsxRuntimeExports.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntimeExports.jsx("rect",{width:10,height:10,fill:l[0]}),jsxRuntimeExports.jsx("rect",{x:20,width:10,height:10,fill:l[1]}),jsxRuntimeExports.jsx("rect",{x:40,width:10,height:10,fill:l[2]}),jsxRuntimeExports.jsx("rect",{x:60,width:10,height:10,fill:l[3]}),jsxRuntimeExports.jsx("rect",{x:10,width:10,height:10,fill:l[4]}),jsxRuntimeExports.jsx("rect",{x:30,width:10,height:10,fill:l[5]}),jsxRuntimeExports.jsx("rect",{x:50,width:10,height:10,fill:l[6]}),jsxRuntimeExports.jsx("rect",{x:70,width:10,height:10,fill:l[7]}),jsxRuntimeExports.jsx("rect",{y:10,width:10,height:10,fill:l[8]}),jsxRuntimeExports.jsx("rect",{y:20,width:10,height:10,fill:l[9]}),jsxRuntimeExports.jsx("rect",{y:30,width:10,height:10,fill:l[10]}),jsxRuntimeExports.jsx("rect",{y:40,width:10,height:10,fill:l[11]}),jsxRuntimeExports.jsx("rect",{y:50,width:10,height:10,fill:l[12]}),jsxRuntimeExports.jsx("rect",{y:60,width:10,height:10,fill:l[13]}),jsxRuntimeExports.jsx("rect",{y:70,width:10,height:10,fill:l[14]}),jsxRuntimeExports.jsx("rect",{x:20,y:10,width:10,height:10,fill:l[15]}),jsxRuntimeExports.jsx("rect",{x:20,y:20,width:10,height:10,fill:l[16]}),jsxRuntimeExports.jsx("rect",{x:20,y:30,width:10,height:10,fill:l[17]}),jsxRuntimeExports.jsx("rect",{x:20,y:40,width:10,height:10,fill:l[18]}),jsxRuntimeExports.jsx("rect",{x:20,y:50,width:10,height:10,fill:l[19]}),jsxRuntimeExports.jsx("rect",{x:20,y:60,width:10,height:10,fill:l[20]}),jsxRuntimeExports.jsx("rect",{x:20,y:70,width:10,height:10,fill:l[21]}),jsxRuntimeExports.jsx("rect",{x:40,y:10,width:10,height:10,fill:l[22]}),jsxRuntimeExports.jsx("rect",{x:40,y:20,width:10,height:10,fill:l[23]}),jsxRuntimeExports.jsx("rect",{x:40,y:30,width:10,height:10,fill:l[24]}),jsxRuntimeExports.jsx("rect",{x:40,y:40,width:10,height:10,fill:l[25]}),jsxRuntimeExports.jsx("rect",{x:40,y:50,width:10,height:10,fill:l[26]}),jsxRuntimeExports.jsx("rect",{x:40,y:60,width:10,height:10,fill:l[27]}),jsxRuntimeExports.jsx("rect",{x:40,y:70,width:10,height:10,fill:l[28]}),jsxRuntimeExports.jsx("rect",{x:60,y:10,width:10,height:10,fill:l[29]}),jsxRuntimeExports.jsx("rect",{x:60,y:20,width:10,height:10,fill:l[30]}),jsxRuntimeExports.jsx("rect",{x:60,y:30,width:10,height:10,fill:l[31]}),jsxRuntimeExports.jsx("rect",{x:60,y:40,width:10,height:10,fill:l[32]}),jsxRuntimeExports.jsx("rect",{x:60,y:50,width:10,height:10,fill:l[33]}),jsxRuntimeExports.jsx("rect",{x:60,y:60,width:10,height:10,fill:l[34]}),jsxRuntimeExports.jsx("rect",{x:60,y:70,width:10,height:10,fill:l[35]}),jsxRuntimeExports.jsx("rect",{x:10,y:10,width:10,height:10,fill:l[36]}),jsxRuntimeExports.jsx("rect",{x:10,y:20,width:10,height:10,fill:l[37]}),jsxRuntimeExports.jsx("rect",{x:10,y:30,width:10,height:10,fill:l[38]}),jsxRuntimeExports.jsx("rect",{x:10,y:40,width:10,height:10,fill:l[39]}),jsxRuntimeExports.jsx("rect",{x:10,y:50,width:10,height:10,fill:l[40]}),jsxRuntimeExports.jsx("rect",{x:10,y:60,width:10,height:10,fill:l[41]}),jsxRuntimeExports.jsx("rect",{x:10,y:70,width:10,height:10,fill:l[42]}),jsxRuntimeExports.jsx("rect",{x:30,y:10,width:10,height:10,fill:l[43]}),jsxRuntimeExports.jsx("rect",{x:30,y:20,width:10,height:10,fill:l[44]}),jsxRuntimeExports.jsx("rect",{x:30,y:30,width:10,height:10,fill:l[45]}),jsxRuntimeExports.jsx("rect",{x:30,y:40,width:10,height:10,fill:l[46]}),jsxRuntimeExports.jsx("rect",{x:30,y:50,width:10,height:10,fill:l[47]}),jsxRuntimeExports.jsx("rect",{x:30,y:60,width:10,height:10,fill:l[48]}),jsxRuntimeExports.jsx("rect",{x:30,y:70,width:10,height:10,fill:l[49]}),jsxRuntimeExports.jsx("rect",{x:50,y:10,width:10,height:10,fill:l[50]}),jsxRuntimeExports.jsx("rect",{x:50,y:20,width:10,height:10,fill:l[51]}),jsxRuntimeExports.jsx("rect",{x:50,y:30,width:10,height:10,fill:l[52]}),jsxRuntimeExports.jsx("rect",{x:50,y:40,width:10,height:10,fill:l[53]}),jsxRuntimeExports.jsx("rect",{x:50,y:50,width:10,height:10,fill:l[54]}),jsxRuntimeExports.jsx("rect",{x:50,y:60,width:10,height:10,fill:l[55]}),jsxRuntimeExports.jsx("rect",{x:50,y:70,width:10,height:10,fill:l[56]}),jsxRuntimeExports.jsx("rect",{x:70,y:10,width:10,height:10,fill:l[57]}),jsxRuntimeExports.jsx("rect",{x:70,y:20,width:10,height:10,fill:l[58]}),jsxRuntimeExports.jsx("rect",{x:70,y:30,width:10,height:10,fill:l[59]}),jsxRuntimeExports.jsx("rect",{x:70,y:40,width:10,height:10,fill:l[60]}),jsxRuntimeExports.jsx("rect",{x:70,y:50,width:10,height:10,fill:l[61]}),jsxRuntimeExports.jsx("rect",{x:70,y:60,width:10,height:10,fill:l[62]}),jsxRuntimeExports.jsx("rect",{x:70,y:70,width:10,height:10,fill:l[63]})]})]})},c=36;function b(e,t){const n=m(e),i=t&&t.length,s=u(n,t,i),a=f(n,10,1),l=a<5?a+c/9:a,h=f(n,10,2),d=h<5?h+c/9:h;return{wrapperColor:s,faceColor:_(s),backgroundColor:u(n+13,t,i),wrapperTranslateX:l,wrapperTranslateY:d,wrapperRotate:f(n,360),wrapperScale:1+f(n,c/12)/10,isMouthOpen:v(n,2),isCircle:v(n,1),eyeSpread:f(n,5),mouthSpread:f(n,3),faceRotate:f(n,10,3),faceTranslateX:l>c/6?l/2:f(n,8,1),faceTranslateY:d>c/6?d/2:f(n,7,2)}}const S=({name:e,colors:t,title:n,square:i,size:s,...a})=>{const l=b(e,t),h=React__namespace.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 "+c+" "+c,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...a,children:[n&&jsxRuntimeExports.jsx("title",{children:e}),jsxRuntimeExports.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:c,height:c,children:jsxRuntimeExports.jsx("rect",{width:c,height:c,rx:i?void 0:c*2,fill:"#FFFFFF"})}),jsxRuntimeExports.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntimeExports.jsx("rect",{width:c,height:c,fill:l.backgroundColor}),jsxRuntimeExports.jsx("rect",{x:"0",y:"0",width:c,height:c,transform:"translate("+l.wrapperTranslateX+" "+l.wrapperTranslateY+") rotate("+l.wrapperRotate+" "+c/2+" "+c/2+") scale("+l.wrapperScale+")",fill:l.wrapperColor,rx:l.isCircle?c:c/6}),jsxRuntimeExports.jsxs("g",{transform:"translate("+l.faceTranslateX+" "+l.faceTranslateY+") rotate("+l.faceRotate+" "+c/2+" "+c/2+")",children:[l.isMouthOpen?jsxRuntimeExports.jsx("path",{d:"M15 "+(19+l.mouthSpread)+"c2 1 4 1 6 0",stroke:l.faceColor,fill:"none",strokeLinecap:"round"}):jsxRuntimeExports.jsx("path",{d:"M13,"+(19+l.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:l.faceColor}),jsxRuntimeExports.jsx("rect",{x:14-l.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:l.faceColor}),jsxRuntimeExports.jsx("rect",{x:20+l.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:l.faceColor})]})]})]})},R=4,w=80;function X(e,t){const n=m(e),i=t&&t.length;return Array.from({length:R},(s,a)=>u(n+a,t,i))}const Y=({name:e,colors:t,title:n,square:i,size:s,...a})=>{const l=X(e,t),h=e.replace(/\s/g,""),d=React__namespace.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 "+w+" "+w,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...a,children:[n&&jsxRuntimeExports.jsx("title",{children:e}),jsxRuntimeExports.jsx("mask",{id:d,maskUnits:"userSpaceOnUse",x:0,y:0,width:w,height:w,children:jsxRuntimeExports.jsx("rect",{width:w,height:w,rx:i?void 0:w*2,fill:"#FFFFFF"})}),jsxRuntimeExports.jsxs("g",{mask:`url(#${d})`,children:[jsxRuntimeExports.jsx("path",{fill:"url(#gradient_paint0_linear_"+h+")",d:"M0 0h80v40H0z"}),jsxRuntimeExports.jsx("path",{fill:"url(#gradient_paint1_linear_"+h+")",d:"M0 40h80v40H0z"})]}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"gradient_paint0_linear_"+h,x1:w/2,y1:0,x2:w/2,y2:w/2,gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:l[0]}),jsxRuntimeExports.jsx("stop",{offset:1,stopColor:l[1]})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"gradient_paint1_linear_"+h,x1:w/2,y1:w/2,x2:w/2,y2:w,gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:l[2]}),jsxRuntimeExports.jsx("stop",{offset:1,stopColor:l[3]})]})]})]})},D=3,g=80;function N(e,t){const n=m(e),i=t&&t.length;return Array.from({length:D},(s,a)=>({color:u(n+a,t,i),translateX:f(n*(a+1),g/10,1),translateY:f(n*(a+1),g/10,2),scale:1.2+f(n*(a+1),g/20)/10,rotate:f(n*(a+1),360,1)}))}const I=({name:e,colors:t,title:n,square:i,size:s,...a})=>{const l=N(e,t),h=React__namespace.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 "+g+" "+g,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...a,children:[n&&jsxRuntimeExports.jsx("title",{children:e}),jsxRuntimeExports.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:g,height:g,children:jsxRuntimeExports.jsx("rect",{width:g,height:g,rx:i?void 0:g*2,fill:"#FFFFFF"})}),jsxRuntimeExports.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntimeExports.jsx("rect",{width:g,height:g,fill:l[0].color}),jsxRuntimeExports.jsx("path",{filter:`url(#filter_${h})`,d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:l[1].color,transform:"translate("+l[1].translateX+" "+l[1].translateY+") rotate("+l[1].rotate+" "+g/2+" "+g/2+") scale("+l[2].scale+")"}),jsxRuntimeExports.jsx("path",{filter:`url(#filter_${h})`,style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:l[2].color,transform:"translate("+l[2].translateX+" "+l[2].translateY+") rotate("+l[2].rotate+" "+g/2+" "+g/2+") scale("+l[2].scale+")"})]}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("filter",{id:`filter_${h}`,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntimeExports.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntimeExports.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),jsxRuntimeExports.jsx("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"})]})})]})},z={pixel:O,bauhaus:k,ring:E,beam:S,sunset:Y,marble:I,geometric:S,abstract:k},P=({variant:e="marble",colors:t=["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"],name:n="Clara Barton",title:i=!1,size:s="40px",square:a=!1,...l})=>{const h=z[e]||I;return jsxRuntimeExports.jsx(h,{colors:t,name:n,title:i,size:s,square:a,...l})},colors=["#148103","#ccfbd6ff","#334155"],PersonAvatar=({personId:e})=>jsxRuntimeExports.jsx(P,{size:40,name:e,variant:"beam",colors}),ProfileAvatar=({userId:e})=>jsxRuntimeExports.jsx(P,{size:40,name:e,variant:"bauhaus",colors}),Box=({children:e})=>jsxRuntimeExports.jsx("div",{className:"w-75 rounded-lg bg-white p-4 shadow-xl",children:e});function setRef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function composeRefs(...e){return t=>{let n=!1;const i=e.map(s=>{const a=setRef(s,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():setRef(e[s],null)}}}}function useComposedRefs(...e){return React__namespace.useCallback(composeRefs(...e),e)}function createSlot(e){const t=createSlotClone(e),n=React__namespace.forwardRef((i,s)=>{const{children:a,...l}=i,h=React__namespace.Children.toArray(a),d=h.find(isSlottable);if(d){const y=d.props.children,M=h.map(q=>q===d?React__namespace.Children.count(y)>1?React__namespace.Children.only(null):React__namespace.isValidElement(y)?y.props.children:null:q);return jsxRuntimeExports.jsx(t,{...l,ref:s,children:React__namespace.isValidElement(y)?React__namespace.cloneElement(y,void 0,M):null})}return jsxRuntimeExports.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}var Slot$2=createSlot("Slot");function createSlotClone(e){const t=React__namespace.forwardRef((n,i)=>{const{children:s,...a}=n;if(React__namespace.isValidElement(s)){const l=getElementRef$1(s),h=mergeProps(a,s.props);return s.type!==React__namespace.Fragment&&(h.ref=i?composeRefs(i,l):l),React__namespace.cloneElement(s,h)}return React__namespace.Children.count(s)>1?React__namespace.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function createSlottable(e){const t=({children:n})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=SLOTTABLE_IDENTIFIER,t}function isSlottable(e){return React__namespace.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...h)=>{const d=a(...h);return s(...h),d}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function getElementRef$1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),toPascalCase=e=>{const t=toCamelCase(e);return t.charAt(0).toUpperCase()+t.slice(1)},mergeClasses=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),hasA11yProp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Icon$1=React.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:l,...h},d)=>React.createElement("svg",{ref:d,...defaultAttributes,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:mergeClasses("lucide",s),...!a&&!hasA11yProp(h)&&{"aria-hidden":"true"},...h},[...l.map(([y,M])=>React.createElement(y,M)),...Array.isArray(a)?a:[a]]));const createLucideIcon=(e,t)=>{const n=React.forwardRef(({className:i,...s},a)=>React.createElement(Icon$1,{ref:a,iconNode:t,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(e))}`,`lucide-${e}`,i),...s}));return n.displayName=toPascalCase(e),n};const __iconNode$6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Check=createLucideIcon("check",__iconNode$6);const __iconNode$5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ChevronDown=createLucideIcon("chevron-down",__iconNode$5);const __iconNode$4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon("chevron-right",__iconNode$4);const __iconNode$3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Circle=createLucideIcon("circle",__iconNode$3);const __iconNode$2=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],EyeOff=createLucideIcon("eye-off",__iconNode$2);const __iconNode$1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Eye=createLucideIcon("eye",__iconNode$1);const __iconNode=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon("loader-circle",__iconNode);function r(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const concatArrays=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},createClassValidatorObject=(e,t)=>({classGroupId:e,validator:t}),createClassPartObject=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return getGroupIdForArbitraryProperty(l);const h=l.split(CLASS_PART_SEPARATOR),d=h[0]===""&&h.length>1?1:0;return getGroupRecursive(h,d,t)},getConflictingClassGroupIds:(l,h)=>{if(h){const d=i[l],y=n[l];return d?y?concatArrays(y,d):d:y||EMPTY_CONFLICTS}return n[l]||EMPTY_CONFLICTS}}},getGroupRecursive=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const y=getGroupRecursive(e,t+1,a);if(y)return y}const l=n.validators;if(l===null)return;const h=t===0?e.join(CLASS_PART_SEPARATOR):e.slice(t).join(CLASS_PART_SEPARATOR),d=l.length;for(let y=0;y<d;y++){const M=l[y];if(M.validator(h))return M.classGroupId}},getGroupIdForArbitraryProperty=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?ARBITRARY_PROPERTY_PREFIX+i:void 0})(),createClassMap=e=>{const{theme:t,classGroups:n}=e;return processClassGroups(n,t)},processClassGroups=(e,t)=>{const n=createClassPartObject();for(const i in e){const s=e[i];processClassesRecursively(s,n,i,t)}return n},processClassesRecursively=(e,t,n,i)=>{const s=e.length;for(let a=0;a<s;a++){const l=e[a];processClassDefinition(l,t,n,i)}},processClassDefinition=(e,t,n,i)=>{if(typeof e=="string"){processStringDefinition(e,t,n);return}if(typeof e=="function"){processFunctionDefinition(e,t,n,i);return}processObjectDefinition(e,t,n,i)},processStringDefinition=(e,t,n)=>{const i=e===""?t:getPart(t,e);i.classGroupId=n},processFunctionDefinition=(e,t,n,i)=>{if(isThemeGetter(e)){processClassesRecursively(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(createClassValidatorObject(n,e))},processObjectDefinition=(e,t,n,i)=>{const s=Object.entries(e),a=s.length;for(let l=0;l<a;l++){const[h,d]=s[l];processClassesRecursively(d,getPart(t,h),n,i)}},getPart=(e,t)=>{let n=e;const i=t.split(CLASS_PART_SEPARATOR),s=i.length;for(let a=0;a<s;a++){const l=i[a];let h=n.nextPart.get(l);h||(h=createClassPartObject(),n.nextPart.set(l,h)),n=h}return n},isThemeGetter=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(a,l)=>{n[a]=l,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=i[a])!==void 0)return s(a,l),l},set(a,l){a in n?n[a]=l:s(a,l)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const a=[];let l=0,h=0,d=0,y;const M=s.length;for(let j=0;j<M;j++){const Q=s[j];if(l===0&&h===0){if(Q===MODIFIER_SEPARATOR){a.push(s.slice(d,j)),d=j+1;continue}if(Q==="/"){y=j;continue}}Q==="["?l++:Q==="]"?l--:Q==="("?h++:Q===")"&&h--}const q=a.length===0?s:s.slice(d);let F=q,K=!1;q.endsWith(IMPORTANT_MODIFIER)?(F=q.slice(0,-1),K=!0):q.startsWith(IMPORTANT_MODIFIER)&&(F=q.slice(1),K=!0);const W=y&&y>d?y-d:void 0;return createResultObject(a,K,F,W)};if(t){const s=t+MODIFIER_SEPARATOR,a=i;i=l=>l.startsWith(s)?a(l.slice(s.length)):createResultObject(EMPTY_MODIFIERS,!1,l,void 0,!0)}if(n){const s=i;i=a=>n({className:a,parseClassName:s})}return i},createSortModifiers=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let a=0;a<n.length;a++){const l=n[a],h=l[0]==="[",d=t.has(l);h||d?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(l)):s.push(l)}return s.length>0&&(s.sort(),i.push(...s)),i}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=t,l=[],h=e.trim().split(SPLIT_CLASSES_REGEX);let d="";for(let y=h.length-1;y>=0;y-=1){const M=h[y],{isExternal:q,modifiers:F,hasImportantModifier:K,baseClassName:W,maybePostfixModifierPosition:j}=n(M);if(q){d=M+(d.length>0?" "+d:d);continue}let Q=!!j,G=i(Q?W.substring(0,j):W);if(!G){if(!Q){d=M+(d.length>0?" "+d:d);continue}if(G=i(W),!G){d=M+(d.length>0?" "+d:d);continue}Q=!1}const H=F.length===0?"":F.length===1?F[0]:a(F).join(":"),V=K?H+IMPORTANT_MODIFIER:H,J=V+G;if(l.indexOf(J)>-1)continue;l.push(J);const te=s(G,Q);for(let re=0;re<te.length;++re){const ie=te[re];l.push(V+ie)}d=M+(d.length>0?" "+d:d)}return d},twJoin=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=toValue(n))&&(s&&(s+=" "),s+=i);return s},toValue=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=toValue(e[i]))&&(n&&(n+=" "),n+=t);return n},createTailwindMerge=(e,...t)=>{let n,i,s,a;const l=d=>{const y=t.reduce((M,q)=>q(M),e());return n=createConfigUtils(y),i=n.cache.get,s=n.cache.set,a=h,h(d)},h=d=>{const y=i(d);if(y)return y;const M=mergeClassList(d,n);return s(d,M),M};return a=l,(...d)=>a(twJoin(...d))},fallbackThemeArr=[],fromTheme=e=>{const t=n=>n[e]||fallbackThemeArr;return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const i=arbitraryValueRegex.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},getIsArbitraryVariable=(e,t,n=!1)=>{const i=arbitraryVariableRegex.exec(e);return i?i[1]?t(i[1]):n:!1},isLabelPosition=e=>e==="position"||e==="percentage",isLabelImage=e=>e==="image"||e==="url",isLabelSize=e=>e==="length"||e==="size"||e==="bg-size",isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),i=fromTheme("font-weight"),s=fromTheme("tracking"),a=fromTheme("leading"),l=fromTheme("breakpoint"),h=fromTheme("container"),d=fromTheme("spacing"),y=fromTheme("radius"),M=fromTheme("shadow"),q=fromTheme("inset-shadow"),F=fromTheme("text-shadow"),K=fromTheme("drop-shadow"),W=fromTheme("blur"),j=fromTheme("perspective"),Q=fromTheme("aspect"),G=fromTheme("ease"),H=fromTheme("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],te=()=>[...J(),isArbitraryVariable,isArbitraryValue],re=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto","contain","none"],se=()=>[isArbitraryVariable,isArbitraryValue,d],ue=()=>[isFraction,"full","auto",...se()],ge=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],de=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],fe=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],ve=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],ne=()=>["auto",...se()],ae=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...se()],Z=()=>[e,isArbitraryVariable,isArbitraryValue],ee=()=>[...J(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],pe=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],ye=()=>["","none","full",y,isArbitraryVariable,isArbitraryValue],be=()=>["",isNumber,isArbitraryVariableLength,isArbitraryLength],Ce=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],Pe=()=>["","none",W,isArbitraryVariable,isArbitraryValue],Fe=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],Re=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],Ae=()=>[isNumber,isArbitraryVariable,isArbitraryValue],Ie=()=>[isFraction,"full",...se()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,Q]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,h]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:te()}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{start:ue()}],end:[{end:ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",h,...se()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:se()}],"gap-x":[{"gap-x":se()}],"gap-y":[{"gap-y":se()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:se()}],px:[{px:se()}],py:[{py:se()}],ps:[{ps:se()}],pe:[{pe:se()}],pt:[{pt:se()}],pr:[{pr:se()}],pb:[{pb:se()}],pl:[{pl:se()}],m:[{m:ne()}],mx:[{mx:ne()}],my:[{my:ne()}],ms:[{ms:ne()}],me:[{me:ne()}],mt:[{mt:ne()}],mr:[{mr:ne()}],mb:[{mb:ne()}],ml:[{ml:ne()}],"space-x":[{"space-x":se()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":se()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[h,"screen",...ae()]}],"min-w":[{"min-w":[h,"screen","none",...ae()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[l]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[a,...se()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[isNumber,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:se()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:ye()}],"rounded-s":[{"rounded-s":ye()}],"rounded-e":[{"rounded-e":ye()}],"rounded-t":[{"rounded-t":ye()}],"rounded-r":[{"rounded-r":ye()}],"rounded-b":[{"rounded-b":ye()}],"rounded-l":[{"rounded-l":ye()}],"rounded-ss":[{"rounded-ss":ye()}],"rounded-se":[{"rounded-se":ye()}],"rounded-ee":[{"rounded-ee":ye()}],"rounded-es":[{"rounded-es":ye()}],"rounded-tl":[{"rounded-tl":ye()}],"rounded-tr":[{"rounded-tr":ye()}],"rounded-br":[{"rounded-br":ye()}],"rounded-bl":[{"rounded-bl":ye()}],"border-w":[{border:be()}],"border-w-x":[{"border-x":be()}],"border-w-y":[{"border-y":be()}],"border-w-s":[{"border-s":be()}],"border-w-e":[{"border-e":be()}],"border-w-t":[{"border-t":be()}],"border-w-r":[{"border-r":be()}],"border-w-b":[{"border-b":be()}],"border-w-l":[{"border-l":be()}],"divide-x":[{"divide-x":be()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":be()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",M,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",q,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":be()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",F,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[isNumber,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":J()}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:Pe()}],brightness:[{brightness:[isNumber,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",K,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":se()}],"border-spacing-x":[{"border-spacing-x":se()}],"border-spacing-y":[{"border-spacing-y":se()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",G,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",H,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":se()}],"scroll-mx":[{"scroll-mx":se()}],"scroll-my":[{"scroll-my":se()}],"scroll-ms":[{"scroll-ms":se()}],"scroll-me":[{"scroll-me":se()}],"scroll-mt":[{"scroll-mt":se()}],"scroll-mr":[{"scroll-mr":se()}],"scroll-mb":[{"scroll-mb":se()}],"scroll-ml":[{"scroll-ml":se()}],"scroll-p":[{"scroll-p":se()}],"scroll-px":[{"scroll-px":se()}],"scroll-py":[{"scroll-py":se()}],"scroll-ps":[{"scroll-ps":se()}],"scroll-pe":[{"scroll-pe":se()}],"scroll-pt":[{"scroll-pt":se()}],"scroll-pr":[{"scroll-pr":se()}],"scroll-pb":[{"scroll-pb":se()}],"scroll-pl":[{"scroll-pl":se()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}const Button=React__namespace.forwardRef(({className:e,asChild:t=!1,variant:n="primary",size:i="md",loading:s=!1,disabled:a,children:l,...h},d)=>{const y=t?Slot$2:"button";return jsxRuntimeExports.jsxs(y,{ref:d,className:cn("oniratec-button",e),"data-variant":n,"data-size":i,disabled:a||s,...h,children:[s&&jsxRuntimeExports.jsx(LoaderCircle,{className:"oniratec-button__spinner"}),jsxRuntimeExports.jsx("span",{className:"oniratec-button__content",children:l})]})});Button.displayName="Button";const Logo=({src:e,alt:t,width:n=70,height:i=70,className:s,ImageComponent:a,...l})=>{const h=a??"img";return jsxRuntimeExports.jsx(h,{type:void 0,props:void 0,src:e,alt:t,width:n,height:i,className:cn("inline-block object-contain",s),...l},null)},Card=({children:e,className:t})=>jsxRuntimeExports.jsx("div",{className:cn("rounded-xl bg-white p-6 shadow-sm ring-1 ring-gray-100 transition-shadow hover:shadow-md",t),children:e}),CardHeader=({children:e,className:t})=>jsxRuntimeExports.jsx("div",{className:cn("mb-2",t),children:e}),CardTitle=({children:e,className:t})=>jsxRuntimeExports.jsx("h3",{className:cn("text-sm font-medium text-gray-500",t),children:e}),CardContent=({children:e,className:t})=>jsxRuntimeExports.jsx("div",{className:cn("text-2xl font-semibold",t),children:e});function composeEventHandlers(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e?.(s),n===!1||!s.defaultPrevented)return t?.(s)}}function createContextScope(e,t=[]){let n=[];function i(a,l){const h=React__namespace.createContext(l),d=n.length;n=[...n,l];const y=q=>{const{scope:F,children:K,...W}=q,j=F?.[e]?.[d]||h,Q=React__namespace.useMemo(()=>W,Object.values(W));return jsxRuntimeExports.jsx(j.Provider,{value:Q,children:K})};y.displayName=a+"Provider";function M(q,F){const K=F?.[e]?.[d]||h,W=React__namespace.useContext(K);if(W)return W;if(l!==void 0)return l;throw new Error(`\`${q}\` must be used within \`${a}\``)}return[y,M]}const s=()=>{const a=n.map(l=>React__namespace.createContext(l));return function(h){const d=h?.[e]||a;return React__namespace.useMemo(()=>({[`__scope${e}`]:{...h,[e]:d}}),[h,d])}};return s.scopeName=e,[i,composeContextScopes(s,...t)]}function composeContextScopes(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const l=i.reduce((h,{useScope:d,scopeName:y})=>{const q=d(a)[`__scope${y}`];return{...h,...q}},{});return React__namespace.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var useLayoutEffect2=globalThis?.document?React__namespace.useLayoutEffect:()=>{},useInsertionEffect=React__namespace[" useInsertionEffect ".trim().toString()]||useLayoutEffect2;function useControllableState({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,a,l]=useUncontrolledState({defaultProp:t,onChange:n}),h=e!==void 0,d=h?e:s;{const M=React__namespace.useRef(e!==void 0);React__namespace.useEffect(()=>{const q=M.current;q!==h&&console.warn(`${i} is changing from ${q?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),M.current=h},[h,i])}const y=React__namespace.useCallback(M=>{if(h){const q=isFunction(M)?M(e):M;q!==e&&l.current?.(q)}else a(M)},[h,e,a,l]);return[d,y]}function useUncontrolledState({defaultProp:e,onChange:t}){const[n,i]=React__namespace.useState(e),s=React__namespace.useRef(n),a=React__namespace.useRef(t);return useInsertionEffect(()=>{a.current=t},[t]),React__namespace.useEffect(()=>{s.current!==n&&(a.current?.(n),s.current=n)},[n,s]),[n,i,a]}function isFunction(e){return typeof e=="function"}var NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Primitive=NODES.reduce((e,t)=>{const n=createSlot(`Primitive.${t}`),i=React__namespace.forwardRef((s,a)=>{const{asChild:l,...h}=s,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsxRuntimeExports.jsx(d,{...h,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function dispatchDiscreteCustomEvent(e,t){e&&ReactDOM__namespace.flushSync(()=>e.dispatchEvent(t))}function createCollection(e){const t=e+"CollectionProvider",[n,i]=createContextScope(t),[s,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=j=>{const{scope:Q,children:G}=j,H=React.useRef(null),V=React.useRef(new Map).current;return jsxRuntimeExports.jsx(s,{scope:Q,itemMap:V,collectionRef:H,children:G})};l.displayName=t;const h=e+"CollectionSlot",d=createSlot(h),y=React.forwardRef((j,Q)=>{const{scope:G,children:H}=j,V=a(h,G),J=useComposedRefs(Q,V.collectionRef);return jsxRuntimeExports.jsx(d,{ref:J,children:H})});y.displayName=h;const M=e+"CollectionItemSlot",q="data-radix-collection-item",F=createSlot(M),K=React.forwardRef((j,Q)=>{const{scope:G,children:H,...V}=j,J=React.useRef(null),te=useComposedRefs(Q,J),re=a(M,G);return React.useEffect(()=>(re.itemMap.set(J,{ref:J,...V}),()=>{re.itemMap.delete(J)})),jsxRuntimeExports.jsx(F,{[q]:"",ref:te,children:H})});K.displayName=M;function W(j){const Q=a(e+"CollectionConsumer",j);return React.useCallback(()=>{const H=Q.collectionRef.current;if(!H)return[];const V=Array.from(H.querySelectorAll(`[${q}]`));return Array.from(Q.itemMap.values()).sort((re,ie)=>V.indexOf(re.ref.current)-V.indexOf(ie.ref.current))},[Q.collectionRef,Q.itemMap])}return[{Provider:l,Slot:y,ItemSlot:K},W,i]}var DirectionContext=React__namespace.createContext(void 0);function useDirection(e){const t=React__namespace.useContext(DirectionContext);return e||t||"ltr"}function useCallbackRef$1(e){const t=React__namespace.useRef(e);return React__namespace.useEffect(()=>{t.current=e}),React__namespace.useMemo(()=>(...n)=>t.current?.(...n),[])}function useEscapeKeydown(e,t=globalThis?.document){const n=useCallbackRef$1(e);React__namespace.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var DISMISSABLE_LAYER_NAME="DismissableLayer",CONTEXT_UPDATE="dismissableLayer.update",POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside",FOCUS_OUTSIDE="dismissableLayer.focusOutside",originalBodyPointerEvents,DismissableLayerContext=React__namespace.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=React__namespace.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:h,...d}=e,y=React__namespace.useContext(DismissableLayerContext),[M,q]=React__namespace.useState(null),F=M?.ownerDocument??globalThis?.document,[,K]=React__namespace.useState({}),W=useComposedRefs(t,ie=>q(ie)),j=Array.from(y.layers),[Q]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),G=j.indexOf(Q),H=M?j.indexOf(M):-1,V=y.layersWithOutsidePointerEventsDisabled.size>0,J=H>=G,te=usePointerDownOutside(ie=>{const se=ie.target,ue=[...y.branches].some(ge=>ge.contains(se));!J||ue||(s?.(ie),l?.(ie),ie.defaultPrevented||h?.())},F),re=useFocusOutside(ie=>{const se=ie.target;[...y.branches].some(ge=>ge.contains(se))||(a?.(ie),l?.(ie),ie.defaultPrevented||h?.())},F);return useEscapeKeydown(ie=>{H===y.layers.size-1&&(i?.(ie),!ie.defaultPrevented&&h&&(ie.preventDefault(),h()))},F),React__namespace.useEffect(()=>{if(M)return n&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(originalBodyPointerEvents=F.body.style.pointerEvents,F.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(M)),y.layers.add(M),dispatchUpdate(),()=>{n&&y.layersWithOutsidePointerEventsDisabled.size===1&&(F.body.style.pointerEvents=originalBodyPointerEvents)}},[M,F,n,y]),React__namespace.useEffect(()=>()=>{M&&(y.layers.delete(M),y.layersWithOutsidePointerEventsDisabled.delete(M),dispatchUpdate())},[M,y]),React__namespace.useEffect(()=>{const ie=()=>K({});return document.addEventListener(CONTEXT_UPDATE,ie),()=>document.removeEventListener(CONTEXT_UPDATE,ie)},[]),jsxRuntimeExports.jsx(Primitive.div,{...d,ref:W,style:{pointerEvents:V?J?"auto":"none":void 0,...e.style},onFocusCapture:composeEventHandlers(e.onFocusCapture,re.onFocusCapture),onBlurCapture:composeEventHandlers(e.onBlurCapture,re.onBlurCapture),onPointerDownCapture:composeEventHandlers(e.onPointerDownCapture,te.onPointerDownCapture)})});DismissableLayer.displayName=DISMISSABLE_LAYER_NAME;var BRANCH_NAME="DismissableLayerBranch",DismissableLayerBranch=React__namespace.forwardRef((e,t)=>{const n=React__namespace.useContext(DismissableLayerContext),i=React__namespace.useRef(null),s=useComposedRefs(t,i);return React__namespace.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),jsxRuntimeExports.jsx(Primitive.div,{...e,ref:s})});DismissableLayerBranch.displayName=BRANCH_NAME;function usePointerDownOutside(e,t=globalThis?.document){const n=useCallbackRef$1(e),i=React__namespace.useRef(!1),s=React__namespace.useRef(()=>{});return React__namespace.useEffect(()=>{const a=h=>{if(h.target&&!i.current){let d=function(){handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE,n,y,{discrete:!0})};const y={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=d,t.addEventListener("click",s.current,{once:!0})):d()}else t.removeEventListener("click",s.current);i.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function useFocusOutside(e,t=globalThis?.document){const n=useCallbackRef$1(e),i=React__namespace.useRef(!1);return React__namespace.useEffect(()=>{const s=a=>{a.target&&!i.current&&handleAndDispatchCustomEvent(FOCUS_OUTSIDE,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function dispatchUpdate(){const e=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(e)}function handleAndDispatchCustomEvent(e,t,n,{discrete:i}){const s=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?dispatchDiscreteCustomEvent(s,a):s.dispatchEvent(a)}var count$1=0;function useFocusGuards(){React__namespace.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",e[1]??createFocusGuard()),count$1++,()=>{count$1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),count$1--}},[])}function createFocusGuard(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount",AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount",EVENT_OPTIONS$1={bubbles:!1,cancelable:!0},FOCUS_SCOPE_NAME="FocusScope",FocusScope=React__namespace.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[h,d]=React__namespace.useState(null),y=useCallbackRef$1(s),M=useCallbackRef$1(a),q=React__namespace.useRef(null),F=useComposedRefs(t,j=>d(j)),K=React__namespace.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;React__namespace.useEffect(()=>{if(i){let j=function(V){if(K.paused||!h)return;const J=V.target;h.contains(J)?q.current=J:focus(q.current,{select:!0})},Q=function(V){if(K.paused||!h)return;const J=V.relatedTarget;J!==null&&(h.contains(J)||focus(q.current,{select:!0}))},G=function(V){if(document.activeElement===document.body)for(const te of V)te.removedNodes.length>0&&focus(h)};document.addEventListener("focusin",j),document.addEventListener("focusout",Q);const H=new MutationObserver(G);return h&&H.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",Q),H.disconnect()}}},[i,h,K.paused]),React__namespace.useEffect(()=>{if(h){focusScopesStack.add(K);const j=document.activeElement;if(!h.contains(j)){const G=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS$1);h.addEventListener(AUTOFOCUS_ON_MOUNT,y),h.dispatchEvent(G),G.defaultPrevented||(focusFirst$2(removeLinks(getTabbableCandidates(h)),{select:!0}),document.activeElement===j&&focus(h))}return()=>{h.removeEventListener(AUTOFOCUS_ON_MOUNT,y),setTimeout(()=>{const G=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS$1);h.addEventListener(AUTOFOCUS_ON_UNMOUNT,M),h.dispatchEvent(G),G.defaultPrevented||focus(j??document.body,{select:!0}),h.removeEventListener(AUTOFOCUS_ON_UNMOUNT,M),focusScopesStack.remove(K)},0)}}},[h,y,M,K]);const W=React__namespace.useCallback(j=>{if(!n&&!i||K.paused)return;const Q=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,G=document.activeElement;if(Q&&G){const H=j.currentTarget,[V,J]=getTabbableEdges(H);V&&J?!j.shiftKey&&G===J?(j.preventDefault(),n&&focus(V,{select:!0})):j.shiftKey&&G===V&&(j.preventDefault(),n&&focus(J,{select:!0})):G===H&&j.preventDefault()}},[n,i,K.paused]);return jsxRuntimeExports.jsx(Primitive.div,{tabIndex:-1,...l,ref:F,onKeyDown:W})});FocusScope.displayName=FOCUS_SCOPE_NAME;function focusFirst$2(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(focus(i,{select:t}),document.activeElement!==n)return}function getTabbableEdges(e){const t=getTabbableCandidates(e),n=findVisible(t,e),i=findVisible(t.reverse(),e);return[n,i]}function getTabbableCandidates(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function findVisible(e,t){for(const n of e)if(!isHidden(n,{upTo:t}))return n}function isHidden(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function isSelectableInput(e){return e instanceof HTMLInputElement&&"select"in e}function focus(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&isSelectableInput(e)&&t&&e.select()}}var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=arrayRemove(e,t),e.unshift(t)},remove(t){e=arrayRemove(e,t),e[0]?.resume()}}}function arrayRemove(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function removeLinks(e){return e.filter(t=>t.tagName!=="A")}var useReactId=React__namespace[" useId ".trim().toString()]||(()=>{}),count=0;function useId(e){const[t,n]=React__namespace.useState(useReactId());return useLayoutEffect2(()=>{n(i=>i??String(count++))},[e]),e||(t?`radix-${t}`:"")}const sides=["top","right","bottom","left"],min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$1(e,t,n){return max(e,min(t,n))}function evaluate(e,t){return typeof e=="function"?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return e==="x"?"y":"x"}function getAxisLength(e){return e==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(e){return yAxisSides.has(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){n===void 0&&(n=!1);const i=getAlignment(e),s=getAlignmentAxis(e),a=getAxisLength(s);let l=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=getOppositePlacement(l)),[l,getOppositePlacement(l)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,t=>oppositeAlignmentMap[t])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(e,t,n){switch(e){case"top":case"bottom":return n?t?rlPlacement:lrPlacement:t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(e,t,n,i){const s=getAlignment(e);let a=getSideList(getSide(e),n==="start",i);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(getOppositeAlignmentPlacement)))),a}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,t=>oppositeSideMap[t])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return typeof e!="number"?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let{reference:i,floating:s}=e;const a=getSideAxis(t),l=getAlignmentAxis(t),h=getAxisLength(l),d=getSide(t),y=a==="y",M=i.x+i.width/2-s.width/2,q=i.y+i.height/2-s.height/2,F=i[h]/2-s[h]/2;let K;switch(d){case"top":K={x:M,y:i.y-s.height};break;case"bottom":K={x:M,y:i.y+i.height};break;case"right":K={x:i.x+i.width,y:q};break;case"left":K={x:i.x-s.width,y:q};break;default:K={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":K[l]-=F*(n&&y?-1:1);break;case"end":K[l]+=F*(n&&y?-1:1);break}return K}const computePosition$1=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,h=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let y=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:M,y:q}=computeCoordsFromPlacement(y,i,d),F=i,K={},W=0;for(let j=0;j<h.length;j++){const{name:Q,fn:G}=h[j],{x:H,y:V,data:J,reset:te}=await G({x:M,y:q,initialPlacement:i,placement:F,strategy:s,middlewareData:K,rects:y,platform:l,elements:{reference:e,floating:t}});M=H??M,q=V??q,K={...K,[Q]:{...K[Q],...J}},te&&W<=50&&(W++,typeof te=="object"&&(te.placement&&(F=te.placement),te.rects&&(y=te.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):te.rects),{x:M,y:q}=computeCoordsFromPlacement(y,F,d)),j=-1)}return{x:M,y:q,placement:F,strategy:s,middlewareData:K}};async function detectOverflow(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:a,rects:l,elements:h,strategy:d}=e,{boundary:y="clippingAncestors",rootBoundary:M="viewport",elementContext:q="floating",altBoundary:F=!1,padding:K=0}=evaluate(t,e),W=getPaddingObject(K),Q=h[F?q==="floating"?"reference":"floating":q],G=rectToClientRect(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(Q)))==null||n?Q:Q.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(h.floating)),boundary:y,rootBoundary:M,strategy:d})),H=q==="floating"?{x:i,y:s,width:l.floating.width,height:l.floating.height}:l.reference,V=await(a.getOffsetParent==null?void 0:a.getOffsetParent(h.floating)),J=await(a.isElement==null?void 0:a.isElement(V))?await(a.getScale==null?void 0:a.getScale(V))||{x:1,y:1}:{x:1,y:1},te=rectToClientRect(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:H,offsetParent:V,strategy:d}):H);return{top:(G.top-te.top+W.top)/J.y,bottom:(te.bottom-G.bottom+W.bottom)/J.y,left:(G.left-te.left+W.left)/J.x,right:(te.right-G.right+W.right)/J.x}}const arrow$3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:a,platform:l,elements:h,middlewareData:d}=t,{element:y,padding:M=0}=evaluate(e,t)||{};if(y==null)return{};const q=getPaddingObject(M),F={x:n,y:i},K=getAlignmentAxis(s),W=getAxisLength(K),j=await l.getDimensions(y),Q=K==="y",G=Q?"top":"left",H=Q?"bottom":"right",V=Q?"clientHeight":"clientWidth",J=a.reference[W]+a.reference[K]-F[K]-a.floating[W],te=F[K]-a.reference[K],re=await(l.getOffsetParent==null?void 0:l.getOffsetParent(y));let ie=re?re[V]:0;(!ie||!await(l.isElement==null?void 0:l.isElement(re)))&&(ie=h.floating[V]||a.floating[W]);const se=J/2-te/2,ue=ie/2-j[W]/2-1,ge=min(q[G],ue),de=min(q[H],ue),fe=ge,ve=ie-j[W]-de,me=ie/2-j[W]/2+se,he=clamp$1(fe,me,ve),ne=!d.arrow&&getAlignment(s)!=null&&me!==he&&a.reference[W]/2-(me<fe?ge:de)-j[W]/2<0,ae=ne?me<fe?me-fe:me-ve:0;return{[K]:F[K]+ae,data:{[K]:he,centerOffset:me-he-ae,...ne&&{alignmentOffset:ae}},reset:ne}}}),flip$2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:a,rects:l,initialPlacement:h,platform:d,elements:y}=t,{mainAxis:M=!0,crossAxis:q=!0,fallbackPlacements:F,fallbackStrategy:K="bestFit",fallbackAxisSideDirection:W="none",flipAlignment:j=!0,...Q}=evaluate(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const G=getSide(s),H=getSideAxis(h),V=getSide(h)===h,J=await(d.isRTL==null?void 0:d.isRTL(y.floating)),te=F||(V||!j?[getOppositePlacement(h)]:getExpandedPlacements(h)),re=W!=="none";!F&&re&&te.push(...getOppositeAxisPlacements(h,j,W,J));const ie=[h,...te],se=await detectOverflow(t,Q),ue=[];let ge=((i=a.flip)==null?void 0:i.overflows)||[];if(M&&ue.push(se[G]),q){const me=getAlignmentSides(s,l,J);ue.push(se[me[0]],se[me[1]])}if(ge=[...ge,{placement:s,overflows:ue}],!ue.every(me=>me<=0)){var de,fe;const me=(((de=a.flip)==null?void 0:de.index)||0)+1,he=ie[me];if(he&&(!(q==="alignment"?H!==getSideAxis(he):!1)||ge.every(Z=>getSideAxis(Z.placement)===H?Z.overflows[0]>0:!0)))return{data:{index:me,overflows:ge},reset:{placement:he}};let ne=(fe=ge.filter(ae=>ae.overflows[0]<=0).sort((ae,Z)=>ae.overflows[1]-Z.overflows[1])[0])==null?void 0:fe.placement;if(!ne)switch(K){case"bestFit":{var ve;const ae=(ve=ge.filter(Z=>{if(re){const ee=getSideAxis(Z.placement);return ee===H||ee==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ee=>ee>0).reduce((ee,ce)=>ee+ce,0)]).sort((Z,ee)=>Z[1]-ee[1])[0])==null?void 0:ve[0];ae&&(ne=ae);break}case"initialPlacement":ne=h;break}if(s!==ne)return{reset:{placement:ne}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return sides.some(t=>e[t]>=0)}const hide$2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=evaluate(e,t);switch(i){case"referenceHidden":{const a=await detectOverflow(t,{...s,elementContext:"reference"}),l=getSideOffsets(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:isAnySideFullyClipped(l)}}}case"escaped":{const a=await detectOverflow(t,{...s,altBoundary:!0}),l=getSideOffsets(a,n.floating);return{data:{escapedOffsets:l,escaped:isAnySideFullyClipped(l)}}}default:return{}}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(e,t){const{placement:n,platform:i,elements:s}=e,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),l=getSide(n),h=getAlignment(n),d=getSideAxis(n)==="y",y=originSides.has(l)?-1:1,M=a&&d?-1:1,q=evaluate(t,e);let{mainAxis:F,crossAxis:K,alignmentAxis:W}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return h&&typeof W=="number"&&(K=h==="end"?W*-1:W),d?{x:K*M,y:F*y}:{x:F*y,y:K*M}}const offset$2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:a,placement:l,middlewareData:h}=t,d=await convertValueToCoords(t,e);return l===((n=h.offset)==null?void 0:n.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:a+d.y,data:{...d,placement:l}}}}},shift$2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:Q=>{let{x:G,y:H}=Q;return{x:G,y:H}}},...d}=evaluate(e,t),y={x:n,y:i},M=await detectOverflow(t,d),q=getSideAxis(getSide(s)),F=getOppositeAxis(q);let K=y[F],W=y[q];if(a){const Q=F==="y"?"top":"left",G=F==="y"?"bottom":"right",H=K+M[Q],V=K-M[G];K=clamp$1(H,K,V)}if(l){const Q=q==="y"?"top":"left",G=q==="y"?"bottom":"right",H=W+M[Q],V=W-M[G];W=clamp$1(H,W,V)}const j=h.fn({...t,[F]:K,[q]:W});return{...j,data:{x:j.x-n,y:j.y-i,enabled:{[F]:a,[q]:l}}}}}},limitShift$2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:h=0,mainAxis:d=!0,crossAxis:y=!0}=evaluate(e,t),M={x:n,y:i},q=getSideAxis(s),F=getOppositeAxis(q);let K=M[F],W=M[q];const j=evaluate(h,t),Q=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(d){const V=F==="y"?"height":"width",J=a.reference[F]-a.floating[V]+Q.mainAxis,te=a.reference[F]+a.reference[V]-Q.mainAxis;K<J?K=J:K>te&&(K=te)}if(y){var G,H;const V=F==="y"?"width":"height",J=originSides.has(getSide(s)),te=a.reference[q]-a.floating[V]+(J&&((G=l.offset)==null?void 0:G[q])||0)+(J?0:Q.crossAxis),re=a.reference[q]+a.reference[V]+(J?0:((H=l.offset)==null?void 0:H[q])||0)-(J?Q.crossAxis:0);W<te?W=te:W>re&&(W=re)}return{[F]:K,[q]:W}}}},size$2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:a,platform:l,elements:h}=t,{apply:d=()=>{},...y}=evaluate(e,t),M=await detectOverflow(t,y),q=getSide(s),F=getAlignment(s),K=getSideAxis(s)==="y",{width:W,height:j}=a.floating;let Q,G;q==="top"||q==="bottom"?(Q=q,G=F===(await(l.isRTL==null?void 0:l.isRTL(h.floating))?"start":"end")?"left":"right"):(G=q,Q=F==="end"?"top":"bottom");const H=j-M.top-M.bottom,V=W-M.left-M.right,J=min(j-M[Q],H),te=min(W-M[G],V),re=!t.middlewareData.shift;let ie=J,se=te;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(se=V),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(ie=H),re&&!F){const ge=max(M.left,0),de=max(M.right,0),fe=max(M.top,0),ve=max(M.bottom,0);K?se=W-2*(ge!==0||de!==0?ge+de:max(M.left,M.right)):ie=j-2*(fe!==0||ve!==0?fe+ve:max(M.top,M.bottom))}await d({...t,availableWidth:se,availableHeight:ie});const ue=await l.getDimensions(h.floating);return W!==ue.width||j!==ue.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return(t=(isNode(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function isNode(e){return hasWindow()?e instanceof Node||e instanceof getWindow(e).Node:!1}function isElement(e){return hasWindow()?e instanceof Element||e instanceof getWindow(e).Element:!1}function isHTMLElement(e){return hasWindow()?e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement:!1}function isShadowRoot(e){return!hasWindow()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!invalidOverflowDisplayValues.has(s)}const tableElements=new Set(["table","td","th"]);function isTableElement(e){return tableElements.has(getNodeName(e))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(e){return topLayerSelectors.some(t=>{try{return e.matches(t)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(e){const t=isWebKit(),n=isElement(e)?getComputedStyle$1(e):e;return transformProperties.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||willChangeValues.some(i=>(n.willChange||"").includes(i))||containValues.some(i=>(n.contain||"").includes(i))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(e){return lastTraversableNodeNames.has(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if(getNodeName(e)==="html")return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=getNearestOverflowAncestor(e),a=s===((i=e.ownerDocument)==null?void 0:i.body),l=getWindow(s);if(a){const h=getFrameElement(l);return t.concat(l,l.visualViewport||[],isOverflowElement(s)?s:[],h&&n?getOverflowAncestors(h):[])}return t.concat(s,getOverflowAncestors(s,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=getComputedStyle$1(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=isHTMLElement(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:i,h=round(n)!==a||round(i)!==l;return h&&(n=a,i=l),{width:n,height:i,$:h}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:a}=getCssDimensions(t);let l=(a?round(n.width):n.width)/i,h=(a?round(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!h||!Number.isFinite(h))&&(h=1),{x:l,y:h}}const noOffsets=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return!isWebKit()||!t.visualViewport?noOffsets:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function shouldAddVisualOffsets(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==getWindow(e)?!1:t}function getBoundingClientRect(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=unwrapElement(e);let l=createCoords(1);t&&(i?isElement(i)&&(l=getScale(i)):l=getScale(e));const h=shouldAddVisualOffsets(a,n,i)?getVisualOffsets(a):createCoords(0);let d=(s.left+h.x)/l.x,y=(s.top+h.y)/l.y,M=s.width/l.x,q=s.height/l.y;if(a){const F=getWindow(a),K=i&&isElement(i)?getWindow(i):i;let W=F,j=getFrameElement(W);for(;j&&i&&K!==W;){const Q=getScale(j),G=j.getBoundingClientRect(),H=getComputedStyle$1(j),V=G.left+(j.clientLeft+parseFloat(H.paddingLeft))*Q.x,J=G.top+(j.clientTop+parseFloat(H.paddingTop))*Q.y;d*=Q.x,y*=Q.y,M*=Q.x,q*=Q.y,d+=V,y+=J,W=getWindow(j),j=getFrameElement(W)}}return rectToClientRect({width:M,height:q,x:d,y})}function getWindowScrollBarX(e,t){const n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getHTMLOffset(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-getWindowScrollBarX(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const a=s==="fixed",l=getDocumentElement(i),h=t?isTopLayer(t.floating):!1;if(i===l||h&&a)return n;let d={scrollLeft:0,scrollTop:0},y=createCoords(1);const M=createCoords(0),q=isHTMLElement(i);if((q||!q&&!a)&&((getNodeName(i)!=="body"||isOverflowElement(l))&&(d=getNodeScroll(i)),isHTMLElement(i))){const K=getBoundingClientRect(i);y=getScale(i),M.x=K.x+i.clientLeft,M.y=K.y+i.clientTop}const F=l&&!q&&!a?getHTMLOffset(l,d):createCoords(0);return{width:n.width*y.x,height:n.height*y.y,x:n.x*y.x-d.scrollLeft*y.x+M.x+F.x,y:n.y*y.y-d.scrollTop*y.y+M.y+F.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){const t=getDocumentElement(e),n=getNodeScroll(e),i=e.ownerDocument.body,s=max(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=max(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+getWindowScrollBarX(e);const h=-n.scrollTop;return getComputedStyle$1(i).direction==="rtl"&&(l+=max(t.clientWidth,i.clientWidth)-s),{width:s,height:a,x:l,y:h}}const SCROLLBAR_MAX=25;function getViewportRect(e,t){const n=getWindow(e),i=getDocumentElement(e),s=n.visualViewport;let a=i.clientWidth,l=i.clientHeight,h=0,d=0;if(s){a=s.width,l=s.height;const M=isWebKit();(!M||M&&t==="fixed")&&(h=s.offsetLeft,d=s.offsetTop)}const y=getWindowScrollBarX(i);if(y<=0){const M=i.ownerDocument,q=M.body,F=getComputedStyle(q),K=M.compatMode==="CSS1Compat"&&parseFloat(F.marginLeft)+parseFloat(F.marginRight)||0,W=Math.abs(i.clientWidth-q.clientWidth-K);W<=SCROLLBAR_MAX&&(a-=W)}else y<=SCROLLBAR_MAX&&(a+=y);return{width:a,height:l,x:h,y:d}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,a=isHTMLElement(e)?getScale(e):createCoords(1),l=e.clientWidth*a.x,h=e.clientHeight*a.y,d=s*a.x,y=i*a.y;return{width:l,height:h,x:d,y}}function getClientRectFromClippingAncestor(e,t,n){let i;if(t==="viewport")i=getViewportRect(e,n);else if(t==="document")i=getDocumentRect(getDocumentElement(e));else if(isElement(t))i=getInnerBoundingClientRect(t,n);else{const s=getVisualOffsets(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return rectToClientRect(i)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return n===t||!isElement(n)||isLastTraversableNode(n)?!1:getComputedStyle$1(n).position==="fixed"||hasFixedPositionAncestor(n,t)}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let i=getOverflowAncestors(e,[],!1).filter(h=>isElement(h)&&getNodeName(h)!=="body"),s=null;const a=getComputedStyle$1(e).position==="fixed";let l=a?getParentNode(e):e;for(;isElement(l)&&!isLastTraversableNode(l);){const h=getComputedStyle$1(l),d=isContainingBlock(l);!d&&h.position==="fixed"&&(s=null),(a?!d&&!s:!d&&h.position==="static"&&!!s&&absoluteOrFixed.has(s.position)||isOverflowElement(l)&&!d&&hasFixedPositionAncestor(e,l))?i=i.filter(M=>M!==l):s=h,l=getParentNode(l)}return t.set(e,i),i}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=[...n==="clippingAncestors"?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n),i],h=l[0],d=l.reduce((y,M)=>{const q=getClientRectFromClippingAncestor(t,M,s);return y.top=max(q.top,y.top),y.right=min(q.right,y.right),y.bottom=min(q.bottom,y.bottom),y.left=max(q.left,y.left),y},getClientRectFromClippingAncestor(t,h,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function getDimensions(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){const i=isHTMLElement(t),s=getDocumentElement(t),a=n==="fixed",l=getBoundingClientRect(e,!0,a,t);let h={scrollLeft:0,scrollTop:0};const d=createCoords(0);function y(){d.x=getWindowScrollBarX(s)}if(i||!i&&!a)if((getNodeName(t)!=="body"||isOverflowElement(s))&&(h=getNodeScroll(t)),i){const K=getBoundingClientRect(t,!0,a,t);d.x=K.x+t.clientLeft,d.y=K.y+t.clientTop}else s&&y();a&&!i&&s&&y();const M=s&&!i&&!a?getHTMLOffset(s,h):createCoords(0),q=l.left+h.scrollLeft-d.x-M.x,F=l.top+h.scrollTop-d.y-M.y;return{x:q,y:F,width:l.width,height:l.height}}function isStaticPositioned(e){return getComputedStyle$1(e).position==="static"}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||getComputedStyle$1(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){const n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement(e)){let s=getParentNode(e);for(;s&&!isLastTraversableNode(s);){if(isElement(s)&&!isStaticPositioned(s))return s;s=getParentNode(s)}return n}let i=getTrueOffsetParent(e,t);for(;i&&isTableElement(i)&&isStaticPositioned(i);)i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?n:i||getContainingBlock(e)||n}const getElementRects=async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,i=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function isRTL(e){return getComputedStyle$1(e).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n=null,i;const s=getDocumentElement(e);function a(){var h;clearTimeout(i),(h=n)==null||h.disconnect(),n=null}function l(h,d){h===void 0&&(h=!1),d===void 0&&(d=1),a();const y=e.getBoundingClientRect(),{left:M,top:q,width:F,height:K}=y;if(h||t(),!F||!K)return;const W=floor(q),j=floor(s.clientWidth-(M+F)),Q=floor(s.clientHeight-(q+K)),G=floor(M),V={rootMargin:-W+"px "+-j+"px "+-Q+"px "+-G+"px",threshold:max(0,min(1,d))||1};let J=!0;function te(re){const ie=re[0].intersectionRatio;if(ie!==d){if(!J)return l();ie?l(!1,ie):i=setTimeout(()=>{l(!1,1e-7)},1e3)}ie===1&&!rectsAreEqual(y,e.getBoundingClientRect())&&l(),J=!1}try{n=new IntersectionObserver(te,{...V,root:s.ownerDocument})}catch{n=new IntersectionObserver(te,V)}n.observe(e)}return l(!0),a}function autoUpdate(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,y=unwrapElement(e),M=s||a?[...y?getOverflowAncestors(y):[],...getOverflowAncestors(t)]:[];M.forEach(G=>{s&&G.addEventListener("scroll",n,{passive:!0}),a&&G.addEventListener("resize",n)});const q=y&&h?observeMove(y,n):null;let F=-1,K=null;l&&(K=new ResizeObserver(G=>{let[H]=G;H&&H.target===y&&K&&(K.unobserve(t),cancelAnimationFrame(F),F=requestAnimationFrame(()=>{var V;(V=K)==null||V.observe(t)})),n()}),y&&!d&&K.observe(y),K.observe(t));let W,j=d?getBoundingClientRect(e):null;d&&Q();function Q(){const G=getBoundingClientRect(e);j&&!rectsAreEqual(j,G)&&n(),j=G,W=requestAnimationFrame(Q)}return n(),()=>{var G;M.forEach(H=>{s&&H.removeEventListener("scroll",n),a&&H.removeEventListener("resize",n)}),q?.(),(G=K)==null||G.disconnect(),K=null,d&&cancelAnimationFrame(W)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$1=size$2,hide$1=hide$2,arrow$2=arrow$3,limitShift$1=limitShift$2,computePosition=(e,t,n)=>{const i=new Map,s={platform,...n},a={...s.platform,_c:i};return computePosition$1(e,t,{...s,platform:a})};var isClient=typeof document<"u",noop=function(){},index=isClient?React.useLayoutEffect:noop;function deepEqual(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!deepEqual(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const a=s[i];if(!(a==="_owner"&&e.$$typeof)&&!deepEqual(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function getDPR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){const n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){const t=React__namespace.useRef(e);return index(()=>{t.current=e}),t}function useFloating(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:l}={},transform:h=!0,whileElementsMounted:d,open:y}=e,[M,q]=React__namespace.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[F,K]=React__namespace.useState(i);deepEqual(F,i)||K(i);const[W,j]=React__namespace.useState(null),[Q,G]=React__namespace.useState(null),H=React__namespace.useCallback(Z=>{Z!==re.current&&(re.current=Z,j(Z))},[]),V=React__namespace.useCallback(Z=>{Z!==ie.current&&(ie.current=Z,G(Z))},[]),J=a||W,te=l||Q,re=React__namespace.useRef(null),ie=React__namespace.useRef(null),se=React__namespace.useRef(M),ue=d!=null,ge=useLatestRef(d),de=useLatestRef(s),fe=useLatestRef(y),ve=React__namespace.useCallback(()=>{if(!re.current||!ie.current)return;const Z={placement:t,strategy:n,middleware:F};de.current&&(Z.platform=de.current),computePosition(re.current,ie.current,Z).then(ee=>{const ce={...ee,isPositioned:fe.current!==!1};me.current&&!deepEqual(se.current,ce)&&(se.current=ce,ReactDOM__namespace.flushSync(()=>{q(ce)}))})},[F,t,n,de,fe]);index(()=>{y===!1&&se.current.isPositioned&&(se.current.isPositioned=!1,q(Z=>({...Z,isPositioned:!1})))},[y]);const me=React__namespace.useRef(!1);index(()=>(me.current=!0,()=>{me.current=!1}),[]),index(()=>{if(J&&(re.current=J),te&&(ie.current=te),J&&te){if(ge.current)return ge.current(J,te,ve);ve()}},[J,te,ve,ge,ue]);const he=React__namespace.useMemo(()=>({reference:re,floating:ie,setReference:H,setFloating:V}),[H,V]),ne=React__namespace.useMemo(()=>({reference:J,floating:te}),[J,te]),ae=React__namespace.useMemo(()=>{const Z={position:n,left:0,top:0};if(!ne.floating)return Z;const ee=roundByDPR(ne.floating,M.x),ce=roundByDPR(ne.floating,M.y);return h?{...Z,transform:"translate("+ee+"px, "+ce+"px)",...getDPR(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:ce}},[n,h,ne.floating,M.x,M.y]);return React__namespace.useMemo(()=>({...M,update:ve,refs:he,elements:ne,floatingStyles:ae}),[M,ve,he,ne,ae])}const arrow$1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?arrow$2({element:i.current,padding:s}).fn(n):{}:i?arrow$2({element:i,padding:s}).fn(n):{}}}},offset=(e,t)=>({...offset$1(e),options:[e,t]}),shift=(e,t)=>({...shift$1(e),options:[e,t]}),limitShift=(e,t)=>({...limitShift$1(e),options:[e,t]}),flip=(e,t)=>({...flip$1(e),options:[e,t]}),size=(e,t)=>({...size$1(e),options:[e,t]}),hide=(e,t)=>({...hide$1(e),options:[e,t]}),arrow=(e,t)=>({...arrow$1(e),options:[e,t]});var NAME$1="Arrow",Arrow$1=React__namespace.forwardRef((e,t)=>{const{children:n,width:i=10,height:s=5,...a}=e;return jsxRuntimeExports.jsx(Primitive.svg,{...a,ref:t,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Arrow$1.displayName=NAME$1;var Root$2=Arrow$1;function useSize(e){const[t,n]=React__namespace.useState(void 0);return useLayoutEffect2(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,h;if("borderBoxSize"in a){const d=a.borderBoxSize,y=Array.isArray(d)?d[0]:d;l=y.inlineSize,h=y.blockSize}else l=e.offsetWidth,h=e.offsetHeight;n({width:l,height:h})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var POPPER_NAME="Popper",[createPopperContext,createPopperScope]=createContextScope(POPPER_NAME),[PopperProvider,usePopperContext]=createPopperContext(POPPER_NAME),Popper=e=>{const{__scopePopper:t,children:n}=e,[i,s]=React__namespace.useState(null);return jsxRuntimeExports.jsx(PopperProvider,{scope:t,anchor:i,onAnchorChange:s,children:n})};Popper.displayName=POPPER_NAME;var ANCHOR_NAME$1="PopperAnchor",PopperAnchor=React__namespace.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...s}=e,a=usePopperContext(ANCHOR_NAME$1,n),l=React__namespace.useRef(null),h=useComposedRefs(t,l),d=React__namespace.useRef(null);return React__namespace.useEffect(()=>{const y=d.current;d.current=i?.current||l.current,y!==d.current&&a.onAnchorChange(d.current)}),i?null:jsxRuntimeExports.jsx(Primitive.div,{...s,ref:h})});PopperAnchor.displayName=ANCHOR_NAME$1;var CONTENT_NAME$4="PopperContent",[PopperContentProvider,useContentContext]=createPopperContext(CONTENT_NAME$4),PopperContent=React__namespace.forwardRef((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,arrowPadding:h=0,avoidCollisions:d=!0,collisionBoundary:y=[],collisionPadding:M=0,sticky:q="partial",hideWhenDetached:F=!1,updatePositionStrategy:K="optimized",onPlaced:W,...j}=e,Q=usePopperContext(CONTENT_NAME$4,n),[G,H]=React__namespace.useState(null),V=useComposedRefs(t,xe=>H(xe)),[J,te]=React__namespace.useState(null),re=useSize(J),ie=re?.width??0,se=re?.height??0,ue=i+(a!=="center"?"-"+a:""),ge=typeof M=="number"?M:{top:0,right:0,bottom:0,left:0,...M},de=Array.isArray(y)?y:[y],fe=de.length>0,ve={padding:ge,boundary:de.filter(isNotNull),altBoundary:fe},{refs:me,floatingStyles:he,placement:ne,isPositioned:ae,middlewareData:Z}=useFloating({strategy:"fixed",placement:ue,whileElementsMounted:(...xe)=>autoUpdate(...xe,{animationFrame:K==="always"}),elements:{reference:Q.anchor},middleware:[offset({mainAxis:s+se,alignmentAxis:l}),d&&shift({mainAxis:!0,crossAxis:!1,limiter:q==="partial"?limitShift():void 0,...ve}),d&&flip({...ve}),size({...ve,apply:({elements:xe,rects:Pe,availableWidth:Fe,availableHeight:Re})=>{const{width:Ae,height:Ie}=Pe.reference,Me=xe.floating.style;Me.setProperty("--radix-popper-available-width",`${Fe}px`),Me.setProperty("--radix-popper-available-height",`${Re}px`),Me.setProperty("--radix-popper-anchor-width",`${Ae}px`),Me.setProperty("--radix-popper-anchor-height",`${Ie}px`)}}),J&&arrow({element:J,padding:h}),transformOrigin({arrowWidth:ie,arrowHeight:se}),F&&hide({strategy:"referenceHidden",...ve})]}),[ee,ce]=getSideAndAlignFromPlacement(ne),oe=useCallbackRef$1(W);useLayoutEffect2(()=>{ae&&oe?.()},[ae,oe]);const pe=Z.arrow?.x,ye=Z.arrow?.y,be=Z.arrow?.centerOffset!==0,[Ce,we]=React__namespace.useState();return useLayoutEffect2(()=>{G&&we(window.getComputedStyle(G).zIndex)},[G]),jsxRuntimeExports.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:ae?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:jsxRuntimeExports.jsx(PopperContentProvider,{scope:n,placedSide:ee,onArrowChange:te,arrowX:pe,arrowY:ye,shouldHideArrow:be,children:jsxRuntimeExports.jsx(Primitive.div,{"data-side":ee,"data-align":ce,...j,ref:V,style:{...j.style,animation:ae?void 0:"none"}})})})});PopperContent.displayName=CONTENT_NAME$4;var ARROW_NAME$4="PopperArrow",OPPOSITE_SIDE={top:"bottom",right:"left",bottom:"top",left:"right"},PopperArrow=React__namespace.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,a=useContentContext(ARROW_NAME$4,i),l=OPPOSITE_SIDE[a.placedSide];return jsxRuntimeExports.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:jsxRuntimeExports.jsx(Root$2,{...s,ref:n,style:{...s.style,display:"block"}})})});PopperArrow.displayName=ARROW_NAME$4;function isNotNull(e){return e!==null}var transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:s}=t,l=s.arrow?.centerOffset!==0,h=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[y,M]=getSideAndAlignFromPlacement(n),q={start:"0%",center:"50%",end:"100%"}[M],F=(s.arrow?.x??0)+h/2,K=(s.arrow?.y??0)+d/2;let W="",j="";return y==="bottom"?(W=l?q:`${F}px`,j=`${-d}px`):y==="top"?(W=l?q:`${F}px`,j=`${i.floating.height+d}px`):y==="right"?(W=`${-d}px`,j=l?q:`${K}px`):y==="left"&&(W=`${i.floating.width+d}px`,j=l?q:`${K}px`),{data:{x:W,y:j}}}});function getSideAndAlignFromPlacement(e){const[t,n="center"]=e.split("-");return[t,n]}var Root2$2=Popper,Anchor=PopperAnchor,Content=PopperContent,Arrow=PopperArrow,PORTAL_NAME$4="Portal",Portal$3=React__namespace.forwardRef((e,t)=>{const{container:n,...i}=e,[s,a]=React__namespace.useState(!1);useLayoutEffect2(()=>a(!0),[]);const l=n||s&&globalThis?.document?.body;return l?ReactDOM.createPortal(jsxRuntimeExports.jsx(Primitive.div,{...i,ref:t}),l):null});Portal$3.displayName=PORTAL_NAME$4;function useStateMachine(e,t){return React__namespace.useReducer((n,i)=>t[n][i]??n,e)}var Presence=e=>{const{present:t,children:n}=e,i=usePresence(t),s=typeof n=="function"?n({present:i.isPresent}):React__namespace.Children.only(n),a=useComposedRefs(i.ref,getElementRef(s));return typeof n=="function"||i.isPresent?React__namespace.cloneElement(s,{ref:a}):null};Presence.displayName="Presence";function usePresence(e){const[t,n]=React__namespace.useState(),i=React__namespace.useRef(null),s=React__namespace.useRef(e),a=React__namespace.useRef("none"),l=e?"mounted":"unmounted",[h,d]=useStateMachine(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return React__namespace.useEffect(()=>{const y=getAnimationName(i.current);a.current=h==="mounted"?y:"none"},[h]),useLayoutEffect2(()=>{const y=i.current,M=s.current;if(M!==e){const F=a.current,K=getAnimationName(y);e?d("MOUNT"):K==="none"||y?.display==="none"?d("UNMOUNT"):d(M&&F!==K?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,d]),useLayoutEffect2(()=>{if(t){let y;const M=t.ownerDocument.defaultView??window,q=K=>{const j=getAnimationName(i.current).includes(CSS.escape(K.animationName));if(K.target===t&&j&&(d("ANIMATION_END"),!s.current)){const Q=t.style.animationFillMode;t.style.animationFillMode="forwards",y=M.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=Q)})}},F=K=>{K.target===t&&(a.current=getAnimationName(i.current))};return t.addEventListener("animationstart",F),t.addEventListener("animationcancel",q),t.addEventListener("animationend",q),()=>{M.clearTimeout(y),t.removeEventListener("animationstart",F),t.removeEventListener("animationcancel",q),t.removeEventListener("animationend",q)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:React__namespace.useCallback(y=>{i.current=y?getComputedStyle(y):null,n(y)},[])}}function getAnimationName(e){return e?.animationName||"none"}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",EVENT_OPTIONS={bubbles:!1,cancelable:!0},GROUP_NAME$3="RovingFocusGroup",[Collection$2,useCollection$2,createCollectionScope$2]=createCollection(GROUP_NAME$3),[createRovingFocusGroupContext,createRovingFocusGroupScope]=createContextScope(GROUP_NAME$3,[createCollectionScope$2]),[RovingFocusProvider,useRovingFocusContext]=createRovingFocusGroupContext(GROUP_NAME$3),RovingFocusGroup=React__namespace.forwardRef((e,t)=>jsxRuntimeExports.jsx(Collection$2.Provider,{scope:e.__scopeRovingFocusGroup,children:jsxRuntimeExports.jsx(Collection$2.Slot,{scope:e.__scopeRovingFocusGroup,children:jsxRuntimeExports.jsx(RovingFocusGroupImpl,{...e,ref:t})})}));RovingFocusGroup.displayName=GROUP_NAME$3;var RovingFocusGroupImpl=React__namespace.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:d,onEntryFocus:y,preventScrollOnEntryFocus:M=!1,...q}=e,F=React__namespace.useRef(null),K=useComposedRefs(t,F),W=useDirection(a),[j,Q]=useControllableState({prop:l,defaultProp:h??null,onChange:d,caller:GROUP_NAME$3}),[G,H]=React__namespace.useState(!1),V=useCallbackRef$1(y),J=useCollection$2(n),te=React__namespace.useRef(!1),[re,ie]=React__namespace.useState(0);return React__namespace.useEffect(()=>{const se=F.current;if(se)return se.addEventListener(ENTRY_FOCUS,V),()=>se.removeEventListener(ENTRY_FOCUS,V)},[V]),jsxRuntimeExports.jsx(RovingFocusProvider,{scope:n,orientation:i,dir:W,loop:s,currentTabStopId:j,onItemFocus:React__namespace.useCallback(se=>Q(se),[Q]),onItemShiftTab:React__namespace.useCallback(()=>H(!0),[]),onFocusableItemAdd:React__namespace.useCallback(()=>ie(se=>se+1),[]),onFocusableItemRemove:React__namespace.useCallback(()=>ie(se=>se-1),[]),children:jsxRuntimeExports.jsx(Primitive.div,{tabIndex:G||re===0?-1:0,"data-orientation":i,...q,ref:K,style:{outline:"none",...e.style},onMouseDown:composeEventHandlers(e.onMouseDown,()=>{te.current=!0}),onFocus:composeEventHandlers(e.onFocus,se=>{const ue=!te.current;if(se.target===se.currentTarget&&ue&&!G){const ge=new CustomEvent(ENTRY_FOCUS,EVENT_OPTIONS);if(se.currentTarget.dispatchEvent(ge),!ge.defaultPrevented){const de=J().filter(ne=>ne.focusable),fe=de.find(ne=>ne.active),ve=de.find(ne=>ne.id===j),he=[fe,ve,...de].filter(Boolean).map(ne=>ne.ref.current);focusFirst$1(he,M)}}te.current=!1}),onBlur:composeEventHandlers(e.onBlur,()=>H(!1))})})}),ITEM_NAME$3="RovingFocusGroupItem",RovingFocusGroupItem=React__namespace.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:a,children:l,...h}=e,d=useId(),y=a||d,M=useRovingFocusContext(ITEM_NAME$3,n),q=M.currentTabStopId===y,F=useCollection$2(n),{onFocusableItemAdd:K,onFocusableItemRemove:W,currentTabStopId:j}=M;return React__namespace.useEffect(()=>{if(i)return K(),()=>W()},[i,K,W]),jsxRuntimeExports.jsx(Collection$2.ItemSlot,{scope:n,id:y,focusable:i,active:s,children:jsxRuntimeExports.jsx(Primitive.span,{tabIndex:q?0:-1,"data-orientation":M.orientation,...h,ref:t,onMouseDown:composeEventHandlers(e.onMouseDown,Q=>{i?M.onItemFocus(y):Q.preventDefault()}),onFocus:composeEventHandlers(e.onFocus,()=>M.onItemFocus(y)),onKeyDown:composeEventHandlers(e.onKeyDown,Q=>{if(Q.key==="Tab"&&Q.shiftKey){M.onItemShiftTab();return}if(Q.target!==Q.currentTarget)return;const G=getFocusIntent(Q,M.orientation,M.dir);if(G!==void 0){if(Q.metaKey||Q.ctrlKey||Q.altKey||Q.shiftKey)return;Q.preventDefault();let V=F().filter(J=>J.focusable).map(J=>J.ref.current);if(G==="last")V.reverse();else if(G==="prev"||G==="next"){G==="prev"&&V.reverse();const J=V.indexOf(Q.currentTarget);V=M.loop?wrapArray$2(V,J+1):V.slice(J+1)}setTimeout(()=>focusFirst$1(V))}}),children:typeof l=="function"?l({isCurrentTabStop:q,hasTabStop:j!=null}):l})})});RovingFocusGroupItem.displayName=ITEM_NAME$3;var MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function getDirectionAwareKey(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function getFocusIntent(e,t,n){const i=getDirectionAwareKey(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return MAP_KEY_TO_FOCUS_INTENT[i]}function focusFirst$1(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function wrapArray$2(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var Root$1=RovingFocusGroup,Item$1=RovingFocusGroupItem,getDefaultParent=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(e){return e&&(e.host||unwrapHost(e.parentNode))},correctTargets=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=unwrapHost(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},applyAttributeToOthers=function(e,t,n,i){var s=correctTargets(t,Array.isArray(e)?e:[e]);markerMap[n]||(markerMap[n]=new WeakMap);var a=markerMap[n],l=[],h=new Set,d=new Set(s),y=function(q){!q||h.has(q)||(h.add(q),y(q.parentNode))};s.forEach(y);var M=function(q){!q||d.has(q)||Array.prototype.forEach.call(q.children,function(F){if(h.has(F))M(F);else try{var K=F.getAttribute(i),W=K!==null&&K!=="false",j=(counterMap.get(F)||0)+1,Q=(a.get(F)||0)+1;counterMap.set(F,j),a.set(F,Q),l.push(F),j===1&&W&&uncontrolledNodes.set(F,!0),Q===1&&F.setAttribute(n,"true"),W||F.setAttribute(i,"true")}catch(G){console.error("aria-hidden: cannot operate on ",F,G)}})};return M(t),h.clear(),lockCount++,function(){l.forEach(function(q){var F=counterMap.get(q)-1,K=a.get(q)-1;counterMap.set(q,F),a.set(q,K),F||(uncontrolledNodes.has(q)||q.removeAttribute(i),uncontrolledNodes.delete(q)),K||q.removeAttribute(n)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=getDefaultParent(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),applyAttributeToOthers(i,s,n,"aria-hidden")):function(){return null}},__assign=function(){return __assign=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},__assign.apply(this,arguments)};function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function __spreadArray(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function useCallbackRef(e,t){var n=React.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var useIsomorphicLayoutEffect=typeof window<"u"?React__namespace.useLayoutEffect:React__namespace.useEffect,currentValues=new WeakMap;function useMergeRefs(e,t){var n=useCallbackRef(null,function(i){return e.forEach(function(s){return assignRef(s,i)})});return useIsomorphicLayoutEffect(function(){var i=currentValues.get(n);if(i){var s=new Set(i),a=new Set(e),l=n.current;s.forEach(function(h){a.has(h)||assignRef(h,null)}),a.forEach(function(h){s.has(h)||assignRef(h,l)})}currentValues.set(n,e)},[e]),n}function ItoI(e){return e}function innerCreateMedium(e,t){t===void 0&&(t=ItoI);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var l=t(a,i);return n.push(l),function(){n=n.filter(function(h){return h!==l})}},assignSyncMedium:function(a){for(i=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(h){return a(h)},filter:function(){return n}}},assignMedium:function(a){i=!0;var l=[];if(n.length){var h=n;n=[],h.forEach(a),l=n}var d=function(){var M=l;l=[],M.forEach(a)},y=function(){return Promise.resolve().then(d)};y(),n={push:function(M){l.push(M),y()},filter:function(M){return l=l.filter(M),n}}}};return s}function createSidecarMedium(e){e===void 0&&(e={});var t=innerCreateMedium(null);return t.options=__assign({async:!0,ssr:!1},e),t}var SideCar$1=function(e){var t=e.sideCar,n=__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return React__namespace.createElement(i,__assign({},n))};SideCar$1.isSideCarExport=!0;function exportSidecar(e,t){return e.useMedium(t),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=React__namespace.forwardRef(function(e,t){var n=React__namespace.useRef(null),i=React__namespace.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),s=i[0],a=i[1],l=e.forwardProps,h=e.children,d=e.className,y=e.removeScrollBar,M=e.enabled,q=e.shards,F=e.sideCar,K=e.noRelative,W=e.noIsolation,j=e.inert,Q=e.allowPinchZoom,G=e.as,H=G===void 0?"div":G,V=e.gapMode,J=__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),te=F,re=useMergeRefs([n,t]),ie=__assign(__assign({},J),s);return React__namespace.createElement(React__namespace.Fragment,null,M&&React__namespace.createElement(te,{sideCar:effectCar,removeScrollBar:y,shards:q,noRelative:K,noIsolation:W,inert:j,setCallbacks:a,allowPinchZoom:!!Q,lockRef:n,gapMode:V}),l?React__namespace.cloneElement(React__namespace.Children.only(h),__assign(__assign({},ie),{ref:re})):React__namespace.createElement(H,__assign({},ie,{className:d,ref:re}),h))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=getNonce();return t&&e.setAttribute("nonce",t),e}function injectStyles(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function insertStyleTag(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var stylesheetSingleton=function(){var e=0,t=null;return{add:function(n){e==0&&(t=makeStyleTag())&&(injectStyles(t,n),insertStyleTag(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t,n){React__namespace.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},styleSingleton=function(){var e=styleHookSingleton(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},zeroGap={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[parse(n),parse(i),parse(s)]},getGapWidth=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zeroGap;var t=getOffset(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(e,t,n,i){var s=e.left,a=e.top,l=e.right,h=e.gap;return n===void 0&&(n="margin"),`
|
|
15
|
-
.`.concat(noScrollbarsClassName,` {
|
|
16
|
-
overflow: hidden `).concat(i,`;
|
|
17
|
-
padding-right: `).concat(h,"px ").concat(i,`;
|
|
18
|
-
}
|
|
19
|
-
body[`).concat(lockAttribute,`] {
|
|
20
|
-
overflow: hidden `).concat(i,`;
|
|
21
|
-
overscroll-behavior: contain;
|
|
22
|
-
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
23
|
-
padding-left: `.concat(s,`px;
|
|
24
|
-
padding-top: `).concat(a,`px;
|
|
25
|
-
padding-right: `).concat(l,`px;
|
|
26
|
-
margin-left:0;
|
|
27
|
-
margin-top:0;
|
|
28
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
29
|
-
`),n==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.`).concat(zeroRightClassName,` {
|
|
33
|
-
right: `).concat(h,"px ").concat(i,`;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.`).concat(fullWidthClassName,` {
|
|
37
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.`).concat(zeroRightClassName," .").concat(zeroRightClassName,` {
|
|
41
|
-
right: 0 `).concat(i,`;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.`).concat(fullWidthClassName," .").concat(fullWidthClassName,` {
|
|
45
|
-
margin-right: 0 `).concat(i,`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
body[`).concat(lockAttribute,`] {
|
|
49
|
-
`).concat(removedBarSizeVariable,": ").concat(h,`px;
|
|
50
|
-
}
|
|
51
|
-
`)},getCurrentUseCounter=function(){var e=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(e)?e:0},useLockAttribute=function(){React__namespace.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var e=getCurrentUseCounter()-1;e<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,e.toString())}},[])},RemoveScrollBar=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;useLockAttribute();var a=React__namespace.useMemo(function(){return getGapWidth(s)},[s]);return React__namespace.createElement(Style,{styles:getStyles(a,!t,s,n?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(e){return e.tagName==="TEXTAREA"},elementCanBeScrolled=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!alwaysContainsScroll(e)&&n[t]==="visible")},elementCouldBeVScrolled=function(e){return elementCanBeScrolled(e,"overflowY")},elementCouldBeHScrolled=function(e){return elementCanBeScrolled(e,"overflowX")},locationCouldBeScrolled=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=elementCouldBeScrolled(e,i);if(s){var a=getScrollVariables(e,i),l=a[1],h=a[2];if(l>h)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},getVScrollVariables=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},getHScrollVariables=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},elementCouldBeScrolled=function(e,t){return e==="v"?elementCouldBeVScrolled(t):elementCouldBeHScrolled(t)},getScrollVariables=function(e,t){return e==="v"?getVScrollVariables(t):getHScrollVariables(t)},getDirectionFactor=function(e,t){return e==="h"&&t==="rtl"?-1:1},handleScroll=function(e,t,n,i,s){var a=getDirectionFactor(e,window.getComputedStyle(t).direction),l=a*i,h=n.target,d=t.contains(h),y=!1,M=l>0,q=0,F=0;do{if(!h)break;var K=getScrollVariables(e,h),W=K[0],j=K[1],Q=K[2],G=j-Q-a*W;(W||G)&&elementCouldBeScrolled(e,h)&&(q+=G,F+=W);var H=h.parentNode;h=H&&H.nodeType===Node.DOCUMENT_FRAGMENT_NODE?H.host:H}while(!d&&h!==document.body||d&&(t.contains(h)||t===h));return(M&&Math.abs(q)<1||!M&&Math.abs(F)<1)&&(y=!0),y},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},extractRef=function(e){return e&&"current"in e?e.current:e},deltaCompare=function(e,t){return e[0]===t[0]&&e[1]===t[1]},generateStyle=function(e){return`
|
|
52
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
53
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
54
|
-
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(e){var t=React__namespace.useRef([]),n=React__namespace.useRef([0,0]),i=React__namespace.useRef(),s=React__namespace.useState(idCounter++)[0],a=React__namespace.useState(styleSingleton)[0],l=React__namespace.useRef(e);React__namespace.useEffect(function(){l.current=e},[e]),React__namespace.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var j=__spreadArray([e.lockRef.current],(e.shards||[]).map(extractRef),!0).filter(Boolean);return j.forEach(function(Q){return Q.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),j.forEach(function(Q){return Q.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=React__namespace.useCallback(function(j,Q){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!l.current.allowPinchZoom;var G=getTouchXY(j),H=n.current,V="deltaX"in j?j.deltaX:H[0]-G[0],J="deltaY"in j?j.deltaY:H[1]-G[1],te,re=j.target,ie=Math.abs(V)>Math.abs(J)?"h":"v";if("touches"in j&&ie==="h"&&re.type==="range")return!1;var se=window.getSelection(),ue=se&&se.anchorNode,ge=ue?ue===re||ue.contains(re):!1;if(ge)return!1;var de=locationCouldBeScrolled(ie,re);if(!de)return!0;if(de?te=ie:(te=ie==="v"?"h":"v",de=locationCouldBeScrolled(ie,re)),!de)return!1;if(!i.current&&"changedTouches"in j&&(V||J)&&(i.current=te),!te)return!0;var fe=i.current||te;return handleScroll(fe,Q,j,fe==="h"?V:J)},[]),d=React__namespace.useCallback(function(j){var Q=j;if(!(!lockStack.length||lockStack[lockStack.length-1]!==a)){var G="deltaY"in Q?getDeltaXY(Q):getTouchXY(Q),H=t.current.filter(function(te){return te.name===Q.type&&(te.target===Q.target||Q.target===te.shadowParent)&&deltaCompare(te.delta,G)})[0];if(H&&H.should){Q.cancelable&&Q.preventDefault();return}if(!H){var V=(l.current.shards||[]).map(extractRef).filter(Boolean).filter(function(te){return te.contains(Q.target)}),J=V.length>0?h(Q,V[0]):!l.current.noIsolation;J&&Q.cancelable&&Q.preventDefault()}}},[]),y=React__namespace.useCallback(function(j,Q,G,H){var V={name:j,delta:Q,target:G,should:H,shadowParent:getOutermostShadowParent(G)};t.current.push(V),setTimeout(function(){t.current=t.current.filter(function(J){return J!==V})},1)},[]),M=React__namespace.useCallback(function(j){n.current=getTouchXY(j),i.current=void 0},[]),q=React__namespace.useCallback(function(j){y(j.type,getDeltaXY(j),j.target,h(j,e.lockRef.current))},[]),F=React__namespace.useCallback(function(j){y(j.type,getTouchXY(j),j.target,h(j,e.lockRef.current))},[]);React__namespace.useEffect(function(){return lockStack.push(a),e.setCallbacks({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:F}),document.addEventListener("wheel",d,nonPassive),document.addEventListener("touchmove",d,nonPassive),document.addEventListener("touchstart",M,nonPassive),function(){lockStack=lockStack.filter(function(j){return j!==a}),document.removeEventListener("wheel",d,nonPassive),document.removeEventListener("touchmove",d,nonPassive),document.removeEventListener("touchstart",M,nonPassive)}},[]);var K=e.removeScrollBar,W=e.inert;return React__namespace.createElement(React__namespace.Fragment,null,W?React__namespace.createElement(a,{styles:generateStyle(s)}):null,K?React__namespace.createElement(RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function getOutermostShadowParent(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=React__namespace.forwardRef(function(e,t){return React__namespace.createElement(RemoveScroll,__assign({},e,{ref:t,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var SELECTION_KEYS$1=["Enter"," "],FIRST_KEYS=["ArrowDown","PageUp","Home"],LAST_KEYS=["ArrowUp","PageDown","End"],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],SUB_OPEN_KEYS={ltr:[...SELECTION_KEYS$1,"ArrowRight"],rtl:[...SELECTION_KEYS$1,"ArrowLeft"]},SUB_CLOSE_KEYS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},MENU_NAME="Menu",[Collection$1,useCollection$1,createCollectionScope$1]=createCollection(MENU_NAME),[createMenuContext,createMenuScope]=createContextScope(MENU_NAME,[createCollectionScope$1,createPopperScope,createRovingFocusGroupScope]),usePopperScope$2=createPopperScope(),useRovingFocusGroupScope=createRovingFocusGroupScope(),[MenuProvider,useMenuContext]=createMenuContext(MENU_NAME),[MenuRootProvider,useMenuRootContext]=createMenuContext(MENU_NAME),Menu=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:s,onOpenChange:a,modal:l=!0}=e,h=usePopperScope$2(t),[d,y]=React__namespace.useState(null),M=React__namespace.useRef(!1),q=useCallbackRef$1(a),F=useDirection(s);return React__namespace.useEffect(()=>{const K=()=>{M.current=!0,document.addEventListener("pointerdown",W,{capture:!0,once:!0}),document.addEventListener("pointermove",W,{capture:!0,once:!0})},W=()=>M.current=!1;return document.addEventListener("keydown",K,{capture:!0}),()=>{document.removeEventListener("keydown",K,{capture:!0}),document.removeEventListener("pointerdown",W,{capture:!0}),document.removeEventListener("pointermove",W,{capture:!0})}},[]),jsxRuntimeExports.jsx(Root2$2,{...h,children:jsxRuntimeExports.jsx(MenuProvider,{scope:t,open:n,onOpenChange:q,content:d,onContentChange:y,children:jsxRuntimeExports.jsx(MenuRootProvider,{scope:t,onClose:React__namespace.useCallback(()=>q(!1),[q]),isUsingKeyboardRef:M,dir:F,modal:l,children:i})})})};Menu.displayName=MENU_NAME;var ANCHOR_NAME="MenuAnchor",MenuAnchor=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,s=usePopperScope$2(n);return jsxRuntimeExports.jsx(Anchor,{...s,...i,ref:t})});MenuAnchor.displayName=ANCHOR_NAME;var PORTAL_NAME$3="MenuPortal",[PortalProvider$1,usePortalContext$1]=createMenuContext(PORTAL_NAME$3,{forceMount:void 0}),MenuPortal=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:s}=e,a=useMenuContext(PORTAL_NAME$3,t);return jsxRuntimeExports.jsx(PortalProvider$1,{scope:t,forceMount:n,children:jsxRuntimeExports.jsx(Presence,{present:n||a.open,children:jsxRuntimeExports.jsx(Portal$3,{asChild:!0,container:s,children:i})})})};MenuPortal.displayName=PORTAL_NAME$3;var CONTENT_NAME$3="MenuContent",[MenuContentProvider,useMenuContentContext]=createMenuContext(CONTENT_NAME$3),MenuContent=React__namespace.forwardRef((e,t)=>{const n=usePortalContext$1(CONTENT_NAME$3,e.__scopeMenu),{forceMount:i=n.forceMount,...s}=e,a=useMenuContext(CONTENT_NAME$3,e.__scopeMenu),l=useMenuRootContext(CONTENT_NAME$3,e.__scopeMenu);return jsxRuntimeExports.jsx(Collection$1.Provider,{scope:e.__scopeMenu,children:jsxRuntimeExports.jsx(Presence,{present:i||a.open,children:jsxRuntimeExports.jsx(Collection$1.Slot,{scope:e.__scopeMenu,children:l.modal?jsxRuntimeExports.jsx(MenuRootContentModal,{...s,ref:t}):jsxRuntimeExports.jsx(MenuRootContentNonModal,{...s,ref:t})})})})}),MenuRootContentModal=React__namespace.forwardRef((e,t)=>{const n=useMenuContext(CONTENT_NAME$3,e.__scopeMenu),i=React__namespace.useRef(null),s=useComposedRefs(t,i);return React__namespace.useEffect(()=>{const a=i.current;if(a)return hideOthers(a)},[]),jsxRuntimeExports.jsx(MenuContentImpl,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:composeEventHandlers(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),MenuRootContentNonModal=React__namespace.forwardRef((e,t)=>{const n=useMenuContext(CONTENT_NAME$3,e.__scopeMenu);return jsxRuntimeExports.jsx(MenuContentImpl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Slot$1=createSlot("MenuContent.ScrollLock"),MenuContentImpl=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:h,onEntryFocus:d,onEscapeKeyDown:y,onPointerDownOutside:M,onFocusOutside:q,onInteractOutside:F,onDismiss:K,disableOutsideScroll:W,...j}=e,Q=useMenuContext(CONTENT_NAME$3,n),G=useMenuRootContext(CONTENT_NAME$3,n),H=usePopperScope$2(n),V=useRovingFocusGroupScope(n),J=useCollection$1(n),[te,re]=React__namespace.useState(null),ie=React__namespace.useRef(null),se=useComposedRefs(t,ie,Q.onContentChange),ue=React__namespace.useRef(0),ge=React__namespace.useRef(""),de=React__namespace.useRef(0),fe=React__namespace.useRef(null),ve=React__namespace.useRef("right"),me=React__namespace.useRef(0),he=W?ReactRemoveScroll:React__namespace.Fragment,ne=W?{as:Slot$1,allowPinchZoom:!0}:void 0,ae=ee=>{const ce=ge.current+ee,oe=J().filter(xe=>!xe.disabled),pe=document.activeElement,ye=oe.find(xe=>xe.ref.current===pe)?.textValue,be=oe.map(xe=>xe.textValue),Ce=getNextMatch(be,ce,ye),we=oe.find(xe=>xe.textValue===Ce)?.ref.current;(function xe(Pe){ge.current=Pe,window.clearTimeout(ue.current),Pe!==""&&(ue.current=window.setTimeout(()=>xe(""),1e3))})(ce),we&&setTimeout(()=>we.focus())};React__namespace.useEffect(()=>()=>window.clearTimeout(ue.current),[]),useFocusGuards();const Z=React__namespace.useCallback(ee=>ve.current===fe.current?.side&&isPointerInGraceArea(ee,fe.current?.area),[]);return jsxRuntimeExports.jsx(MenuContentProvider,{scope:n,searchRef:ge,onItemEnter:React__namespace.useCallback(ee=>{Z(ee)&&ee.preventDefault()},[Z]),onItemLeave:React__namespace.useCallback(ee=>{Z(ee)||(ie.current?.focus(),re(null))},[Z]),onTriggerLeave:React__namespace.useCallback(ee=>{Z(ee)&&ee.preventDefault()},[Z]),pointerGraceTimerRef:de,onPointerGraceIntentChange:React__namespace.useCallback(ee=>{fe.current=ee},[]),children:jsxRuntimeExports.jsx(he,{...ne,children:jsxRuntimeExports.jsx(FocusScope,{asChild:!0,trapped:s,onMountAutoFocus:composeEventHandlers(a,ee=>{ee.preventDefault(),ie.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:y,onPointerDownOutside:M,onFocusOutside:q,onInteractOutside:F,onDismiss:K,children:jsxRuntimeExports.jsx(Root$1,{asChild:!0,...V,dir:G.dir,orientation:"vertical",loop:i,currentTabStopId:te,onCurrentTabStopIdChange:re,onEntryFocus:composeEventHandlers(d,ee=>{G.isUsingKeyboardRef.current||ee.preventDefault()}),preventScrollOnEntryFocus:!0,children:jsxRuntimeExports.jsx(Content,{role:"menu","aria-orientation":"vertical","data-state":getOpenState(Q.open),"data-radix-menu-content":"",dir:G.dir,...H,...j,ref:se,style:{outline:"none",...j.style},onKeyDown:composeEventHandlers(j.onKeyDown,ee=>{const oe=ee.target.closest("[data-radix-menu-content]")===ee.currentTarget,pe=ee.ctrlKey||ee.altKey||ee.metaKey,ye=ee.key.length===1;oe&&(ee.key==="Tab"&&ee.preventDefault(),!pe&&ye&&ae(ee.key));const be=ie.current;if(ee.target!==be||!FIRST_LAST_KEYS.includes(ee.key))return;ee.preventDefault();const we=J().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);LAST_KEYS.includes(ee.key)&&we.reverse(),focusFirst(we)}),onBlur:composeEventHandlers(e.onBlur,ee=>{ee.currentTarget.contains(ee.target)||(window.clearTimeout(ue.current),ge.current="")}),onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(ee=>{const ce=ee.target,oe=me.current!==ee.clientX;if(ee.currentTarget.contains(ce)&&oe){const pe=ee.clientX>me.current?"right":"left";ve.current=pe,me.current=ee.clientX}}))})})})})})})});MenuContent.displayName=CONTENT_NAME$3;var GROUP_NAME$2="MenuGroup",MenuGroup=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return jsxRuntimeExports.jsx(Primitive.div,{role:"group",...i,ref:t})});MenuGroup.displayName=GROUP_NAME$2;var LABEL_NAME$2="MenuLabel",MenuLabel=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return jsxRuntimeExports.jsx(Primitive.div,{...i,ref:t})});MenuLabel.displayName=LABEL_NAME$2;var ITEM_NAME$2="MenuItem",ITEM_SELECT="menu.itemSelect",MenuItem=React__namespace.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...s}=e,a=React__namespace.useRef(null),l=useMenuRootContext(ITEM_NAME$2,e.__scopeMenu),h=useMenuContentContext(ITEM_NAME$2,e.__scopeMenu),d=useComposedRefs(t,a),y=React__namespace.useRef(!1),M=()=>{const q=a.current;if(!n&&q){const F=new CustomEvent(ITEM_SELECT,{bubbles:!0,cancelable:!0});q.addEventListener(ITEM_SELECT,K=>i?.(K),{once:!0}),dispatchDiscreteCustomEvent(q,F),F.defaultPrevented?y.current=!1:l.onClose()}};return jsxRuntimeExports.jsx(MenuItemImpl,{...s,ref:d,disabled:n,onClick:composeEventHandlers(e.onClick,M),onPointerDown:q=>{e.onPointerDown?.(q),y.current=!0},onPointerUp:composeEventHandlers(e.onPointerUp,q=>{y.current||q.currentTarget?.click()}),onKeyDown:composeEventHandlers(e.onKeyDown,q=>{const F=h.searchRef.current!=="";n||F&&q.key===" "||SELECTION_KEYS$1.includes(q.key)&&(q.currentTarget.click(),q.preventDefault())})})});MenuItem.displayName=ITEM_NAME$2;var MenuItemImpl=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:s,...a}=e,l=useMenuContentContext(ITEM_NAME$2,n),h=useRovingFocusGroupScope(n),d=React__namespace.useRef(null),y=useComposedRefs(t,d),[M,q]=React__namespace.useState(!1),[F,K]=React__namespace.useState("");return React__namespace.useEffect(()=>{const W=d.current;W&&K((W.textContent??"").trim())},[a.children]),jsxRuntimeExports.jsx(Collection$1.ItemSlot,{scope:n,disabled:i,textValue:s??F,children:jsxRuntimeExports.jsx(Item$1,{asChild:!0,...h,focusable:!i,children:jsxRuntimeExports.jsx(Primitive.div,{role:"menuitem","data-highlighted":M?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:y,onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(W=>{i?l.onItemLeave(W):(l.onItemEnter(W),W.defaultPrevented||W.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:composeEventHandlers(e.onPointerLeave,whenMouse(W=>l.onItemLeave(W))),onFocus:composeEventHandlers(e.onFocus,()=>q(!0)),onBlur:composeEventHandlers(e.onBlur,()=>q(!1))})})})}),CHECKBOX_ITEM_NAME$1="MenuCheckboxItem",MenuCheckboxItem=React__namespace.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...s}=e;return jsxRuntimeExports.jsx(ItemIndicatorProvider,{scope:e.__scopeMenu,checked:n,children:jsxRuntimeExports.jsx(MenuItem,{role:"menuitemcheckbox","aria-checked":isIndeterminate(n)?"mixed":n,...s,ref:t,"data-state":getCheckedState(n),onSelect:composeEventHandlers(s.onSelect,()=>i?.(isIndeterminate(n)?!0:!n),{checkForDefaultPrevented:!1})})})});MenuCheckboxItem.displayName=CHECKBOX_ITEM_NAME$1;var RADIO_GROUP_NAME$1="MenuRadioGroup",[RadioGroupProvider,useRadioGroupContext]=createMenuContext(RADIO_GROUP_NAME$1,{value:void 0,onValueChange:()=>{}}),MenuRadioGroup=React__namespace.forwardRef((e,t)=>{const{value:n,onValueChange:i,...s}=e,a=useCallbackRef$1(i);return jsxRuntimeExports.jsx(RadioGroupProvider,{scope:e.__scopeMenu,value:n,onValueChange:a,children:jsxRuntimeExports.jsx(MenuGroup,{...s,ref:t})})});MenuRadioGroup.displayName=RADIO_GROUP_NAME$1;var RADIO_ITEM_NAME$1="MenuRadioItem",MenuRadioItem=React__namespace.forwardRef((e,t)=>{const{value:n,...i}=e,s=useRadioGroupContext(RADIO_ITEM_NAME$1,e.__scopeMenu),a=n===s.value;return jsxRuntimeExports.jsx(ItemIndicatorProvider,{scope:e.__scopeMenu,checked:a,children:jsxRuntimeExports.jsx(MenuItem,{role:"menuitemradio","aria-checked":a,...i,ref:t,"data-state":getCheckedState(a),onSelect:composeEventHandlers(i.onSelect,()=>s.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});MenuRadioItem.displayName=RADIO_ITEM_NAME$1;var ITEM_INDICATOR_NAME$1="MenuItemIndicator",[ItemIndicatorProvider,useItemIndicatorContext]=createMenuContext(ITEM_INDICATOR_NAME$1,{checked:!1}),MenuItemIndicator=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...s}=e,a=useItemIndicatorContext(ITEM_INDICATOR_NAME$1,n);return jsxRuntimeExports.jsx(Presence,{present:i||isIndeterminate(a.checked)||a.checked===!0,children:jsxRuntimeExports.jsx(Primitive.span,{...s,ref:t,"data-state":getCheckedState(a.checked)})})});MenuItemIndicator.displayName=ITEM_INDICATOR_NAME$1;var SEPARATOR_NAME$2="MenuSeparator",MenuSeparator=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return jsxRuntimeExports.jsx(Primitive.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});MenuSeparator.displayName=SEPARATOR_NAME$2;var ARROW_NAME$3="MenuArrow",MenuArrow=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,s=usePopperScope$2(n);return jsxRuntimeExports.jsx(Arrow,{...s,...i,ref:t})});MenuArrow.displayName=ARROW_NAME$3;var SUB_NAME="MenuSub",[MenuSubProvider,useMenuSubContext]=createMenuContext(SUB_NAME),MenuSub=e=>{const{__scopeMenu:t,children:n,open:i=!1,onOpenChange:s}=e,a=useMenuContext(SUB_NAME,t),l=usePopperScope$2(t),[h,d]=React__namespace.useState(null),[y,M]=React__namespace.useState(null),q=useCallbackRef$1(s);return React__namespace.useEffect(()=>(a.open===!1&&q(!1),()=>q(!1)),[a.open,q]),jsxRuntimeExports.jsx(Root2$2,{...l,children:jsxRuntimeExports.jsx(MenuProvider,{scope:t,open:i,onOpenChange:q,content:y,onContentChange:M,children:jsxRuntimeExports.jsx(MenuSubProvider,{scope:t,contentId:useId(),triggerId:useId(),trigger:h,onTriggerChange:d,children:n})})})};MenuSub.displayName=SUB_NAME;var SUB_TRIGGER_NAME$1="MenuSubTrigger",MenuSubTrigger=React__namespace.forwardRef((e,t)=>{const n=useMenuContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),i=useMenuRootContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),s=useMenuSubContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),a=useMenuContentContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),l=React__namespace.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:d}=a,y={__scopeMenu:e.__scopeMenu},M=React__namespace.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return React__namespace.useEffect(()=>M,[M]),React__namespace.useEffect(()=>{const q=h.current;return()=>{window.clearTimeout(q),d(null)}},[h,d]),jsxRuntimeExports.jsx(MenuAnchor,{asChild:!0,...y,children:jsxRuntimeExports.jsx(MenuItemImpl,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":getOpenState(n.open),...e,ref:composeRefs(t,s.onTriggerChange),onClick:q=>{e.onClick?.(q),!(e.disabled||q.defaultPrevented)&&(q.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(q=>{a.onItemEnter(q),!q.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(a.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),M()},100))})),onPointerLeave:composeEventHandlers(e.onPointerLeave,whenMouse(q=>{M();const F=n.content?.getBoundingClientRect();if(F){const K=n.content?.dataset.side,W=K==="right",j=W?-5:5,Q=F[W?"left":"right"],G=F[W?"right":"left"];a.onPointerGraceIntentChange({area:[{x:q.clientX+j,y:q.clientY},{x:Q,y:F.top},{x:G,y:F.top},{x:G,y:F.bottom},{x:Q,y:F.bottom}],side:K}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(q),q.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:composeEventHandlers(e.onKeyDown,q=>{const F=a.searchRef.current!=="";e.disabled||F&&q.key===" "||SUB_OPEN_KEYS[i.dir].includes(q.key)&&(n.onOpenChange(!0),n.content?.focus(),q.preventDefault())})})})});MenuSubTrigger.displayName=SUB_TRIGGER_NAME$1;var SUB_CONTENT_NAME$1="MenuSubContent",MenuSubContent=React__namespace.forwardRef((e,t)=>{const n=usePortalContext$1(CONTENT_NAME$3,e.__scopeMenu),{forceMount:i=n.forceMount,...s}=e,a=useMenuContext(CONTENT_NAME$3,e.__scopeMenu),l=useMenuRootContext(CONTENT_NAME$3,e.__scopeMenu),h=useMenuSubContext(SUB_CONTENT_NAME$1,e.__scopeMenu),d=React__namespace.useRef(null),y=useComposedRefs(t,d);return jsxRuntimeExports.jsx(Collection$1.Provider,{scope:e.__scopeMenu,children:jsxRuntimeExports.jsx(Presence,{present:i||a.open,children:jsxRuntimeExports.jsx(Collection$1.Slot,{scope:e.__scopeMenu,children:jsxRuntimeExports.jsx(MenuContentImpl,{id:h.contentId,"aria-labelledby":h.triggerId,...s,ref:y,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:M=>{l.isUsingKeyboardRef.current&&d.current?.focus(),M.preventDefault()},onCloseAutoFocus:M=>M.preventDefault(),onFocusOutside:composeEventHandlers(e.onFocusOutside,M=>{M.target!==h.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:composeEventHandlers(e.onEscapeKeyDown,M=>{l.onClose(),M.preventDefault()}),onKeyDown:composeEventHandlers(e.onKeyDown,M=>{const q=M.currentTarget.contains(M.target),F=SUB_CLOSE_KEYS[l.dir].includes(M.key);q&&F&&(a.onOpenChange(!1),h.trigger?.focus(),M.preventDefault())})})})})})});MenuSubContent.displayName=SUB_CONTENT_NAME$1;function getOpenState(e){return e?"open":"closed"}function isIndeterminate(e){return e==="indeterminate"}function getCheckedState(e){return isIndeterminate(e)?"indeterminate":e?"checked":"unchecked"}function focusFirst(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function wrapArray$1(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function getNextMatch(e,t,n){const s=t.length>1&&Array.from(t).every(y=>y===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=wrapArray$1(e,Math.max(a,0));s.length===1&&(l=l.filter(y=>y!==n));const d=l.find(y=>y.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}function isPointInPolygon$1(e,t){const{x:n,y:i}=e;let s=!1;for(let a=0,l=t.length-1;a<t.length;l=a++){const h=t[a],d=t[l],y=h.x,M=h.y,q=d.x,F=d.y;M>i!=F>i&&n<(q-y)*(i-M)/(F-M)+y&&(s=!s)}return s}function isPointerInGraceArea(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return isPointInPolygon$1(n,t)}function whenMouse(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Root3$1=Menu,Anchor2=MenuAnchor,Portal$2=MenuPortal,Content2$3=MenuContent,Group=MenuGroup,Label=MenuLabel,Item2$1=MenuItem,CheckboxItem=MenuCheckboxItem,RadioGroup=MenuRadioGroup,RadioItem=MenuRadioItem,ItemIndicator$1=MenuItemIndicator,Separator=MenuSeparator,Arrow2$1=MenuArrow,Sub=MenuSub,SubTrigger=MenuSubTrigger,SubContent=MenuSubContent,DROPDOWN_MENU_NAME="DropdownMenu",[createDropdownMenuContext]=createContextScope(DROPDOWN_MENU_NAME,[createMenuScope]),useMenuScope=createMenuScope(),[DropdownMenuProvider,useDropdownMenuContext]=createDropdownMenuContext(DROPDOWN_MENU_NAME),DropdownMenu$1=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:s,defaultOpen:a,onOpenChange:l,modal:h=!0}=e,d=useMenuScope(t),y=React__namespace.useRef(null),[M,q]=useControllableState({prop:s,defaultProp:a??!1,onChange:l,caller:DROPDOWN_MENU_NAME});return jsxRuntimeExports.jsx(DropdownMenuProvider,{scope:t,triggerId:useId(),triggerRef:y,contentId:useId(),open:M,onOpenChange:q,onOpenToggle:React__namespace.useCallback(()=>q(F=>!F),[q]),modal:h,children:jsxRuntimeExports.jsx(Root3$1,{...d,open:M,onOpenChange:q,dir:i,modal:h,children:n})})};DropdownMenu$1.displayName=DROPDOWN_MENU_NAME;var TRIGGER_NAME$2="DropdownMenuTrigger",DropdownMenuTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...s}=e,a=useDropdownMenuContext(TRIGGER_NAME$2,n),l=useMenuScope(n);return jsxRuntimeExports.jsx(Anchor2,{asChild:!0,...l,children:jsxRuntimeExports.jsx(Primitive.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:composeRefs(t,a.triggerRef),onPointerDown:composeEventHandlers(e.onPointerDown,h=>{!i&&h.button===0&&h.ctrlKey===!1&&(a.onOpenToggle(),a.open||h.preventDefault())}),onKeyDown:composeEventHandlers(e.onKeyDown,h=>{i||(["Enter"," "].includes(h.key)&&a.onOpenToggle(),h.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});DropdownMenuTrigger$1.displayName=TRIGGER_NAME$2;var PORTAL_NAME$2="DropdownMenuPortal",DropdownMenuPortal$1=e=>{const{__scopeDropdownMenu:t,...n}=e,i=useMenuScope(t);return jsxRuntimeExports.jsx(Portal$2,{...i,...n})};DropdownMenuPortal$1.displayName=PORTAL_NAME$2;var CONTENT_NAME$2="DropdownMenuContent",DropdownMenuContent$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useDropdownMenuContext(CONTENT_NAME$2,n),a=useMenuScope(n),l=React__namespace.useRef(!1);return jsxRuntimeExports.jsx(Content2$3,{id:s.contentId,"aria-labelledby":s.triggerId,...a,...i,ref:t,onCloseAutoFocus:composeEventHandlers(e.onCloseAutoFocus,h=>{l.current||s.triggerRef.current?.focus(),l.current=!1,h.preventDefault()}),onInteractOutside:composeEventHandlers(e.onInteractOutside,h=>{const d=h.detail.originalEvent,y=d.button===0&&d.ctrlKey===!0,M=d.button===2||y;(!s.modal||M)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuContent$1.displayName=CONTENT_NAME$2;var GROUP_NAME$1="DropdownMenuGroup",DropdownMenuGroup$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(Group,{...s,...i,ref:t})});DropdownMenuGroup$1.displayName=GROUP_NAME$1;var LABEL_NAME$1="DropdownMenuLabel",DropdownMenuLabel$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(Label,{...s,...i,ref:t})});DropdownMenuLabel$1.displayName=LABEL_NAME$1;var ITEM_NAME$1="DropdownMenuItem",DropdownMenuItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(Item2$1,{...s,...i,ref:t})});DropdownMenuItem$1.displayName=ITEM_NAME$1;var CHECKBOX_ITEM_NAME="DropdownMenuCheckboxItem",DropdownMenuCheckboxItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(CheckboxItem,{...s,...i,ref:t})});DropdownMenuCheckboxItem$1.displayName=CHECKBOX_ITEM_NAME;var RADIO_GROUP_NAME="DropdownMenuRadioGroup",DropdownMenuRadioGroup$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(RadioGroup,{...s,...i,ref:t})});DropdownMenuRadioGroup$1.displayName=RADIO_GROUP_NAME;var RADIO_ITEM_NAME="DropdownMenuRadioItem",DropdownMenuRadioItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(RadioItem,{...s,...i,ref:t})});DropdownMenuRadioItem$1.displayName=RADIO_ITEM_NAME;var INDICATOR_NAME="DropdownMenuItemIndicator",DropdownMenuItemIndicator=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(ItemIndicator$1,{...s,...i,ref:t})});DropdownMenuItemIndicator.displayName=INDICATOR_NAME;var SEPARATOR_NAME$1="DropdownMenuSeparator",DropdownMenuSeparator$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(Separator,{...s,...i,ref:t})});DropdownMenuSeparator$1.displayName=SEPARATOR_NAME$1;var ARROW_NAME$2="DropdownMenuArrow",DropdownMenuArrow=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(Arrow2$1,{...s,...i,ref:t})});DropdownMenuArrow.displayName=ARROW_NAME$2;var DropdownMenuSub$1=e=>{const{__scopeDropdownMenu:t,children:n,open:i,onOpenChange:s,defaultOpen:a}=e,l=useMenuScope(t),[h,d]=useControllableState({prop:i,defaultProp:a??!1,onChange:s,caller:"DropdownMenuSub"});return jsxRuntimeExports.jsx(Sub,{...l,open:h,onOpenChange:d,children:n})},SUB_TRIGGER_NAME="DropdownMenuSubTrigger",DropdownMenuSubTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(SubTrigger,{...s,...i,ref:t})});DropdownMenuSubTrigger$1.displayName=SUB_TRIGGER_NAME;var SUB_CONTENT_NAME="DropdownMenuSubContent",DropdownMenuSubContent$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=useMenuScope(n);return jsxRuntimeExports.jsx(SubContent,{...s,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuSubContent$1.displayName=SUB_CONTENT_NAME;var Root2$1=DropdownMenu$1,Trigger$2=DropdownMenuTrigger$1,Portal2=DropdownMenuPortal$1,Content2$2=DropdownMenuContent$1,Group2=DropdownMenuGroup$1,Label2=DropdownMenuLabel$1,Item2=DropdownMenuItem$1,CheckboxItem2=DropdownMenuCheckboxItem$1,RadioGroup2=DropdownMenuRadioGroup$1,RadioItem2=DropdownMenuRadioItem$1,ItemIndicator2=DropdownMenuItemIndicator,Separator2=DropdownMenuSeparator$1,Sub2=DropdownMenuSub$1,SubTrigger2=DropdownMenuSubTrigger$1,SubContent2=DropdownMenuSubContent$1;const DropdownMenu=Root2$1,DropdownMenuTrigger=Trigger$2,DropdownMenuGroup=Group2,DropdownMenuPortal=Portal2,DropdownMenuSub=Sub2,DropdownMenuRadioGroup=RadioGroup2,DropdownMenuContent=React__namespace.forwardRef(({className:e,sideOffset:t=6,...n},i)=>jsxRuntimeExports.jsx(Portal2,{children:jsxRuntimeExports.jsx(Content2$2,{ref:i,sideOffset:t,className:cn("oniratec-dropdown",e),...n})}));DropdownMenuContent.displayName="DropdownMenuContent";const DropdownMenuItem=React__namespace.forwardRef(({className:e,inset:t,icon:n,children:i,...s},a)=>jsxRuntimeExports.jsxs(Item2,{ref:a,className:cn("oniratec-dropdown__item",t&&"oniratec-dropdown__item--inset",e),...s,children:[n?jsxRuntimeExports.jsx("span",{className:"oniratec-dropdown__icon",children:n}):jsxRuntimeExports.jsx("span",{"aria-hidden":!0}),i]}));DropdownMenuItem.displayName="DropdownMenuItem";const DropdownMenuCheckboxItem=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntimeExports.jsxs(CheckboxItem2,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...n,children:[jsxRuntimeExports.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntimeExports.jsx(ItemIndicator2,{children:jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"})})}),t]}));DropdownMenuCheckboxItem.displayName="DropdownMenuCheckboxItem";const DropdownMenuRadioItem=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntimeExports.jsxs(RadioItem2,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...n,children:[jsxRuntimeExports.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntimeExports.jsx(ItemIndicator2,{children:jsxRuntimeExports.jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}));DropdownMenuRadioItem.displayName="DropdownMenuRadioItem";const DropdownMenuLabel=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntimeExports.jsx(Label2,{ref:n,className:cn("oniratec-dropdown__label",e),...t}));DropdownMenuLabel.displayName="DropdownMenuLabel";const DropdownMenuSeparator=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntimeExports.jsx(Separator2,{ref:n,className:cn("oniratec-dropdown__separator",e),...t}));DropdownMenuSeparator.displayName="DropdownMenuSeparator";const DropdownMenuSubTrigger=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntimeExports.jsxs(SubTrigger2,{ref:i,className:cn("oniratec-dropdown__item",e),...n,children:[t,jsxRuntimeExports.jsx(ChevronRight,{className:"oniratec-dropdown__chevron"})]}));DropdownMenuSubTrigger.displayName="DropdownMenuSubTrigger";const DropdownMenuSubContent=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntimeExports.jsx(SubContent2,{ref:n,className:cn("oniratec-dropdown",e),...t}));DropdownMenuSubContent.displayName="DropdownMenuSubContent";const FieldContext=React__namespace.createContext(null);function useField(){const e=React__namespace.useContext(FieldContext);if(!e)throw new Error("Field components must be used inside <Field>");return e}function Field({className:e,error:t,required:n,...i}){const s=React__namespace.useId();return jsxRuntimeExports.jsx(FieldContext.Provider,{value:{id:s,error:t,required:n},children:jsxRuntimeExports.jsx("div",{className:cn("oniratec-field",e),...i})})}const FieldControl=React.forwardRef((e,t)=>{const{id:n,error:i}=useField();return jsxRuntimeExports.jsx(Slot$2,{ref:t,id:n,"aria-invalid":!!i,...e})});FieldControl.displayName="FieldControl";const FieldLabel=React__namespace.forwardRef(({className:e,children:t,...n},i)=>{const{id:s,required:a}=useField();return jsxRuntimeExports.jsxs("label",{ref:i,htmlFor:s,className:cn("oniratec-field__label",e),...n,children:[t,a&&jsxRuntimeExports.jsx("span",{className:"oniratec-field__required",children:"*"})]})});FieldLabel.displayName="FieldLabel";const FieldMessage=React__namespace.forwardRef(({className:e,children:t,...n},i)=>{const{error:s}=useField(),a=s??t;return a?jsxRuntimeExports.jsx("p",{ref:i,className:cn("oniratec-field__message",e),...n,children:a}):null});FieldMessage.displayName="FieldMessage";const PasswordInput=React.forwardRef(({className:e,containerClassName:t,...n},i)=>{const[s,a]=React.useState(!1),l=()=>{a(h=>!h)};return jsxRuntimeExports.jsxs("div",{className:cn("relative",t),children:[jsxRuntimeExports.jsx("input",{ref:i,type:s?"text":"password",className:cn("flex h-10 w-full rounded-md border border-slate-300 bg-transparent px-3 py-2 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...n}),jsxRuntimeExports.jsx("button",{type:"button",className:cn("absolute top-1/2 right-3 -translate-y-1/2 transform"),onClick:l,children:s?jsxRuntimeExports.jsx(EyeOff,{className:"h-5 w-5 text-slate-400"}):jsxRuntimeExports.jsx(Eye,{className:"h-5 w-5 text-slate-400"})})]})});PasswordInput.displayName="PasswordInput";const Input=React__namespace.forwardRef(({className:e,isInvalid:t,...n},i)=>jsxRuntimeExports.jsx("input",{ref:i,"data-invalid":t?"true":void 0,className:cn("oniratec-input",e),...n}));Input.displayName="Input";var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,i=e.length,s;for(n=0;n<i;n+=1){s=e[n].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(n,i){var s=0,a=[],l;switch(n){case"int16":case"uint8c":l=1;break;default:l=1.1;break}for(s=0;s<i;s+=1)a.push(l);return a}function t(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var n=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)n[i]=Math.abs(e[i]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,i){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,i){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,n){var i,s,a,l,h,d,y,M;switch(l=Math.floor(e*6),h=e*6-l,d=n*(1-t),y=n*(1-h*t),M=n*(1-(1-h)*t),l%6){case 0:i=n,s=M,a=d;break;case 1:i=y,s=n,a=d;break;case 2:i=d,s=n,a=M;break;case 3:i=d,s=y,a=n;break;case 4:i=M,s=d,a=n;break;case 5:i=n,s=d,a=y;break}return[i,s,a]}function RGBtoHSV(e,t,n){var i=Math.max(e,t,n),s=Math.min(e,t,n),a=i-s,l,h=i===0?0:a/i,d=i/255;switch(i){case s:l=0;break;case e:l=t-n+a*(t<n?6:0),l/=6*a;break;case t:l=n-e+a*2,l/=6*a;break;case n:l=e-t+a*4,l/=6*a;break}return[l,h,d]}function addSaturationToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=(function(){var e=[],t,n;for(t=0;t<256;t+=1)n=t.toString(16),e[t]=n.length===1?"0"+n:n;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+e[i]+e[s]+e[a]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],n,i,s={onmessage:function(){},postMessage:function(K){n({data:K})}},a={postMessage:function(K){s.onmessage({data:K})}};function l(F){if(window.Worker&&window.Blob&&getWebWorker()){var K=new Blob(["var _workerSelf = self; self.onmessage = ",F.toString()],{type:"text/javascript"}),W=URL.createObjectURL(K);return new Worker(W)}return n=F,s}function h(){i||(i=l(function(K){function W(){function Q(he,ne){var ae,Z,ee=he.length,ce,oe,pe,ye;for(Z=0;Z<ee;Z+=1)if(ae=he[Z],"ks"in ae&&!ae.completed){if(ae.completed=!0,ae.hasMask){var be=ae.masksProperties;for(oe=be.length,ce=0;ce<oe;ce+=1)if(be[ce].pt.k.i)te(be[ce].pt.k);else for(ye=be[ce].pt.k.length,pe=0;pe<ye;pe+=1)be[ce].pt.k[pe].s&&te(be[ce].pt.k[pe].s[0]),be[ce].pt.k[pe].e&&te(be[ce].pt.k[pe].e[0])}ae.ty===0?(ae.layers=V(ae.refId,ne),Q(ae.layers,ne)):ae.ty===4?J(ae.shapes):ae.ty===5&&ve(ae)}}function G(he,ne){if(he){var ae=0,Z=he.length;for(ae=0;ae<Z;ae+=1)he[ae].t===1&&(he[ae].data.layers=V(he[ae].data.refId,ne),Q(he[ae].data.layers,ne))}}function H(he,ne){for(var ae=0,Z=ne.length;ae<Z;){if(ne[ae].id===he)return ne[ae];ae+=1}return null}function V(he,ne){var ae=H(he,ne);return ae?ae.layers.__used?JSON.parse(JSON.stringify(ae.layers)):(ae.layers.__used=!0,ae.layers):null}function J(he){var ne,ae=he.length,Z,ee;for(ne=ae-1;ne>=0;ne-=1)if(he[ne].ty==="sh")if(he[ne].ks.k.i)te(he[ne].ks.k);else for(ee=he[ne].ks.k.length,Z=0;Z<ee;Z+=1)he[ne].ks.k[Z].s&&te(he[ne].ks.k[Z].s[0]),he[ne].ks.k[Z].e&&te(he[ne].ks.k[Z].e[0]);else he[ne].ty==="gr"&&J(he[ne].it)}function te(he){var ne,ae=he.i.length;for(ne=0;ne<ae;ne+=1)he.i[ne][0]+=he.v[ne][0],he.i[ne][1]+=he.v[ne][1],he.o[ne][0]+=he.v[ne][0],he.o[ne][1]+=he.v[ne][1]}function re(he,ne){var ae=ne?ne.split("."):[100,100,100];return he[0]>ae[0]?!0:ae[0]>he[0]?!1:he[1]>ae[1]?!0:ae[1]>he[1]?!1:he[2]>ae[2]?!0:ae[2]>he[2]?!1:null}var ie=(function(){var he=[4,4,14];function ne(Z){var ee=Z.t.d;Z.t.d={k:[{s:ee,t:0}]}}function ae(Z){var ee,ce=Z.length;for(ee=0;ee<ce;ee+=1)Z[ee].ty===5&&ne(Z[ee])}return function(Z){if(re(he,Z.v)&&(ae(Z.layers),Z.assets)){var ee,ce=Z.assets.length;for(ee=0;ee<ce;ee+=1)Z.assets[ee].layers&&ae(Z.assets[ee].layers)}}})(),se=(function(){var he=[4,7,99];return function(ne){if(ne.chars&&!re(he,ne.v)){var ae,Z=ne.chars.length;for(ae=0;ae<Z;ae+=1){var ee=ne.chars[ae];ee.data&&ee.data.shapes&&(J(ee.data.shapes),ee.data.ip=0,ee.data.op=99999,ee.data.st=0,ee.data.sr=1,ee.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},ne.chars[ae].t||(ee.data.shapes.push({ty:"no"}),ee.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),ue=(function(){var he=[5,7,15];function ne(Z){var ee=Z.t.p;typeof ee.a=="number"&&(ee.a={a:0,k:ee.a}),typeof ee.p=="number"&&(ee.p={a:0,k:ee.p}),typeof ee.r=="number"&&(ee.r={a:0,k:ee.r})}function ae(Z){var ee,ce=Z.length;for(ee=0;ee<ce;ee+=1)Z[ee].ty===5&&ne(Z[ee])}return function(Z){if(re(he,Z.v)&&(ae(Z.layers),Z.assets)){var ee,ce=Z.assets.length;for(ee=0;ee<ce;ee+=1)Z.assets[ee].layers&&ae(Z.assets[ee].layers)}}})(),ge=(function(){var he=[4,1,9];function ne(Z){var ee,ce=Z.length,oe,pe;for(ee=0;ee<ce;ee+=1)if(Z[ee].ty==="gr")ne(Z[ee].it);else if(Z[ee].ty==="fl"||Z[ee].ty==="st")if(Z[ee].c.k&&Z[ee].c.k[0].i)for(pe=Z[ee].c.k.length,oe=0;oe<pe;oe+=1)Z[ee].c.k[oe].s&&(Z[ee].c.k[oe].s[0]/=255,Z[ee].c.k[oe].s[1]/=255,Z[ee].c.k[oe].s[2]/=255,Z[ee].c.k[oe].s[3]/=255),Z[ee].c.k[oe].e&&(Z[ee].c.k[oe].e[0]/=255,Z[ee].c.k[oe].e[1]/=255,Z[ee].c.k[oe].e[2]/=255,Z[ee].c.k[oe].e[3]/=255);else Z[ee].c.k[0]/=255,Z[ee].c.k[1]/=255,Z[ee].c.k[2]/=255,Z[ee].c.k[3]/=255}function ae(Z){var ee,ce=Z.length;for(ee=0;ee<ce;ee+=1)Z[ee].ty===4&&ne(Z[ee].shapes)}return function(Z){if(re(he,Z.v)&&(ae(Z.layers),Z.assets)){var ee,ce=Z.assets.length;for(ee=0;ee<ce;ee+=1)Z.assets[ee].layers&&ae(Z.assets[ee].layers)}}})(),de=(function(){var he=[4,4,18];function ne(Z){var ee,ce=Z.length,oe,pe;for(ee=ce-1;ee>=0;ee-=1)if(Z[ee].ty==="sh")if(Z[ee].ks.k.i)Z[ee].ks.k.c=Z[ee].closed;else for(pe=Z[ee].ks.k.length,oe=0;oe<pe;oe+=1)Z[ee].ks.k[oe].s&&(Z[ee].ks.k[oe].s[0].c=Z[ee].closed),Z[ee].ks.k[oe].e&&(Z[ee].ks.k[oe].e[0].c=Z[ee].closed);else Z[ee].ty==="gr"&&ne(Z[ee].it)}function ae(Z){var ee,ce,oe=Z.length,pe,ye,be,Ce;for(ce=0;ce<oe;ce+=1){if(ee=Z[ce],ee.hasMask){var we=ee.masksProperties;for(ye=we.length,pe=0;pe<ye;pe+=1)if(we[pe].pt.k.i)we[pe].pt.k.c=we[pe].cl;else for(Ce=we[pe].pt.k.length,be=0;be<Ce;be+=1)we[pe].pt.k[be].s&&(we[pe].pt.k[be].s[0].c=we[pe].cl),we[pe].pt.k[be].e&&(we[pe].pt.k[be].e[0].c=we[pe].cl)}ee.ty===4&&ne(ee.shapes)}}return function(Z){if(re(he,Z.v)&&(ae(Z.layers),Z.assets)){var ee,ce=Z.assets.length;for(ee=0;ee<ce;ee+=1)Z.assets[ee].layers&&ae(Z.assets[ee].layers)}}})();function fe(he){he.__complete||(ge(he),ie(he),se(he),ue(he),de(he),Q(he.layers,he.assets),G(he.chars,he.assets),he.__complete=!0)}function ve(he){he.t.a.length===0&&"m"in he.t.p}var me={};return me.completeData=fe,me.checkColors=ge,me.checkChars=se,me.checkPathProperties=ue,me.checkShapes=de,me.completeLayers=Q,me}if(a.dataManager||(a.dataManager=W()),a.assetLoader||(a.assetLoader=(function(){function Q(H){var V=H.getResponseHeader("content-type");return V&&H.responseType==="json"&&V.indexOf("json")!==-1||H.response&&_typeof$5(H.response)==="object"?H.response:H.response&&typeof H.response=="string"?JSON.parse(H.response):H.responseText?JSON.parse(H.responseText):null}function G(H,V,J,te){var re,ie=new XMLHttpRequest;try{ie.responseType="json"}catch{}ie.onreadystatechange=function(){if(ie.readyState===4)if(ie.status===200)re=Q(ie),J(re);else try{re=Q(ie),J(re)}catch(se){te&&te(se)}};try{ie.open(["G","E","T"].join(""),H,!0)}catch{ie.open(["G","E","T"].join(""),V+"/"+H,!0)}ie.send()}return{load:G}})()),K.data.type==="loadAnimation")a.assetLoader.load(K.data.path,K.data.fullPath,function(Q){a.dataManager.completeData(Q),a.postMessage({id:K.data.id,payload:Q,status:"success"})},function(){a.postMessage({id:K.data.id,status:"error"})});else if(K.data.type==="complete"){var j=K.data.animation;a.dataManager.completeData(j),a.postMessage({id:K.data.id,payload:j,status:"success"})}else K.data.type==="loadData"&&a.assetLoader.load(K.data.path,K.data.fullPath,function(Q){a.postMessage({id:K.data.id,payload:Q,status:"success"})},function(){a.postMessage({id:K.data.id,status:"error"})})}),i.onmessage=function(F){var K=F.data,W=K.id,j=t[W];t[W]=null,K.status==="success"?j.onComplete(K.payload):j.onError&&j.onError()})}function d(F,K){e+=1;var W="processId_"+e;return t[W]={onComplete:F,onError:K},W}function y(F,K,W){h();var j=d(K,W);i.postMessage({type:"loadAnimation",path:F,fullPath:window.location.origin+window.location.pathname,id:j})}function M(F,K,W){h();var j=d(K,W);i.postMessage({type:"loadData",path:F,fullPath:window.location.origin+window.location.pathname,id:j})}function q(F,K,W){h();var j=d(K,W);i.postMessage({type:"complete",animation:F,id:j})}return{loadAnimation:y,loadData:M,completeAnimation:q}})(),ImagePreloader=(function(){var e=(function(){var G=createTag("canvas");G.width=1,G.height=1;var H=G.getContext("2d");return H.fillStyle="rgba(0,0,0,0)",H.fillRect(0,0,1,1),G})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(G,H,V){var J="";if(G.e)J=G.p;else if(H){var te=G.p;te.indexOf("images/")!==-1&&(te=te.split("/")[1]),J=H+te}else J=V,J+=G.u?G.u:"",J+=G.p;return J}function s(G){var H=0,V=setInterval((function(){var J=G.getBBox();(J.width||H>500)&&(this._imageLoaded(),clearInterval(V)),H+=1}).bind(this),50)}function a(G){var H=i(G,this.assetsPath,this.path),V=createNS("image");isSafari?this.testImageLoaded(V):V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",(function(){J.img=e,this._imageLoaded()}).bind(this),!1),V.setAttributeNS("http://www.w3.org/1999/xlink","href",H),this._elementHelper.append?this._elementHelper.append(V):this._elementHelper.appendChild(V);var J={img:V,assetData:G};return J}function l(G){var H=i(G,this.assetsPath,this.path),V=createTag("img");V.crossOrigin="anonymous",V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",(function(){J.img=e,this._imageLoaded()}).bind(this),!1),V.src=H;var J={img:V,assetData:G};return J}function h(G){var H={assetData:G},V=i(G,this.assetsPath,this.path);return dataManager.loadData(V,(function(J){H.img=J,this._footageLoaded()}).bind(this),(function(){H.img={},this._footageLoaded()}).bind(this)),H}function d(G,H){this.imagesLoadedCb=H;var V,J=G.length;for(V=0;V<J;V+=1)G[V].layers||(!G[V].t||G[V].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(G[V]))):G[V].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(G[V]))))}function y(G){this.path=G||""}function M(G){this.assetsPath=G||""}function q(G){for(var H=0,V=this.images.length;H<V;){if(this.images[H].assetData===G)return this.images[H].img;H+=1}return null}function F(){this.imagesLoadedCb=null,this.images.length=0}function K(){return this.totalImages===this.loadedAssets}function W(){return this.totalFootages===this.loadedFootagesCount}function j(G,H){G==="svg"?(this._elementHelper=H,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Q(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=h.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Q.prototype={loadAssets:d,setAssetsPath:M,setPath:y,loadedImages:K,loadedFootages:W,destroy:F,getAsset:q,createImgData:l,createImageData:a,imageLoaded:t,footageLoaded:n,setCacheType:j},Q})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,n){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](n)},addEventListener:function(t,n){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(n),(function(){this.removeEventListener(t,n)}).bind(this)},removeEventListener:function(t,n){if(!n)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===n&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var n=t.split(`\r
|
|
55
|
-
`),i={},s,a=0,l=0;l<n.length;l+=1)s=n[l].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return i}return function(t){for(var n=[],i=0;i<t.length;i+=1){var s=t[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[i].cm)}catch{try{a.payload=e(t[i].cm)}catch{a.payload={name:t[i].cm}}}n.push(a)}return n}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,n){renderers[t]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?n.loop=!1:s==="true"?n.loop=!0:s!==""&&(n.loop=parseInt(s,10));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;n.autoplay=a!=="false",n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var l=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";l==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,n,i=t.length,s=e.layers,a,l=s.length;for(a=0;a<l;a+=1)for(n=0;n<i;){if(t[n].id===s[a].id){t[n]=s[a];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if(t=this.markers[n],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],n=0,i=0,s=0,a=!0,l=!1;function h(ne){for(var ae=0,Z=ne.target;ae<i;)t[ae].animation===Z&&(t.splice(ae,1),ae-=1,i-=1,Z.isPaused||q()),ae+=1}function d(ne,ae){if(!ne)return null;for(var Z=0;Z<i;){if(t[Z].elem===ne&&t[Z].elem!==null)return t[Z].animation;Z+=1}var ee=new AnimationItem;return F(ee,ne),ee.setData(ne,ae),ee}function y(){var ne,ae=t.length,Z=[];for(ne=0;ne<ae;ne+=1)Z.push(t[ne].animation);return Z}function M(){s+=1,ge()}function q(){s-=1}function F(ne,ae){ne.addEventListener("destroy",h),ne.addEventListener("_active",M),ne.addEventListener("_idle",q),t.push({elem:ae,animation:ne}),i+=1}function K(ne){var ae=new AnimationItem;return F(ae,null),ae.setParams(ne),ae}function W(ne,ae){var Z;for(Z=0;Z<i;Z+=1)t[Z].animation.setSpeed(ne,ae)}function j(ne,ae){var Z;for(Z=0;Z<i;Z+=1)t[Z].animation.setDirection(ne,ae)}function Q(ne){var ae;for(ae=0;ae<i;ae+=1)t[ae].animation.play(ne)}function G(ne){var ae=ne-n,Z;for(Z=0;Z<i;Z+=1)t[Z].animation.advanceTime(ae);n=ne,s&&!l?window.requestAnimationFrame(G):a=!0}function H(ne){n=ne,window.requestAnimationFrame(G)}function V(ne){var ae;for(ae=0;ae<i;ae+=1)t[ae].animation.pause(ne)}function J(ne,ae,Z){var ee;for(ee=0;ee<i;ee+=1)t[ee].animation.goToAndStop(ne,ae,Z)}function te(ne){var ae;for(ae=0;ae<i;ae+=1)t[ae].animation.stop(ne)}function re(ne){var ae;for(ae=0;ae<i;ae+=1)t[ae].animation.togglePause(ne)}function ie(ne){var ae;for(ae=i-1;ae>=0;ae-=1)t[ae].animation.destroy(ne)}function se(ne,ae,Z){var ee=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ce,oe=ee.length;for(ce=0;ce<oe;ce+=1)Z&&ee[ce].setAttribute("data-bm-type",Z),d(ee[ce],ne);if(ae&&oe===0){Z||(Z="svg");var pe=document.getElementsByTagName("body")[0];pe.innerText="";var ye=createTag("div");ye.style.width="100%",ye.style.height="100%",ye.setAttribute("data-bm-type",Z),pe.appendChild(ye),d(ye,ne)}}function ue(){var ne;for(ne=0;ne<i;ne+=1)t[ne].animation.resize()}function ge(){!l&&s&&a&&(window.requestAnimationFrame(H),a=!1)}function de(){l=!0}function fe(){l=!1,ge()}function ve(ne,ae){var Z;for(Z=0;Z<i;Z+=1)t[Z].animation.setVolume(ne,ae)}function me(ne){var ae;for(ae=0;ae<i;ae+=1)t[ae].animation.mute(ne)}function he(ne){var ae;for(ae=0;ae<i;ae+=1)t[ae].animation.unmute(ne)}return e.registerAnimation=d,e.loadAnimation=K,e.setSpeed=W,e.setDirection=j,e.play=Q,e.pause=V,e.stop=te,e.togglePause=re,e.searchAnimations=se,e.resize=ue,e.goToAndStop=J,e.destroy=ie,e.freeze=de,e.unfreeze=fe,e.setVolume=ve,e.mute=me,e.unmute=he,e.getRegisteredAnimations=y,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=n;var t={};function n(H,V,J,te,re){var ie=re||("bez_"+H+"_"+V+"_"+J+"_"+te).replace(/\./g,"p");if(t[ie])return t[ie];var se=new G([H,V,J,te]);return t[ie]=se,se}var i=4,s=.001,a=1e-7,l=10,h=11,d=1/(h-1),y=typeof Float32Array=="function";function M(H,V){return 1-3*V+3*H}function q(H,V){return 3*V-6*H}function F(H){return 3*H}function K(H,V,J){return((M(V,J)*H+q(V,J))*H+F(V))*H}function W(H,V,J){return 3*M(V,J)*H*H+2*q(V,J)*H+F(V)}function j(H,V,J,te,re){var ie,se,ue=0;do se=V+(J-V)/2,ie=K(se,te,re)-H,ie>0?J=se:V=se;while(Math.abs(ie)>a&&++ue<l);return se}function Q(H,V,J,te){for(var re=0;re<i;++re){var ie=W(V,J,te);if(ie===0)return V;var se=K(V,J,te)-H;V-=se/ie}return V}function G(H){this._p=H,this._mSampleValues=y?new Float32Array(h):new Array(h),this._precomputed=!1,this.get=this.get.bind(this)}return G.prototype={get:function(V){var J=this._p[0],te=this._p[1],re=this._p[2],ie=this._p[3];return this._precomputed||this._precompute(),J===te&&re===ie?V:V===0?0:V===1?1:K(this._getTForX(V),te,ie)},_precompute:function(){var V=this._p[0],J=this._p[1],te=this._p[2],re=this._p[3];this._precomputed=!0,(V!==J||te!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var V=this._p[0],J=this._p[2],te=0;te<h;++te)this._mSampleValues[te]=K(te*d,V,J)},_getTForX:function(V){for(var J=this._p[0],te=this._p[2],re=this._mSampleValues,ie=0,se=1,ue=h-1;se!==ue&&re[se]<=V;++se)ie+=d;--se;var ge=(V-re[se])/(re[se+1]-re[se]),de=ie+ge*d,fe=W(de,J,te);return fe>=s?Q(V,de,J,te):fe===0?de:j(V,ie,ie+d,J,te)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,n){var i=0,s=e,a=createSizedArray(s),l={newElement:h,release:d};function h(){var y;return i?(i-=1,y=a[i]):y=t(),y}function d(y){i===s&&(a=pooling.double(a),s*=2),n&&n(y),a[i]=y,i+=1}return l}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(n){var i,s=n.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(F,K,W,j,Q,G){var H=F*j+K*Q+W*G-Q*j-G*F-W*K;return H>-.001&&H<.001}function n(F,K,W,j,Q,G,H,V,J){if(W===0&&G===0&&J===0)return t(F,K,j,Q,H,V);var te=e.sqrt(e.pow(j-F,2)+e.pow(Q-K,2)+e.pow(G-W,2)),re=e.sqrt(e.pow(H-F,2)+e.pow(V-K,2)+e.pow(J-W,2)),ie=e.sqrt(e.pow(H-j,2)+e.pow(V-Q,2)+e.pow(J-G,2)),se;return te>re?te>ie?se=te-re-ie:se=ie-re-te:ie>re?se=ie-re-te:se=re-te-ie,se>-1e-4&&se<1e-4}var i=(function(){return function(F,K,W,j){var Q=getDefaultCurveSegments(),G,H,V,J,te,re=0,ie,se=[],ue=[],ge=bezierLengthPool.newElement();for(V=W.length,G=0;G<Q;G+=1){for(te=G/(Q-1),ie=0,H=0;H<V;H+=1)J=bmPow(1-te,3)*F[H]+3*bmPow(1-te,2)*te*W[H]+3*(1-te)*bmPow(te,2)*j[H]+bmPow(te,3)*K[H],se[H]=J,ue[H]!==null&&(ie+=bmPow(se[H]-ue[H],2)),ue[H]=se[H];ie&&(ie=bmSqrt(ie),re+=ie),ge.percents[G]=te,ge.lengths[G]=re}return ge.addedLength=re,ge}})();function s(F){var K=segmentsLengthPool.newElement(),W=F.c,j=F.v,Q=F.o,G=F.i,H,V=F._length,J=K.lengths,te=0;for(H=0;H<V-1;H+=1)J[H]=i(j[H],j[H+1],Q[H],G[H+1]),te+=J[H].addedLength;return W&&V&&(J[H]=i(j[H],j[0],Q[H],G[0]),te+=J[H].addedLength),K.totalLength=te,K}function a(F){this.segmentLength=0,this.points=new Array(F)}function l(F,K){this.partialLength=F,this.point=K}var h=(function(){var F={};return function(K,W,j,Q){var G=(K[0]+"_"+K[1]+"_"+W[0]+"_"+W[1]+"_"+j[0]+"_"+j[1]+"_"+Q[0]+"_"+Q[1]).replace(/\./g,"p");if(!F[G]){var H=getDefaultCurveSegments(),V,J,te,re,ie,se=0,ue,ge,de=null;K.length===2&&(K[0]!==W[0]||K[1]!==W[1])&&t(K[0],K[1],W[0],W[1],K[0]+j[0],K[1]+j[1])&&t(K[0],K[1],W[0],W[1],W[0]+Q[0],W[1]+Q[1])&&(H=2);var fe=new a(H);for(te=j.length,V=0;V<H;V+=1){for(ge=createSizedArray(te),ie=V/(H-1),ue=0,J=0;J<te;J+=1)re=bmPow(1-ie,3)*K[J]+3*bmPow(1-ie,2)*ie*(K[J]+j[J])+3*(1-ie)*bmPow(ie,2)*(W[J]+Q[J])+bmPow(ie,3)*W[J],ge[J]=re,de!==null&&(ue+=bmPow(ge[J]-de[J],2));ue=bmSqrt(ue),se+=ue,fe.points[V]=new l(ue,ge),de=ge}fe.segmentLength=se,F[G]=fe}return F[G]}})();function d(F,K){var W=K.percents,j=K.lengths,Q=W.length,G=bmFloor((Q-1)*F),H=F*K.addedLength,V=0;if(G===Q-1||G===0||H===j[G])return W[G];for(var J=j[G]>H?-1:1,te=!0;te;)if(j[G]<=H&&j[G+1]>H?(V=(H-j[G])/(j[G+1]-j[G]),te=!1):G+=J,G<0||G>=Q-1){if(G===Q-1)return W[G];te=!1}return W[G]+(W[G+1]-W[G])*V}function y(F,K,W,j,Q,G){var H=d(Q,G),V=1-H,J=e.round((V*V*V*F[0]+(H*V*V+V*H*V+V*V*H)*W[0]+(H*H*V+V*H*H+H*V*H)*j[0]+H*H*H*K[0])*1e3)/1e3,te=e.round((V*V*V*F[1]+(H*V*V+V*H*V+V*V*H)*W[1]+(H*H*V+V*H*H+H*V*H)*j[1]+H*H*H*K[1])*1e3)/1e3;return[J,te]}var M=createTypedArray("float32",8);function q(F,K,W,j,Q,G,H){Q<0?Q=0:Q>1&&(Q=1);var V=d(Q,H);G=G>1?1:G;var J=d(G,H),te,re=F.length,ie=1-V,se=1-J,ue=ie*ie*ie,ge=V*ie*ie*3,de=V*V*ie*3,fe=V*V*V,ve=ie*ie*se,me=V*ie*se+ie*V*se+ie*ie*J,he=V*V*se+ie*V*J+V*ie*J,ne=V*V*J,ae=ie*se*se,Z=V*se*se+ie*J*se+ie*se*J,ee=V*J*se+ie*J*J+V*se*J,ce=V*J*J,oe=se*se*se,pe=J*se*se+se*J*se+se*se*J,ye=J*J*se+se*J*J+J*se*J,be=J*J*J;for(te=0;te<re;te+=1)M[te*4]=e.round((ue*F[te]+ge*W[te]+de*j[te]+fe*K[te])*1e3)/1e3,M[te*4+1]=e.round((ve*F[te]+me*W[te]+he*j[te]+ne*K[te])*1e3)/1e3,M[te*4+2]=e.round((ae*F[te]+Z*W[te]+ee*j[te]+ce*K[te])*1e3)/1e3,M[te*4+3]=e.round((oe*F[te]+pe*W[te]+ye*j[te]+be*K[te])*1e3)/1e3;return M}return{getSegmentsLength:s,getNewSegment:q,getPointInSegment:y,buildBezierData:h,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,l=this.keyframes.length-1,h=!0,d,y,M;h;){if(d=this.keyframes[a],y=this.keyframes[a+1],a===l-1&&e>=y.t-n){d.h&&(d=y),s=0;break}if(y.t-n>e){s=a;break}a<l-1?a+=1:(s=0,h=!1)}M=this.keyframesMetadata[a]||{};var q,F,K,W,j,Q,G=y.t-n,H=d.t-n,V;if(d.to){M.bezierData||(M.bezierData=bez.buildBezierData(d.s,y.s||d.e,d.to,d.ti));var J=M.bezierData;if(e>=G||e<H){var te=e>=G?J.points.length-1:0;for(F=J.points[te].point.length,q=0;q<F;q+=1)i[q]=J.points[te].point[q]}else{M.__fnct?Q=M.__fnct:(Q=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y,d.n).get,M.__fnct=Q),K=Q((e-H)/(G-H));var re=J.segmentLength*K,ie,se=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(j=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,h=!0,W=J.points.length;h;){if(se+=J.points[j].partialLength,re===0||K===0||j===J.points.length-1){for(F=J.points[j].point.length,q=0;q<F;q+=1)i[q]=J.points[j].point[q];break}else if(re>=se&&re<se+J.points[j+1].partialLength){for(ie=(re-se)/J.points[j+1].partialLength,F=J.points[j].point.length,q=0;q<F;q+=1)i[q]=J.points[j].point[q]+(J.points[j+1].point[q]-J.points[j].point[q])*ie;break}j<W-1?j+=1:h=!1}t._lastPoint=j,t._lastAddedLength=se-J.points[j].partialLength,t._lastKeyframeIndex=a}}else{var ue,ge,de,fe,ve;if(l=d.s.length,V=y.s||d.e,this.sh&&d.h!==1)if(e>=G)i[0]=V[0],i[1]=V[1],i[2]=V[2];else if(e<=H)i[0]=d.s[0],i[1]=d.s[1],i[2]=d.s[2];else{var me=createQuaternion(d.s),he=createQuaternion(V),ne=(e-H)/(G-H);quaternionToEuler(i,slerp(me,he,ne))}else for(a=0;a<l;a+=1)d.h!==1&&(e>=G?K=1:e<H?K=0:(d.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[a]?Q=M.__fnct[a]:(ue=d.o.x[a]===void 0?d.o.x[0]:d.o.x[a],ge=d.o.y[a]===void 0?d.o.y[0]:d.o.y[a],de=d.i.x[a]===void 0?d.i.x[0]:d.i.x[a],fe=d.i.y[a]===void 0?d.i.y[0]:d.i.y[a],Q=BezierFactory.getBezierEasing(ue,ge,de,fe).get,M.__fnct[a]=Q)):M.__fnct?Q=M.__fnct:(ue=d.o.x,ge=d.o.y,de=d.i.x,fe=d.i.y,Q=BezierFactory.getBezierEasing(ue,ge,de,fe).get,d.keyframeMetadata=Q),K=Q((e-H)/(G-H)))),V=y.s||d.e,ve=d.h===1?d.s[a]:d.s[a]+(V[a]-d.s[a])*K,this.propType==="multidimensional"?i[a]=ve:i=ve}return t.lastIndex=s,i}function slerp(e,t,n){var i=[],s=e[0],a=e[1],l=e[2],h=e[3],d=t[0],y=t[1],M=t[2],q=t[3],F,K,W,j,Q;return K=s*d+a*y+l*M+h*q,K<0&&(K=-K,d=-d,y=-y,M=-M,q=-q),1-K>1e-6?(F=Math.acos(K),W=Math.sin(F),j=Math.sin((1-n)*F)/W,Q=Math.sin(n*F)/W):(j=1-n,Q=n),i[0]=j*s+Q*d,i[1]=j*a+Q*y,i[2]=j*l+Q*M,i[3]=j*h+Q*q,i}function quaternionToEuler(e,t){var n=t[0],i=t[1],s=t[2],a=t[3],l=Math.atan2(2*i*a-2*n*s,1-2*i*i-2*s*s),h=Math.asin(2*n*i+2*s*a),d=Math.atan2(2*n*a-2*i*s,1-2*n*n-2*s*s);e[0]=l/degToRads,e[1]=h/degToRads,e[2]=d/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(n/2),l=Math.cos(i/2),h=Math.sin(t/2),d=Math.sin(n/2),y=Math.sin(i/2),M=s*a*l-h*d*y,q=h*d*l+s*a*y,F=h*a*l+s*d*y,K=s*d*l-h*a*y;return[q,F,K,M]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,i){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,i){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,i){this.propType="multidimensional";var s,a=t.k.length,l,h,d,y;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(l=t.k[s].s,h=t.k[s+1].s,d=t.k[s].to,y=t.k[s].ti,(l.length===2&&!(l[0]===h[0]&&l[1]===h[1])&&bez.pointOnLine2D(l[0],l[1],h[0],h[1],l[0]+d[0],l[1]+d[1])&&bez.pointOnLine2D(l[0],l[1],h[0],h[1],h[0]+y[0],h[1]+y[1])||l.length===3&&!(l[0]===h[0]&&l[1]===h[1]&&l[2]===h[2])&&bez.pointOnLine3D(l[0],l[1],l[2],h[0],h[1],h[2],l[0]+d[0],l[1]+d[1],l[2]+d[2])&&bez.pointOnLine3D(l[0],l[1],l[2],h[0],h[1],h[2],h[0]+y[0],h[1]+y[1],h[2]+y[2]))&&(t.k[s].to=null,t.k[s].ti=null),l[0]===h[0]&&l[1]===h[1]&&d[0]===0&&d[1]===0&&y[0]===0&&y[1]===0&&(l.length===2||l[2]===h[2]&&d[2]===0&&y[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var M=t.k[0].s.length;for(this.v=createTypedArray("float32",M),this.pv=createTypedArray("float32",M),s=0;s<M;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",M)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(n,i,s,a,l){i.sid&&(i=n.globalData.slotManager.getProp(i));var h;if(!i.k.length)h=new ValueProperty(n,i,a,l);else if(typeof i.k[0]=="number")h=new MultiDimensionalProperty(n,i,a,l);else switch(s){case 0:h=new KeyframedValueProperty(n,i,a,l);break;case 1:h=new KeyframedMultidimensionalProperty(n,i,a,l);break}return h.effectsSequence.length&&l.addDynamicProperty(h),h}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,n=this.dynamicProperties.length;for(t=0;t<n;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=e,a[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,i,s,a,l,h){this.setXYAt(e,t,"v",l,h),this.setXYAt(n,i,"o",l,h),this.setXYAt(s,a,"i",l,h)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),s=1);var a=this._length-1,l=this._length,h;for(h=s;h<l;h+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],n[a][0],n[a][1],h,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var a=s._length,l;for(l=0;l<a;l+=1)pointPool.release(s.v[l]),pointPool.release(s.i[l]),pointPool.release(s.o[l]),s.v[l]=null,s.i[l]=null,s.o[l]=null;s._length=0,s.c=!1}function n(s){var a=i.newElement(),l,h=s._length===void 0?s.v.length:s._length;for(a.setLength(h),a.c=s.c,l=0;l<h;l+=1)a.setTripleAt(s.v[l][0],s.v[l][1],s.o[l][0],s.o[l][1],s.i[l][0],s.i[l][1],l);return a}var i=poolFactory(4,e,t);return i.clone=n,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:a},t=0,n=4,i=createSizedArray(n);function s(){var l;return t?(t-=1,l=i[t]):l=new ShapeCollection,l}function a(l){var h,d=l._length;for(h=0;h<d;h+=1)shapePool.release(l.shapes[h]);l._length=0,t===n&&(i=pooling.double(i),n*=2),i[t]=l,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(G,H,V){var J=V.lastIndex,te,re,ie,se,ue,ge,de,fe,ve,me=this.keyframes;if(G<me[0].t-this.offsetTime)te=me[0].s[0],ie=!0,J=0;else if(G>=me[me.length-1].t-this.offsetTime)te=me[me.length-1].s?me[me.length-1].s[0]:me[me.length-2].e[0],ie=!0;else{for(var he=J,ne=me.length-1,ae=!0,Z,ee,ce;ae&&(Z=me[he],ee=me[he+1],!(ee.t-this.offsetTime>G));)he<ne-1?he+=1:ae=!1;if(ce=this.keyframesMetadata[he]||{},ie=Z.h===1,J=he,!ie){if(G>=ee.t-this.offsetTime)fe=1;else if(G<Z.t-this.offsetTime)fe=0;else{var oe;ce.__fnct?oe=ce.__fnct:(oe=BezierFactory.getBezierEasing(Z.o.x,Z.o.y,Z.i.x,Z.i.y).get,ce.__fnct=oe),fe=oe((G-(Z.t-this.offsetTime))/(ee.t-this.offsetTime-(Z.t-this.offsetTime)))}re=ee.s?ee.s[0]:Z.e[0]}te=Z.s[0]}for(ge=H._length,de=te.i[0].length,V.lastIndex=J,se=0;se<ge;se+=1)for(ue=0;ue<de;ue+=1)ve=ie?te.i[se][ue]:te.i[se][ue]+(re.i[se][ue]-te.i[se][ue])*fe,H.i[se][ue]=ve,ve=ie?te.o[se][ue]:te.o[se][ue]+(re.o[se][ue]-te.o[se][ue])*fe,H.o[se][ue]=ve,ve=ie?te.v[se][ue]:te.v[se][ue]+(re.v[se][ue]-te.v[se][ue])*fe,H.v[se][ue]=ve}function n(){var G=this.comp.renderedFrame-this.offsetTime,H=this.keyframes[0].t-this.offsetTime,V=this.keyframes[this.keyframes.length-1].t-this.offsetTime,J=this._caching.lastFrame;return J!==e&&(J<H&&G<H||J>V&&G>V)||(this._caching.lastIndex=J<G?this._caching.lastIndex:0,this.interpolateShape(G,this.pv,this._caching)),this._caching.lastFrame=G,this.pv}function i(){this.paths=this.localShapeCollection}function s(G,H){if(G._length!==H._length||G.c!==H.c)return!1;var V,J=G._length;for(V=0;V<J;V+=1)if(G.v[V][0]!==H.v[V][0]||G.v[V][1]!==H.v[V][1]||G.o[V][0]!==H.o[V][0]||G.o[V][1]!==H.o[V][1]||G.i[V][0]!==H.i[V][0]||G.i[V][1]!==H.i[V][1])return!1;return!0}function a(G){s(this.v,G)||(this.v=shapePool.clone(G),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function l(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var G;this.kf?G=this.pv:this.data.ks?G=this.data.ks.k:G=this.data.pt.k;var H,V=this.effectsSequence.length;for(H=0;H<V;H+=1)G=this.effectsSequence[H](G);this.setVValue(G),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function h(G,H,V){this.propType="shape",this.comp=G.comp,this.container=G,this.elem=G,this.data=H,this.k=!1,this.kf=!1,this._mdf=!1;var J=V===3?H.pt.k:H.ks.k;this.v=shapePool.clone(J),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function d(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}h.prototype.interpolateShape=t,h.prototype.getValue=l,h.prototype.setVValue=a,h.prototype.addEffect=d;function y(G,H,V){this.propType="shape",this.comp=G.comp,this.elem=G,this.container=G,this.offsetTime=G.data.st,this.keyframes=V===3?H.pt.k:H.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var J=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,J),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}y.prototype.getValue=l,y.prototype.interpolateShape=t,y.prototype.setVValue=a,y.prototype.addEffect=d;var M=(function(){var G=roundCorner;function H(V,J){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=J.d,this.elem=V,this.comp=V.comp,this.frameId=-1,this.initDynamicPropertyContainer(V),this.p=PropertyFactory.getProp(V,J.p,1,0,this),this.s=PropertyFactory.getProp(V,J.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return H.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var J=this.p.v[0],te=this.p.v[1],re=this.s.v[0]/2,ie=this.s.v[1]/2,se=this.d!==3,ue=this.v;ue.v[0][0]=J,ue.v[0][1]=te-ie,ue.v[1][0]=se?J+re:J-re,ue.v[1][1]=te,ue.v[2][0]=J,ue.v[2][1]=te+ie,ue.v[3][0]=se?J-re:J+re,ue.v[3][1]=te,ue.i[0][0]=se?J-re*G:J+re*G,ue.i[0][1]=te-ie,ue.i[1][0]=se?J+re:J-re,ue.i[1][1]=te-ie*G,ue.i[2][0]=se?J+re*G:J-re*G,ue.i[2][1]=te+ie,ue.i[3][0]=se?J-re:J+re,ue.i[3][1]=te+ie*G,ue.o[0][0]=se?J+re*G:J-re*G,ue.o[0][1]=te-ie,ue.o[1][0]=se?J+re:J-re,ue.o[1][1]=te+ie*G,ue.o[2][0]=se?J-re*G:J+re*G,ue.o[2][1]=te+ie,ue.o[3][0]=se?J-re:J+re,ue.o[3][1]=te-ie*G}},extendPrototype([DynamicPropertyContainer],H),H})(),q=(function(){function G(H,V){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=H,this.comp=H.comp,this.data=V,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(H),V.sy===1?(this.ir=PropertyFactory.getProp(H,V.ir,0,0,this),this.is=PropertyFactory.getProp(H,V.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(H,V.pt,0,0,this),this.p=PropertyFactory.getProp(H,V.p,1,0,this),this.r=PropertyFactory.getProp(H,V.r,0,degToRads,this),this.or=PropertyFactory.getProp(H,V.or,0,0,this),this.os=PropertyFactory.getProp(H,V.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return G.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var V=Math.floor(this.pt.v)*2,J=Math.PI*2/V,te=!0,re=this.or.v,ie=this.ir.v,se=this.os.v,ue=this.is.v,ge=2*Math.PI*re/(V*2),de=2*Math.PI*ie/(V*2),fe,ve,me,he,ne=-Math.PI/2;ne+=this.r.v;var ae=this.data.d===3?-1:1;for(this.v._length=0,fe=0;fe<V;fe+=1){ve=te?re:ie,me=te?se:ue,he=te?ge:de;var Z=ve*Math.cos(ne),ee=ve*Math.sin(ne),ce=Z===0&&ee===0?0:ee/Math.sqrt(Z*Z+ee*ee),oe=Z===0&&ee===0?0:-Z/Math.sqrt(Z*Z+ee*ee);Z+=+this.p.v[0],ee+=+this.p.v[1],this.v.setTripleAt(Z,ee,Z-ce*he*me*ae,ee-oe*he*me*ae,Z+ce*he*me*ae,ee+oe*he*me*ae,fe,!0),te=!te,ne+=J*ae}},convertPolygonToPath:function(){var V=Math.floor(this.pt.v),J=Math.PI*2/V,te=this.or.v,re=this.os.v,ie=2*Math.PI*te/(V*4),se,ue=-Math.PI*.5,ge=this.data.d===3?-1:1;for(ue+=this.r.v,this.v._length=0,se=0;se<V;se+=1){var de=te*Math.cos(ue),fe=te*Math.sin(ue),ve=de===0&&fe===0?0:fe/Math.sqrt(de*de+fe*fe),me=de===0&&fe===0?0:-de/Math.sqrt(de*de+fe*fe);de+=+this.p.v[0],fe+=+this.p.v[1],this.v.setTripleAt(de,fe,de-ve*ie*re*ge,fe-me*ie*re*ge,de+ve*ie*re*ge,fe+me*ie*re*ge,se,!0),ue+=J*ge}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],G),G})(),F=(function(){function G(H,V){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=H,this.comp=H.comp,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(H),this.p=PropertyFactory.getProp(H,V.p,1,0,this),this.s=PropertyFactory.getProp(H,V.s,1,0,this),this.r=PropertyFactory.getProp(H,V.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return G.prototype={convertRectToPath:function(){var V=this.p.v[0],J=this.p.v[1],te=this.s.v[0]/2,re=this.s.v[1]/2,ie=bmMin(te,re,this.r.v),se=ie*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(V+te,J-re+ie,V+te,J-re+ie,V+te,J-re+se,0,!0),this.v.setTripleAt(V+te,J+re-ie,V+te,J+re-se,V+te,J+re-ie,1,!0),ie!==0?(this.v.setTripleAt(V+te-ie,J+re,V+te-ie,J+re,V+te-se,J+re,2,!0),this.v.setTripleAt(V-te+ie,J+re,V-te+se,J+re,V-te+ie,J+re,3,!0),this.v.setTripleAt(V-te,J+re-ie,V-te,J+re-ie,V-te,J+re-se,4,!0),this.v.setTripleAt(V-te,J-re+ie,V-te,J-re+se,V-te,J-re+ie,5,!0),this.v.setTripleAt(V-te+ie,J-re,V-te+ie,J-re,V-te+se,J-re,6,!0),this.v.setTripleAt(V+te-ie,J-re,V+te-se,J-re,V+te-ie,J-re,7,!0)):(this.v.setTripleAt(V-te,J+re,V-te+se,J+re,V-te,J+re,2),this.v.setTripleAt(V-te,J-re,V-te,J-re+se,V-te,J-re,3))):(this.v.setTripleAt(V+te,J-re+ie,V+te,J-re+se,V+te,J-re+ie,0,!0),ie!==0?(this.v.setTripleAt(V+te-ie,J-re,V+te-ie,J-re,V+te-se,J-re,1,!0),this.v.setTripleAt(V-te+ie,J-re,V-te+se,J-re,V-te+ie,J-re,2,!0),this.v.setTripleAt(V-te,J-re+ie,V-te,J-re+ie,V-te,J-re+se,3,!0),this.v.setTripleAt(V-te,J+re-ie,V-te,J+re-se,V-te,J+re-ie,4,!0),this.v.setTripleAt(V-te+ie,J+re,V-te+ie,J+re,V-te+se,J+re,5,!0),this.v.setTripleAt(V+te-ie,J+re,V+te-se,J+re,V+te-ie,J+re,6,!0),this.v.setTripleAt(V+te,J+re-ie,V+te,J+re-ie,V+te,J+re-se,7,!0)):(this.v.setTripleAt(V-te,J-re,V-te+se,J-re,V-te,J-re,1,!0),this.v.setTripleAt(V-te,J+re,V-te,J+re-se,V-te,J+re,2,!0),this.v.setTripleAt(V+te,J+re,V+te-se,J+re,V+te,J+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],G),G})();function K(G,H,V){var J;if(V===3||V===4){var te=V===3?H.pt:H.ks,re=te.k;re.length?J=new y(G,H,V):J=new h(G,H,V)}else V===5?J=new F(G,H):V===6?J=new M(G,H):V===7&&(J=new q(G,H));return J.k&&G.addDynamicProperty(J),J}function W(){return h}function j(){return y}var Q={};return Q.getShapeProp=K,Q.getConstructorFunction=W,Q.getKeyframedConstructorFunction=j,Q})();var Matrix=(function(){var e=Math.cos,t=Math.sin,n=Math.tan,i=Math.round;function s(){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 a(Z){if(Z===0)return this;var ee=e(Z),ce=t(Z);return this._t(ee,-ce,0,0,ce,ee,0,0,0,0,1,0,0,0,0,1)}function l(Z){if(Z===0)return this;var ee=e(Z),ce=t(Z);return this._t(1,0,0,0,0,ee,-ce,0,0,ce,ee,0,0,0,0,1)}function h(Z){if(Z===0)return this;var ee=e(Z),ce=t(Z);return this._t(ee,0,ce,0,0,1,0,0,-ce,0,ee,0,0,0,0,1)}function d(Z){if(Z===0)return this;var ee=e(Z),ce=t(Z);return this._t(ee,-ce,0,0,ce,ee,0,0,0,0,1,0,0,0,0,1)}function y(Z,ee){return this._t(1,ee,Z,1,0,0)}function M(Z,ee){return this.shear(n(Z),n(ee))}function q(Z,ee){var ce=e(ee),oe=t(ee);return this._t(ce,oe,0,0,-oe,ce,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(Z),1,0,0,0,0,1,0,0,0,0,1)._t(ce,-oe,0,0,oe,ce,0,0,0,0,1,0,0,0,0,1)}function F(Z,ee,ce){return!ce&&ce!==0&&(ce=1),Z===1&&ee===1&&ce===1?this:this._t(Z,0,0,0,0,ee,0,0,0,0,ce,0,0,0,0,1)}function K(Z,ee,ce,oe,pe,ye,be,Ce,we,xe,Pe,Fe,Re,Ae,Ie,Me){return this.props[0]=Z,this.props[1]=ee,this.props[2]=ce,this.props[3]=oe,this.props[4]=pe,this.props[5]=ye,this.props[6]=be,this.props[7]=Ce,this.props[8]=we,this.props[9]=xe,this.props[10]=Pe,this.props[11]=Fe,this.props[12]=Re,this.props[13]=Ae,this.props[14]=Ie,this.props[15]=Me,this}function W(Z,ee,ce){return ce=ce||0,Z!==0||ee!==0||ce!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Z,ee,ce,1):this}function j(Z,ee,ce,oe,pe,ye,be,Ce,we,xe,Pe,Fe,Re,Ae,Ie,Me){var _e=this.props;if(Z===1&&ee===0&&ce===0&&oe===0&&pe===0&&ye===1&&be===0&&Ce===0&&we===0&&xe===0&&Pe===1&&Fe===0)return _e[12]=_e[12]*Z+_e[15]*Re,_e[13]=_e[13]*ye+_e[15]*Ae,_e[14]=_e[14]*Pe+_e[15]*Ie,_e[15]*=Me,this._identityCalculated=!1,this;var Ve=_e[0],Be=_e[1],Ge=_e[2],qe=_e[3],He=_e[4],Je=_e[5],$e=_e[6],Ke=_e[7],Qe=_e[8],Ye=_e[9],Ze=_e[10],We=_e[11],et=_e[12],it=_e[13],tt=_e[14],rt=_e[15];return _e[0]=Ve*Z+Be*pe+Ge*we+qe*Re,_e[1]=Ve*ee+Be*ye+Ge*xe+qe*Ae,_e[2]=Ve*ce+Be*be+Ge*Pe+qe*Ie,_e[3]=Ve*oe+Be*Ce+Ge*Fe+qe*Me,_e[4]=He*Z+Je*pe+$e*we+Ke*Re,_e[5]=He*ee+Je*ye+$e*xe+Ke*Ae,_e[6]=He*ce+Je*be+$e*Pe+Ke*Ie,_e[7]=He*oe+Je*Ce+$e*Fe+Ke*Me,_e[8]=Qe*Z+Ye*pe+Ze*we+We*Re,_e[9]=Qe*ee+Ye*ye+Ze*xe+We*Ae,_e[10]=Qe*ce+Ye*be+Ze*Pe+We*Ie,_e[11]=Qe*oe+Ye*Ce+Ze*Fe+We*Me,_e[12]=et*Z+it*pe+tt*we+rt*Re,_e[13]=et*ee+it*ye+tt*xe+rt*Ae,_e[14]=et*ce+it*be+tt*Pe+rt*Ie,_e[15]=et*oe+it*Ce+tt*Fe+rt*Me,this._identityCalculated=!1,this}function Q(Z){var ee=Z.props;return this.transform(ee[0],ee[1],ee[2],ee[3],ee[4],ee[5],ee[6],ee[7],ee[8],ee[9],ee[10],ee[11],ee[12],ee[13],ee[14],ee[15])}function G(){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 H(Z){for(var ee=0;ee<16;){if(Z.props[ee]!==this.props[ee])return!1;ee+=1}return!0}function V(Z){var ee;for(ee=0;ee<16;ee+=1)Z.props[ee]=this.props[ee];return Z}function J(Z){var ee;for(ee=0;ee<16;ee+=1)this.props[ee]=Z[ee]}function te(Z,ee,ce){return{x:Z*this.props[0]+ee*this.props[4]+ce*this.props[8]+this.props[12],y:Z*this.props[1]+ee*this.props[5]+ce*this.props[9]+this.props[13],z:Z*this.props[2]+ee*this.props[6]+ce*this.props[10]+this.props[14]}}function re(Z,ee,ce){return Z*this.props[0]+ee*this.props[4]+ce*this.props[8]+this.props[12]}function ie(Z,ee,ce){return Z*this.props[1]+ee*this.props[5]+ce*this.props[9]+this.props[13]}function se(Z,ee,ce){return Z*this.props[2]+ee*this.props[6]+ce*this.props[10]+this.props[14]}function ue(){var Z=this.props[0]*this.props[5]-this.props[1]*this.props[4],ee=this.props[5]/Z,ce=-this.props[1]/Z,oe=-this.props[4]/Z,pe=this.props[0]/Z,ye=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Z,be=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Z,Ce=new Matrix;return Ce.props[0]=ee,Ce.props[1]=ce,Ce.props[4]=oe,Ce.props[5]=pe,Ce.props[12]=ye,Ce.props[13]=be,Ce}function ge(Z){var ee=this.getInverseMatrix();return ee.applyToPointArray(Z[0],Z[1],Z[2]||0)}function de(Z){var ee,ce=Z.length,oe=[];for(ee=0;ee<ce;ee+=1)oe[ee]=ge(Z[ee]);return oe}function fe(Z,ee,ce){var oe=createTypedArray("float32",6);if(this.isIdentity())oe[0]=Z[0],oe[1]=Z[1],oe[2]=ee[0],oe[3]=ee[1],oe[4]=ce[0],oe[5]=ce[1];else{var pe=this.props[0],ye=this.props[1],be=this.props[4],Ce=this.props[5],we=this.props[12],xe=this.props[13];oe[0]=Z[0]*pe+Z[1]*be+we,oe[1]=Z[0]*ye+Z[1]*Ce+xe,oe[2]=ee[0]*pe+ee[1]*be+we,oe[3]=ee[0]*ye+ee[1]*Ce+xe,oe[4]=ce[0]*pe+ce[1]*be+we,oe[5]=ce[0]*ye+ce[1]*Ce+xe}return oe}function ve(Z,ee,ce){var oe;return this.isIdentity()?oe=[Z,ee,ce]:oe=[Z*this.props[0]+ee*this.props[4]+ce*this.props[8]+this.props[12],Z*this.props[1]+ee*this.props[5]+ce*this.props[9]+this.props[13],Z*this.props[2]+ee*this.props[6]+ce*this.props[10]+this.props[14]],oe}function me(Z,ee){if(this.isIdentity())return Z+","+ee;var ce=this.props;return Math.round((Z*ce[0]+ee*ce[4]+ce[12])*100)/100+","+Math.round((Z*ce[1]+ee*ce[5]+ce[13])*100)/100}function he(){for(var Z=0,ee=this.props,ce="matrix3d(",oe=1e4;Z<16;)ce+=i(ee[Z]*oe)/oe,ce+=Z===15?")":",",Z+=1;return ce}function ne(Z){var ee=1e4;return Z<1e-6&&Z>0||Z>-1e-6&&Z<0?i(Z*ee)/ee:Z}function ae(){var Z=this.props,ee=ne(Z[0]),ce=ne(Z[1]),oe=ne(Z[4]),pe=ne(Z[5]),ye=ne(Z[12]),be=ne(Z[13]);return"matrix("+ee+","+ce+","+oe+","+pe+","+ye+","+be+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=l,this.rotateY=h,this.rotateZ=d,this.skew=M,this.skewFromAxis=q,this.shear=y,this.scale=F,this.setTransform=K,this.translate=W,this.transform=j,this.multiply=Q,this.applyToPoint=te,this.applyToX=re,this.applyToY=ie,this.applyToZ=se,this.applyToPointArray=ve,this.applyToTriplePoints=fe,this.applyToPointStringified=me,this.toCSS=he,this.to2dCSS=ae,this.clone=V,this.cloneFromProps=J,this.equals=H,this.inversePoints=de,this.inversePoint=ge,this.getInverseMatrix=ue,this._t=this.transform,this.isIdentity=G,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var i=t[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=n,e.getModifier=i;function n(s,a){t[s]||(t[s]=a)}function i(s,a,l){return new t[s](a,l)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,i,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var l=[],h,d=a.length,y;for(h=0;h<d;h+=1)if(y=a[h],!(y.e*s<i||y.s*s>i+n)){var M,q;y.s*s<=i?M=0:M=(y.s*s-i)/n,y.e*s>=i+n?q=1:q=(y.e*s-i)/n,l.push([M,q])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,t>n){var s=t;t=n,n=s}t=Math.round(t*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var a,l,h=this.shapes.length,d,y,M,q,F,K=0;if(n===t)for(l=0;l<h;l+=1)this.shapes[l].localShapeCollection.releaseShapes(),this.shapes[l].shape._mdf=!0,this.shapes[l].shape.paths=this.shapes[l].localShapeCollection,this._mdf&&(this.shapes[l].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(l=0;l<h;l+=1)this.shapes[l].pathsData.length=0,this.shapes[l].shape._mdf=!0}else{var W=[],j,Q;for(l=0;l<h;l+=1)if(j=this.shapes[l],!j.shape._mdf&&!this._mdf&&!e&&this.m!==2)j.shape.paths=j.localShapeCollection;else{if(a=j.shape.paths,y=a._length,F=0,!j.shape._mdf&&j.pathsData.length)F=j.totalShapeLength;else{for(M=this.releasePathsData(j.pathsData),d=0;d<y;d+=1)q=bez.getSegmentsLength(a.shapes[d]),M.push(q),F+=q.totalLength;j.totalShapeLength=F,j.pathsData=M}K+=F,j.shape._mdf=!0}var G=t,H=n,V=0,J;for(l=h-1;l>=0;l-=1)if(j=this.shapes[l],j.shape._mdf){for(Q=j.localShapeCollection,Q.releaseShapes(),this.m===2&&h>1?(J=this.calculateShapeEdges(t,n,j.totalShapeLength,V,K),V+=j.totalShapeLength):J=[[G,H]],y=J.length,d=0;d<y;d+=1){G=J[d][0],H=J[d][1],W.length=0,H<=1?W.push({s:j.totalShapeLength*G,e:j.totalShapeLength*H}):G>=1?W.push({s:j.totalShapeLength*(G-1),e:j.totalShapeLength*(H-1)}):(W.push({s:j.totalShapeLength*G,e:j.totalShapeLength}),W.push({s:0,e:j.totalShapeLength*(H-1)}));var te=this.addShapes(j,W[0]);if(W[0].s!==W[0].e){if(W.length>1){var re=j.shape.paths.shapes[j.shape.paths._length-1];if(re.c){var ie=te.pop();this.addPaths(te,Q),te=this.addShapes(j,W[1],ie)}else this.addPaths(te,Q),te=this.addShapes(j,W[1])}this.addPaths(te,Q)}}j.shape.paths=Q}}},TrimModifier.prototype.addPaths=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,i,s,a,l){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(n[0],n[1],"i",a+1),l&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,i){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),i&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var i=e.pathsData,s=e.shape.paths.shapes,a,l=e.shape.paths._length,h,d,y=0,M,q,F,K,W=[],j,Q=!0;for(n?(q=n._length,j=n._length):(n=shapePool.newElement(),q=0,j=0),W.push(n),a=0;a<l;a+=1){for(F=i[a].lengths,n.c=s[a].c,d=s[a].c?F.length:F.length+1,h=1;h<d;h+=1)if(M=F[h-1],y+M.addedLength<t.s)y+=M.addedLength,n.c=!1;else if(y>t.e){n.c=!1;break}else t.s<=y&&t.e>=y+M.addedLength?(this.addSegment(s[a].v[h-1],s[a].o[h-1],s[a].i[h],s[a].v[h],n,q,Q),Q=!1):(K=bez.getNewSegment(s[a].v[h-1],s[a].v[h],s[a].o[h-1],s[a].i[h],(t.s-y)/M.addedLength,(t.e-y)/M.addedLength,F[h-1]),this.addSegmentFromArray(K,n,q,Q),Q=!1,n.c=!1),y+=M.addedLength,q+=1;if(s[a].c&&F.length){if(M=F[h-1],y<=t.e){var G=F[h-1].addedLength;t.s<=y&&t.e>=y+G?(this.addSegment(s[a].v[h-1],s[a].o[h-1],s[a].i[0],s[a].v[0],n,q,Q),Q=!1):(K=bez.getNewSegment(s[a].v[h-1],s[a].v[0],s[a].o[h-1],s[a].i[0],(t.s-y)/G,(t.e-y)/G,F[h-1]),this.addSegmentFromArray(K,n,q,Q),Q=!1,n.c=!1)}else n.c=!1;y+=M.addedLength,q+=1}if(n._length&&(n.setXYAt(n.v[j][0],n.v[j][1],"i",j),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),y>t.e)break;a<l-1&&(n=shapePool.newElement(),Q=!0,W.push(n),q=0)}return W};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,i=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)i[0]+=e.v[a][0],i[1]+=e.v[a][1];i[0]/=s,i[1]/=s;var l=shapePool.newElement();l.c=e.c;var h,d,y,M,q,F;for(a=0;a<s;a+=1)h=e.v[a][0]+(i[0]-e.v[a][0])*n,d=e.v[a][1]+(i[1]-e.v[a][1])*n,y=e.o[a][0]+(i[0]-e.o[a][0])*-n,M=e.o[a][1]+(i[1]-e.o[a][1])*-n,q=e.i[a][0]+(i[0]-e.i[a][0])*-n,F=e.i[a][1]+(i[1]-e.i[a][1])*-n,l.setTripleAt(h,d,y,M,q,F,a);return l},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,l=this.amount.v;if(l!==0){var h,d;for(n=0;n<i;n+=1){if(h=this.shapes[n],d=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),h.shape._mdf=!0,t=h.shape.paths.shapes,a=h.shape.paths._length,s=0;s<a;s+=1)d.addShape(this.processPath(t[s],l));h.shape.paths=h.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(d){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&d.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&d.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&d.skewFromAxis(-this.sk.v,this.sa.v),this.r?d.rotate(-this.r.v):d.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?d.translate(this.px.v,this.py.v,-this.pz.v):d.translate(this.px.v,this.py.v,0):d.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(d){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||d){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,q;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),q=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),q=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(M=this.p.pv,q=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],q=[];var F=this.px,K=this.py;F._caching.lastFrame+F.offsetTime<=F.keyframes[0].t?(M[0]=F.getValueAtTime((F.keyframes[0].t+.01)/y,0),M[1]=K.getValueAtTime((K.keyframes[0].t+.01)/y,0),q[0]=F.getValueAtTime(F.keyframes[0].t/y,0),q[1]=K.getValueAtTime(K.keyframes[0].t/y,0)):F._caching.lastFrame+F.offsetTime>=F.keyframes[F.keyframes.length-1].t?(M[0]=F.getValueAtTime(F.keyframes[F.keyframes.length-1].t/y,0),M[1]=K.getValueAtTime(K.keyframes[K.keyframes.length-1].t/y,0),q[0]=F.getValueAtTime((F.keyframes[F.keyframes.length-1].t-.01)/y,0),q[1]=K.getValueAtTime((K.keyframes[K.keyframes.length-1].t-.01)/y,0)):(M=[F.pv,K.pv],q[0]=F.getValueAtTime((F._caching.lastFrame+F.offsetTime-.01)/y,F.offsetTime),q[1]=K.getValueAtTime((K._caching.lastFrame+K.offsetTime-.01)/y,K.offsetTime))}else q=e,M=q;this.v.rotate(-Math.atan2(M[1]-q[1],M[0]-q[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 i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(d){this._addDynamicProperty(d),this.elem.addDynamicProperty(d),this._isDirty=!0}function l(d,y,M){if(this.elem=d,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||d),y.p&&y.p.s?(this.px=PropertyFactory.getProp(d,y.p.x,0,0,this),this.py=PropertyFactory.getProp(d,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(d,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(d,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(d,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(d,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(d,y.rz,0,degToRads,this),y.or.k[0].ti){var q,F=y.or.k.length;for(q=0;q<F;q+=1)y.or.k[q].to=null,y.or.k[q].ti=null}this.or=PropertyFactory.getProp(d,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(d,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(d,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(d,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(d,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(d,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(d,y.o,0,.01,d):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}l.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],l),l.prototype.addDynamicProperty=a,l.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function h(d,y,M){return new l(d,y,M)}return{getTransformProperty:h}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,i,s,a){var l=a?-1:1,h=i.s.v[0]+(1-i.s.v[0])*(1-s),d=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*l*s,i.p.v[1]*l*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*l*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(a?1/h:h,a?1/d:d),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,i){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,i,s,a,l=!1;if(this._mdf||e){var h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),l=!0}a=0;var y;for(i=0;i<=this._groups.length-1;i+=1){if(y=a<h,this._groups[i]._render=y,this.changeGroupRender(this._groups[i].it,y),!y){var M=this.elemsData[i].it,q=M[M.length-1];q.transform.op.v!==0?(q.transform.op._mdf=!0,q.transform.op.v=0):q.transform.op._mdf=!1}a+=1}this._currentCopies=h;var F=this.o.v,K=F%1,W=F>0?Math.floor(F):Math.ceil(F),j=this.pMatrix.props,Q=this.rMatrix.props,G=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var H=0;if(F>0){for(;H<W;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),H+=1;K&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,K,!1),H+=K)}else if(F<0){for(;H>W;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),H-=1;K&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-K,!0),H-=K)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var V,J;a;){if(t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,J=n.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),H!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5],Q[6],Q[7],Q[8],Q[9],Q[10],Q[11],Q[12],Q[13],Q[14],Q[15]),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),V=0;V<J;V+=1)n[V]=this.matrix.props[V];this.matrix.reset()}else for(this.matrix.reset(),V=0;V<J;V+=1)n[V]=this.matrix.props[V];H+=1,a-=1,i+=s}}else for(a=this._currentCopies,i=0,s=1;a;)t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,i+=s;return l},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n=shapePool.newElement();n.c=e.c;var i,s=e._length,a,l,h,d,y,M,q=0,F,K,W,j,Q,G;for(i=0;i<s;i+=1)a=e.v[i],h=e.o[i],l=e.i[i],a[0]===h[0]&&a[1]===h[1]&&a[0]===l[0]&&a[1]===l[1]?(i===0||i===s-1)&&!e.c?(n.setTripleAt(a[0],a[1],h[0],h[1],l[0],l[1],q),q+=1):(i===0?d=e.v[s-1]:d=e.v[i-1],y=Math.sqrt(Math.pow(a[0]-d[0],2)+Math.pow(a[1]-d[1],2)),M=y?Math.min(y/2,t)/y:0,Q=a[0]+(d[0]-a[0])*M,F=Q,G=a[1]-(a[1]-d[1])*M,K=G,W=F-(F-a[0])*roundCorner,j=K-(K-a[1])*roundCorner,n.setTripleAt(F,K,W,j,Q,G,q),q+=1,i===s-1?d=e.v[0]:d=e.v[i+1],y=Math.sqrt(Math.pow(a[0]-d[0],2)+Math.pow(a[1]-d[1],2)),M=y?Math.min(y/2,t)/y:0,W=a[0]+(d[0]-a[0])*M,F=W,j=a[1]+(d[1]-a[1])*M,K=j,Q=F-(F-a[0])*roundCorner,G=K-(K-a[1])*roundCorner,n.setTripleAt(F,K,W,j,Q,G,q),q+=1):(n.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],q),q+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,l=this.rd.v;if(l!==0){var h,d;for(n=0;n<i;n+=1){if(h=this.shapes[n],d=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),h.shape._mdf=!0,t=h.shape.paths.shapes,a=h.shape.paths._length,s=0;s<a;s+=1)d.addShape(this.processPath(t[s],l));h.shape.paths=h.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var i=t*t-4*e*n;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var a=Math.sqrt(i)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,n,i){return[-e+3*t-3*n+i,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var a=polynomialCoefficients(e[0],t[0],n[0],i[0]),l=polynomialCoefficients(e[1],t[1],n[1],i[1]);this.a=[a[0],l[0]],this.b=[a[1],l[1]],this.c=[a[2],l[2]],this.d=[a[3],l[3]],this.points=[e,t,n,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,n,e),a=lerpPoint(n,i,e),l=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,l,!0),new PolynomialBezier(l,a,i,this.points[3],!0)]};function extrema(e,t){var n=e.points[0][t],i=e.points[e.points.length-1][t];if(n>i){var s=i;i=n,n=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),l=0;l<a.length;l+=1)if(a[l]>0&&a[l]<1){var h=e.point(a[l])[t];h<n?n=h:h>i&&(i=h)}return{min:n,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,n,i,s,a){if(boxIntersect(e,t)){if(n>=a||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var l=splitData(e),h=splitData(t);intersectsImpl(l[0],h[0],n+1,i,s,a),intersectsImpl(l[0],h[1],n+1,i,s,a),intersectsImpl(l[1],h[0],n+1,i,s,a),intersectsImpl(l[1],h[1],n+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,n),i},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,i){var s=[e[0],e[1],1],a=[t[0],t[1],1],l=[n[0],n[1],1],h=[i[0],i[1],1],d=crossProduct(crossProduct(s,a),crossProduct(l,h));return floatZero(d[2])?null:[d[0]/d[2],d[1]/d[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,n,i,s,a,l){var h=n-Math.PI/2,d=n+Math.PI/2,y=t[0]+Math.cos(n)*i*s,M=t[1]-Math.sin(n)*i*s;e.setTripleAt(y,M,y+Math.cos(h)*a,M-Math.sin(h)*a,y+Math.cos(d)*l,M-Math.sin(d)*l,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return s}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[n],a=e.v[i],l=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(l[1],l[0])}function zigZagCorner(e,t,n,i,s,a,l){var h=getProjectingAngle(t,n),d=t.v[n%t._length],y=t.v[n===0?t._length-1:n-1],M=t.v[(n+1)%t._length],q=a===2?Math.sqrt(Math.pow(d[0]-y[0],2)+Math.pow(d[1]-y[1],2)):0,F=a===2?Math.sqrt(Math.pow(d[0]-M[0],2)+Math.pow(d[1]-M[1],2)):0;setPoint(e,t.v[n%t._length],h,l,i,F/((s+1)*2),q/((s+1)*2))}function zigZagSegment(e,t,n,i,s,a){for(var l=0;l<i;l+=1){var h=(l+1)/(i+1),d=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,y=t.normalAngle(h),M=t.point(h);setPoint(e,M,y,a,n,d/((i+1)*2),d/((i+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,n,i){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var l=-1,h=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,n,i,l);for(var d=0;d<s;d+=1)l=zigZagSegment(a,h,t,n,i,-l),d===s-1&&!e.c?h=null:h=PolynomialBezier.shapeSegment(e,(d+1)%s),zigZagCorner(a,e,d+1,t,n,i,l);return a},ZigZagModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(l!==0){var y,M;for(n=0;n<i;n+=1){if(y=this.shapes[n],M=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),y.shape._mdf=!0,t=y.shape.paths.shapes,a=y.shape.paths._length,s=0;s<a;s+=1)M.addShape(this.processPath(t[s],l,h,d));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,n){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,n),polarOffset(t,i,n)]}function offsetSegment(e,t){var n,i,s,a,l,h,d;d=linearOffset(e.points[0],e.points[1],t),n=d[0],i=d[1],d=linearOffset(e.points[1],e.points[2],t),s=d[0],a=d[1],d=linearOffset(e.points[2],e.points[3],t),l=d[0],h=d[1];var y=lineIntersection(n,i,s,a);y===null&&(y=i);var M=lineIntersection(l,h,s,a);return M===null&&(M=l),new PolynomialBezier(n,y,M,h)}function joinLines(e,t,n,i,s){var a=t.points[3],l=n.points[0];if(i===3||pointEqual(a,l))return a;if(i===2){var h=-t.tangentAngle(1),d=-n.tangentAngle(0)+Math.PI,y=lineIntersection(a,polarOffset(a,h+Math.PI/2,100),l,polarOffset(l,h+Math.PI/2,100)),M=y?pointDistance(y,a):pointDistance(a,l)/2,q=polarOffset(a,h,2*M*roundCorner);return e.setXYAt(q[0],q[1],"o",e.length()-1),q=polarOffset(l,d,2*M*roundCorner),e.setTripleAt(l[0],l[1],l[0],l[1],q[0],q[1],e.length()),l}var F=pointEqual(a,t.points[2])?t.points[0]:t.points[2],K=pointEqual(l,n.points[1])?n.points[3]:n.points[1],W=lineIntersection(F,a,l,K);return W&&pointDistance(W,a)<s?(e.setTripleAt(W[0],W[1],W[0],W[1],W[0],W[1],e.length()),W):a}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(n[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[n,i]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n=e.inflectionPoints(),i,s,a,l;if(n.length===0)return[offsetSegment(e,t)];if(n.length===1||floatEqual(n[1],1))return a=e.split(n[0]),i=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(s,t)];a=e.split(n[0]),i=a[0];var h=(n[1]-n[0])/(1-n[0]);return a=a[1].split(h),l=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(l,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,i){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var l,h,d,y=[];for(l=0;l<a;l+=1)d=PolynomialBezier.shapeSegment(e,l),y.push(offsetSegmentSplit(d,t));if(!e.c)for(l=a-1;l>=0;l-=1)d=PolynomialBezier.shapeSegmentInverted(e,l),y.push(offsetSegmentSplit(d,t));y=pruneIntersections(y);var M=null,q=null;for(l=0;l<y.length;l+=1){var F=y[l];for(q&&(M=joinLines(s,q,F[0],n,i)),q=F[F.length-1],h=0;h<F.length;h+=1)d=F[h],M&&pointEqual(d.points[0],M)?s.setXYAt(d.points[1][0],d.points[1][1],"o",s.length()-1):s.setTripleAt(d.points[0][0],d.points[0][1],d.points[1][0],d.points[1][1],d.points[0][0],d.points[0][1],s.length()),s.setTripleAt(d.points[3][0],d.points[3][1],d.points[3][0],d.points[3][1],d.points[2][0],d.points[2][1],s.length()),M=d.points[3]}return y.length&&joinLines(s,q,y[0][0],n,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,l=this.amount.v,h=this.miterLimit.v,d=this.lineJoin;if(l!==0){var y,M;for(n=0;n<i;n+=1){if(y=this.shapes[n],M=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),y.shape._mdf=!0,t=y.shape.paths.shapes,a=y.shape.paths._length,s=0;s<a;s+=1)M.addShape(this.processPath(t[s],l,d,h));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",s=t.length,a,l=0;l<s;l+=1)switch(a=t[l].toLowerCase(),a){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=917631,a=917601,l=917626,h=65039,d=8205,y=127462,M=127487,q=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function F(ne){var ae=ne.split(","),Z,ee=ae.length,ce=[];for(Z=0;Z<ee;Z+=1)ae[Z]!=="sans-serif"&&ae[Z]!=="monospace"&&ce.push(ae[Z]);return ce.join(",")}function K(ne,ae){var Z=createTag("span");Z.setAttribute("aria-hidden",!0),Z.style.fontFamily=ae;var ee=createTag("span");ee.innerText="giItT1WQy@!-/#",Z.style.position="absolute",Z.style.left="-10000px",Z.style.top="-10000px",Z.style.fontSize="300px",Z.style.fontVariant="normal",Z.style.fontStyle="normal",Z.style.fontWeight="normal",Z.style.letterSpacing="0",Z.appendChild(ee),document.body.appendChild(Z);var ce=ee.offsetWidth;return ee.style.fontFamily=F(ne)+", "+ae,{node:ee,w:ce,parent:Z}}function W(){var ne,ae=this.fonts.length,Z,ee,ce=ae;for(ne=0;ne<ae;ne+=1)this.fonts[ne].loaded?ce-=1:this.fonts[ne].fOrigin==="n"||this.fonts[ne].origin===0?this.fonts[ne].loaded=!0:(Z=this.fonts[ne].monoCase.node,ee=this.fonts[ne].monoCase.w,Z.offsetWidth!==ee?(ce-=1,this.fonts[ne].loaded=!0):(Z=this.fonts[ne].sansCase.node,ee=this.fonts[ne].sansCase.w,Z.offsetWidth!==ee&&(ce-=1,this.fonts[ne].loaded=!0)),this.fonts[ne].loaded&&(this.fonts[ne].sansCase.parent.parentNode.removeChild(this.fonts[ne].sansCase.parent),this.fonts[ne].monoCase.parent.parentNode.removeChild(this.fonts[ne].monoCase.parent)));ce!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function j(ne,ae){var Z=document.body&&ae?"svg":"canvas",ee,ce=getFontProperties(ne);if(Z==="svg"){var oe=createNS("text");oe.style.fontSize="100px",oe.setAttribute("font-family",ne.fFamily),oe.setAttribute("font-style",ce.style),oe.setAttribute("font-weight",ce.weight),oe.textContent="1",ne.fClass?(oe.style.fontFamily="inherit",oe.setAttribute("class",ne.fClass)):oe.style.fontFamily=ne.fFamily,ae.appendChild(oe),ee=oe}else{var pe=new OffscreenCanvas(500,500).getContext("2d");pe.font=ce.style+" "+ce.weight+" 100px "+ne.fFamily,ee=pe}function ye(be){return Z==="svg"?(ee.textContent=be,ee.getComputedTextLength()):ee.measureText(be).width}return{measureText:ye}}function Q(ne,ae){if(!ne){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=ne.list;return}if(!document.body){this.isLoaded=!0,ne.list.forEach(function(Pe){Pe.helper=j(Pe),Pe.cache={}}),this.fonts=ne.list;return}var Z=ne.list,ee,ce=Z.length,oe=ce;for(ee=0;ee<ce;ee+=1){var pe=!0,ye,be;if(Z[ee].loaded=!1,Z[ee].monoCase=K(Z[ee].fFamily,"monospace"),Z[ee].sansCase=K(Z[ee].fFamily,"sans-serif"),!Z[ee].fPath)Z[ee].loaded=!0,oe-=1;else if(Z[ee].fOrigin==="p"||Z[ee].origin===3){if(ye=document.querySelectorAll('style[f-forigin="p"][f-family="'+Z[ee].fFamily+'"], style[f-origin="3"][f-family="'+Z[ee].fFamily+'"]'),ye.length>0&&(pe=!1),pe){var Ce=createTag("style");Ce.setAttribute("f-forigin",Z[ee].fOrigin),Ce.setAttribute("f-origin",Z[ee].origin),Ce.setAttribute("f-family",Z[ee].fFamily),Ce.type="text/css",Ce.innerText="@font-face {font-family: "+Z[ee].fFamily+"; font-style: normal; src: url('"+Z[ee].fPath+"');}",ae.appendChild(Ce)}}else if(Z[ee].fOrigin==="g"||Z[ee].origin===1){for(ye=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),be=0;be<ye.length;be+=1)ye[be].href.indexOf(Z[ee].fPath)!==-1&&(pe=!1);if(pe){var we=createTag("link");we.setAttribute("f-forigin",Z[ee].fOrigin),we.setAttribute("f-origin",Z[ee].origin),we.type="text/css",we.rel="stylesheet",we.href=Z[ee].fPath,document.body.appendChild(we)}}else if(Z[ee].fOrigin==="t"||Z[ee].origin===2){for(ye=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),be=0;be<ye.length;be+=1)Z[ee].fPath===ye[be].src&&(pe=!1);if(pe){var xe=createTag("link");xe.setAttribute("f-forigin",Z[ee].fOrigin),xe.setAttribute("f-origin",Z[ee].origin),xe.setAttribute("rel","stylesheet"),xe.setAttribute("href",Z[ee].fPath),ae.appendChild(xe)}}Z[ee].helper=j(Z[ee],ae),Z[ee].cache={},this.fonts.push(Z[ee])}oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function G(ne){if(ne){this.chars||(this.chars=[]);var ae,Z=ne.length,ee,ce=this.chars.length,oe;for(ae=0;ae<Z;ae+=1){for(ee=0,oe=!1;ee<ce;)this.chars[ee].style===ne[ae].style&&this.chars[ee].fFamily===ne[ae].fFamily&&this.chars[ee].ch===ne[ae].ch&&(oe=!0),ee+=1;oe||(this.chars.push(ne[ae]),ce+=1)}}}function H(ne,ae,Z){for(var ee=0,ce=this.chars.length;ee<ce;){if(this.chars[ee].ch===ne&&this.chars[ee].style===ae&&this.chars[ee].fFamily===Z)return this.chars[ee];ee+=1}return(typeof ne=="string"&&ne.charCodeAt(0)!==13||!ne)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ne,ae,Z)),t}function V(ne,ae,Z){var ee=this.getFontByName(ae),ce=ne;if(!ee.cache[ce]){var oe=ee.helper;if(ne===" "){var pe=oe.measureText("|"+ne+"|"),ye=oe.measureText("||");ee.cache[ce]=(pe-ye)/100}else ee.cache[ce]=oe.measureText(ne)/100}return ee.cache[ce]*Z}function J(ne){for(var ae=0,Z=this.fonts.length;ae<Z;){if(this.fonts[ae].fName===ne)return this.fonts[ae];ae+=1}return this.fonts[0]}function te(ne){var ae=0,Z=ne.charCodeAt(0);if(Z>=55296&&Z<=56319){var ee=ne.charCodeAt(1);ee>=56320&&ee<=57343&&(ae=(Z-55296)*1024+ee-56320+65536)}return ae}function re(ne,ae){var Z=ne.toString(16)+ae.toString(16);return q.indexOf(Z)!==-1}function ie(ne){return ne===d}function se(ne){return ne===h}function ue(ne){var ae=te(ne);return ae>=y&&ae<=M}function ge(ne){return ue(ne.substr(0,2))&&ue(ne.substr(2,2))}function de(ne){return n.indexOf(ne)!==-1}function fe(ne,ae){var Z=te(ne.substr(ae,2));if(Z!==i)return!1;var ee=0;for(ae+=2;ee<5;){if(Z=te(ne.substr(ae,2)),Z<a||Z>l)return!1;ee+=1,ae+=2}return te(ne.substr(ae,2))===s}function ve(){this.isLoaded=!0}var me=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};me.isModifier=re,me.isZeroWidthJoiner=ie,me.isFlagEmoji=ge,me.isRegionalCode=ue,me.isCombinedCharacter=de,me.isRegionalFlag=fe,me.isVariationSelector=se,me.BLACK_FLAG_CODE_POINT=i;var he={addChars:G,addFonts:Q,getCharData:H,getFontByName:J,measureText:V,checkLoadedFonts:W,setIsLoaded:ve};return me.prototype=he,me})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?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,n=this.renderableComponents.length;for(t=0;t<n;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n=e.ef||[];this.effectElements=[];var i,s=n.length,a;for(i=0;i<s;i+=1)a=new GroupEffect(n[i],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,s,a=this.data.ef;for(n=0;n<i;n+=1){switch(s=null,a[n].ty){case 0:s=new SliderEffect(a[n],t,this);break;case 1:s=new AngleEffect(a[n],t,this);break;case 2:s=new ColorEffect(a[n],t,this);break;case 3:s=new PointEffect(a[n],t,this);break;case 4:case 7:s=new CheckboxEffect(a[n],t,this);break;case 10:s=new LayerIndexEffect(a[n],t,this);break;case 11:s=new MaskIndexEffect(a[n],t,this);break;case 5:s=new EffectsManager(a[n],t);break;default:s=new NoValueEffect(a[n]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,n=this.data.masksProperties.length;t<n;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var n=t("layer"),i=t("effects"),s=t("shape"),a=t("text"),l=t("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var h=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(h),this.data.ty===0||this.data.xt?this.compInterface=l(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=t},initBaseData:function(t,n,i){this.globalData=n,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,n){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,n=this.layers.length,i;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n=e.length,i,s=this.layers.length;for(t=0;t<n;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var i=this.elements,s=this.layers,a=0,l=s.length;a<l;)s[a].ind==t&&(!i[a]||i[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(n.push(i[a]),i[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,n):e.setHierarchy(n))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),n;if(typeof t=="number")n=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,n=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,n.cloneFromProps(t),i=0;i<s;i+=1)n.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<n;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<n;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<n;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=t.length;for(n=0;n<i;n+=1)this.localTransforms.push(t[n])}}},globalToLocal:function(t){var n=[];n.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&n.splice(0,0,s.finalTransform),s=s.comp):i=!1;var a,l=n.length,h;for(a=0;a<l;a+=1)h=n[a].mat.applyToPointArray(0,0,0),t=[t[0]-h[0],t[1]-h[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var l,h=this.masksProperties,d=0,y=[],M,q,F=createElementID(),K,W,j,Q,G="clipPath",H="clip-path";for(s=0;s<a;s+=1)if((h[s].mode!=="a"&&h[s].mode!=="n"||h[s].inv||h[s].o.k!==100||h[s].o.x)&&(G="mask",H="mask"),(h[s].mode==="s"||h[s].mode==="i")&&d===0?(K=createNS("rect"),K.setAttribute("fill","#ffffff"),K.setAttribute("width",this.element.comp.data.w||0),K.setAttribute("height",this.element.comp.data.h||0),y.push(K)):K=null,l=createNS("path"),h[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,h[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[s],3),elem:l,lastPath:""},i.appendChild(l);else{d+=1,l.setAttribute("fill",h[s].mode==="s"?"#000000":"#ffffff"),l.setAttribute("clip-rule","nonzero");var V;if(h[s].x.k!==0?(G="mask",H="mask",Q=PropertyFactory.getProp(this.element,h[s].x,0,null,this.element),V=createElementID(),W=createNS("filter"),W.setAttribute("id",V),j=createNS("feMorphology"),j.setAttribute("operator","erode"),j.setAttribute("in","SourceGraphic"),j.setAttribute("radius","0"),W.appendChild(j),i.appendChild(W),l.setAttribute("stroke",h[s].mode==="s"?"#000000":"#ffffff")):(j=null,Q=null),this.storedData[s]={elem:l,x:Q,expan:j,lastPath:"",lastOperator:"",filterId:V,lastRadius:0},h[s].mode==="i"){q=y.length;var J=createNS("g");for(M=0;M<q;M+=1)J.appendChild(y[M]);var te=createNS("mask");te.setAttribute("mask-type","alpha"),te.setAttribute("id",F+"_"+d),te.appendChild(l),i.appendChild(te),J.setAttribute("mask","url("+getLocationHref()+"#"+F+"_"+d+")"),y.length=0,y.push(J)}else y.push(l);h[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:l,lastPath:"",op:PropertyFactory.getProp(this.element,h[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[s],3),invRect:K},this.viewData[s].prop.k||this.drawPath(h[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(G),a=y.length,s=0;s<a;s+=1)this.maskElement.appendChild(y[s]);d>0&&(this.maskElement.setAttribute("id",F),this.element.maskedElement.setAttribute(H,"url("+getLocationHref()+"#"+F+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var s=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),s.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,n){var i=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var l="";n.elem&&(t.c&&(l=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",l)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=n;function t(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function n(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),l=0;this.filters=[];var h;for(t=0;t<i;t+=1){h=null;var d=e.data.ef[t].ty;if(registeredEffects$1[d]){var y=registeredEffects$1[d].effect;h=new y(a,e.effectsManager.effectElements[t],e,idPrefix+l,n),n=idPrefix+l,registeredEffects$1[d].countsAsEffect&&(l+=1)}h&&this.filters.push(h)}l&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),t=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(i.setAttribute("id",a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var l=createNS("g");l.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),l.appendChild(this.layerElement),this.transformedElement=l,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var n=this.layerId+"_"+t,i,s,a,l;if(t===1||t===3){var h=createNS("mask");h.setAttribute("id",n),h.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(a),this.globalData.defs.appendChild(h),!featureSupport.maskType&&t===1&&(h.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),l=createNS("g"),l.appendChild(a),h.appendChild(l),l.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var d=createNS("mask");d.setAttribute("id",n),d.setAttribute("mask-type","alpha");var y=createNS("g");d.appendChild(y),i=createElementID(),s=filtersFactory.createFilter(i);var M=createNS("feComponentTransfer");M.setAttribute("in","SourceGraphic"),s.appendChild(M);var q=createNS("feFuncA");q.setAttribute("type","table"),q.setAttribute("tableValues","1.0 0.0"),M.appendChild(q),this.globalData.defs.appendChild(s);var F=createNS("rect");F.setAttribute("width",this.comp.data.w),F.setAttribute("height",this.comp.data.h),F.setAttribute("x","0"),F.setAttribute("y","0"),F.setAttribute("fill","#ffffff"),F.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),y.appendChild(F),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(a),featureSupport.maskType||(d.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),l=createNS("g"),y.appendChild(F),l.appendChild(this.layerElement),y.appendChild(l)),this.globalData.defs.appendChild(d)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.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 RenderableDOMElement(){}(function(){var e={initElement:function(n,i,s){this.initFrame(),this.initBaseData(n,i,s),this.initTransform(n,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,n=this.shapes.length;for(t=0;t<n;t+=1)this.shapes[t].sh.reset();n=this.shapeModifiers.length;var i;for(t=n-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var n=this.processedElements,i=0,s=n.length;i<s;){if(n[i].elem===t)return n[i].pos;i+=1}return 0},addProcessedElement:function(t,n){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=n;return}i.push(new ProcessedElement(t,n))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=t.length||0,l;for(s=0;s<a;s+=1)l=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=l.k||this.k,this.dataProps[s]={n:t[s].n,p:l};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,i=this.o.length/2,s;n<i;){if(s=Math.abs(e[n*4]-e[t*4+n*2]),s>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n=this.data.p*4,i,s;for(t=0;t<n;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=this.data.p*4;t<n;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,l,h;for(h=t.g.p*4,l=0;l<h;l+=4)a=createNS("stop"),i.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,s,a=createNS("mask"),l=createNS("path");a.appendChild(l);var h=createElementID(),d=createElementID();a.setAttribute("id",d);var y=createNS(e.t===1?"linearGradient":"radialGradient");y.setAttribute("id",h),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(i=e.g.p*4;i<s;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(n),M.push(n);l.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+h+")"),e.ty==="gs"&&(l.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),l.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&l.setAttribute("stroke-miterlimit",e.ml)),this.of=y,this.ms=a,this.ost=M,this.maskId=d,t.msElem=l}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,n,i,s){if(n===0)return"";var a=t.o,l=t.i,h=t.v,d,y=" M"+s.applyToPointStringified(h[0][0],h[0][1]);for(d=1;d<n;d+=1)y+=" C"+s.applyToPointStringified(a[d-1][0],a[d-1][1])+" "+s.applyToPointStringified(l[d][0],l[d][1])+" "+s.applyToPointStringified(h[d][0],h[d][1]);return i&&n&&(y+=" C"+s.applyToPointStringified(a[d-1][0],a[d-1][1])+" "+s.applyToPointStringified(l[0][0],l[0][1])+" "+s.applyToPointStringified(h[0][0],h[0][1]),y+="z"),y},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:i};function i(q){switch(q.ty){case"fl":return h;case"gf":return y;case"gs":return d;case"st":return M;case"sh":case"el":case"rc":case"sr":return l;case"tr":return s;case"no":return a;default:return null}}function s(q,F,K){(K||F.transform.op._mdf)&&F.transform.container.setAttribute("opacity",F.transform.op.v),(K||F.transform.mProps._mdf)&&F.transform.container.setAttribute("transform",F.transform.mProps.v.to2dCSS())}function a(){}function l(q,F,K){var W,j,Q,G,H,V,J=F.styles.length,te=F.lvl,re,ie,se,ue;for(V=0;V<J;V+=1){if(G=F.sh._mdf||K,F.styles[V].lvl<te){for(ie=t.reset(),se=te-F.styles[V].lvl,ue=F.transformers.length-1;!G&&se>0;)G=F.transformers[ue].mProps._mdf||G,se-=1,ue-=1;if(G)for(se=te-F.styles[V].lvl,ue=F.transformers.length-1;se>0;)ie.multiply(F.transformers[ue].mProps.v),se-=1,ue-=1}else ie=e;if(re=F.sh.paths,j=re._length,G){for(Q="",W=0;W<j;W+=1)H=re.shapes[W],H&&H._length&&(Q+=buildShapeString(H,H._length,H.c,ie));F.caches[V]=Q}else Q=F.caches[V];F.styles[V].d+=q.hd===!0?"":Q,F.styles[V]._mdf=G||F.styles[V]._mdf}}function h(q,F,K){var W=F.style;(F.c._mdf||K)&&W.pElem.setAttribute("fill","rgb("+bmFloor(F.c.v[0])+","+bmFloor(F.c.v[1])+","+bmFloor(F.c.v[2])+")"),(F.o._mdf||K)&&W.pElem.setAttribute("fill-opacity",F.o.v)}function d(q,F,K){y(q,F,K),M(q,F,K)}function y(q,F,K){var W=F.gf,j=F.g._hasOpacity,Q=F.s.v,G=F.e.v;if(F.o._mdf||K){var H=q.ty==="gf"?"fill-opacity":"stroke-opacity";F.style.pElem.setAttribute(H,F.o.v)}if(F.s._mdf||K){var V=q.t===1?"x1":"cx",J=V==="x1"?"y1":"cy";W.setAttribute(V,Q[0]),W.setAttribute(J,Q[1]),j&&!F.g._collapsable&&(F.of.setAttribute(V,Q[0]),F.of.setAttribute(J,Q[1]))}var te,re,ie,se;if(F.g._cmdf||K){te=F.cst;var ue=F.g.c;for(ie=te.length,re=0;re<ie;re+=1)se=te[re],se.setAttribute("offset",ue[re*4]+"%"),se.setAttribute("stop-color","rgb("+ue[re*4+1]+","+ue[re*4+2]+","+ue[re*4+3]+")")}if(j&&(F.g._omdf||K)){var ge=F.g.o;for(F.g._collapsable?te=F.cst:te=F.ost,ie=te.length,re=0;re<ie;re+=1)se=te[re],F.g._collapsable||se.setAttribute("offset",ge[re*2]+"%"),se.setAttribute("stop-opacity",ge[re*2+1])}if(q.t===1)(F.e._mdf||K)&&(W.setAttribute("x2",G[0]),W.setAttribute("y2",G[1]),j&&!F.g._collapsable&&(F.of.setAttribute("x2",G[0]),F.of.setAttribute("y2",G[1])));else{var de;if((F.s._mdf||F.e._mdf||K)&&(de=Math.sqrt(Math.pow(Q[0]-G[0],2)+Math.pow(Q[1]-G[1],2)),W.setAttribute("r",de),j&&!F.g._collapsable&&F.of.setAttribute("r",de)),F.s._mdf||F.e._mdf||F.h._mdf||F.a._mdf||K){de||(de=Math.sqrt(Math.pow(Q[0]-G[0],2)+Math.pow(Q[1]-G[1],2)));var fe=Math.atan2(G[1]-Q[1],G[0]-Q[0]),ve=F.h.v;ve>=1?ve=.99:ve<=-1&&(ve=-.99);var me=de*ve,he=Math.cos(fe+F.a.v)*me+Q[0],ne=Math.sin(fe+F.a.v)*me+Q[1];W.setAttribute("fx",he),W.setAttribute("fy",ne),j&&!F.g._collapsable&&(F.of.setAttribute("fx",he),F.of.setAttribute("fy",ne))}}}function M(q,F,K){var W=F.style,j=F.d;j&&(j._mdf||K)&&j.dashStr&&(W.pElem.setAttribute("stroke-dasharray",j.dashStr),W.pElem.setAttribute("stroke-dashoffset",j.dashoffset[0])),F.c&&(F.c._mdf||K)&&W.pElem.setAttribute("stroke","rgb("+bmFloor(F.c.v[0])+","+bmFloor(F.c.v[1])+","+bmFloor(F.c.v[2])+")"),(F.o._mdf||K)&&W.pElem.setAttribute("stroke-opacity",F.o.v),(F.w._mdf||K)&&(W.pElem.setAttribute("stroke-width",F.w.v),W.msElem&&W.msElem.setAttribute("stroke-width",F.w.v))}return n})();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,n,i,s=this.stylesList.length,a,l=[],h=!1;for(i=0;i<s;i+=1){for(a=this.stylesList[i],h=!1,l.length=0,e=0;e<t;e+=1)n=this.shapes[e],n.styles.indexOf(a)!==-1&&(l.push(n),h=n._isAnimated||h);l.length>1&&h&&this.setShapesAsAnimated(l)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new a(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),s.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),a=new SVGShapeData(t,n,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)t.indexOf(this.stylesList[n])===-1&&!this.stylesList[n].closed&&t.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,i,s,a,l){var h=[].concat(a),d,y=e.length-1,M,q,F=[],K=[],W,j,Q;for(d=y;d>=0;d-=1){if(Q=this.searchProcessedElement(e[d]),Q?t[d]=n[Q-1]:e[d]._render=l,e[d].ty==="fl"||e[d].ty==="st"||e[d].ty==="gf"||e[d].ty==="gs"||e[d].ty==="no")Q?t[d].style.closed=e[d].hd:t[d]=this.createStyleElement(e[d],s),e[d]._render&&t[d].style.pElem.parentNode!==i&&i.appendChild(t[d].style.pElem),F.push(t[d].style);else if(e[d].ty==="gr"){if(!Q)t[d]=this.createGroupElement(e[d]);else for(q=t[d].it.length,M=0;M<q;M+=1)t[d].prevViewData[M]=t[d].it[M];this.searchShapes(e[d].it,t[d].it,t[d].prevViewData,t[d].gr,s+1,h,l),e[d]._render&&t[d].gr.parentNode!==i&&i.appendChild(t[d].gr)}else e[d].ty==="tr"?(Q||(t[d]=this.createTransformElement(e[d],i)),W=t[d].transform,h.push(W)):e[d].ty==="sh"||e[d].ty==="rc"||e[d].ty==="el"||e[d].ty==="sr"?(Q||(t[d]=this.createShapeElement(e[d],h,s)),this.setElementStyles(t[d])):e[d].ty==="tm"||e[d].ty==="rd"||e[d].ty==="ms"||e[d].ty==="pb"||e[d].ty==="zz"||e[d].ty==="op"?(Q?(j=t[d],j.closed=!1):(j=ShapeModifiers.getModifier(e[d].ty),j.init(this,e[d]),t[d]=j,this.shapeModifiers.push(j)),K.push(j)):e[d].ty==="rp"&&(Q?(j=t[d],j.closed=!0):(j=ShapeModifiers.getModifier(e[d].ty),t[d]=j,j.init(this,e,d,t),this.shapeModifiers.push(j),l=!1),K.push(j));this.addProcessedElement(e[d],d+1)}for(y=F.length,d=0;d<y;d+=1)F[d].closed=!0;for(y=K.length,d=0;d<y;d+=1)K[d].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,n;for(e=0;e<t;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,n,i,s,a){this.o=e,this.sw=t,this.sc=n,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,n,i,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var l=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,l=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,l=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,l=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,l=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,l=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,l=!0),l};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)n!==this.keysIndex?a=this.effectsSequence[i](a,a.t):a=this.effectsSequence[i](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],n=0,i=e.length,s,a,l=!1,h=!1,d="";n<i;)l=h,h=!1,s=e.charCodeAt(n),d=e.charAt(n),FontManager.isCombinedCharacter(s)?l=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,n)?d=e.substr(n,14):(a=e.charCodeAt(n+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(d=e.substr(n,2),l=!0):FontManager.isFlagEmoji(e.substr(n,4))?d=e.substr(n,4):d=e.substr(n,2))):s>56319?(a=e.charCodeAt(n+1),FontManager.isVariationSelector(s)&&(l=!0)):FontManager.isZeroWidthJoiner(s)&&(l=!0,h=!0),l?(t[t.length-1]+=d,l=!1):t.push(d),n+=d.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,i=[],s,a,l,h=0,d,y=n.m.g,M=0,q=0,F=0,K=[],W=0,j=0,Q,G,H=t.getFontByName(e.f),V,J=0,te=getFontProperties(H);e.fWeight=te.weight,e.fStyle=te.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var re=e.tr/1e3*e.finalSize,ie;if(e.sz)for(var se=!0,ue=e.sz[0],ge=e.sz[1],de,fe;se;){fe=this.buildFinalText(e.t),de=0,W=0,a=fe.length,re=e.tr/1e3*e.finalSize;var ve=-1;for(s=0;s<a;s+=1)ie=fe[s].charCodeAt(0),l=!1,fe[s]===" "?ve=s:(ie===13||ie===3)&&(W=0,l=!0,de+=e.finalLineHeight||e.finalSize*1.2),t.chars?(V=t.getCharData(fe[s],H.fStyle,H.fFamily),J=l?0:V.w*e.finalSize/100):J=t.measureText(fe[s],e.f,e.finalSize),W+J>ue&&fe[s]!==" "?(ve===-1?a+=1:s=ve,de+=e.finalLineHeight||e.finalSize*1.2,fe.splice(s,ve===s?1:0,"\r"),ve=-1,W=0):(W+=J,W+=re);de+=H.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ge<de?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=fe,a=e.finalText.length,se=!1)}W=-re,J=0;var me=0,he;for(s=0;s<a;s+=1)if(l=!1,he=e.finalText[s],ie=he.charCodeAt(0),ie===13||ie===3?(me=0,K.push(W),j=W>j?W:j,W=-2*re,d="",l=!0,F+=1):d=he,t.chars?(V=t.getCharData(he,H.fStyle,t.getFontByName(e.f).fFamily),J=l?0:V.w*e.finalSize/100):J=t.measureText(d,e.f,e.finalSize),he===" "?me+=J+re:(W+=J+re+me,me=0),i.push({l:J,an:J,add:M,n:l,anIndexes:[],val:d,line:F,animatorJustifyOffset:0}),y==2){if(M+=J,d===""||d===" "||s===a-1){for((d===""||d===" ")&&(M-=J);q<=s;)i[q].an=M,i[q].ind=h,i[q].extra=J,q+=1;h+=1,M=0}}else if(y==3){if(M+=J,d===""||s===a-1){for(d===""&&(M-=J);q<=s;)i[q].an=M,i[q].ind=h,i[q].extra=J,q+=1;M=0,h+=1}}else i[h].ind=h,i[h].extra=0,h+=1;if(e.l=i,j=W>j?W:j,K.push(W),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=j,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=K;var ne=n.a,ae,Z;G=ne.length;var ee,ce,oe=[];for(Q=0;Q<G;Q+=1){for(ae=ne[Q],ae.a.sc&&(e.strokeColorAnim=!0),ae.a.sw&&(e.strokeWidthAnim=!0),(ae.a.fc||ae.a.fh||ae.a.fs||ae.a.fb)&&(e.fillColorAnim=!0),ce=0,ee=ae.s.b,s=0;s<a;s+=1)Z=i[s],Z.anIndexes[Q]=ce,(ee==1&&Z.val!==""||ee==2&&Z.val!==""&&Z.val!==" "||ee==3&&(Z.n||Z.val==" "||s==a-1)||ee==4&&(Z.n||s==a-1))&&(ae.s.rn===1&&oe.push(ce),ce+=1);n.a[Q].s.totalChars=ce;var pe=-1,ye;if(ae.s.rn===1)for(s=0;s<a;s+=1)Z=i[s],pe!=Z.anIndexes[Q]&&(pe=Z.anIndexes[Q],ye=oe.splice(Math.floor(Math.random()*oe.length),1)[0]),Z.anIndexes[Q]=ye}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=H.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,n=Math.floor;function i(a,l){this._currentTextLength=-1,this.k=!1,this.data=l,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,l.s||{k:0},0,0,this),"e"in l?this.e=PropertyFactory.getProp(a,l.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,l.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,l.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,l.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,l.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,l.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(l){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var h=0,d=0,y=1,M=1;this.ne.v>0?h=this.ne.v/100:d=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:M=1+this.xe.v/100;var q=BezierFactory.getBezierEasing(h,d,y,M).get,F=0,K=this.finalS,W=this.finalE,j=this.data.sh;if(j===2)W===K?F=l>=W?1:0:F=e(0,t(.5/(W-K)+(l-K)/(W-K),1)),F=q(F);else if(j===3)W===K?F=l>=W?0:1:F=1-e(0,t(.5/(W-K)+(l-K)/(W-K),1)),F=q(F);else if(j===4)W===K?F=0:(F=e(0,t(.5/(W-K)+(l-K)/(W-K),1)),F<.5?F*=2:F=1-2*(F-.5)),F=q(F);else if(j===5){if(W===K)F=0;else{var Q=W-K;l=t(e(0,l+.5-K),W-K);var G=-Q/2+l,H=Q/2;F=Math.sqrt(1-G*G/(H*H))}F=q(F)}else j===6?(W===K?F=0:(l=t(e(0,l+.5-K),W-K),F=(1+Math.cos(Math.PI+Math.PI*2*l/(W-K)))/2),F=q(F)):(l>=n(K)&&(l-K<0?F=e(0,t(t(W,1)-(K-l),1)):F=e(0,t(W-l,1))),F=q(F));if(this.sm.v!==100){var V=this.sm.v*.01;V===0&&(V=1e-8);var J=.5-V*.5;F<J?F=0:(F=(F-J)/V,F>1&&(F=1))}return F*this.a.v},getValue:function(l){this.iterateDynamicProperties(),this._mdf=l||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,l&&this.data.r===2&&(this.e.v=this._currentTextLength);var h=this.data.r===2?1:100/this.data.totalChars,d=this.o.v/h,y=this.s.v/h+d,M=this.e.v/h+d;if(y>M){var q=y;y=M,M=q}this.finalS=y,this.finalE=M}},extendPrototype([DynamicPropertyContainer],i);function s(a,l,h){return new i(a,l)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,n){var i={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,n):i,rx:a.rx?s(e,a.rx,0,degToRads,n):i,ry:a.ry?s(e,a.ry,0,degToRads,n):i,sk:a.sk?s(e,a.sk,0,degToRads,n):i,sa:a.sa?s(e,a.sa,0,degToRads,n):i,s:a.s?s(e,a.s,1,.01,n):i,a:a.a?s(e,a.a,1,0,n):i,o:a.o?s(e,a.o,0,.01,n):i,p:a.p?s(e,a.p,1,0,n):i,sw:a.sw?s(e,a.sw,0,0,n):i,sc:a.sc?s(e,a.sc,1,0,n):i,fc:a.fc?s(e,a.fc,1,0,n):i,fh:a.fh?s(e,a.fh,0,0,n):i,fs:a.fs?s(e,a.fs,0,.01,n):i,fb:a.fb?s(e,a.fb,0,.01,n):i,t:a.t?s(e,a.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,a=this.mHelper,l=this._renderType,h=this.renderedLetters.length,d,y,M,q,F=e.l,K,W,j,Q,G,H,V,J,te,re,ie,se,ue,ge,de;if(this._hasMaskedPath){if(de=this._pathData.m,!this._pathData.n||this._pathData._mdf){var fe=de.v;this._pathData.r.v&&(fe=fe.reverse()),K={tLength:0,segments:[]},q=fe._length-1;var ve;for(se=0,M=0;M<q;M+=1)ve=bez.buildBezierData(fe.v[M],fe.v[M+1],[fe.o[M][0]-fe.v[M][0],fe.o[M][1]-fe.v[M][1]],[fe.i[M+1][0]-fe.v[M+1][0],fe.i[M+1][1]-fe.v[M+1][1]]),K.tLength+=ve.segmentLength,K.segments.push(ve),se+=ve.segmentLength;M=q,de.v.c&&(ve=bez.buildBezierData(fe.v[M],fe.v[0],[fe.o[M][0]-fe.v[M][0],fe.o[M][1]-fe.v[M][1]],[fe.i[0][0]-fe.v[0][0],fe.i[0][1]-fe.v[0][1]]),K.tLength+=ve.segmentLength,K.segments.push(ve),se+=ve.segmentLength),this._pathData.pi=K}if(K=this._pathData.pi,W=this._pathData.f.v,V=0,H=1,Q=0,G=!0,re=K.segments,W<0&&de.v.c)for(K.tLength<Math.abs(W)&&(W=-Math.abs(W)%K.tLength),V=re.length-1,te=re[V].points,H=te.length-1;W<0;)W+=te[H].partialLength,H-=1,H<0&&(V-=1,te=re[V].points,H=te.length-1);te=re[V].points,J=te[H-1],j=te[H],ie=j.partialLength}q=F.length,d=0,y=0;var me=e.finalSize*1.2*.714,he=!0,ne,ae,Z,ee,ce;ee=i.length;var oe,pe=-1,ye,be,Ce,we=W,xe=V,Pe=H,Fe=-1,Re,Ae,Ie,Me,_e,Ve,Be,Ge,qe="",He=this.defaultPropsArray,Je;if(e.j===2||e.j===1){var $e=0,Ke=0,Qe=e.j===2?-.5:-1,Ye=0,Ze=!0;for(M=0;M<q;M+=1)if(F[M].n){for($e&&($e+=Ke);Ye<M;)F[Ye].animatorJustifyOffset=$e,Ye+=1;$e=0,Ze=!0}else{for(Z=0;Z<ee;Z+=1)ne=i[Z].a,ne.t.propType&&(Ze&&e.j===2&&(Ke+=ne.t.v*Qe),ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),oe.length?$e+=ne.t.v*oe[0]*Qe:$e+=ne.t.v*oe*Qe);Ze=!1}for($e&&($e+=Ke);Ye<M;)F[Ye].animatorJustifyOffset=$e,Ye+=1}for(M=0;M<q;M+=1){if(a.reset(),Re=1,F[M].n)d=0,y+=e.yOffset,y+=he?1:0,W=we,he=!1,this._hasMaskedPath&&(V=xe,H=Pe,te=re[V].points,J=te[H-1],j=te[H],ie=j.partialLength,Q=0),qe="",Ge="",Ve="",Je="",He=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Fe!==F[M].line){switch(e.j){case 1:W+=se-e.lineWidths[F[M].line];break;case 2:W+=(se-e.lineWidths[F[M].line])/2;break}Fe=F[M].line}pe!==F[M].ind&&(F[pe]&&(W+=F[pe].extra),W+=F[M].an/2,pe=F[M].ind),W+=n[0]*F[M].an*.005;var We=0;for(Z=0;Z<ee;Z+=1)ne=i[Z].a,ne.p.propType&&(ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),oe.length?We+=ne.p.v[0]*oe[0]:We+=ne.p.v[0]*oe),ne.a.propType&&(ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),oe.length?We+=ne.a.v[0]*oe[0]:We+=ne.a.v[0]*oe);for(G=!0,this._pathData.a.v&&(W=F[0].an*.5+(se-this._pathData.f.v-F[0].an*.5-F[F.length-1].an*.5)*pe/(q-1),W+=this._pathData.f.v);G;)Q+ie>=W+We||!te?(ue=(W+We-Q)/j.partialLength,be=J.point[0]+(j.point[0]-J.point[0])*ue,Ce=J.point[1]+(j.point[1]-J.point[1])*ue,a.translate(-n[0]*F[M].an*.005,-(n[1]*me)*.01),G=!1):te&&(Q+=j.partialLength,H+=1,H>=te.length&&(H=0,V+=1,re[V]?te=re[V].points:de.v.c?(H=0,V=0,te=re[V].points):(Q-=j.partialLength,te=null)),te&&(J=j,j=te[H],ie=j.partialLength));ye=F[M].an/2-F[M].add,a.translate(-ye,0,0)}else ye=F[M].an/2-F[M].add,a.translate(-ye,0,0),a.translate(-n[0]*F[M].an*.005,-n[1]*me*.01,0);for(Z=0;Z<ee;Z+=1)ne=i[Z].a,ne.t.propType&&(ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),(d!==0||e.j!==0)&&(this._hasMaskedPath?oe.length?W+=ne.t.v*oe[0]:W+=ne.t.v*oe:oe.length?d+=ne.t.v*oe[0]:d+=ne.t.v*oe));for(e.strokeWidthAnim&&(Ie=e.sw||0),e.strokeColorAnim&&(e.sc?Ae=[e.sc[0],e.sc[1],e.sc[2]]:Ae=[0,0,0]),e.fillColorAnim&&e.fc&&(Me=[e.fc[0],e.fc[1],e.fc[2]]),Z=0;Z<ee;Z+=1)ne=i[Z].a,ne.a.propType&&(ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),oe.length?a.translate(-ne.a.v[0]*oe[0],-ne.a.v[1]*oe[1],ne.a.v[2]*oe[2]):a.translate(-ne.a.v[0]*oe,-ne.a.v[1]*oe,ne.a.v[2]*oe));for(Z=0;Z<ee;Z+=1)ne=i[Z].a,ne.s.propType&&(ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),oe.length?a.scale(1+(ne.s.v[0]-1)*oe[0],1+(ne.s.v[1]-1)*oe[1],1):a.scale(1+(ne.s.v[0]-1)*oe,1+(ne.s.v[1]-1)*oe,1));for(Z=0;Z<ee;Z+=1){if(ne=i[Z].a,ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),ne.sk.propType&&(oe.length?a.skewFromAxis(-ne.sk.v*oe[0],ne.sa.v*oe[1]):a.skewFromAxis(-ne.sk.v*oe,ne.sa.v*oe)),ne.r.propType&&(oe.length?a.rotateZ(-ne.r.v*oe[2]):a.rotateZ(-ne.r.v*oe)),ne.ry.propType&&(oe.length?a.rotateY(ne.ry.v*oe[1]):a.rotateY(ne.ry.v*oe)),ne.rx.propType&&(oe.length?a.rotateX(ne.rx.v*oe[0]):a.rotateX(ne.rx.v*oe)),ne.o.propType&&(oe.length?Re+=(ne.o.v*oe[0]-Re)*oe[0]:Re+=(ne.o.v*oe-Re)*oe),e.strokeWidthAnim&&ne.sw.propType&&(oe.length?Ie+=ne.sw.v*oe[0]:Ie+=ne.sw.v*oe),e.strokeColorAnim&&ne.sc.propType)for(_e=0;_e<3;_e+=1)oe.length?Ae[_e]+=(ne.sc.v[_e]-Ae[_e])*oe[0]:Ae[_e]+=(ne.sc.v[_e]-Ae[_e])*oe;if(e.fillColorAnim&&e.fc){if(ne.fc.propType)for(_e=0;_e<3;_e+=1)oe.length?Me[_e]+=(ne.fc.v[_e]-Me[_e])*oe[0]:Me[_e]+=(ne.fc.v[_e]-Me[_e])*oe;ne.fh.propType&&(oe.length?Me=addHueToRGB(Me,ne.fh.v*oe[0]):Me=addHueToRGB(Me,ne.fh.v*oe)),ne.fs.propType&&(oe.length?Me=addSaturationToRGB(Me,ne.fs.v*oe[0]):Me=addSaturationToRGB(Me,ne.fs.v*oe)),ne.fb.propType&&(oe.length?Me=addBrightnessToRGB(Me,ne.fb.v*oe[0]):Me=addBrightnessToRGB(Me,ne.fb.v*oe))}}for(Z=0;Z<ee;Z+=1)ne=i[Z].a,ne.p.propType&&(ae=i[Z].s,oe=ae.getMult(F[M].anIndexes[Z],s.a[Z].s.totalChars),this._hasMaskedPath?oe.length?a.translate(0,ne.p.v[1]*oe[0],-ne.p.v[2]*oe[1]):a.translate(0,ne.p.v[1]*oe,-ne.p.v[2]*oe):oe.length?a.translate(ne.p.v[0]*oe[0],ne.p.v[1]*oe[1],-ne.p.v[2]*oe[2]):a.translate(ne.p.v[0]*oe,ne.p.v[1]*oe,-ne.p.v[2]*oe));if(e.strokeWidthAnim&&(Ve=Ie<0?0:Ie),e.strokeColorAnim&&(Be="rgb("+Math.round(Ae[0]*255)+","+Math.round(Ae[1]*255)+","+Math.round(Ae[2]*255)+")"),e.fillColorAnim&&e.fc&&(Ge="rgb("+Math.round(Me[0]*255)+","+Math.round(Me[1]*255)+","+Math.round(Me[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,n[1]*me*.01+y,0),this._pathData.p.v){ge=(j.point[1]-J.point[1])/(j.point[0]-J.point[0]);var et=Math.atan(ge)*180/Math.PI;j.point[0]<J.point[0]&&(et+=180),a.rotate(-et*Math.PI/180)}a.translate(be,Ce,0),W-=n[0]*F[M].an*.005,F[M+1]&&pe!==F[M+1].ind&&(W+=F[M].an/2,W+=e.tr*.001*e.finalSize)}else{switch(a.translate(d,y,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(F[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[F[M].line]),0,0);break;case 2:a.translate(F[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[F[M].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(ye,0,0),a.translate(n[0]*F[M].an*.005,n[1]*me*.01,0),d+=F[M].l+e.tr*.001*e.finalSize}l==="html"?qe=a.toCSS():l==="svg"?qe=a.to2dCSS():He=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],Je=Re}h<=M?(ce=new LetterProps(Je,Ve,Be,Ge,qe,He),this.renderedLetters.push(ce),h+=1,this.lettersChangedFlag=!0):(ce=this.renderedLetters[M],this.lettersChangedFlag=ce.update(Je,Ve,Be,Ge,qe,He)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,i=t.length,s,a="";for(n=0;n<i;n+=1)t[n].ty==="sh"&&(s=t[n].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,i=[],s="";t<n;)e[t]==="\r"||e[t]===""?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",n.t);var l=n.l||[],h=!!this.globalData.fontManager.chars;t=l.length;var d,y=this.mHelper,M="",q=this.data.singleShape,F=0,K=0,W=!0,j=n.tr*.001*n.finalSize;if(q&&!h&&!n.sz){var Q=this.textContainer,G="start";switch(n.j){case 1:G="end";break;case 2:G="middle";break;default:G="start";break}Q.setAttribute("text-anchor",G),Q.setAttribute("letter-spacing",j);var H=this.buildTextContents(n.finalText);for(t=H.length,K=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)d=this.textSpans[e].span||createNS("tspan"),d.textContent=H[e],d.setAttribute("x",0),d.setAttribute("y",K),d.style.display="inherit",Q.appendChild(d),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=d,K+=n.finalLineHeight;this.layerElement.appendChild(Q)}else{var V=this.textSpans.length,J;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!h||!q||e===0){if(d=V>e?this.textSpans[e].span:createNS(h?"g":"text"),V<=e){if(d.setAttribute("stroke-linecap","butt"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=d,h){var te=createNS("g");d.appendChild(te),this.textSpans[e].childSpan=te}this.textSpans[e].span=d,this.layerElement.appendChild(d)}d.style.display="inherit"}if(y.reset(),q&&(l[e].n&&(F=-j,K+=n.yOffset,K+=W?1:0,W=!1),this.applyTextPropertiesToMatrix(n,y,l[e].line,F,K),F+=l[e].l||0,F+=j),h){J=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var re;if(J.t===1)re=new SVGCompElement(J.data,this.globalData,this);else{var ie=emptyShapeData;J.data&&J.data.shapes&&(ie=this.buildShapeData(J.data,n.finalSize)),re=new SVGShapeElement(ie,this.globalData,this)}if(this.textSpans[e].glyph){var se=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(se.layerElement),se.destroy()}this.textSpans[e].glyph=re,re._debug=!0,re.prepareFrame(0),re.renderFrame(),this.textSpans[e].childSpan.appendChild(re.layerElement),J.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else q&&d.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),d.textContent=l[e].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}q&&d&&d.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,a,l;for(e=0;e<t;e+=1)i[e].n||(s=n[e],a=this.textSpans[e].span,l=this.textSpans[e].glyph,l&&l.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();n.setAttribute("id",s),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(n);else{var s=t[i],a=s.getMatte(this.layers[e].tt);n.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(n,s):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),n+=s}if(t&&t.description){var a=createNS("desc"),l=createElementID();a.setAttribute("id",l),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+l}n&&this.svgElement.setAttribute("aria-labelledby",n);var h=createNS("defs");this.svgElement.appendChild(h);var d=createNS("g");this.svgElement.appendChild(d),this.layerElement=d,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:h,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var n,i=t.length,s="_";for(n=0;n<i;n+=1)s+=t[n].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,n){for(var i=0,s=t.transforms.length,a=n;i<s&&!n;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=a},processSequences:function(t){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",n=null,i=null,s=null;function a(){var d=createNS("svg"),y=createNS("filter"),M=createNS("feColorMatrix");return y.setAttribute("id",t),M.setAttribute("type","matrix"),M.setAttribute("color-interpolation-filters","sRGB"),M.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(M),d.appendChild(y),d.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(d.style.display="none"),d}function l(){n||(s=a(),document.body.appendChild(s),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function h(d){return n||l(),n.width=d.width,n.height=d.height,i.filter="url(#"+t+")",n}return{load:l,get:h}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<n;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;i=new a(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,s=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(s=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n,i=this.masksProperties.length,s,a,l;for(t.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),l=this.viewData[n].v,s=e.applyToPointArray(l.v[0][0],l.v[0][1],0),t.moveTo(s[0],s[1]);var h,d=l._length;for(h=1;h<d;h+=1)a=e.applyToTriplePoints(l.o[h-1],l.i[h],l.v[h]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(l.o[h-1],l.i[0],l.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,l=n.length,h;for(a=0;a<l;a+=1)n[a].closed||(h={transforms:i.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(h),n[a].elements.push(h))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,i,s){var a,l=e.length-1,h,d,y=[],M=[],q,F,K,W=[].concat(s);for(a=l;a>=0;a-=1){if(q=this.searchProcessedElement(e[a]),q?t[a]=n[q-1]:e[a]._shouldRender=i,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")q?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],W),y.push(t[a].style);else if(e[a].ty==="gr"){if(!q)t[a]=this.createGroupElement(e[a]);else for(d=t[a].it.length,h=0;h<d;h+=1)t[a].prevViewData[h]=t[a].it[h];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,i,W)}else e[a].ty==="tr"?(q||(K=this.createTransformElement(e[a]),t[a]=K),W.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?q||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(q?(F=t[a],F.closed=!1):(F=ShapeModifiers.getModifier(e[a].ty),F.init(this,e[a]),t[a]=F,this.shapeModifiers.push(F)),M.push(F)):e[a].ty==="rp"&&(q?(F=t[a],F.closed=!0):(F=ShapeModifiers.getModifier(e[a].ty),t[a]=F,F.init(this,e,a,t),this.shapeModifiers.push(F),i=!1),M.push(F));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),l=M.length,a=0;a<l;a+=1)M[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,n,i,s,a,l,h,d=this.globalData.renderer,y=this.globalData.canvasContext,M,q;for(e=0;e<t;e+=1)if(q=this.stylesList[e],M=q.type,!((M==="st"||M==="gs")&&q.wi===0||!q.data._shouldRender||q.coOp===0||this.globalData.currentGlobalAlpha===0)){for(d.save(),l=q.elements,M==="st"||M==="gs"?(d.ctxStrokeStyle(M==="st"?q.co:q.grd),d.ctxLineWidth(q.wi),d.ctxLineCap(q.lc),d.ctxLineJoin(q.lj),d.ctxMiterLimit(q.ml||0)):d.ctxFillStyle(M==="fl"?q.co:q.grd),d.ctxOpacity(q.coOp),M!=="st"&&M!=="gs"&&y.beginPath(),d.ctxTransform(q.preTransforms.finalTransform.props),i=l.length,n=0;n<i;n+=1){for((M==="st"||M==="gs")&&(y.beginPath(),q.da&&(y.setLineDash(q.da),y.lineDashOffset=q.do)),h=l[n].trNodes,a=h.length,s=0;s<a;s+=1)h[s].t==="m"?y.moveTo(h[s].p[0],h[s].p[1]):h[s].t==="c"?y.bezierCurveTo(h[s].pts[0],h[s].pts[1],h[s].pts[2],h[s].pts[3],h[s].pts[4],h[s].pts[5]):y.closePath();(M==="st"||M==="gs")&&(d.ctxStroke(),q.da&&y.setLineDash(this.dashResetter))}M!=="st"&&M!=="gs"&&this.globalData.renderer.ctxFill(q.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,i){var s,a=t.length-1,l;for(l=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(l=n[s].transform,this.renderShapeTransform(e,l)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],n[s]):t[s].ty==="fl"?this.renderFill(t[s],n[s],l):t[s].ty==="st"?this.renderStroke(t[s],n[s],l):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],n[s],l):t[s].ty==="gr"?this.renderShape(l,t[s].it,n[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n=e.trNodes,i=t.paths,s,a,l,h=i._length;n.length=0;var d=e.transforms.finalTransform;for(l=0;l<h;l+=1){var y=i.shapes[l];if(y&&y.v){for(a=y._length,s=1;s<a;s+=1)s===1&&n.push({t:"m",p:d.applyToPointArray(y.v[0][0],y.v[0][1],0)}),n.push({t:"c",pts:d.applyToTriplePoints(y.o[s-1],y.i[s],y.v[s])});a===1&&n.push({t:"m",p:d.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&a&&(n.push({t:"c",pts:d.applyToTriplePoints(y.o[s-1],y.i[0],y.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,i=t.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,l=t.s.v,h=t.e.v;if(e.t===1)s=a.createLinearGradient(l[0],l[1],h[0],h[1]);else{var d=Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)),y=Math.atan2(h[1]-l[1],h[0]-l[0]),M=t.h.v;M>=1?M=.99:M<=-1&&(M=-.99);var q=d*M,F=Math.cos(y+t.a.v)*q+l[0],K=Math.sin(y+t.a.v)*q+l[1];s=a.createRadialGradient(F,K,0,l[0],l[1],d)}var W,j=e.g.p,Q=t.g.c,G=1;for(W=0;W<j;W+=1)t.g._hasOpacity&&t.g._collapsable&&(G=t.g.o[W*2+1]),s.addColorStop(Q[W*4]/100,"rgba("+Q[W*4+1]+","+Q[W*4+2]+","+Q[W*4+3]+","+G+")");i.grd=s}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,a,l=e.l,h=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var d,y,M,q,F,K,W,j,Q,G,H=this.data.singleShape,V=e.tr*.001*e.finalSize,J=0,te=0,re=!0,ie=0;for(s=0;s<a;s+=1){d=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),y=d&&d.data||{},h.reset(),H&&l[s].n&&(J=-V,te+=e.yOffset,te+=re?1:0,re=!1),F=y.shapes?y.shapes[0].it:[],W=F.length,h.scale(e.finalSize/100,e.finalSize/100),H&&this.applyTextPropertiesToMatrix(e,h,l[s].line,J,te),Q=createSizedArray(W-1);var se=0;for(K=0;K<W;K+=1)if(F[K].ty==="sh"){for(q=F[K].ks.k.i.length,j=F[K].ks.k,G=[],M=1;M<q;M+=1)M===1&&G.push(h.applyToX(j.v[0][0],j.v[0][1],0),h.applyToY(j.v[0][0],j.v[0][1],0)),G.push(h.applyToX(j.o[M-1][0],j.o[M-1][1],0),h.applyToY(j.o[M-1][0],j.o[M-1][1],0),h.applyToX(j.i[M][0],j.i[M][1],0),h.applyToY(j.i[M][0],j.i[M][1],0),h.applyToX(j.v[M][0],j.v[M][1],0),h.applyToY(j.v[M][0],j.v[M][1],0));G.push(h.applyToX(j.o[M-1][0],j.o[M-1][1],0),h.applyToY(j.o[M-1][0],j.o[M-1][1],0),h.applyToX(j.i[0][0],j.i[0][1],0),h.applyToY(j.i[0][0],j.i[0][1],0),h.applyToX(j.v[0][0],j.v[0][1],0),h.applyToY(j.v[0][0],j.v[0][1],0)),Q[se]=G,se+=1}H&&(J+=l[s].l,J+=V),this.textSpans[ie]?this.textSpans[ie].elem=Q:this.textSpans[ie]={elem:Q},ie+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,n,i,s,a,l,h=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;n=d.length;var y,M=null,q=null,F=null,K,W,j=this.globalData.renderer;for(t=0;t<n;t+=1)if(!d[t].n){if(y=h[t],y&&(j.save(),j.ctxTransform(y.p),j.ctxOpacity(y.o)),this.fill){for(y&&y.fc?M!==y.fc&&(j.ctxFillStyle(y.fc),M=y.fc):M!==this.values.fill&&(M=this.values.fill,j.ctxFillStyle(this.values.fill)),K=this.textSpans[t].elem,s=K.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(W=K[i],l=W.length,this.globalData.canvasContext.moveTo(W[0],W[1]),a=2;a<l;a+=6)this.globalData.canvasContext.bezierCurveTo(W[a],W[a+1],W[a+2],W[a+3],W[a+4],W[a+5]);this.globalData.canvasContext.closePath(),j.ctxFill()}if(this.stroke){for(y&&y.sw?F!==y.sw&&(F=y.sw,j.ctxLineWidth(y.sw)):F!==this.values.sWidth&&(F=this.values.sWidth,j.ctxLineWidth(this.values.sWidth)),y&&y.sc?q!==y.sc&&(q=y.sc,j.ctxStrokeStyle(y.sc)):q!==this.values.stroke&&(q=this.values.stroke,j.ctxStrokeStyle(this.values.stroke)),K=this.textSpans[t].elem,s=K.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(W=K[i],l=W.length,this.globalData.canvasContext.moveTo(W[0],W[1]),a=2;a<l;a+=6)this.globalData.canvasContext.bezierCurveTo(W[a],W[a+1],W[a+2],W[a+3],W[a+4],W[a+5]);this.globalData.canvasContext.closePath(),j.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),n=this.img.width,i=this.img.height,s=n/i,a=this.assetData.w/this.assetData.h,l,h,d=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&d==="xMidYMid slice"||s<a&&d!=="xMidYMid slice"?(h=i,l=h*a):(l=n,h=l/a),t.drawImage(this.img,(n-l)/2,(i-h)/2,l,h,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,i){this.canvasContext.fillRect(e,t,n,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var n,i;e?(n=e,i=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var l=this.renderConfig.preserveAspectRatio.split(" "),h=l[1]||"meet",d=l[0]||"xMidYMid",y=d.substr(0,4),M=d.substr(4);s=n/i,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&h==="meet"||a<s&&h==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(a<s&&h==="meet"||a>s&&h==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(a<s&&h==="meet"||a>s&&h==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,M==="YMid"&&(a>s&&h==="meet"||a<s&&h==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:M==="YMax"&&(a>s&&h==="meet"||a<s&&h==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],n=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=n[i];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=n.opacity,s.fillStyle=n.fillStyle,s.strokeStyle=n.strokeStyle,s.lineWidth=n.lineWidth,s.lineCap=n.lineCap,s.lineJoin=n.lineJoin,s.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();t.transform=n,t.webkitTransform=n}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n=e.sh.v,i=e.transformers,s,a=n._length,l,h,d,y;if(!(a<=1)){for(s=0;s<a-1;s+=1)l=this.getTransformedPoint(i,n.v[s]),h=this.getTransformedPoint(i,n.o[s]),d=this.getTransformedPoint(i,n.i[s+1]),y=this.getTransformedPoint(i,n.v[s+1]),this.checkBounds(l,h,d,y,t);n.c&&(l=this.getTransformedPoint(i,n.v[s]),h=this.getTransformedPoint(i,n.o[s]),d=this.getTransformedPoint(i,n.i[0]),y=this.getTransformedPoint(i,n.v[0]),this.checkBounds(l,h,d,y,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,i,s){this.getBoundsOfCurve(e,t,n,i);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],a,l,h,d,y,M,q,F=0;F<2;++F)l=6*e[F]-12*t[F]+6*n[F],a=-3*e[F]+9*t[F]-9*n[F]+3*i[F],h=3*t[F]-3*e[F],l|=0,a|=0,h|=0,a===0&&l===0||(a===0?(d=-h/l,d>0&&d<1&&s[F].push(this.calculateF(d,e,t,n,i,F))):(y=l*l-4*h*a,y>=0&&(M=(-l+bmSqrt(y))/(2*a),M>0&&M<1&&s[F].push(this.calculateF(M,e,t,n,i,F)),q=(-l-bmSqrt(y))/(2*a),q>0&&q<1&&s[F].push(this.calculateF(q,e,t,n,i,F)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,n,i,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*i[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>n&&(n=s)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var l,h,d=e.l;h=d.length;var y,M,q,F=this.mHelper,K,W="",j=0;for(l=0;l<h;l+=1){if(this.globalData.fontManager.chars?(this.textPaths[j]?y=this.textPaths[j]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[j]?(M=this.textSpans[j],q=M.children[0]):(M=createTag("div"),M.style.lineHeight=0,q=createNS("svg"),q.appendChild(y),styleDiv(M)))):this.isMasked?y=this.textPaths[j]?this.textPaths[j]:createNS("text"):this.textSpans[j]?(M=this.textSpans[j],y=this.textPaths[j]):(M=createTag("span"),styleDiv(M),y=createTag("span"),styleDiv(y),M.appendChild(y)),this.globalData.fontManager.chars){var Q=this.globalData.fontManager.getCharData(e.finalText[l],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),G;if(Q?G=Q.data:G=null,F.reset(),G&&G.shapes&&G.shapes.length&&(K=G.shapes[0].it,F.scale(e.finalSize/100,e.finalSize/100),W=this.createPathShape(F,K),y.setAttribute("d",W)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(M),G&&G.shapes){document.body.appendChild(q);var H=q.getBBox();q.setAttribute("width",H.width+2),q.setAttribute("height",H.height+2),q.setAttribute("viewBox",H.x-1+" "+(H.y-1)+" "+(H.width+2)+" "+(H.height+2));var V=q.style,J="translate("+(H.x-1)+"px,"+(H.y-1)+"px)";V.transform=J,V.webkitTransform=J,d[l].yOffset=H.y-1}else q.setAttribute("width",1),q.setAttribute("height",1);M.appendChild(q)}}else if(y.textContent=d[l].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(M);var te=y.style,re="translate3d(0,"+-e.finalSize/1.2+"px,0)";te.transform=re,te.webkitTransform=re}this.isMasked?this.textSpans[j]=y:this.textSpans[j]=M,this.textSpans[j].style.display="block",this.textPaths[j]=y,j+=1}for(;j<this.textSpans.length;)this.textSpans[j].style.display="none",j+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,s=0,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,d,y;for(n=0;n<i;n+=1)l[n].n?s+=1:(d=this.textSpans[n],y=this.textPaths[n],h=a[s],s+=1,h._mdf.m&&(this.isMasked?d.setAttribute("transform",h.m):(d.style.webkitTransform=h.m,d.style.transform=h.m)),d.style.opacity=h.o,h.sw&&h._mdf.sw&&y.setAttribute("stroke-width",h.sw),h.sc&&h._mdf.sc&&y.setAttribute("stroke",h.sc),h.fc&&h._mdf.fc&&(y.setAttribute("fill",h.fc),y.style.color=h.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var M=this.innerElem.getBBox();this.currentBBox.w!==M.width&&(this.currentBBox.w=M.width,this.svgElement.setAttribute("width",M.width)),this.currentBBox.h!==M.height&&(this.currentBBox.h=M.height,this.svgElement.setAttribute("height",M.height));var q=1;if(this.currentBBox.w!==M.width+q*2||this.currentBBox.h!==M.height+q*2||this.currentBBox.x!==M.x-q||this.currentBBox.y!==M.y-q){this.currentBBox.w=M.width+q*2,this.currentBBox.h=M.height+q*2,this.currentBBox.x=M.x-q,this.currentBBox.y=M.y-q,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var F="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=F,e.webkitTransform=F}}}};function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,n,i,s;for(e=0;e<t;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,s=n.container.style;var a=this.pe.v+"px",l="0px 0px 0px",h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,s.transformOrigin=l,s.mozTransformOrigin=l,s.webkitTransformOrigin=l,i.transform=h,i.webkitTransform=h}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,n;if(this.hierarchy)for(n=this.hierarchy.length,t=0;t<n;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,t=n;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),l=[s[0]/a,s[1]/a,s[2]/a],h=Math.sqrt(l[2]*l[2]+l[0]*l[0]),d=Math.atan2(l[1],h),y=Math.atan2(l[0],-l[2]);this.mat.rotateY(y).rotateX(-d)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var M=!this._prevMat.equals(this.mat);if((M||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var q,F,K;for(t=0;t<n;t+=1)if(q=this.comp.threeDElements[t],q.type==="3d"){if(M){var W=this.mat.toCSS();K=q.container.style,K.transform=W,K.webkitTransform=W}this.pe._mdf&&(F=q.perspectiveElem.style,F.perspective=this.pe.v+"px",F.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var s=0,a,l,h;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(l=this.elements[s],h=this.layers[s].ddd?this.getThreeDContainerByPos(s):l.getBaseElement(),a=h||a),s+=1;a?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,a):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n=createTag("div"),i,s;styleDiv(n);var a=createTag("div");if(styleDiv(a),t==="3d"){i=n.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var l="50% 50%";i.webkitTransformOrigin=l,i.mozTransformOrigin=l,i.transformOrigin=l,s=a.style;var h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=h,s.webkitTransform=h}n.appendChild(a);var d={container:a,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(d),d},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,n,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,i=this.threeDElements.length;n<i;){if(t<=this.threeDElements[n].endPos){for(var s=this.threeDElements[n].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[n].container.insertBefore(e,a):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,n=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,a,l,h;i>n?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,l=0,h=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,l=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,h=0);var d=this.resizerElem.style;d.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+l+","+h+",0,1)",d.transform=d.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var s=this.threeDElements[n].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,i=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n=0,i;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(n){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var n=this,i=256,s=6,a=52,l="random",h=t.pow(i,s),d=t.pow(2,a),y=d*2,M=i-1,q;function F(V,J,te){var re=[];J=J===!0?{entropy:!0}:J||{};var ie=Q(j(J.entropy?[V,H(e)]:V===null?G():V,3),re),se=new K(re),ue=function(){for(var de=se.g(s),fe=h,ve=0;de<d;)de=(de+ve)*i,fe*=i,ve=se.g(1);for(;de>=y;)de/=2,fe/=2,ve>>>=1;return(de+ve)/fe};return ue.int32=function(){return se.g(4)|0},ue.quick=function(){return se.g(4)/4294967296},ue.double=ue,Q(H(se.S),e),(J.pass||te||function(ge,de,fe,ve){return ve&&(ve.S&&W(ve,se),ge.state=function(){return W(se,{})}),fe?(t[l]=ge,de):ge})(ue,ie,"global"in J?J.global:this==t,J.state)}t["seed"+l]=F;function K(V){var J,te=V.length,re=this,ie=0,se=re.i=re.j=0,ue=re.S=[];for(te||(V=[te++]);ie<i;)ue[ie]=ie++;for(ie=0;ie<i;ie++)ue[ie]=ue[se=M&se+V[ie%te]+(J=ue[ie])],ue[se]=J;re.g=function(ge){for(var de,fe=0,ve=re.i,me=re.j,he=re.S;ge--;)de=he[ve=M&ve+1],fe=fe*i+he[M&(he[ve]=he[me=M&me+de])+(he[me]=de)];return re.i=ve,re.j=me,fe}}function W(V,J){return J.i=V.i,J.j=V.j,J.S=V.S.slice(),J}function j(V,J){var te=[],re=_typeof$2(V),ie;if(J&&re=="object")for(ie in V)try{te.push(j(V[ie],J-1))}catch{}return te.length?te:re=="string"?V:V+"\0"}function Q(V,J){for(var te=V+"",re,ie=0;ie<te.length;)J[M&ie]=M&(re^=J[M&ie]*19)+te.charCodeAt(ie++);return H(J)}function G(){try{var V=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(V),H(V)}catch{var J=n.navigator,te=J&&J.plugins;return[+new Date,n,te,n.screen,H(e)]}}function H(V){return String.fromCharCode.apply(0,V)}Q(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,s=[];for(n=0;n<i;n+=1)s[n]=-e[n];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t)||n==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,l=t.length,h=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?h[s]=e[s]+t[s]:h[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return h}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,l=t.length,h=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?h[s]=e[s]-t[s]:h[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return h}return 0}function mul(e,t){var n=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(n,e)&&isNumerable(i,t))return e*t;var a,l;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(l=e.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e[a]*t;return s}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(l=t.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var n=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(n,e)&&isNumerable(i,t))return e/t;var a,l;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(l=e.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e[a]/t;return s}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(l=t.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var i=n;n=t,t=i}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,i=Math.min(e.length,t.length),s=0;for(n=0;n<i;n+=1)s+=Math.pow(t[n]-e[n],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],n=e[1],i=e[2],s=Math.max(t,n,i),a=Math.min(t,n,i),l,h,d=(s+a)/2;if(s===a)l=0,h=0;else{var y=s-a;switch(h=d>.5?y/(2-s-a):y/(s+a),s){case t:l=(n-i)/y+(n<i?6:0);break;case n:l=(i-t)/y+2;break;case i:l=(t-n)/y+4;break}l/=6}return[l,h,d,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t=e[0],n=e[1],i=e[2],s,a,l;if(n===0)s=i,l=i,a=i;else{var h=i<.5?i*(1+n):i+n-i*n,d=2*i-h;s=hue2rgb(d,h,t+1/3),a=hue2rgb(d,h,t),l=hue2rgb(d,h,t-1/3)}return[s,a,l,e[3]]}function linear(e,t,n,i,s){if((i===void 0||s===void 0)&&(i=t,s=n,t=0,n=1),n<t){var a=n;n=t,t=a}if(e<=t)return i;if(e>=n)return s;var l=n===t?0:(e-t)/(n-t);if(!i.length)return i+(s-i)*l;var h,d=i.length,y=createTypedArray("float32",d);for(h=0;h<d;h+=1)y[h]=i[h]+(s[h]-i[h])*l;return y}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(n=0;n<i;n+=1)s[n]=e[n]+a*(t[n]-e[n]);return s}e===void 0&&(e=0);var l=BMMath.random();return e+l*(t-e)}function createPath(e,t,n,i){var s,a=e.length,l=shapePool.newElement();l.setPathData(!!i,a);var h=[0,0],d,y;for(s=0;s<a;s+=1)d=t&&t[s]?t[s]:h,y=n&&n[s]?n[s]:h,l.setTripleAt(e[s][0],e[s][1],y[0]+e[s][0],y[1]+e[s][1],d[0]+e[s][0],d[1]+e[s][1],s,!0);return l}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,n){var i,s,a=this.pv.length?this.pv.length:1,l=createTypedArray("float32",a);t=5;var h=Math.floor(time*t);for(i=0,s=0;i<h;){for(s=0;s<a;s+=1)l[s]+=-n+n*2*BMMath.random();i+=1}var d=time*t,y=d-Math.floor(d),M=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)M[s]=this.pv[s]+l[s]+(-n+n*2*BMMath.random())*y;return M}return this.pv+l[0]+(-n+n*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,s=-Math.atan2(n[1],n[2])/degToRads;return[s,i,0]}function easeOut(e,t,n,i,s){return applyEase(easeOutBez,e,t,n,i,s)}function easeIn(e,t,n,i,s){return applyEase(easeInBez,e,t,n,i,s)}function ease(e,t,n,i,s){return applyEase(easeInOutBez,e,t,n,i,s)}function applyEase(e,t,n,i,s,a){s===void 0?(s=n,a=i):t=(t-n)/(i-n),t>1?t=1:t<0&&(t=0);var l=e(t);if($bm_isInstanceOfArray(s)){var h,d=s.length,y=createTypedArray("float32",d);for(h=0;h<d;h+=1)y[h]=(a[h]-s[h])*l+s[h];return y}return(a-s)*l+s}function nearestKey(e){var t,n=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<n-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,n=0;n<i;n+=1)t[n]=s[n],t.value[n]=s[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(n){var i=0,s=[];function a(){i+=1}function l(){i-=1,i===0&&d()}function h(y){s.indexOf(y)===-1&&s.push(y)}function d(){var y,M=s.length;for(y=0;y<M;y+=1)s[y].release();s.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=a,n.renderer.globalData.popExpression=l,n.renderer.globalData.registerExpressionProperty=h}return e})(),MaskManagerInterface=(function(){function e(n,i){this._mask=n,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),a,l=i.viewData.length;for(a=0;a<l;a+=1)s[a]=new e(i.viewData[a],i.masksProperties[a]);var h=function(y){for(a=0;a<l;){if(i.masksProperties[a].nm===y)return s[a];a+=1}return null};return h};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(l,h,d){Object.defineProperty(l,"velocity",{get:function(){return h.getVelocityAtTime(h.comp.currentFrame)}}),l.numKeys=h.keyframes?h.keyframes.length:0,l.key=function(y){if(!l.numKeys)return 0;var M="";"s"in h.keyframes[y-1]?M=h.keyframes[y-1].s:"e"in h.keyframes[y-2]?M=h.keyframes[y-2].e:M=h.keyframes[y-2].s;var q=d==="unidimensional"?new Number(M):Object.assign({},M);return q.time=h.keyframes[y-1].t/h.elem.comp.globalData.frameRate,q.value=d==="unidimensional"?M[0]:M,q},l.valueAtTime=h.getValueAtTime,l.speedAtTime=h.getSpeedAtTime,l.velocityAtTime=h.getVelocityAtTime,l.propertyGroup=h.propertyGroup}function i(l){(!l||!("pv"in l))&&(l=e);var h=1/l.mult,d=l.pv*h,y=new Number(d);return y.value=d,n(y,l,"unidimensional"),function(){return l.k&&l.getValue(),d=l.v*h,y.value!==d&&(y=new Number(d),y.value=d,y[0]=d,n(y,l,"unidimensional")),y}}function s(l){(!l||!("pv"in l))&&(l=t);var h=1/l.mult,d=l.data&&l.data.l||l.pv.length,y=createTypedArray("float32",d),M=createTypedArray("float32",d);return y.value=M,n(y,l,"multidimensional"),function(){l.k&&l.getValue();for(var q=0;q<d;q+=1)M[q]=l.v[q]*h,y[q]=M[q];return y}}function a(){return e}return function(l){return l?l.propType==="unidimensional"?i(l):s(l):a}})(),TransformExpressionInterface=(function(){return function(e){function t(l){switch(l){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[n(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(y){var M=new Matrix;if(y!==void 0){var q=this._elem.finalTransform.mProp.getValueAtTime(y);q.clone(M)}else{var F=this._elem.finalTransform.mProp;F.applyToMatrix(M)}return M}function t(y,M){var q=this.getMatrix(M);return q.props[12]=0,q.props[13]=0,q.props[14]=0,this.applyPoint(q,y)}function n(y,M){var q=this.getMatrix(M);return this.applyPoint(q,y)}function i(y,M){var q=this.getMatrix(M);return q.props[12]=0,q.props[13]=0,q.props[14]=0,this.invertPoint(q,y)}function s(y,M){var q=this.getMatrix(M);return this.invertPoint(q,y)}function a(y,M){if(this._elem.hierarchy&&this._elem.hierarchy.length){var q,F=this._elem.hierarchy.length;for(q=0;q<F;q+=1)this._elem.hierarchy[q].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(M[0],M[1],M[2]||0)}function l(y,M){if(this._elem.hierarchy&&this._elem.hierarchy.length){var q,F=this._elem.hierarchy.length;for(q=0;q<F;q+=1)this._elem.hierarchy[q].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(M)}function h(y){var M=new Matrix;if(M.reset(),this._elem.finalTransform.mProp.applyToMatrix(M),this._elem.hierarchy&&this._elem.hierarchy.length){var q,F=this._elem.hierarchy.length;for(q=0;q<F;q+=1)this._elem.hierarchy[q].finalTransform.mProp.applyToMatrix(M);return M.inversePoint(y)}return M.inversePoint(y)}function d(){return[1,1,1,1]}return function(y){var M;function q(j){K.mask=new MaskManagerInterface(j,y)}function F(j){K.effect=j}function K(j){switch(j){case"ADBE Root Vectors Group":case"Contents":case 2:return K.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return M;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return K.effect;case"ADBE Text Properties":return K.textInterface;default:return null}}K.getMatrix=e,K.invertPoint=l,K.applyPoint=a,K.toWorld=n,K.toWorldVec=t,K.fromWorld=s,K.fromWorldVec=i,K.toComp=n,K.fromComp=h,K.sampleImage=d,K.sourceRectAtTime=y.sourceRectAtTime.bind(y),K._elem=y,M=TransformExpressionInterface(y.finalTransform.mProp);var W=getDescriptor(M,"anchorPoint");return Object.defineProperties(K,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(M,"rotation"),scale:getDescriptor(M,"scale"),position:getDescriptor(M,"position"),opacity:getDescriptor(M,"opacity"),anchorPoint:W,anchor_point:W,transform:{get:function(){return M}},active:{get:function(){return y.isInRange}}}),K.startTime=y.data.st,K.index=y.data.ind,K.source=y.data.refId,K.height=y.data.ty===0?y.data.h:100,K.width=y.data.ty===0?y.data.w:100,K.inPoint=y.data.ip/y.comp.globalData.frameRate,K.outPoint=y.data.op/y.comp.globalData.frameRate,K._name=y.data.nm,K.registerMaskInterface=q,K.registerEffectsInterface=F,K}})(),propertyGroupFactory=(function(){return function(e,t){return function(n){return n=n===void 0?1:n,n<=0?e:t(n-1)}}})(),PropertyInterface=(function(){return function(e,t){var n={_name:e};function i(s){return s=s===void 0?1:s,s<=0?n:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var l=[],h=s.data.ef,d,y=s.effectsManager.effectElements.length;for(d=0;d<y;d+=1)l.push(n(h[d],s.effectsManager.effectElements[d],a,s));var M=s.data.ef||[],q=function(K){for(d=0,y=M.length;d<y;){if(K===M[d].nm||K===M[d].mn||K===M[d].ix)return l[d];d+=1}return null};return Object.defineProperty(q,"numProperties",{get:function(){return M.length}}),q}return null}function n(s,a,l,h){function d(K){for(var W=s.ef,j=0,Q=W.length;j<Q;){if(K===W[j].nm||K===W[j].mn||K===W[j].ix)return W[j].ty===5?M[j]:M[j]();j+=1}throw new Error}var y=propertyGroupFactory(d,l),M=[],q,F=s.ef.length;for(q=0;q<F;q+=1)s.ef[q].ty===5?M.push(n(s.ef[q],a.effectElements[q],a.effectElements[q].propertyGroup,h)):M.push(i(a.effectElements[q],s.ef[q].ty,h,y));return s.mn==="ADBE Color Control"&&Object.defineProperty(d,"color",{get:function(){return M[0]()}}),Object.defineProperties(d,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:y}}),d.enabled=s.en!==0,d.active=d.enabled,d}function i(s,a,l,h){var d=ExpressionPropertyInterface(s.p);function y(){return a===10?l.comp.compInterface(s.p.v):d()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",h)),y}return e})(),ShapePathInterface=(function(){return function(t,n,i){var s=n.sh;function a(h){return h==="Shape"||h==="shape"||h==="Path"||h==="path"||h==="ADBE Vector Shape"||h===2?a.path:null}var l=propertyGroupFactory(a,i);return s.setGroupProperty(PropertyInterface("Path",l)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),a}})(),ShapeExpressionInterface=(function(){function e(W,j,Q){var G=[],H,V=W?W.length:0;for(H=0;H<V;H+=1)W[H].ty==="gr"?G.push(n(W[H],j[H],Q)):W[H].ty==="fl"?G.push(i(W[H],j[H],Q)):W[H].ty==="st"?G.push(l(W[H],j[H],Q)):W[H].ty==="tm"?G.push(h(W[H],j[H],Q)):W[H].ty==="tr"||(W[H].ty==="el"?G.push(y(W[H],j[H],Q)):W[H].ty==="sr"?G.push(M(W[H],j[H],Q)):W[H].ty==="sh"?G.push(ShapePathInterface(W[H],j[H],Q)):W[H].ty==="rc"?G.push(q(W[H],j[H],Q)):W[H].ty==="rd"?G.push(F(W[H],j[H],Q)):W[H].ty==="rp"?G.push(K(W[H],j[H],Q)):W[H].ty==="gf"?G.push(s(W[H],j[H],Q)):G.push(a(W[H],j[H])));return G}function t(W,j,Q){var G,H=function(te){for(var re=0,ie=G.length;re<ie;){if(G[re]._name===te||G[re].mn===te||G[re].propertyIndex===te||G[re].ix===te||G[re].ind===te)return G[re];re+=1}return typeof te=="number"?G[te-1]:null};H.propertyGroup=propertyGroupFactory(H,Q),G=e(W.it,j.it,H.propertyGroup),H.numProperties=G.length;var V=d(W.it[W.it.length-1],j.it[j.it.length-1],H.propertyGroup);return H.transform=V,H.propertyIndex=W.cix,H._name=W.nm,H}function n(W,j,Q){var G=function(te){switch(te){case"ADBE Vectors Group":case"Contents":case 2:return G.content;default:return G.transform}};G.propertyGroup=propertyGroupFactory(G,Q);var H=t(W,j,G.propertyGroup),V=d(W.it[W.it.length-1],j.it[j.it.length-1],G.propertyGroup);return G.content=H,G.transform=V,Object.defineProperty(G,"_name",{get:function(){return W.nm}}),G.numProperties=W.np,G.propertyIndex=W.ix,G.nm=W.nm,G.mn=W.mn,G}function i(W,j,Q){function G(H){return H==="Color"||H==="color"?G.color:H==="Opacity"||H==="opacity"?G.opacity:null}return Object.defineProperties(G,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},_name:{value:W.nm},mn:{value:W.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Q)),j.o.setGroupProperty(PropertyInterface("Opacity",Q)),G}function s(W,j,Q){function G(H){return H==="Start Point"||H==="start point"?G.startPoint:H==="End Point"||H==="end point"?G.endPoint:H==="Opacity"||H==="opacity"?G.opacity:null}return Object.defineProperties(G,{startPoint:{get:ExpressionPropertyInterface(j.s)},endPoint:{get:ExpressionPropertyInterface(j.e)},opacity:{get:ExpressionPropertyInterface(j.o)},type:{get:function(){return"a"}},_name:{value:W.nm},mn:{value:W.mn}}),j.s.setGroupProperty(PropertyInterface("Start Point",Q)),j.e.setGroupProperty(PropertyInterface("End Point",Q)),j.o.setGroupProperty(PropertyInterface("Opacity",Q)),G}function a(){function W(){return null}return W}function l(W,j,Q){var G=propertyGroupFactory(ie,Q),H=propertyGroupFactory(re,G);function V(se){Object.defineProperty(re,W.d[se].nm,{get:ExpressionPropertyInterface(j.d.dataProps[se].p)})}var J,te=W.d?W.d.length:0,re={};for(J=0;J<te;J+=1)V(J),j.d.dataProps[J].p.setGroupProperty(H);function ie(se){return se==="Color"||se==="color"?ie.color:se==="Opacity"||se==="opacity"?ie.opacity:se==="Stroke Width"||se==="stroke width"?ie.strokeWidth:null}return Object.defineProperties(ie,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},strokeWidth:{get:ExpressionPropertyInterface(j.w)},dash:{get:function(){return re}},_name:{value:W.nm},mn:{value:W.mn}}),j.c.setGroupProperty(PropertyInterface("Color",G)),j.o.setGroupProperty(PropertyInterface("Opacity",G)),j.w.setGroupProperty(PropertyInterface("Stroke Width",G)),ie}function h(W,j,Q){function G(V){return V===W.e.ix||V==="End"||V==="end"?G.end:V===W.s.ix?G.start:V===W.o.ix?G.offset:null}var H=propertyGroupFactory(G,Q);return G.propertyIndex=W.ix,j.s.setGroupProperty(PropertyInterface("Start",H)),j.e.setGroupProperty(PropertyInterface("End",H)),j.o.setGroupProperty(PropertyInterface("Offset",H)),G.propertyIndex=W.ix,G.propertyGroup=Q,Object.defineProperties(G,{start:{get:ExpressionPropertyInterface(j.s)},end:{get:ExpressionPropertyInterface(j.e)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:W.nm}}),G.mn=W.mn,G}function d(W,j,Q){function G(V){return W.a.ix===V||V==="Anchor Point"?G.anchorPoint:W.o.ix===V||V==="Opacity"?G.opacity:W.p.ix===V||V==="Position"?G.position:W.r.ix===V||V==="Rotation"||V==="ADBE Vector Rotation"?G.rotation:W.s.ix===V||V==="Scale"?G.scale:W.sk&&W.sk.ix===V||V==="Skew"?G.skew:W.sa&&W.sa.ix===V||V==="Skew Axis"?G.skewAxis:null}var H=propertyGroupFactory(G,Q);return j.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",H)),j.transform.mProps.p.setGroupProperty(PropertyInterface("Position",H)),j.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",H)),j.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",H)),j.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",H)),j.transform.mProps.sk&&(j.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",H)),j.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",H))),j.transform.op.setGroupProperty(PropertyInterface("Opacity",H)),Object.defineProperties(G,{opacity:{get:ExpressionPropertyInterface(j.transform.mProps.o)},position:{get:ExpressionPropertyInterface(j.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(j.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(j.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(j.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(j.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(j.transform.mProps.sa)},_name:{value:W.nm}}),G.ty="tr",G.mn=W.mn,G.propertyGroup=Q,G}function y(W,j,Q){function G(J){return W.p.ix===J?G.position:W.s.ix===J?G.size:null}var H=propertyGroupFactory(G,Q);G.propertyIndex=W.ix;var V=j.sh.ty==="tm"?j.sh.prop:j.sh;return V.s.setGroupProperty(PropertyInterface("Size",H)),V.p.setGroupProperty(PropertyInterface("Position",H)),Object.defineProperties(G,{size:{get:ExpressionPropertyInterface(V.s)},position:{get:ExpressionPropertyInterface(V.p)},_name:{value:W.nm}}),G.mn=W.mn,G}function M(W,j,Q){function G(J){return W.p.ix===J?G.position:W.r.ix===J?G.rotation:W.pt.ix===J?G.points:W.or.ix===J||J==="ADBE Vector Star Outer Radius"?G.outerRadius:W.os.ix===J?G.outerRoundness:W.ir&&(W.ir.ix===J||J==="ADBE Vector Star Inner Radius")?G.innerRadius:W.is&&W.is.ix===J?G.innerRoundness:null}var H=propertyGroupFactory(G,Q),V=j.sh.ty==="tm"?j.sh.prop:j.sh;return G.propertyIndex=W.ix,V.or.setGroupProperty(PropertyInterface("Outer Radius",H)),V.os.setGroupProperty(PropertyInterface("Outer Roundness",H)),V.pt.setGroupProperty(PropertyInterface("Points",H)),V.p.setGroupProperty(PropertyInterface("Position",H)),V.r.setGroupProperty(PropertyInterface("Rotation",H)),W.ir&&(V.ir.setGroupProperty(PropertyInterface("Inner Radius",H)),V.is.setGroupProperty(PropertyInterface("Inner Roundness",H))),Object.defineProperties(G,{position:{get:ExpressionPropertyInterface(V.p)},rotation:{get:ExpressionPropertyInterface(V.r)},points:{get:ExpressionPropertyInterface(V.pt)},outerRadius:{get:ExpressionPropertyInterface(V.or)},outerRoundness:{get:ExpressionPropertyInterface(V.os)},innerRadius:{get:ExpressionPropertyInterface(V.ir)},innerRoundness:{get:ExpressionPropertyInterface(V.is)},_name:{value:W.nm}}),G.mn=W.mn,G}function q(W,j,Q){function G(J){return W.p.ix===J?G.position:W.r.ix===J?G.roundness:W.s.ix===J||J==="Size"||J==="ADBE Vector Rect Size"?G.size:null}var H=propertyGroupFactory(G,Q),V=j.sh.ty==="tm"?j.sh.prop:j.sh;return G.propertyIndex=W.ix,V.p.setGroupProperty(PropertyInterface("Position",H)),V.s.setGroupProperty(PropertyInterface("Size",H)),V.r.setGroupProperty(PropertyInterface("Rotation",H)),Object.defineProperties(G,{position:{get:ExpressionPropertyInterface(V.p)},roundness:{get:ExpressionPropertyInterface(V.r)},size:{get:ExpressionPropertyInterface(V.s)},_name:{value:W.nm}}),G.mn=W.mn,G}function F(W,j,Q){function G(J){return W.r.ix===J||J==="Round Corners 1"?G.radius:null}var H=propertyGroupFactory(G,Q),V=j;return G.propertyIndex=W.ix,V.rd.setGroupProperty(PropertyInterface("Radius",H)),Object.defineProperties(G,{radius:{get:ExpressionPropertyInterface(V.rd)},_name:{value:W.nm}}),G.mn=W.mn,G}function K(W,j,Q){function G(J){return W.c.ix===J||J==="Copies"?G.copies:W.o.ix===J||J==="Offset"?G.offset:null}var H=propertyGroupFactory(G,Q),V=j;return G.propertyIndex=W.ix,V.c.setGroupProperty(PropertyInterface("Copies",H)),V.o.setGroupProperty(PropertyInterface("Offset",H)),Object.defineProperties(G,{copies:{get:ExpressionPropertyInterface(V.c)},offset:{get:ExpressionPropertyInterface(V.o)},_name:{value:W.nm}}),G.mn=W.mn,G}return function(W,j,Q){var G;function H(J){if(typeof J=="number")return J=J===void 0?1:J,J===0?Q:G[J-1];for(var te=0,re=G.length;te<re;){if(G[te]._name===J)return G[te];te+=1}return null}function V(){return Q}return H.propertyGroup=propertyGroupFactory(H,V),G=e(W,j,H.propertyGroup),H.numProperties=G.length,H._name="Contents",H}})(),TextExpressionInterface=(function(){return function(e){var t;function n(i){return i==="ADBE Text Document"?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var s="",a=i.getFootageData();function l(){return s="",a=i.getFootageData(),h}function h(d){if(a[d])return s=d,a=a[d],_typeof(a)==="object"?h:a;var y=d.indexOf(s);if(y!==-1){var M=parseInt(d.substr(y+s.length),10);return a=a[M],_typeof(a)==="object"?h:a}return""}return l},t=function(i){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(n){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(n),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(l,h,d){h.x&&(d.k=!0,d.x=!0,d.initiateExpression=ExpressionManager.initiateExpression,d.effectsSequence.push(d.initiateExpression(l,h,d).bind(d)))}function t(l){return l*=this.elem.globalData.frameRate,l-=this.offsetTime,l!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<l?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(l,this._cachingAtTime),this._cachingAtTime.lastFrame=l),this._cachingAtTime.value}function n(l){var h=-.01,d=this.getValueAtTime(l),y=this.getValueAtTime(l+h),M=0;if(d.length){var q;for(q=0;q<d.length;q+=1)M+=Math.pow(y[q]-d[q],2);M=Math.sqrt(M)*100}else M=0;return M}function i(l){if(this.vel!==void 0)return this.vel;var h=-.001,d=this.getValueAtTime(l),y=this.getValueAtTime(l+h),M;if(d.length){M=createTypedArray("float32",d.length);var q;for(q=0;q<d.length;q+=1)M[q]=(y[q]-d[q])/h}else M=(y-d)/h;return M}function s(){return this.pv}function a(l){this.propertyGroup=l}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}})();function addPropertyDecorator(){function e(F,K,W){if(!this.k||!this.keyframes)return this.pv;F=F?F.toLowerCase():"";var j=this.comp.renderedFrame,Q=this.keyframes,G=Q[Q.length-1].t;if(j<=G)return this.pv;var H,V;W?(K?H=Math.abs(G-this.elem.comp.globalData.frameRate*K):H=Math.max(0,G-this.elem.data.ip),V=G-H):((!K||K>Q.length-1)&&(K=Q.length-1),V=Q[Q.length-1-K].t,H=G-V);var J,te,re;if(F==="pingpong"){var ie=Math.floor((j-V)/H);if(ie%2!==0)return this.getValueAtTime((H-(j-V)%H+V)/this.comp.globalData.frameRate,0)}else if(F==="offset"){var se=this.getValueAtTime(V/this.comp.globalData.frameRate,0),ue=this.getValueAtTime(G/this.comp.globalData.frameRate,0),ge=this.getValueAtTime(((j-V)%H+V)/this.comp.globalData.frameRate,0),de=Math.floor((j-V)/H);if(this.pv.length){for(re=new Array(se.length),te=re.length,J=0;J<te;J+=1)re[J]=(ue[J]-se[J])*de+ge[J];return re}return(ue-se)*de+ge}else if(F==="continue"){var fe=this.getValueAtTime(G/this.comp.globalData.frameRate,0),ve=this.getValueAtTime((G-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(re=new Array(fe.length),te=re.length,J=0;J<te;J+=1)re[J]=fe[J]+(fe[J]-ve[J])*((j-G)/this.comp.globalData.frameRate)/5e-4;return re}return fe+(fe-ve)*((j-G)/.001)}return this.getValueAtTime(((j-V)%H+V)/this.comp.globalData.frameRate,0)}function t(F,K,W){if(!this.k)return this.pv;F=F?F.toLowerCase():"";var j=this.comp.renderedFrame,Q=this.keyframes,G=Q[0].t;if(j>=G)return this.pv;var H,V;W?(K?H=Math.abs(this.elem.comp.globalData.frameRate*K):H=Math.max(0,this.elem.data.op-G),V=G+H):((!K||K>Q.length-1)&&(K=Q.length-1),V=Q[K].t,H=V-G);var J,te,re;if(F==="pingpong"){var ie=Math.floor((G-j)/H);if(ie%2===0)return this.getValueAtTime(((G-j)%H+G)/this.comp.globalData.frameRate,0)}else if(F==="offset"){var se=this.getValueAtTime(G/this.comp.globalData.frameRate,0),ue=this.getValueAtTime(V/this.comp.globalData.frameRate,0),ge=this.getValueAtTime((H-(G-j)%H+G)/this.comp.globalData.frameRate,0),de=Math.floor((G-j)/H)+1;if(this.pv.length){for(re=new Array(se.length),te=re.length,J=0;J<te;J+=1)re[J]=ge[J]-(ue[J]-se[J])*de;return re}return ge-(ue-se)*de}else if(F==="continue"){var fe=this.getValueAtTime(G/this.comp.globalData.frameRate,0),ve=this.getValueAtTime((G+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(re=new Array(fe.length),te=re.length,J=0;J<te;J+=1)re[J]=fe[J]+(fe[J]-ve[J])*(G-j)/.001;return re}return fe+(fe-ve)*(G-j)/.001}return this.getValueAtTime((H-((G-j)%H+G))/this.comp.globalData.frameRate,0)}function n(F,K){if(!this.k)return this.pv;if(F=(F||.4)*.5,K=Math.floor(K||5),K<=1)return this.pv;var W=this.comp.renderedFrame/this.comp.globalData.frameRate,j=W-F,Q=W+F,G=K>1?(Q-j)/(K-1):1,H=0,V=0,J;this.pv.length?J=createTypedArray("float32",this.pv.length):J=0;for(var te;H<K;){if(te=this.getValueAtTime(j+H*G),this.pv.length)for(V=0;V<this.pv.length;V+=1)J[V]+=te[V];else J+=te;H+=1}if(this.pv.length)for(V=0;V<this.pv.length;V+=1)J[V]/=K;else J/=K;return J}function i(F){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var K=this._transformCachingAtTime.v;if(K.cloneFromProps(this.pre.props),this.appliedTransformations<1){var W=this.a.getValueAtTime(F);K.translate(-W[0]*this.a.mult,-W[1]*this.a.mult,W[2]*this.a.mult)}if(this.appliedTransformations<2){var j=this.s.getValueAtTime(F);K.scale(j[0]*this.s.mult,j[1]*this.s.mult,j[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Q=this.sk.getValueAtTime(F),G=this.sa.getValueAtTime(F);K.skewFromAxis(-Q*this.sk.mult,G*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var H=this.r.getValueAtTime(F);K.rotate(-H*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var V=this.rz.getValueAtTime(F),J=this.ry.getValueAtTime(F),te=this.rx.getValueAtTime(F),re=this.or.getValueAtTime(F);K.rotateZ(-V*this.rz.mult).rotateY(J*this.ry.mult).rotateX(te*this.rx.mult).rotateZ(-re[2]*this.or.mult).rotateY(re[1]*this.or.mult).rotateX(re[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ie=this.px.getValueAtTime(F),se=this.py.getValueAtTime(F);if(this.data.p.z){var ue=this.pz.getValueAtTime(F);K.translate(ie*this.px.mult,se*this.py.mult,-ue*this.pz.mult)}else K.translate(ie*this.px.mult,se*this.py.mult,0)}else{var ge=this.p.getValueAtTime(F);K.translate(ge[0]*this.p.mult,ge[1]*this.p.mult,-ge[2]*this.p.mult)}return K}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(F,K,W){var j=a(F,K,W);return j.dynamicProperties.length?j.getValueAtTime=i.bind(j):j.getValueAtTime=s.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j};var l=PropertyFactory.getProp;PropertyFactory.getProp=function(F,K,W,j,Q){var G=l(F,K,W,j,Q);G.kf?G.getValueAtTime=expressionHelpers.getValueAtTime.bind(G):G.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(G),G.setGroupProperty=expressionHelpers.setGroupProperty,G.loopOut=e,G.loopIn=t,G.smooth=n,G.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(G),G.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(G),G.numKeys=K.a===1?K.k.length:0,G.propertyIndex=K.ix;var H=0;return W!==0&&(H=createTypedArray("float32",K.a===1?K.k[0].s.length:K.k.length)),G._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:H},expressionHelpers.searchExpressions(F,K,G),G.k&&Q.addDynamicProperty(G),G};function h(F){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),F*=this.elem.globalData.frameRate,F-=this.offsetTime,F!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<F?this._caching.lastIndex:0,this._cachingAtTime.lastTime=F,this.interpolateShape(F,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var d=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function M(){}M.prototype={vertices:function(K,W){this.k&&this.getValue();var j=this.v;W!==void 0&&(j=this.getValueAtTime(W,0));var Q,G=j._length,H=j[K],V=j.v,J=createSizedArray(G);for(Q=0;Q<G;Q+=1)K==="i"||K==="o"?J[Q]=[H[Q][0]-V[Q][0],H[Q][1]-V[Q][1]]:J[Q]=[H[Q][0],H[Q][1]];return J},points:function(K){return this.vertices("v",K)},inTangents:function(K){return this.vertices("i",K)},outTangents:function(K){return this.vertices("o",K)},isClosed:function(){return this.v.c},pointOnPath:function(K,W){var j=this.v;W!==void 0&&(j=this.getValueAtTime(W,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(j));for(var Q=this._segmentsLength,G=Q.lengths,H=Q.totalLength*K,V=0,J=G.length,te=0,re;V<J;){if(te+G[V].addedLength>H){var ie=V,se=j.c&&V===J-1?0:V+1,ue=(H-te)/G[V].addedLength;re=bez.getPointInSegment(j.v[ie],j.v[se],j.o[ie],j.i[se],ue,G[V]);break}else te+=G[V].addedLength;V+=1}return re||(re=j.c?[j.v[0][0],j.v[0][1]]:[j.v[j._length-1][0],j.v[j._length-1][1]]),re},vectorOnPath:function(K,W,j){K==1?K=this.v.c:K==0&&(K=.999);var Q=this.pointOnPath(K,W),G=this.pointOnPath(K+.001,W),H=G[0]-Q[0],V=G[1]-Q[1],J=Math.sqrt(Math.pow(H,2)+Math.pow(V,2));if(J===0)return[0,0];var te=j==="tangent"?[H/J,V/J]:[-V/J,H/J];return te},tangentOnPath:function(K,W){return this.vectorOnPath(K,W,"tangent")},normalOnPath:function(K,W){return this.vectorOnPath(K,W,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([M],d),extendPrototype([M],y),y.prototype.getValueAtTime=h,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var q=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(F,K,W,j,Q){var G=q(F,K,W,j,Q);return G.propertyIndex=K.ix,G.lock=!1,W===3?expressionHelpers.searchExpressions(F,K.pt,G):W===4&&expressionHelpers.searchExpressions(F,K.ks,G),G.k&&F.addDynamicProperty(G),G}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,n){var i=this.calculateExpression(n);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),n=this.searchExpressions();return this.kf=t||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,n){var i=createNS("feMerge");i.setAttribute("result",t);var s,a;for(a=0;a<n.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",n[a]),i.appendChild(s),i.appendChild(s);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,i,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",i+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var l=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(l)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,n,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,n,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),n.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),l=createElementID();a.setAttribute("id",l),a.setAttribute("mask-type","alpha"),a.appendChild(n),this.elem.globalData.defs.appendChild(a);var h=createNS("g");for(h.setAttribute("mask","url("+getLocationHref()+"#"+l+")");e[0];)h.appendChild(e[0]);this.elem.layerElement.appendChild(h),this.masker=a,n.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,n=this.paths.length,i,s;for(t=0;t<n;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var l=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,h=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,d=s.getTotalLength();a="0 0 0 "+d*l+" ";var y=d*(h-l),M=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,q=Math.floor(y/M),F;for(F=0;F<q;F+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+d*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var K=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(K[0]*255)+","+bmFloor(K[1]*255)+","+bmFloor(K[2]*255)+")")}};function SVGTritoneFilter(e,t,n,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var l=createNS("feFuncR");l.setAttribute("type","table"),a.appendChild(l),this.feFuncR=l;var h=createNS("feFuncG");h.setAttribute("type","table"),a.appendChild(h),this.feFuncG=h;var d=createNS("feFuncB");d.setAttribute("type","table"),a.appendChild(d),this.feFuncB=d,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+n[0]+" "+t[0],a=i[1]+" "+n[1]+" "+t[1],l=i[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",l)}};function SVGProLevelsFilter(e,t,n,i){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,i,s){for(var a=0,l=256,h,d=Math.min(e,t),y=Math.max(e,t),M=Array.call(null,{length:l}),q,F=0,K=s-i,W=t-e;a<=256;)h=a/256,h<=d?q=W<0?s:i:h>=y?q=W<0?i:s:q=i+K*Math.pow((h-e)/W,1/n),M[F]=q,F+=1,a+=256/(l-1);return M.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,n,i,s){var a=t.container.globalData.renderConfig.filterSize,l=t.data.fs||a;e.setAttribute("x",l.x||a.x),e.setAttribute("y",l.y||a.y),e.setAttribute("width",l.width||a.width),e.setAttribute("height",l.height||a.height),this.filterManager=t;var h=createNS("feGaussianBlur");h.setAttribute("in","SourceAlpha"),h.setAttribute("result",i+"_drop_shadow_1"),h.setAttribute("stdDeviation","0"),this.feGaussianBlur=h,e.appendChild(h);var d=createNS("feOffset");d.setAttribute("dx","25"),d.setAttribute("dy","0"),d.setAttribute("in",i+"_drop_shadow_1"),d.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=d,e.appendChild(d);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=y,e.appendChild(y);var M=createNS("feComposite");M.setAttribute("in",i+"_drop_shadow_3"),M.setAttribute("in2",i+"_drop_shadow_2"),M.setAttribute("operator","in"),M.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(M);var q=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(q)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=n*Math.cos(i),a=n*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var i=n.children,s=0,a=i.length;s<a&&i[s]!==e.layerElement;)s+=1;var l;s<=a-2&&(l=i[s+1]);var h=createNS("use");h.setAttribute("href","#"+t),l?n.insertBefore(h,l):n.appendChild(h)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),s.appendChild(a);var l=createNS("use");l.setAttribute("href","#"+n),i.appendChild(l),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,i=t.length;n<i;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:n,a=i==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var l=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",l)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,l=s?a:t[4].p.v,h=t[5].p.v,d=t[6].p.v,y=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(l*.01,a*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-h*degToRads,(d+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _iterableToArrayLimit(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,l,h=[],d=!0,y=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(d=(i=a.call(n)).done)&&(h.push(i.value),h.length!==t);d=!0);}catch(M){y=!0,s=M}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(y)throw s}}return h}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
56
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(i){_defineProperty(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _objectWithoutProperties(e,t){if(e==null)return{};var n,i,s=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(t,n){var i=t.animationData,s=t.loop,a=t.autoplay,l=t.initialSegment,h=t.onComplete,d=t.onLoopComplete,y=t.onEnterFrame,M=t.onSegmentStart,q=t.onConfigReady,F=t.onDataReady,K=t.onDataFailed,W=t.onLoadedImages,j=t.onDOMLoaded,Q=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var G=_objectWithoutProperties(t,_excluded$1),H=React.useState(!1),V=_slicedToArray(H,2),J=V[0],te=V[1],re=React.useRef(),ie=React.useRef(null),se=function(){var pe;(pe=re.current)===null||pe===void 0||pe.play()},ue=function(){var pe;(pe=re.current)===null||pe===void 0||pe.stop()},ge=function(){var pe;(pe=re.current)===null||pe===void 0||pe.pause()},de=function(pe){var ye;(ye=re.current)===null||ye===void 0||ye.setSpeed(pe)},fe=function(pe,ye){var be;(be=re.current)===null||be===void 0||be.goToAndPlay(pe,ye)},ve=function(pe,ye){var be;(be=re.current)===null||be===void 0||be.goToAndStop(pe,ye)},me=function(pe){var ye;(ye=re.current)===null||ye===void 0||ye.setDirection(pe)},he=function(pe,ye){var be;(be=re.current)===null||be===void 0||be.playSegments(pe,ye)},ne=function(pe){var ye;(ye=re.current)===null||ye===void 0||ye.setSubframe(pe)},ae=function(pe){var ye;return(ye=re.current)===null||ye===void 0?void 0:ye.getDuration(pe)},Z=function(){var pe;(pe=re.current)===null||pe===void 0||pe.destroy(),re.current=void 0},ee=function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ye;if(ie.current){(ye=re.current)===null||ye===void 0||ye.destroy();var be=_objectSpread2(_objectSpread2(_objectSpread2({},t),pe),{},{container:ie.current});return re.current=lottie.loadAnimation(be),te(!!re.current),function(){var Ce;(Ce=re.current)===null||Ce===void 0||Ce.destroy(),re.current=void 0}}};React.useEffect(function(){var oe=ee();return function(){return oe?.()}},[i,s]),React.useEffect(function(){re.current&&(re.current.autoplay=!!a)},[a]),React.useEffect(function(){if(re.current){if(!l){re.current.resetSegments(!0);return}!Array.isArray(l)||!l.length||((re.current.currentRawFrame<l[0]||re.current.currentRawFrame>l[1])&&(re.current.currentRawFrame=l[0]),re.current.setSegment(l[0],l[1]))}},[l]),React.useEffect(function(){var oe=[{name:"complete",handler:h},{name:"loopComplete",handler:d},{name:"enterFrame",handler:y},{name:"segmentStart",handler:M},{name:"config_ready",handler:q},{name:"data_ready",handler:F},{name:"data_failed",handler:K},{name:"loaded_images",handler:W},{name:"DOMLoaded",handler:j},{name:"destroy",handler:Q}],pe=oe.filter(function(be){return be.handler!=null});if(pe.length){var ye=pe.map(function(be){var Ce;return(Ce=re.current)===null||Ce===void 0||Ce.addEventListener(be.name,be.handler),function(){var we;(we=re.current)===null||we===void 0||we.removeEventListener(be.name,be.handler)}});return function(){ye.forEach(function(be){return be()})}}},[h,d,y,M,q,F,K,W,j,Q]);var ce=React.createElement("div",_objectSpread2({style:n,ref:ie},G));return{View:ce,play:se,stop:ue,pause:ge,setSpeed:de,goToAndStop:ve,goToAndPlay:fe,setDirection:me,playSegments:he,setSubframe:ne,getDuration:ae,destroy:Z,animationContainerRef:ie,animationLoaded:J,animationItem:re.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),n=t.top,i=t.height,s=window.innerHeight-n,a=window.innerHeight+i;return s/a}function getContainerCursorPosition(e,t,n){var i=e.getBoundingClientRect(),s=i.top,a=i.left,l=i.width,h=i.height,d=(t-a)/l,y=(n-s)/h;return{x:d,y}}var useInitInteractivity=function e(t){var n=t.wrapperRef,i=t.animationItem,s=t.mode,a=t.actions;React.useEffect(function(){var l=n.current;if(!(!l||!i||!a.length)){i.stop();var h=function(){var M=null,q=function(){var K=getContainerVisibility(l),W=a.find(function(Q){var G=Q.visibility;return G&&K>=G[0]&&K<=G[1]});if(W){if(W.type==="seek"&&W.visibility&&W.frames.length===2){var j=W.frames[0]+Math.ceil((K-W.visibility[0])/(W.visibility[1]-W.visibility[0])*W.frames[1]);i.goToAndStop(j-i.firstFrame-1,!0)}W.type==="loop"&&(M===null||M!==W.frames||i.isPaused)&&(i.playSegments(W.frames,!0),M=W.frames),W.type==="play"&&i.isPaused&&(i.resetSegments(!0),i.play()),W.type==="stop"&&i.goToAndStop(W.frames[0]-i.firstFrame-1,!0)}};return document.addEventListener("scroll",q),function(){document.removeEventListener("scroll",q)}},d=function(){var M=function(W,j){var Q=W,G=j;if(Q!==-1&&G!==-1){var H=getContainerCursorPosition(l,Q,G);Q=H.x,G=H.y}var V=a.find(function(re){var ie=re.position;return ie&&Array.isArray(ie.x)&&Array.isArray(ie.y)?Q>=ie.x[0]&&Q<=ie.x[1]&&G>=ie.y[0]&&G<=ie.y[1]:ie&&!Number.isNaN(ie.x)&&!Number.isNaN(ie.y)?Q===ie.x&&G===ie.y:!1});if(V){if(V.type==="seek"&&V.position&&Array.isArray(V.position.x)&&Array.isArray(V.position.y)&&V.frames.length===2){var J=(Q-V.position.x[0])/(V.position.x[1]-V.position.x[0]),te=(G-V.position.y[0])/(V.position.y[1]-V.position.y[0]);i.playSegments(V.frames,!0),i.goToAndStop(Math.ceil((J+te)/2*(V.frames[1]-V.frames[0])),!0)}V.type==="loop"&&i.playSegments(V.frames,!0),V.type==="play"&&(i.isPaused&&i.resetSegments(!1),i.playSegments(V.frames)),V.type==="stop"&&i.goToAndStop(V.frames[0],!0)}},q=function(W){M(W.clientX,W.clientY)},F=function(){M(-1,-1)};return l.addEventListener("mousemove",q),l.addEventListener("mouseout",F),function(){l.removeEventListener("mousemove",q),l.removeEventListener("mouseout",F)}};switch(s){case"scroll":return h();case"cursor":return d()}}},[s,i])},useLottieInteractivity=function e(t){var n=t.actions,i=t.mode,s=t.lottieObj,a=s.animationItem,l=s.View,h=s.animationContainerRef;return useInitInteractivity({actions:n,animationItem:a,mode:i,wrapperRef:h}),l},_excluded=["style","interactivity"],Lottie=function e(t){var n,i,s,a=t.style,l=t.interactivity,h=_objectWithoutProperties(t,_excluded),d=useLottie(h,a),y=d.View,M=d.play,q=d.stop,F=d.pause,K=d.setSpeed,W=d.goToAndStop,j=d.goToAndPlay,Q=d.setDirection,G=d.playSegments,H=d.setSubframe,V=d.getDuration,J=d.destroy,te=d.animationContainerRef,re=d.animationLoaded,ie=d.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:M,stop:q,pause:F,setSpeed:K,goToAndPlay:j,goToAndStop:W,setDirection:Q,playSegments:G,setSubframe:H,getDuration:V,destroy:J,animationContainerRef:te,animationLoaded:re,animationItem:ie})},[(n=t.lottieRef)===null||n===void 0?void 0:n.current]),useLottieInteractivity({lottieObj:{View:y,play:M,stop:q,pause:F,setSpeed:K,goToAndStop:W,goToAndPlay:j,setDirection:Q,playSegments:G,setSubframe:H,getDuration:V,destroy:J,animationContainerRef:te,animationLoaded:re,animationItem:ie},actions:(i=l?.actions)!==null&&i!==void 0?i:[],mode:(s=l?.mode)!==null&&s!==void 0?s:"scroll"})};const NotFoundState=({lottieJson:e,title:t,description:n,actionLabel:i,onAction:s,fallbackIcon:a})=>jsxRuntimeExports.jsxs("div",{className:"flex h-[60vh] w-full flex-col items-center justify-center text-center",children:[e?jsxRuntimeExports.jsx("div",{className:"mt-20 mb-4 w-1/2",children:jsxRuntimeExports.jsx(Lottie,{animationData:e,loop:!0})}):a&&jsxRuntimeExports.jsx("div",{className:"mb-4 text-gray-400",children:a}),jsxRuntimeExports.jsx("h2",{className:"mb-2 text-lg font-semibold text-gray-700",children:t}),n&&jsxRuntimeExports.jsx("p",{className:"mb-6 max-w-md text-sm text-gray-500",children:n}),i&&s&&jsxRuntimeExports.jsx(Button,{onClick:s,children:i})]});function clamp(e,[t,n]){return Math.min(n,Math.max(t,e))}function usePrevious(e){const t=React__namespace.useRef({value:e,previous:e});return React__namespace.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var VISUALLY_HIDDEN_STYLES=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),NAME="VisuallyHidden",VisuallyHidden=React__namespace.forwardRef((e,t)=>jsxRuntimeExports.jsx(Primitive.span,{...e,ref:t,style:{...VISUALLY_HIDDEN_STYLES,...e.style}}));VisuallyHidden.displayName=NAME;var Root=VisuallyHidden,OPEN_KEYS=[" ","Enter","ArrowUp","ArrowDown"],SELECTION_KEYS=[" ","Enter"],SELECT_NAME="Select",[Collection,useCollection,createCollectionScope]=createCollection(SELECT_NAME),[createSelectContext]=createContextScope(SELECT_NAME,[createCollectionScope,createPopperScope]),usePopperScope$1=createPopperScope(),[SelectProvider,useSelectContext]=createSelectContext(SELECT_NAME),[SelectNativeOptionsProvider,useSelectNativeOptionsContext]=createSelectContext(SELECT_NAME),Select$1=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:s,onOpenChange:a,value:l,defaultValue:h,onValueChange:d,dir:y,name:M,autoComplete:q,disabled:F,required:K,form:W}=e,j=usePopperScope$1(t),[Q,G]=React__namespace.useState(null),[H,V]=React__namespace.useState(null),[J,te]=React__namespace.useState(!1),re=useDirection(y),[ie,se]=useControllableState({prop:i,defaultProp:s??!1,onChange:a,caller:SELECT_NAME}),[ue,ge]=useControllableState({prop:l,defaultProp:h,onChange:d,caller:SELECT_NAME}),de=React__namespace.useRef(null),fe=Q?W||!!Q.closest("form"):!0,[ve,me]=React__namespace.useState(new Set),he=Array.from(ve).map(ne=>ne.props.value).join(";");return jsxRuntimeExports.jsx(Root2$2,{...j,children:jsxRuntimeExports.jsxs(SelectProvider,{required:K,scope:t,trigger:Q,onTriggerChange:G,valueNode:H,onValueNodeChange:V,valueNodeHasChildren:J,onValueNodeHasChildrenChange:te,contentId:useId(),value:ue,onValueChange:ge,open:ie,onOpenChange:se,dir:re,triggerPointerDownPosRef:de,disabled:F,children:[jsxRuntimeExports.jsx(Collection.Provider,{scope:t,children:jsxRuntimeExports.jsx(SelectNativeOptionsProvider,{scope:e.__scopeSelect,onNativeOptionAdd:React__namespace.useCallback(ne=>{me(ae=>new Set(ae).add(ne))},[]),onNativeOptionRemove:React__namespace.useCallback(ne=>{me(ae=>{const Z=new Set(ae);return Z.delete(ne),Z})},[]),children:n})}),fe?jsxRuntimeExports.jsxs(SelectBubbleInput,{"aria-hidden":!0,required:K,tabIndex:-1,name:M,autoComplete:q,value:ue,onChange:ne=>ge(ne.target.value),disabled:F,form:W,children:[ue===void 0?jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(ve)]},he):null]})})};Select$1.displayName=SELECT_NAME;var TRIGGER_NAME$1="SelectTrigger",SelectTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...s}=e,a=usePopperScope$1(n),l=useSelectContext(TRIGGER_NAME$1,n),h=l.disabled||i,d=useComposedRefs(t,l.onTriggerChange),y=useCollection(n),M=React__namespace.useRef("touch"),[q,F,K]=useTypeaheadSearch(j=>{const Q=y().filter(V=>!V.disabled),G=Q.find(V=>V.value===l.value),H=findNextItem(Q,j,G);H!==void 0&&l.onValueChange(H.value)}),W=j=>{h||(l.onOpenChange(!0),K()),j&&(l.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return jsxRuntimeExports.jsx(Anchor,{asChild:!0,...a,children:jsxRuntimeExports.jsx(Primitive.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":shouldShowPlaceholder(l.value)?"":void 0,...s,ref:d,onClick:composeEventHandlers(s.onClick,j=>{j.currentTarget.focus(),M.current!=="mouse"&&W(j)}),onPointerDown:composeEventHandlers(s.onPointerDown,j=>{M.current=j.pointerType;const Q=j.target;Q.hasPointerCapture(j.pointerId)&&Q.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(W(j),j.preventDefault())}),onKeyDown:composeEventHandlers(s.onKeyDown,j=>{const Q=q.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&F(j.key),!(Q&&j.key===" ")&&OPEN_KEYS.includes(j.key)&&(W(),j.preventDefault())})})})});SelectTrigger$1.displayName=TRIGGER_NAME$1;var VALUE_NAME="SelectValue",SelectValue$1=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:s,children:a,placeholder:l="",...h}=e,d=useSelectContext(VALUE_NAME,n),{onValueNodeHasChildrenChange:y}=d,M=a!==void 0,q=useComposedRefs(t,d.onValueNodeChange);return useLayoutEffect2(()=>{y(M)},[y,M]),jsxRuntimeExports.jsx(Primitive.span,{...h,ref:q,style:{pointerEvents:"none"},children:shouldShowPlaceholder(d.value)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:l}):a})});SelectValue$1.displayName=VALUE_NAME;var ICON_NAME="SelectIcon",SelectIcon=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...s}=e;return jsxRuntimeExports.jsx(Primitive.span,{"aria-hidden":!0,...s,ref:t,children:i||"▼"})});SelectIcon.displayName=ICON_NAME;var PORTAL_NAME$1="SelectPortal",SelectPortal=e=>jsxRuntimeExports.jsx(Portal$3,{asChild:!0,...e});SelectPortal.displayName=PORTAL_NAME$1;var CONTENT_NAME$1="SelectContent",SelectContent$1=React__namespace.forwardRef((e,t)=>{const n=useSelectContext(CONTENT_NAME$1,e.__scopeSelect),[i,s]=React__namespace.useState();if(useLayoutEffect2(()=>{s(new DocumentFragment)},[]),!n.open){const a=i;return a?ReactDOM__namespace.createPortal(jsxRuntimeExports.jsx(SelectContentProvider,{scope:e.__scopeSelect,children:jsxRuntimeExports.jsx(Collection.Slot,{scope:e.__scopeSelect,children:jsxRuntimeExports.jsx("div",{children:e.children})})}),a):null}return jsxRuntimeExports.jsx(SelectContentImpl,{...e,ref:t})});SelectContent$1.displayName=CONTENT_NAME$1;var CONTENT_MARGIN=10,[SelectContentProvider,useSelectContentContext]=createSelectContext(CONTENT_NAME$1),CONTENT_IMPL_NAME="SelectContentImpl",Slot=createSlot("SelectContent.RemoveScroll"),SelectContentImpl=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:l,side:h,sideOffset:d,align:y,alignOffset:M,arrowPadding:q,collisionBoundary:F,collisionPadding:K,sticky:W,hideWhenDetached:j,avoidCollisions:Q,...G}=e,H=useSelectContext(CONTENT_NAME$1,n),[V,J]=React__namespace.useState(null),[te,re]=React__namespace.useState(null),ie=useComposedRefs(t,xe=>J(xe)),[se,ue]=React__namespace.useState(null),[ge,de]=React__namespace.useState(null),fe=useCollection(n),[ve,me]=React__namespace.useState(!1),he=React__namespace.useRef(!1);React__namespace.useEffect(()=>{if(V)return hideOthers(V)},[V]),useFocusGuards();const ne=React__namespace.useCallback(xe=>{const[Pe,...Fe]=fe().map(Ie=>Ie.ref.current),[Re]=Fe.slice(-1),Ae=document.activeElement;for(const Ie of xe)if(Ie===Ae||(Ie?.scrollIntoView({block:"nearest"}),Ie===Pe&&te&&(te.scrollTop=0),Ie===Re&&te&&(te.scrollTop=te.scrollHeight),Ie?.focus(),document.activeElement!==Ae))return},[fe,te]),ae=React__namespace.useCallback(()=>ne([se,V]),[ne,se,V]);React__namespace.useEffect(()=>{ve&&ae()},[ve,ae]);const{onOpenChange:Z,triggerPointerDownPosRef:ee}=H;React__namespace.useEffect(()=>{if(V){let xe={x:0,y:0};const Pe=Re=>{xe={x:Math.abs(Math.round(Re.pageX)-(ee.current?.x??0)),y:Math.abs(Math.round(Re.pageY)-(ee.current?.y??0))}},Fe=Re=>{xe.x<=10&&xe.y<=10?Re.preventDefault():V.contains(Re.target)||Z(!1),document.removeEventListener("pointermove",Pe),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",Pe),document.addEventListener("pointerup",Fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Pe),document.removeEventListener("pointerup",Fe,{capture:!0})}}},[V,Z,ee]),React__namespace.useEffect(()=>{const xe=()=>Z(!1);return window.addEventListener("blur",xe),window.addEventListener("resize",xe),()=>{window.removeEventListener("blur",xe),window.removeEventListener("resize",xe)}},[Z]);const[ce,oe]=useTypeaheadSearch(xe=>{const Pe=fe().filter(Ae=>!Ae.disabled),Fe=Pe.find(Ae=>Ae.ref.current===document.activeElement),Re=findNextItem(Pe,xe,Fe);Re&&setTimeout(()=>Re.ref.current.focus())}),pe=React__namespace.useCallback((xe,Pe,Fe)=>{const Re=!he.current&&!Fe;(H.value!==void 0&&H.value===Pe||Re)&&(ue(xe),Re&&(he.current=!0))},[H.value]),ye=React__namespace.useCallback(()=>V?.focus(),[V]),be=React__namespace.useCallback((xe,Pe,Fe)=>{const Re=!he.current&&!Fe;(H.value!==void 0&&H.value===Pe||Re)&&de(xe)},[H.value]),Ce=i==="popper"?SelectPopperPosition:SelectItemAlignedPosition,we=Ce===SelectPopperPosition?{side:h,sideOffset:d,align:y,alignOffset:M,arrowPadding:q,collisionBoundary:F,collisionPadding:K,sticky:W,hideWhenDetached:j,avoidCollisions:Q}:{};return jsxRuntimeExports.jsx(SelectContentProvider,{scope:n,content:V,viewport:te,onViewportChange:re,itemRefCallback:pe,selectedItem:se,onItemLeave:ye,itemTextRefCallback:be,focusSelectedItem:ae,selectedItemText:ge,position:i,isPositioned:ve,searchRef:ce,children:jsxRuntimeExports.jsx(ReactRemoveScroll,{as:Slot,allowPinchZoom:!0,children:jsxRuntimeExports.jsx(FocusScope,{asChild:!0,trapped:H.open,onMountAutoFocus:xe=>{xe.preventDefault()},onUnmountAutoFocus:composeEventHandlers(s,xe=>{H.trigger?.focus({preventScroll:!0}),xe.preventDefault()}),children:jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:xe=>xe.preventDefault(),onDismiss:()=>H.onOpenChange(!1),children:jsxRuntimeExports.jsx(Ce,{role:"listbox",id:H.contentId,"data-state":H.open?"open":"closed",dir:H.dir,onContextMenu:xe=>xe.preventDefault(),...G,...we,onPlaced:()=>me(!0),ref:ie,style:{display:"flex",flexDirection:"column",outline:"none",...G.style},onKeyDown:composeEventHandlers(G.onKeyDown,xe=>{const Pe=xe.ctrlKey||xe.altKey||xe.metaKey;if(xe.key==="Tab"&&xe.preventDefault(),!Pe&&xe.key.length===1&&oe(xe.key),["ArrowUp","ArrowDown","Home","End"].includes(xe.key)){let Re=fe().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);if(["ArrowUp","End"].includes(xe.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(xe.key)){const Ae=xe.target,Ie=Re.indexOf(Ae);Re=Re.slice(Ie+1)}setTimeout(()=>ne(Re)),xe.preventDefault()}})})})})})})});SelectContentImpl.displayName=CONTENT_IMPL_NAME;var ITEM_ALIGNED_POSITION_NAME="SelectItemAlignedPosition",SelectItemAlignedPosition=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...s}=e,a=useSelectContext(CONTENT_NAME$1,n),l=useSelectContentContext(CONTENT_NAME$1,n),[h,d]=React__namespace.useState(null),[y,M]=React__namespace.useState(null),q=useComposedRefs(t,ie=>M(ie)),F=useCollection(n),K=React__namespace.useRef(!1),W=React__namespace.useRef(!0),{viewport:j,selectedItem:Q,selectedItemText:G,focusSelectedItem:H}=l,V=React__namespace.useCallback(()=>{if(a.trigger&&a.valueNode&&h&&y&&j&&Q&&G){const ie=a.trigger.getBoundingClientRect(),se=y.getBoundingClientRect(),ue=a.valueNode.getBoundingClientRect(),ge=G.getBoundingClientRect();if(a.dir!=="rtl"){const Ae=ge.left-se.left,Ie=ue.left-Ae,Me=ie.left-Ie,_e=ie.width+Me,Ve=Math.max(_e,se.width),Be=window.innerWidth-CONTENT_MARGIN,Ge=clamp(Ie,[CONTENT_MARGIN,Math.max(CONTENT_MARGIN,Be-Ve)]);h.style.minWidth=_e+"px",h.style.left=Ge+"px"}else{const Ae=se.right-ge.right,Ie=window.innerWidth-ue.right-Ae,Me=window.innerWidth-ie.right-Ie,_e=ie.width+Me,Ve=Math.max(_e,se.width),Be=window.innerWidth-CONTENT_MARGIN,Ge=clamp(Ie,[CONTENT_MARGIN,Math.max(CONTENT_MARGIN,Be-Ve)]);h.style.minWidth=_e+"px",h.style.right=Ge+"px"}const de=F(),fe=window.innerHeight-CONTENT_MARGIN*2,ve=j.scrollHeight,me=window.getComputedStyle(y),he=parseInt(me.borderTopWidth,10),ne=parseInt(me.paddingTop,10),ae=parseInt(me.borderBottomWidth,10),Z=parseInt(me.paddingBottom,10),ee=he+ne+ve+Z+ae,ce=Math.min(Q.offsetHeight*5,ee),oe=window.getComputedStyle(j),pe=parseInt(oe.paddingTop,10),ye=parseInt(oe.paddingBottom,10),be=ie.top+ie.height/2-CONTENT_MARGIN,Ce=fe-be,we=Q.offsetHeight/2,xe=Q.offsetTop+we,Pe=he+ne+xe,Fe=ee-Pe;if(Pe<=be){const Ae=de.length>0&&Q===de[de.length-1].ref.current;h.style.bottom="0px";const Ie=y.clientHeight-j.offsetTop-j.offsetHeight,Me=Math.max(Ce,we+(Ae?ye:0)+Ie+ae),_e=Pe+Me;h.style.height=_e+"px"}else{const Ae=de.length>0&&Q===de[0].ref.current;h.style.top="0px";const Me=Math.max(be,he+j.offsetTop+(Ae?pe:0)+we)+Fe;h.style.height=Me+"px",j.scrollTop=Pe-be+j.offsetTop}h.style.margin=`${CONTENT_MARGIN}px 0`,h.style.minHeight=ce+"px",h.style.maxHeight=fe+"px",i?.(),requestAnimationFrame(()=>K.current=!0)}},[F,a.trigger,a.valueNode,h,y,j,Q,G,a.dir,i]);useLayoutEffect2(()=>V(),[V]);const[J,te]=React__namespace.useState();useLayoutEffect2(()=>{y&&te(window.getComputedStyle(y).zIndex)},[y]);const re=React__namespace.useCallback(ie=>{ie&&W.current===!0&&(V(),H?.(),W.current=!1)},[V,H]);return jsxRuntimeExports.jsx(SelectViewportProvider,{scope:n,contentWrapper:h,shouldExpandOnScrollRef:K,onScrollButtonChange:re,children:jsxRuntimeExports.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:J},children:jsxRuntimeExports.jsx(Primitive.div,{...s,ref:q,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});SelectItemAlignedPosition.displayName=ITEM_ALIGNED_POSITION_NAME;var POPPER_POSITION_NAME="SelectPopperPosition",SelectPopperPosition=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:s=CONTENT_MARGIN,...a}=e,l=usePopperScope$1(n);return jsxRuntimeExports.jsx(Content,{...l,...a,ref:t,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});SelectPopperPosition.displayName=POPPER_POSITION_NAME;var[SelectViewportProvider,useSelectViewportContext]=createSelectContext(CONTENT_NAME$1,{}),VIEWPORT_NAME="SelectViewport",SelectViewport=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...s}=e,a=useSelectContentContext(VIEWPORT_NAME,n),l=useSelectViewportContext(VIEWPORT_NAME,n),h=useComposedRefs(t,a.onViewportChange),d=React__namespace.useRef(0);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),jsxRuntimeExports.jsx(Collection.Slot,{scope:n,children:jsxRuntimeExports.jsx(Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:composeEventHandlers(s.onScroll,y=>{const M=y.currentTarget,{contentWrapper:q,shouldExpandOnScrollRef:F}=l;if(F?.current&&q){const K=Math.abs(d.current-M.scrollTop);if(K>0){const W=window.innerHeight-CONTENT_MARGIN*2,j=parseFloat(q.style.minHeight),Q=parseFloat(q.style.height),G=Math.max(j,Q);if(G<W){const H=G+K,V=Math.min(W,H),J=H-V;q.style.height=V+"px",q.style.bottom==="0px"&&(M.scrollTop=J>0?J:0,q.style.justifyContent="flex-end")}}}d.current=M.scrollTop})})})]})});SelectViewport.displayName=VIEWPORT_NAME;var GROUP_NAME="SelectGroup",[SelectGroupContextProvider,useSelectGroupContext]=createSelectContext(GROUP_NAME),SelectGroup=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=useId();return jsxRuntimeExports.jsx(SelectGroupContextProvider,{scope:n,id:s,children:jsxRuntimeExports.jsx(Primitive.div,{role:"group","aria-labelledby":s,...i,ref:t})})});SelectGroup.displayName=GROUP_NAME;var LABEL_NAME="SelectLabel",SelectLabel=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=useSelectGroupContext(LABEL_NAME,n);return jsxRuntimeExports.jsx(Primitive.div,{id:s.id,...i,ref:t})});SelectLabel.displayName=LABEL_NAME;var ITEM_NAME="SelectItem",[SelectItemContextProvider,useSelectItemContext]=createSelectContext(ITEM_NAME),SelectItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:s=!1,textValue:a,...l}=e,h=useSelectContext(ITEM_NAME,n),d=useSelectContentContext(ITEM_NAME,n),y=h.value===i,[M,q]=React__namespace.useState(a??""),[F,K]=React__namespace.useState(!1),W=useComposedRefs(t,H=>d.itemRefCallback?.(H,i,s)),j=useId(),Q=React__namespace.useRef("touch"),G=()=>{s||(h.onValueChange(i),h.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return jsxRuntimeExports.jsx(SelectItemContextProvider,{scope:n,value:i,disabled:s,textId:j,isSelected:y,onItemTextChange:React__namespace.useCallback(H=>{q(V=>V||(H?.textContent??"").trim())},[]),children:jsxRuntimeExports.jsx(Collection.ItemSlot,{scope:n,value:i,disabled:s,textValue:M,children:jsxRuntimeExports.jsx(Primitive.div,{role:"option","aria-labelledby":j,"data-highlighted":F?"":void 0,"aria-selected":y&&F,"data-state":y?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...l,ref:W,onFocus:composeEventHandlers(l.onFocus,()=>K(!0)),onBlur:composeEventHandlers(l.onBlur,()=>K(!1)),onClick:composeEventHandlers(l.onClick,()=>{Q.current!=="mouse"&&G()}),onPointerUp:composeEventHandlers(l.onPointerUp,()=>{Q.current==="mouse"&&G()}),onPointerDown:composeEventHandlers(l.onPointerDown,H=>{Q.current=H.pointerType}),onPointerMove:composeEventHandlers(l.onPointerMove,H=>{Q.current=H.pointerType,s?d.onItemLeave?.():Q.current==="mouse"&&H.currentTarget.focus({preventScroll:!0})}),onPointerLeave:composeEventHandlers(l.onPointerLeave,H=>{H.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:composeEventHandlers(l.onKeyDown,H=>{d.searchRef?.current!==""&&H.key===" "||(SELECTION_KEYS.includes(H.key)&&G(),H.key===" "&&H.preventDefault())})})})})});SelectItem$1.displayName=ITEM_NAME;var ITEM_TEXT_NAME="SelectItemText",SelectItemText=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:s,...a}=e,l=useSelectContext(ITEM_TEXT_NAME,n),h=useSelectContentContext(ITEM_TEXT_NAME,n),d=useSelectItemContext(ITEM_TEXT_NAME,n),y=useSelectNativeOptionsContext(ITEM_TEXT_NAME,n),[M,q]=React__namespace.useState(null),F=useComposedRefs(t,G=>q(G),d.onItemTextChange,G=>h.itemTextRefCallback?.(G,d.value,d.disabled)),K=M?.textContent,W=React__namespace.useMemo(()=>jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:K},d.value),[d.disabled,d.value,K]),{onNativeOptionAdd:j,onNativeOptionRemove:Q}=y;return useLayoutEffect2(()=>(j(W),()=>Q(W)),[j,Q,W]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Primitive.span,{id:d.textId,...a,ref:F}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ReactDOM__namespace.createPortal(a.children,l.valueNode):null]})});SelectItemText.displayName=ITEM_TEXT_NAME;var ITEM_INDICATOR_NAME="SelectItemIndicator",SelectItemIndicator=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return useSelectItemContext(ITEM_INDICATOR_NAME,n).isSelected?jsxRuntimeExports.jsx(Primitive.span,{"aria-hidden":!0,...i,ref:t}):null});SelectItemIndicator.displayName=ITEM_INDICATOR_NAME;var SCROLL_UP_BUTTON_NAME="SelectScrollUpButton",SelectScrollUpButton=React__namespace.forwardRef((e,t)=>{const n=useSelectContentContext(SCROLL_UP_BUTTON_NAME,e.__scopeSelect),i=useSelectViewportContext(SCROLL_UP_BUTTON_NAME,e.__scopeSelect),[s,a]=React__namespace.useState(!1),l=useComposedRefs(t,i.onScrollButtonChange);return useLayoutEffect2(()=>{if(n.viewport&&n.isPositioned){let h=function(){const y=d.scrollTop>0;a(y)};const d=n.viewport;return h(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[n.viewport,n.isPositioned]),s?jsxRuntimeExports.jsx(SelectScrollButtonImpl,{...e,ref:l,onAutoScroll:()=>{const{viewport:h,selectedItem:d}=n;h&&d&&(h.scrollTop=h.scrollTop-d.offsetHeight)}}):null});SelectScrollUpButton.displayName=SCROLL_UP_BUTTON_NAME;var SCROLL_DOWN_BUTTON_NAME="SelectScrollDownButton",SelectScrollDownButton=React__namespace.forwardRef((e,t)=>{const n=useSelectContentContext(SCROLL_DOWN_BUTTON_NAME,e.__scopeSelect),i=useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME,e.__scopeSelect),[s,a]=React__namespace.useState(!1),l=useComposedRefs(t,i.onScrollButtonChange);return useLayoutEffect2(()=>{if(n.viewport&&n.isPositioned){let h=function(){const y=d.scrollHeight-d.clientHeight,M=Math.ceil(d.scrollTop)<y;a(M)};const d=n.viewport;return h(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[n.viewport,n.isPositioned]),s?jsxRuntimeExports.jsx(SelectScrollButtonImpl,{...e,ref:l,onAutoScroll:()=>{const{viewport:h,selectedItem:d}=n;h&&d&&(h.scrollTop=h.scrollTop+d.offsetHeight)}}):null});SelectScrollDownButton.displayName=SCROLL_DOWN_BUTTON_NAME;var SelectScrollButtonImpl=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...s}=e,a=useSelectContentContext("SelectScrollButton",n),l=React__namespace.useRef(null),h=useCollection(n),d=React__namespace.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return React__namespace.useEffect(()=>()=>d(),[d]),useLayoutEffect2(()=>{h().find(M=>M.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),jsxRuntimeExports.jsx(Primitive.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:composeEventHandlers(s.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(i,50))}),onPointerMove:composeEventHandlers(s.onPointerMove,()=>{a.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(i,50))}),onPointerLeave:composeEventHandlers(s.onPointerLeave,()=>{d()})})}),SEPARATOR_NAME="SelectSeparator",SelectSeparator=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return jsxRuntimeExports.jsx(Primitive.div,{"aria-hidden":!0,...i,ref:t})});SelectSeparator.displayName=SEPARATOR_NAME;var ARROW_NAME$1="SelectArrow",SelectArrow=React__namespace.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=usePopperScope$1(n),a=useSelectContext(ARROW_NAME$1,n),l=useSelectContentContext(ARROW_NAME$1,n);return a.open&&l.position==="popper"?jsxRuntimeExports.jsx(Arrow,{...s,...i,ref:t}):null});SelectArrow.displayName=ARROW_NAME$1;var BUBBLE_INPUT_NAME="SelectBubbleInput",SelectBubbleInput=React__namespace.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const s=React__namespace.useRef(null),a=useComposedRefs(i,s),l=usePrevious(t);return React__namespace.useEffect(()=>{const h=s.current;if(!h)return;const d=window.HTMLSelectElement.prototype,M=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&M){const q=new Event("change",{bubbles:!0});M.call(h,t),h.dispatchEvent(q)}},[l,t]),jsxRuntimeExports.jsx(Primitive.select,{...n,style:{...VISUALLY_HIDDEN_STYLES,...n.style},ref:a,defaultValue:t})});SelectBubbleInput.displayName=BUBBLE_INPUT_NAME;function shouldShowPlaceholder(e){return e===""||e===void 0}function useTypeaheadSearch(e){const t=useCallbackRef$1(e),n=React__namespace.useRef(""),i=React__namespace.useRef(0),s=React__namespace.useCallback(l=>{const h=n.current+l;t(h),(function d(y){n.current=y,window.clearTimeout(i.current),y!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(h)},[t]),a=React__namespace.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return React__namespace.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,a]}function findNextItem(e,t,n){const s=t.length>1&&Array.from(t).every(y=>y===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=wrapArray(e,Math.max(a,0));s.length===1&&(l=l.filter(y=>y!==n));const d=l.find(y=>y.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}function wrapArray(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var Root2=Select$1,Trigger$1=SelectTrigger$1,Value=SelectValue$1,Icon=SelectIcon,Portal$1=SelectPortal,Content2$1=SelectContent$1,Viewport=SelectViewport,Item=SelectItem$1,ItemText=SelectItemText,ItemIndicator=SelectItemIndicator;const Select=Root2,SelectValue=Value,SelectTrigger=React__namespace.forwardRef(({className:e,hasError:t,...n},i)=>jsxRuntimeExports.jsxs(Trigger$1,{ref:i,className:cn("oniratec-select__trigger",t&&"oniratec-select__trigger--error",e),...n,children:[jsxRuntimeExports.jsx(Value,{placeholder:"Seleccionar"}),jsxRuntimeExports.jsx(Icon,{children:jsxRuntimeExports.jsx(ChevronDown,{className:"oniratec-select__chevron"})})]}));SelectTrigger.displayName="SelectTrigger";const SelectContent=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntimeExports.jsx(Portal$1,{children:jsxRuntimeExports.jsx(Content2$1,{ref:i,className:cn("oniratec-select",e),...n,children:jsxRuntimeExports.jsx(Viewport,{className:"oniratec-select__viewport",children:t})})}));SelectContent.displayName="SelectContent";const SelectItem=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntimeExports.jsxs(Item,{ref:i,className:cn("oniratec-select__item",e),...n,children:[jsxRuntimeExports.jsx(ItemText,{children:t}),jsxRuntimeExports.jsx(ItemIndicator,{className:"oniratec-select__indicator",children:jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"})})]}));SelectItem.displayName="SelectItem";function Skeleton({className:e}){return jsxRuntimeExports.jsx("div",{className:cn("animate-pulse rounded-md bg-gray-200 dark:bg-gray-200",e)})}const Toggle=({checked:e,defaultChecked:t=!1,onChange:n,size:i="md",disabled:s=!1,label:a,className:l,ariaLabel:h})=>{const d=e!==void 0,[y,M]=React.useState(t),q=d?e:y,F=K=>{d||M(K),n?.(K)};return jsxRuntimeExports.jsxs("label",{className:cn("oniratec-toggle",l),"data-size":i,"data-checked":q?"true":"false","data-disabled":s?"true":void 0,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"oniratec-toggle__input",checked:q,disabled:s,"aria-label":h,onChange:K=>F(K.target.checked)}),jsxRuntimeExports.jsx("span",{className:"oniratec-toggle__track",children:jsxRuntimeExports.jsx("span",{className:"oniratec-toggle__thumb"})}),a&&jsxRuntimeExports.jsx("span",{className:"oniratec-toggle__label",children:a})]})};var[createTooltipContext]=createContextScope("Tooltip",[createPopperScope]),usePopperScope=createPopperScope(),PROVIDER_NAME="TooltipProvider",DEFAULT_DELAY_DURATION=700,TOOLTIP_OPEN="tooltip.open",[TooltipProviderContextProvider,useTooltipProviderContext]=createTooltipContext(PROVIDER_NAME),TooltipProvider$1=e=>{const{__scopeTooltip:t,delayDuration:n=DEFAULT_DELAY_DURATION,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:a}=e,l=React__namespace.useRef(!0),h=React__namespace.useRef(!1),d=React__namespace.useRef(0);return React__namespace.useEffect(()=>{const y=d.current;return()=>window.clearTimeout(y)},[]),jsxRuntimeExports.jsx(TooltipProviderContextProvider,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:React__namespace.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:React__namespace.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,i)},[i]),isPointerInTransitRef:h,onPointerInTransitChange:React__namespace.useCallback(y=>{h.current=y},[]),disableHoverableContent:s,children:a})};TooltipProvider$1.displayName=PROVIDER_NAME;var TOOLTIP_NAME="Tooltip",[TooltipContextProvider,useTooltipContext]=createTooltipContext(TOOLTIP_NAME),Tooltip$1=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:s,onOpenChange:a,disableHoverableContent:l,delayDuration:h}=e,d=useTooltipProviderContext(TOOLTIP_NAME,e.__scopeTooltip),y=usePopperScope(t),[M,q]=React__namespace.useState(null),F=useId(),K=React__namespace.useRef(0),W=l??d.disableHoverableContent,j=h??d.delayDuration,Q=React__namespace.useRef(!1),[G,H]=useControllableState({prop:i,defaultProp:s??!1,onChange:ie=>{ie?(d.onOpen(),document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))):d.onClose(),a?.(ie)},caller:TOOLTIP_NAME}),V=React__namespace.useMemo(()=>G?Q.current?"delayed-open":"instant-open":"closed",[G]),J=React__namespace.useCallback(()=>{window.clearTimeout(K.current),K.current=0,Q.current=!1,H(!0)},[H]),te=React__namespace.useCallback(()=>{window.clearTimeout(K.current),K.current=0,H(!1)},[H]),re=React__namespace.useCallback(()=>{window.clearTimeout(K.current),K.current=window.setTimeout(()=>{Q.current=!0,H(!0),K.current=0},j)},[j,H]);return React__namespace.useEffect(()=>()=>{K.current&&(window.clearTimeout(K.current),K.current=0)},[]),jsxRuntimeExports.jsx(Root2$2,{...y,children:jsxRuntimeExports.jsx(TooltipContextProvider,{scope:t,contentId:F,open:G,stateAttribute:V,trigger:M,onTriggerChange:q,onTriggerEnter:React__namespace.useCallback(()=>{d.isOpenDelayedRef.current?re():J()},[d.isOpenDelayedRef,re,J]),onTriggerLeave:React__namespace.useCallback(()=>{W?te():(window.clearTimeout(K.current),K.current=0)},[te,W]),onOpen:J,onClose:te,disableHoverableContent:W,children:n})})};Tooltip$1.displayName=TOOLTIP_NAME;var TRIGGER_NAME="TooltipTrigger",TooltipTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,s=useTooltipContext(TRIGGER_NAME,n),a=useTooltipProviderContext(TRIGGER_NAME,n),l=usePopperScope(n),h=React__namespace.useRef(null),d=useComposedRefs(t,h,s.onTriggerChange),y=React__namespace.useRef(!1),M=React__namespace.useRef(!1),q=React__namespace.useCallback(()=>y.current=!1,[]);return React__namespace.useEffect(()=>()=>document.removeEventListener("pointerup",q),[q]),jsxRuntimeExports.jsx(Anchor,{asChild:!0,...l,children:jsxRuntimeExports.jsx(Primitive.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:d,onPointerMove:composeEventHandlers(e.onPointerMove,F=>{F.pointerType!=="touch"&&!M.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),M.current=!0)}),onPointerLeave:composeEventHandlers(e.onPointerLeave,()=>{s.onTriggerLeave(),M.current=!1}),onPointerDown:composeEventHandlers(e.onPointerDown,()=>{s.open&&s.onClose(),y.current=!0,document.addEventListener("pointerup",q,{once:!0})}),onFocus:composeEventHandlers(e.onFocus,()=>{y.current||s.onOpen()}),onBlur:composeEventHandlers(e.onBlur,s.onClose),onClick:composeEventHandlers(e.onClick,s.onClose)})})});TooltipTrigger$1.displayName=TRIGGER_NAME;var PORTAL_NAME="TooltipPortal",[PortalProvider,usePortalContext]=createTooltipContext(PORTAL_NAME,{forceMount:void 0}),TooltipPortal=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:s}=e,a=useTooltipContext(PORTAL_NAME,t);return jsxRuntimeExports.jsx(PortalProvider,{scope:t,forceMount:n,children:jsxRuntimeExports.jsx(Presence,{present:n||a.open,children:jsxRuntimeExports.jsx(Portal$3,{asChild:!0,container:s,children:i})})})};TooltipPortal.displayName=PORTAL_NAME;var CONTENT_NAME="TooltipContent",TooltipContent$1=React__namespace.forwardRef((e,t)=>{const n=usePortalContext(CONTENT_NAME,e.__scopeTooltip),{forceMount:i=n.forceMount,side:s="top",...a}=e,l=useTooltipContext(CONTENT_NAME,e.__scopeTooltip);return jsxRuntimeExports.jsx(Presence,{present:i||l.open,children:l.disableHoverableContent?jsxRuntimeExports.jsx(TooltipContentImpl,{side:s,...a,ref:t}):jsxRuntimeExports.jsx(TooltipContentHoverable,{side:s,...a,ref:t})})}),TooltipContentHoverable=React__namespace.forwardRef((e,t)=>{const n=useTooltipContext(CONTENT_NAME,e.__scopeTooltip),i=useTooltipProviderContext(CONTENT_NAME,e.__scopeTooltip),s=React__namespace.useRef(null),a=useComposedRefs(t,s),[l,h]=React__namespace.useState(null),{trigger:d,onClose:y}=n,M=s.current,{onPointerInTransitChange:q}=i,F=React__namespace.useCallback(()=>{h(null),q(!1)},[q]),K=React__namespace.useCallback((W,j)=>{const Q=W.currentTarget,G={x:W.clientX,y:W.clientY},H=getExitSideFromRect(G,Q.getBoundingClientRect()),V=getPaddedExitPoints(G,H),J=getPointsFromRect(j.getBoundingClientRect()),te=getHull([...V,...J]);h(te),q(!0)},[q]);return React__namespace.useEffect(()=>()=>F(),[F]),React__namespace.useEffect(()=>{if(d&&M){const W=Q=>K(Q,M),j=Q=>K(Q,d);return d.addEventListener("pointerleave",W),M.addEventListener("pointerleave",j),()=>{d.removeEventListener("pointerleave",W),M.removeEventListener("pointerleave",j)}}},[d,M,K,F]),React__namespace.useEffect(()=>{if(l){const W=j=>{const Q=j.target,G={x:j.clientX,y:j.clientY},H=d?.contains(Q)||M?.contains(Q),V=!isPointInPolygon(G,l);H?F():V&&(F(),y())};return document.addEventListener("pointermove",W),()=>document.removeEventListener("pointermove",W)}},[d,M,l,y,F]),jsxRuntimeExports.jsx(TooltipContentImpl,{...e,ref:a})}),[VisuallyHiddenContentContextProvider,useVisuallyHiddenContentContext]=createTooltipContext(TOOLTIP_NAME,{isInside:!1}),Slottable=createSlottable("TooltipContent"),TooltipContentImpl=React__namespace.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:l,...h}=e,d=useTooltipContext(CONTENT_NAME,n),y=usePopperScope(n),{onClose:M}=d;return React__namespace.useEffect(()=>(document.addEventListener(TOOLTIP_OPEN,M),()=>document.removeEventListener(TOOLTIP_OPEN,M)),[M]),React__namespace.useEffect(()=>{if(d.trigger){const q=F=>{F.target?.contains(d.trigger)&&M()};return window.addEventListener("scroll",q,{capture:!0}),()=>window.removeEventListener("scroll",q,{capture:!0})}},[d.trigger,M]),jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:q=>q.preventDefault(),onDismiss:M,children:jsxRuntimeExports.jsxs(Content,{"data-state":d.stateAttribute,...y,...h,ref:t,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[jsxRuntimeExports.jsx(Slottable,{children:i}),jsxRuntimeExports.jsx(VisuallyHiddenContentContextProvider,{scope:n,isInside:!0,children:jsxRuntimeExports.jsx(Root,{id:d.contentId,role:"tooltip",children:s||i})})]})})});TooltipContent$1.displayName=CONTENT_NAME;var ARROW_NAME="TooltipArrow",TooltipArrow=React__namespace.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,s=usePopperScope(n);return useVisuallyHiddenContentContext(ARROW_NAME,n).isInside?null:jsxRuntimeExports.jsx(Arrow,{...s,...i,ref:t})});TooltipArrow.displayName=ARROW_NAME;function getExitSideFromRect(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,i,s,a)){case a:return"left";case s:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function getPaddedExitPoints(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function getPointsFromRect(e){const{top:t,right:n,bottom:i,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:i},{x:s,y:i}]}function isPointInPolygon(e,t){const{x:n,y:i}=e;let s=!1;for(let a=0,l=t.length-1;a<t.length;l=a++){const h=t[a],d=t[l],y=h.x,M=h.y,q=d.x,F=d.y;M>i!=F>i&&n<(q-y)*(i-M)/(F-M)+y&&(s=!s)}return s}function getHull(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),getHullPresorted(t)}function getHullPresorted(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const s=e[i];for(;t.length>=2;){const a=t[t.length-1],l=t[t.length-2];if((a.x-l.x)*(s.y-l.y)>=(a.y-l.y)*(s.x-l.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const s=e[i];for(;n.length>=2;){const a=n[n.length-1],l=n[n.length-2];if((a.x-l.x)*(s.y-l.y)>=(a.y-l.y)*(s.x-l.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Provider=TooltipProvider$1,Root3=Tooltip$1,Trigger=TooltipTrigger$1,Portal=TooltipPortal,Content2=TooltipContent$1,Arrow2=TooltipArrow;const TooltipProvider=Provider,Tooltip=Root3,TooltipTrigger=Trigger,TooltipContent=React.forwardRef(({className:e,sideOffset:t=8,children:n,...i},s)=>jsxRuntimeExports.jsx(Portal,{children:jsxRuntimeExports.jsxs(Content2,{ref:s,sideOffset:t,className:cn("oniratec-tooltip",e),...i,children:[n,jsxRuntimeExports.jsx(Arrow2,{className:"oniratec-tooltip__arrow"})]})}));TooltipContent.displayName="TooltipContent";function DataTable({columns:e,data:t}){return jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-xl border border-slate-200 bg-white",children:jsxRuntimeExports.jsxs("table",{className:"w-full border-collapse",children:[jsxRuntimeExports.jsx("thead",{className:"bg-slate-50",children:jsxRuntimeExports.jsx("tr",{className:"border-b border-slate-200",children:e.map(n=>jsxRuntimeExports.jsx("th",{className:cn("px-4 py-3 text-left text-xs font-semibold tracking-wide text-slate-500 uppercase",n.className),children:n.header},n.key))})}),jsxRuntimeExports.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((n,i)=>jsxRuntimeExports.jsx("tr",{className:"transition-colors hover:bg-slate-50",children:e.map(s=>jsxRuntimeExports.jsx("td",{className:cn("px-4 py-3 text-sm text-slate-700",s.className),children:s.render(n)},s.key))},i))})]})})}const DEFAULT_PAGE_SIZES=[5,10,25,50],PageSizeSelector=({value:e,onChange:t,options:n=DEFAULT_PAGE_SIZES})=>jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{children:"Mostrar"}),jsxRuntimeExports.jsxs(Select,{value:e.toString(),onValueChange:i=>{t(parseInt(i))},children:[jsxRuntimeExports.jsx(SelectTrigger,{children:jsxRuntimeExports.jsx(SelectValue,{})}),jsxRuntimeExports.jsx(SelectContent,{children:(n??[]).map(i=>jsxRuntimeExports.jsx(SelectItem,{value:i.toString(),children:String(i)},i))})]}),jsxRuntimeExports.jsx("span",{children:"por página"})]}),Pagination=({page:e,pageSize:t,total:n,onPageChange:i,onPageSizeChange:s})=>{const a=Math.ceil(n/t);if(a<=1&&n<=t)return null;const l=e+1;return jsxRuntimeExports.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-4 text-sm text-slate-600",children:[jsxRuntimeExports.jsxs("span",{children:["Página ",l," de ",a]}),jsxRuntimeExports.jsx(PageSizeSelector,{value:t,onChange:s}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2",children:[jsxRuntimeExports.jsx("button",{disabled:e===0,onClick:()=>i(e-1),className:"rounded-md border px-3 py-1 disabled:opacity-50",children:"Anterior"}),jsxRuntimeExports.jsx("button",{disabled:e+1>=a,onClick:()=>i(e+1),className:"rounded-md border px-3 py-1 disabled:opacity-50",children:"Siguiente"})]})]})},brand={light:"#148103",dark:"#0f6a02"},fill={primary:{light:"#fefefe",dark:"#0f172a"},secondary:{light:"#0f172a",dark:"#e0e0e0"},disabled:{light:"#e0e0e0",dark:"#394258"}},label={primary:{light:"#0f172a",dark:"#fefefe"},secondary:{light:"#384258",dark:"#f2f2f2"},disabled:{light:"#bdbdbd",dark:"#bdbdbd"}},border={primary:{light:"#e0e0e0",dark:"#394258"},secondary:{light:"#0f172a",dark:"#e0e0e0"},disabled:{light:"#ececec",dark:"#394258"}},functional={focus:{light:"#1982fc",dark:"#1982fc"},error:{light:"#d13a3a",dark:"#d13a3a"}},shadows={card:{sm:"0px 0.5px 12px -5px rgba(30,41,59,0.20)",md:"0px 1px 25px -10px rgba(30,41,59,0.30)",lg:"0px 2px 51px -19px rgba(30,41,59,0.40)",xl:"0px 20px 25px -5px rgba(0,0,0,0.10), 0px 10px 10px -5px rgba(0,0,0,0.04)"}};function createTheme(e){return{mode:e,colors:{brand:brand[e],fill:{primary:fill.primary[e],secondary:fill.secondary[e],disabled:fill.disabled[e]},label:{primary:label.primary[e],secondary:label.secondary[e],disabled:label.disabled[e]},border:{primary:border.primary[e],secondary:border.secondary[e],disabled:border.disabled[e]},focus:functional.focus[e],error:functional.error[e]},shadows:{card:{sm:shadows.card.sm,md:shadows.card.md,lg:shadows.card.lg,xl:shadows.card.xl}}}}const lightTheme=createTheme("light"),darkTheme=createTheme("dark"),defaultTheme=lightTheme;exports.Box=Box;exports.Button=Button;exports.Card=Card;exports.CardContent=CardContent;exports.CardHeader=CardHeader;exports.CardTitle=CardTitle;exports.DataTable=DataTable;exports.DropdownMenu=DropdownMenu;exports.DropdownMenuCheckboxItem=DropdownMenuCheckboxItem;exports.DropdownMenuContent=DropdownMenuContent;exports.DropdownMenuGroup=DropdownMenuGroup;exports.DropdownMenuItem=DropdownMenuItem;exports.DropdownMenuLabel=DropdownMenuLabel;exports.DropdownMenuPortal=DropdownMenuPortal;exports.DropdownMenuRadioGroup=DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=DropdownMenuRadioItem;exports.DropdownMenuSeparator=DropdownMenuSeparator;exports.DropdownMenuSub=DropdownMenuSub;exports.DropdownMenuSubContent=DropdownMenuSubContent;exports.DropdownMenuSubTrigger=DropdownMenuSubTrigger;exports.DropdownMenuTrigger=DropdownMenuTrigger;exports.Field=Field;exports.FieldControl=FieldControl;exports.FieldLabel=FieldLabel;exports.FieldMessage=FieldMessage;exports.Input=Input;exports.Logo=Logo;exports.NotFoundState=NotFoundState;exports.PageSizeSelector=PageSizeSelector;exports.Pagination=Pagination;exports.PasswordInput=PasswordInput;exports.PersonAvatar=PersonAvatar;exports.ProfileAvatar=ProfileAvatar;exports.Select=Select;exports.Skeleton=Skeleton;exports.Toggle=Toggle;exports.Tooltip=Tooltip;exports.TooltipContent=TooltipContent;exports.TooltipProvider=TooltipProvider;exports.TooltipTrigger=TooltipTrigger;exports.darkTheme=darkTheme;exports.defaultTheme=defaultTheme;exports.lightTheme=lightTheme;exports.useField=useField;
|
|
41
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const l=a[1];if(t===a[0]){n(a);continue}if(e.external){const d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){n(a);continue}}if(e.metadataRegistry.get(a[0])?.id){n(a);continue}if(l.cycle){n(a);continue}if(l.count>1&&e.reused==="ref"){n(a);continue}}}function finalize(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=a=>{const l=e.seen.get(a);if(l.ref===null)return;const h=l.def??l.schema,d={...h},F=l.ref;if(l.ref=null,F){i(F);const y=e.seen.get(F),q=y.schema;if(q.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(q)):Object.assign(h,q),Object.assign(h,d),a._zod.parent===F)for(const G in h)G==="$ref"||G==="allOf"||G in d||delete h[G];if(q.$ref)for(const G in h)G==="$ref"||G==="allOf"||G in y.def&&JSON.stringify(h[G])===JSON.stringify(y.def[G])&&delete h[G]}const J=a._zod.parent;if(J&&J!==F){i(J);const y=e.seen.get(J);if(y?.schema.$ref&&(h.$ref=y.schema.$ref,y.def))for(const q in h)q==="$ref"||q==="allOf"||q in y.def&&JSON.stringify(h[q])===JSON.stringify(y.def[q])&&delete h[q]}e.override({zodSchema:a,jsonSchema:h,path:l.path??[]})};for(const a of[...e.seen.entries()].reverse())i(a[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(a)}Object.assign(s,r.def??r.schema);const n=e.external?.defs??{};for(const a of e.seen.entries()){const l=a[1];l.def&&l.defId&&(n[l.defId]=l.def)}e.external||Object.keys(n).length>0&&(e.target==="draft-2020-12"?s.$defs=n:s.definitions=n);try{const a=JSON.parse(JSON.stringify(s));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:createStandardJSONSchemaMethod(t,"input",e.processors),output:createStandardJSONSchemaMethod(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function isTransforming(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return isTransforming(i.element,r);if(i.type==="set")return isTransforming(i.valueType,r);if(i.type==="lazy")return isTransforming(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return isTransforming(i.innerType,r);if(i.type==="intersection")return isTransforming(i.left,r)||isTransforming(i.right,r);if(i.type==="record"||i.type==="map")return isTransforming(i.keyType,r)||isTransforming(i.valueType,r);if(i.type==="pipe")return isTransforming(i.in,r)||isTransforming(i.out,r);if(i.type==="object"){for(const s in i.shape)if(isTransforming(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(isTransforming(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(isTransforming(s,r))return!0;return!!(i.rest&&isTransforming(i.rest,r))}return!1}const createToJSONSchemaMethod=(e,t={})=>r=>{const i=initializeContext({...r,processors:t});return process(e,i),extractDefs(i,e),finalize(i,e)},createStandardJSONSchemaMethod=(e,t,r={})=>i=>{const{libraryOptions:s,target:n}=i??{},a=initializeContext({...s??{},target:n,io:t,processors:r});return process(e,a),extractDefs(a,e),finalize(a,e)},neverProcessor=(e,t,r,i)=>{r.not={}},anyProcessor=(e,t,r,i)=>{},unknownProcessor=(e,t,r,i)=>{},enumProcessor=(e,t,r,i)=>{const s=e._zod.def,n=getEnumValues(s.entries);n.every(a=>typeof a=="number")&&(r.type="number"),n.every(a=>typeof a=="string")&&(r.type="string"),r.enum=n},customProcessor=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},transformProcessor=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},arrayProcessor=(e,t,r,i)=>{const s=r,n=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(s.minItems=a),typeof l=="number"&&(s.maxItems=l),s.type="array",s.items=process(n.element,t,{...i,path:[...i.path,"items"]})},objectProcessor=(e,t,r,i)=>{const s=r,n=e._zod.def;s.type="object",s.properties={};const a=n.shape;for(const d in a)s.properties[d]=process(a[d],t,{...i,path:[...i.path,"properties",d]});const l=new Set(Object.keys(a)),h=new Set([...l].filter(d=>{const F=n.shape[d]._zod;return t.io==="input"?F.optin===void 0:F.optout===void 0}));h.size>0&&(s.required=Array.from(h)),n.catchall?._zod.def.type==="never"?s.additionalProperties=!1:n.catchall?n.catchall&&(s.additionalProperties=process(n.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},unionProcessor=(e,t,r,i)=>{const s=e._zod.def,n=s.inclusive===!1,a=s.options.map((l,h)=>process(l,t,{...i,path:[...i.path,n?"oneOf":"anyOf",h]}));n?r.oneOf=a:r.anyOf=a},intersectionProcessor=(e,t,r,i)=>{const s=e._zod.def,n=process(s.left,t,{...i,path:[...i.path,"allOf",0]}),a=process(s.right,t,{...i,path:[...i.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,h=[...l(n)?n.allOf:[n],...l(a)?a.allOf:[a]];r.allOf=h},nullableProcessor=(e,t,r,i)=>{const s=e._zod.def,n=process(s.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=s.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},nonoptionalProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType},defaultProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},prefaultProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},catchProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType;let a;try{a=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},pipeProcessor=(e,t,r,i)=>{const s=e._zod.def,n=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;process(n,t,i);const a=t.seen.get(e);a.ref=n},readonlyProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,r.readOnly=!0},optionalProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType},initializer=(e,t)=>{$ZodError.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>formatError(e,r)},flatten:{value:r=>flattenError(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,jsonStringifyReplacer,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,jsonStringifyReplacer,2)}},isEmpty:{get(){return e.issues.length===0}}})},ZodRealError=$constructor("ZodError",initializer,{Parent:Error}),parse=_parse(ZodRealError),parseAsync=_parseAsync(ZodRealError),safeParse=_safeParse(ZodRealError),safeParseAsync=_safeParseAsync(ZodRealError),encode=_encode(ZodRealError),decode=_decode(ZodRealError),encodeAsync=_encodeAsync(ZodRealError),decodeAsync=_decodeAsync(ZodRealError),safeEncode=_safeEncode(ZodRealError),safeDecode=_safeDecode(ZodRealError),safeEncodeAsync=_safeEncodeAsync(ZodRealError),safeDecodeAsync=_safeDecodeAsync(ZodRealError),ZodType=$constructor("ZodType",(e,t)=>($ZodType.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:createStandardJSONSchemaMethod(e,"input"),output:createStandardJSONSchemaMethod(e,"output")}}),e.toJSONSchema=createToJSONSchemaMethod(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>clone(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>parse(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>safeParse(e,r,i),e.parseAsync=async(r,i)=>parseAsync(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>safeParseAsync(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>encode(e,r,i),e.decode=(r,i)=>decode(e,r,i),e.encodeAsync=async(r,i)=>encodeAsync(e,r,i),e.decodeAsync=async(r,i)=>decodeAsync(e,r,i),e.safeEncode=(r,i)=>safeEncode(e,r,i),e.safeDecode=(r,i)=>safeDecode(e,r,i),e.safeEncodeAsync=async(r,i)=>safeEncodeAsync(e,r,i),e.safeDecodeAsync=async(r,i)=>safeDecodeAsync(e,r,i),e.refine=(r,i)=>e.check(refine(r,i)),e.superRefine=r=>e.check(superRefine(r)),e.overwrite=r=>e.check(_overwrite(r)),e.optional=()=>optional(e),e.exactOptional=()=>exactOptional(e),e.nullable=()=>nullable(e),e.nullish=()=>optional(nullable(e)),e.nonoptional=r=>nonoptional(e,r),e.array=()=>array(e),e.or=r=>union([e,r]),e.and=r=>intersection(e,r),e.transform=r=>pipe(e,transform(r)),e.default=r=>_default(e,r),e.prefault=r=>prefault(e,r),e.catch=r=>_catch(e,r),e.pipe=r=>pipe(e,r),e.readonly=()=>readonly(e),e.describe=r=>{const i=e.clone();return globalRegistry.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return globalRegistry.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return globalRegistry.get(e);const i=e.clone();return globalRegistry.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ZodAny=$constructor("ZodAny",(e,t)=>{$ZodAny.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>anyProcessor()});function any(){return _any(ZodAny)}const ZodUnknown=$constructor("ZodUnknown",(e,t)=>{$ZodUnknown.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>unknownProcessor()});function unknown(){return _unknown(ZodUnknown)}const ZodNever=$constructor("ZodNever",(e,t)=>{$ZodNever.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>neverProcessor(e,r,i)});function never(e){return _never(ZodNever,e)}const ZodArray=$constructor("ZodArray",(e,t)=>{$ZodArray.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>arrayProcessor(e,r,i,s),e.element=t.element,e.min=(r,i)=>e.check(_minLength(r,i)),e.nonempty=r=>e.check(_minLength(1,r)),e.max=(r,i)=>e.check(_maxLength(r,i)),e.length=(r,i)=>e.check(_length(r,i)),e.unwrap=()=>e.element});function array(e,t){return _array(ZodArray,e,t)}const ZodObject=$constructor("ZodObject",(e,t)=>{$ZodObjectJIT.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>objectProcessor(e,r,i,s),defineLazy(e,"shape",()=>t.shape),e.keyof=()=>_enum(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:unknown()}),e.loose=()=>e.clone({...e._zod.def,catchall:unknown()}),e.strict=()=>e.clone({...e._zod.def,catchall:never()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>extend(e,r),e.safeExtend=r=>safeExtend(e,r),e.merge=r=>merge(e,r),e.pick=r=>pick(e,r),e.omit=r=>omit(e,r),e.partial=(...r)=>partial(ZodOptional,e,r[0]),e.required=(...r)=>required(ZodNonOptional,e,r[0])});function object(e,t){const r={type:"object",shape:e??{},...normalizeParams(t)};return new ZodObject(r)}const ZodUnion=$constructor("ZodUnion",(e,t)=>{$ZodUnion.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>unionProcessor(e,r,i,s),e.options=t.options});function union(e,t){return new ZodUnion({type:"union",options:e,...normalizeParams(t)})}const ZodIntersection=$constructor("ZodIntersection",(e,t)=>{$ZodIntersection.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>intersectionProcessor(e,r,i,s)});function intersection(e,t){return new ZodIntersection({type:"intersection",left:e,right:t})}const ZodEnum=$constructor("ZodEnum",(e,t)=>{$ZodEnum.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(i,s,n)=>enumProcessor(e,i,s),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,s)=>{const n={};for(const a of i)if(r.has(a))n[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ZodEnum({...t,checks:[],...normalizeParams(s),entries:n})},e.exclude=(i,s)=>{const n={...t.entries};for(const a of i)if(r.has(a))delete n[a];else throw new Error(`Key ${a} not found in enum`);return new ZodEnum({...t,checks:[],...normalizeParams(s),entries:n})}});function _enum(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ZodEnum({type:"enum",entries:r,...normalizeParams(t)})}const ZodTransform=$constructor("ZodTransform",(e,t)=>{$ZodTransform.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>transformProcessor(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new $ZodEncodeError(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(issue(n,r.value,t));else{const a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(issue(a))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(n=>(r.value=n,r)):(r.value=s,r)}});function transform(e){return new ZodTransform({type:"transform",transform:e})}const ZodOptional=$constructor("ZodOptional",(e,t)=>{$ZodOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>optionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function optional(e){return new ZodOptional({type:"optional",innerType:e})}const ZodExactOptional=$constructor("ZodExactOptional",(e,t)=>{$ZodExactOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>optionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function exactOptional(e){return new ZodExactOptional({type:"optional",innerType:e})}const ZodNullable=$constructor("ZodNullable",(e,t)=>{$ZodNullable.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nullableProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function nullable(e){return new ZodNullable({type:"nullable",innerType:e})}const ZodDefault=$constructor("ZodDefault",(e,t)=>{$ZodDefault.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>defaultProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _default(e,t){return new ZodDefault({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():shallowClone(t)}})}const ZodPrefault=$constructor("ZodPrefault",(e,t)=>{$ZodPrefault.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>prefaultProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function prefault(e,t){return new ZodPrefault({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():shallowClone(t)}})}const ZodNonOptional=$constructor("ZodNonOptional",(e,t)=>{$ZodNonOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nonoptionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function nonoptional(e,t){return new ZodNonOptional({type:"nonoptional",innerType:e,...normalizeParams(t)})}const ZodCatch=$constructor("ZodCatch",(e,t)=>{$ZodCatch.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>catchProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _catch(e,t){return new ZodCatch({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ZodPipe=$constructor("ZodPipe",(e,t)=>{$ZodPipe.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>pipeProcessor(e,r,i,s),e.in=t.in,e.out=t.out});function pipe(e,t){return new ZodPipe({type:"pipe",in:e,out:t})}const ZodReadonly=$constructor("ZodReadonly",(e,t)=>{$ZodReadonly.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>readonlyProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function readonly(e){return new ZodReadonly({type:"readonly",innerType:e})}const ZodCustom=$constructor("ZodCustom",(e,t)=>{$ZodCustom.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>customProcessor(e,r)});function refine(e,t={}){return _refine(ZodCustom,e,t)}function superRefine(e){return _superRefine(e)}function flattenFields(e){const t=[];for(const r of e.sections)for(const i of r.fields)Array.isArray(i)?t.push(...i):t.push(i);return t}function buildZodSchema(e){const t={};for(const i of e.sections)for(const s of i.fields){const n=Array.isArray(s)?s:[s];for(const a of n)t[a.name]=a.schema??any().optional()}let r=object(t);return e.crossRules?.length&&(r=r.superRefine((i,s)=>{for(const n of e.crossRules)n(i,s)})),r}function buildDefaultValues(e,t){const r=e.defaultValues?.(t)??{},i=flattenFields(e),s={...r};for(const n of i)n.defaultValue!==void 0&&s[n.name]===void 0&&(s[n.name]=n.defaultValue);return s}var isCheckBoxInput=e=>e.type==="checkbox",isDateObject=e=>e instanceof Date,isNullOrUndefined=e=>e==null;const isObjectType=e=>typeof e=="object";var isObject=e=>!isNullOrUndefined(e)&&!Array.isArray(e)&&isObjectType(e)&&!isDateObject(e),getEventValue=e=>isObject(e)&&e.target?isCheckBoxInput(e.target)?e.target.checked:e.target.value:e,getNodeParentName=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,isNameInFieldArray=(e,t)=>e.has(getNodeParentName(t)),isPlainObject=e=>{const t=e.constructor&&e.constructor.prototype;return isObject(t)&&t.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(isWeb&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(isObject(e)&&isPlainObject(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=cloneObject(e[s]));return i}var isKey=e=>/^\w*$/.test(e),isUndefined=e=>e===void 0,compact=e=>Array.isArray(e)?e.filter(Boolean):[],stringToPath=e=>compact(e.replace(/["|']|\]/g,"").split(/\.|\[/)),get=(e,t,r)=>{if(!t||!isObject(e))return r;const i=(isKey(t)?[t]:stringToPath(t)).reduce((s,n)=>isNullOrUndefined(s)?s:s[n],e);return isUndefined(i)||i===e?isUndefined(e[t])?r:e[t]:i},isBoolean=e=>typeof e=="boolean",isFunction=e=>typeof e=="function",set=(e,t,r)=>{let i=-1;const s=isKey(t)?[t]:stringToPath(t),n=s.length,a=n-1;for(;++i<n;){const l=s[i];let h=r;if(i!==a){const d=e[l];h=isObject(d)||Array.isArray(d)?d:isNaN(+s[i+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=h,e=e[l]}};const EVENTS={BLUR:"blur",CHANGE:"change"},VALIDATION_MODE={all:"all"},HookFormContext=React.createContext(null);HookFormContext.displayName="HookFormContext";const useFormContext=()=>React.useContext(HookFormContext),FormProvider=e=>{const{children:t,...r}=e;return React.createElement(HookFormContext.Provider,{value:r},t)};var getProxyFormState=(e,t,r,i=!0)=>{const s={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return t._proxyFormState[a]!==VALIDATION_MODE.all&&(t._proxyFormState[a]=!i||VALIDATION_MODE.all),r&&(r[a]=!0),e[a]}});return s};const useIsomorphicLayoutEffect=typeof window<"u"?React.useLayoutEffect:React.useEffect;function useFormState(e){const t=useFormContext(),{control:r=t.control,disabled:i,name:s,exact:n}=e||{},[a,l]=React.useState(r._formState),h=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return useIsomorphicLayoutEffect(()=>r._subscribe({name:s,formState:h.current,exact:n,callback:d=>{!i&&l({...r._formState,...d})}}),[s,i,n]),React.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),React.useMemo(()=>getProxyFormState(a,r,h.current,!1),[a,r])}var isString=e=>typeof e=="string",generateWatchOutput=(e,t,r,i,s)=>isString(e)?get(r,e,s):Array.isArray(e)?e.map(n=>get(r,n)):r,isPrimitive=e=>isNullOrUndefined(e)||!isObjectType(e);function deepEqual(e,t,r=new WeakSet){if(isPrimitive(e)||isPrimitive(t))return Object.is(e,t);if(isDateObject(e)&&isDateObject(t))return Object.is(e.getTime(),t.getTime());const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const n of i){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=t[n];if(isDateObject(a)&&isDateObject(l)||isObject(a)&&isObject(l)||Array.isArray(a)&&Array.isArray(l)?!deepEqual(a,l,r):!Object.is(a,l))return!1}}return!0}function useWatch(e){const t=useFormContext(),{control:r=t.control,name:i,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},h=React.useRef(s),d=React.useRef(l),F=React.useRef(void 0),J=React.useRef(r),y=React.useRef(i);d.current=l;const[q,H]=React.useState(()=>{const V=r._getWatch(i,h.current);return d.current?d.current(V):V}),G=React.useCallback(V=>{const Q=generateWatchOutput(i,r._names,V||r._formValues,!1,h.current);return d.current?d.current(Q):Q},[r._formValues,r._names,i]),te=React.useCallback(V=>{if(!n){const Q=generateWatchOutput(i,r._names,V||r._formValues,!1,h.current);if(d.current){const ee=d.current(Q);deepEqual(ee,F.current)||(H(ee),F.current=ee)}else H(Q)}},[r._formValues,r._names,n,i]);useIsomorphicLayoutEffect(()=>((J.current!==r||!deepEqual(y.current,i))&&(J.current=r,y.current=i,te()),r._subscribe({name:i,formState:{values:!0},exact:a,callback:V=>{te(V.values)}})),[r,a,i,te]),React.useEffect(()=>r._removeUnmounted());const j=J.current!==r,Z=y.current,M=React.useMemo(()=>{if(n)return null;const V=!j&&!deepEqual(Z,i);return j||V?G():null},[n,j,i,Z,G]);return M!==null?M:q}function useController(e){const t=useFormContext(),{name:r,disabled:i,control:s=t.control,shouldUnregister:n,defaultValue:a,exact:l=!0}=e,h=isNameInFieldArray(s._names.array,r),d=React.useMemo(()=>get(s._formValues,r,get(s._defaultValues,r,a)),[s,r,a]),F=useWatch({control:s,name:r,defaultValue:d,exact:l}),J=useFormState({control:s,name:r,exact:l}),y=React.useRef(e),q=React.useRef(void 0),H=React.useRef(s.register(r,{...e.rules,value:F,...isBoolean(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const G=React.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(J.errors,r)},isDirty:{enumerable:!0,get:()=>!!get(J.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!get(J.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!get(J.validatingFields,r)},error:{enumerable:!0,get:()=>get(J.errors,r)}}),[J,r]),te=React.useCallback(V=>H.current.onChange({target:{value:getEventValue(V),name:r},type:EVENTS.CHANGE}),[r]),j=React.useCallback(()=>H.current.onBlur({target:{value:get(s._formValues,r),name:r},type:EVENTS.BLUR}),[r,s._formValues]),Z=React.useCallback(V=>{const Q=get(s._fields,r);Q&&Q._f&&V&&(Q._f.ref={focus:()=>isFunction(V.focus)&&V.focus(),select:()=>isFunction(V.select)&&V.select(),setCustomValidity:ee=>isFunction(V.setCustomValidity)&&V.setCustomValidity(ee),reportValidity:()=>isFunction(V.reportValidity)&&V.reportValidity()})},[s._fields,r]),M=React.useMemo(()=>({name:r,value:F,...isBoolean(i)||J.disabled?{disabled:J.disabled||i}:{},onChange:te,onBlur:j,ref:Z}),[r,i,J.disabled,te,j,Z,F]);return React.useEffect(()=>{const V=s._options.shouldUnregister||n,Q=q.current;Q&&Q!==r&&!h&&s.unregister(Q),s.register(r,{...y.current.rules,...isBoolean(y.current.disabled)?{disabled:y.current.disabled}:{}});const ee=(ie,ae)=>{const le=get(s._fields,ie);le&&le._f&&(le._f.mount=ae)};if(ee(r,!0),V){const ie=cloneObject(get(s._options.defaultValues,r,y.current.defaultValue));set(s._defaultValues,r,ie),isUndefined(get(s._formValues,r))&&set(s._formValues,r,ie)}return!h&&s.register(r),q.current=r,()=>{(h?V&&!s._state.action:V)?s.unregister(r):ee(r,!1)}},[r,s,h,n]),React.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),React.useMemo(()=>({field:M,formState:J,fieldState:G}),[M,J,G])}const Controller=e=>e.render(useController(e));function FormField(e){return jsxRuntime.jsx(Controller,{...e})}function assertNever(e){throw new Error(`Unhandled field kind: ${String(e)}`)}function FieldRenderer({form:e,field:t}){return jsxRuntime.jsx(FormField,{control:e.control,name:t.name,render:({field:r,fieldState:{error:i}})=>{const s=l=>t.normalize?t.normalize(l):l,n=()=>{t.deps?.onChangeTrigger&&e.trigger(t.deps.onChangeTrigger)},a={className:t.className,error:i?.message,required:!t.schema?.isOptional?.()};switch(t.kind){case"input":case"password":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx(Input,{type:t.kind==="password"?"password":void 0,placeholder:t.placeholder,value:r.value??"",onChange:l=>{const h=l.target.value;r.onChange(s(h)),n()},onBlur:r.onBlur})}),jsxRuntime.jsx(FieldMessage,{})]});case"textarea":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx("textarea",{value:r.value??"",placeholder:t.placeholder,rows:4,onChange:l=>{r.onChange(s(l.target.value)),n()},onBlur:r.onBlur})}),jsxRuntime.jsx(FieldMessage,{})]});case"select":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsxs(Select,{value:r.value??"",onValueChange:l=>{r.onChange(s(l||void 0)),n()},children:[jsxRuntime.jsx(SelectTrigger,{children:jsxRuntime.jsx(SelectValue,{})}),jsxRuntime.jsx(SelectContent,{children:(t.options??[]).map(l=>jsxRuntime.jsx(SelectItem,{value:String(l.value),children:l.label},l.value))})]})}),jsxRuntime.jsx(FieldMessage,{})]});case"toggle":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx(Toggle,{checked:!!r.value,onChange:l=>{r.onChange(s(l)),n()}})}),jsxRuntime.jsx(FieldMessage,{})]});case"checkbox":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsxs("label",{className:"oniratec-checkbox",children:[jsxRuntime.jsx("input",{type:"checkbox",checked:!!r.value,onChange:l=>{r.onChange(s(l.target.checked)),n()},onBlur:r.onBlur}),jsxRuntime.jsx("span",{children:t.label})]})}),jsxRuntime.jsx(FieldMessage,{})]});default:return assertNever(t.kind)}}})}function flattenRow(e){return Array.isArray(e)?e:[e]}function FormFactoryRenderer({config:e,form:t,onSubmitAction:r,submitLabel:i,maxWidthClass:s}){const n=t.getValues();return jsxRuntime.jsx(FormProvider,{...t,children:jsxRuntime.jsxs("form",{onSubmit:t.handleSubmit(r),className:cn("space-y-8",s),children:[e.sections.map(a=>jsxRuntime.jsxs("section",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"oniratec-form__section-title",children:a.title}),jsxRuntime.jsx("div",{className:"space-y-4",children:a.fields.map((l,h)=>{const d=flattenRow(l).filter(y=>!y.hidden?.(n));if(!d.length)return null;const F=d.reduce((y,q)=>y+(q.colSpan??1),0),J=F>1?cn("grid gap-4",F===2&&"grid-cols-2",F===3&&"grid-cols-3",F===4&&"grid-cols-4"):"";return jsxRuntime.jsx("div",{className:J,children:d.map(y=>jsxRuntime.jsx("div",{className:y.colSpan?`col-span-${y.colSpan}`:void 0,children:jsxRuntime.jsx(FieldRenderer,{form:t,field:y})},y.name))},h)})})]},a.title)),jsxRuntime.jsx("div",{className:"oniratec-form__actions",children:jsxRuntime.jsx(Button,{type:"submit",loading:t.formState.isSubmitting,children:i})})]})})}exports.Box=Box;exports.Button=Button;exports.Card=Card;exports.CardContent=CardContent;exports.CardHeader=CardHeader;exports.CardTitle=CardTitle;exports.DataTable=DataTable;exports.DropdownMenu=DropdownMenu;exports.DropdownMenuCheckboxItem=DropdownMenuCheckboxItem;exports.DropdownMenuContent=DropdownMenuContent;exports.DropdownMenuGroup=DropdownMenuGroup;exports.DropdownMenuItem=DropdownMenuItem;exports.DropdownMenuLabel=DropdownMenuLabel;exports.DropdownMenuPortal=DropdownMenuPortal;exports.DropdownMenuRadioGroup=DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=DropdownMenuRadioItem;exports.DropdownMenuSeparator=DropdownMenuSeparator;exports.DropdownMenuSub=DropdownMenuSub;exports.DropdownMenuSubContent=DropdownMenuSubContent;exports.DropdownMenuSubTrigger=DropdownMenuSubTrigger;exports.DropdownMenuTrigger=DropdownMenuTrigger;exports.Field=Field;exports.FieldControl=FieldControl;exports.FieldLabel=FieldLabel;exports.FieldMessage=FieldMessage;exports.FormFactoryRenderer=FormFactoryRenderer;exports.Input=Input;exports.Logo=Logo;exports.NotFoundState=NotFoundState;exports.PageSizeSelector=PageSizeSelector;exports.Pagination=Pagination;exports.PasswordInput=PasswordInput;exports.PersonAvatar=PersonAvatar;exports.ProfileAvatar=ProfileAvatar;exports.Select=Select;exports.Skeleton=Skeleton;exports.Toggle=Toggle;exports.Tooltip=Tooltip;exports.TooltipContent=TooltipContent;exports.TooltipProvider=TooltipProvider;exports.TooltipTrigger=TooltipTrigger;exports.buildDefaultValues=buildDefaultValues;exports.buildZodSchema=buildZodSchema;exports.darkTheme=darkTheme;exports.defaultTheme=defaultTheme;exports.lightTheme=lightTheme;exports.useField=useField;
|
|
42
|
+
//# sourceMappingURL=index.cjs.map
|