PageSourceSearch

https://www.westx.ai/assets/index-Rm-lApKj.js

js westx.ai collected 2026-10-05 17:07:50 UTC 1,195,003 bytes, 353 lines download raw bytes

vendor: 6,511 bytes, line 1
1(function(){const y=document.createElement("link").relList;if(y&&y.supports&&y.supports("modulepreload"))return;for(const R of document.querySelectorAll('link[rel="modulepreload"]'))b(R);new MutationObserver(R=>{for(const M of R)if(M.type==="childList")for(const O of M.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&b(O)}).observe(document,{childList:!0,subtree:!0});function x(R){const M={};return R.integrity&&(M.integrity=R.integrity),R.referrerPolicy&&(M.referrerPolicy=R.referrerPolicy),R.crossOrigin==="use-credentials"?M.credentials="include":R.crossOrigin==="anonymous"?M.credentials="omit":M.credentials="same-origin",M}function b(R){if(R.ep)return;R.ep=!0;const M=x(R);fetch(R.href,M)}})();function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var r=Symbol.for("react.transitional.element"),y=Symbol.for("react.fragment");function x(b,R,M){var O=null;if(M!==void 0&&(O=""+M),R.key!==void 0&&(O=""+R.key),"key"in R){M={};for(var z in R)z!=="key"&&(M[z]=R[z])}else M=R;return R=M.ref,{$$typeof:r,type:b,key:O,ref:R!==void 0?R:null,props:M}}return reactJsxRuntime_production.Fragment=y,reactJsxRuntime_production.jsx=x,reactJsxRuntime_production.jsxs=x,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),react={exports:{}},react_production={};var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var r=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),G=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),X=Symbol.iterator;function fe(Le){return Le===null||typeof Le!="object"?null:(Le=X&&Le[X]||Le["@@iterator"],typeof Le=="function"?Le:null)}var te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ue=Object.assign,ye={};function oe(Le,Ge,Ke){this.props=Le,this.context=Ge,this.refs=ye,this.updater=Ke||te}oe.prototype.isReactComponent={},oe.prototype.setState=function(Le,Ge){if(typeof Le!="object"&&typeof Le!="function"&&Le!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Le,Ge,"setState")},oe.prototype.forceUpdate=function(Le){this.updater.enqueueForceUpdate(this,Le,"forceUpdate")};function ne(){}ne.prototype=oe.prototype;function ae(Le,Ge,Ke){this.props=Le,this.context=Ge,this.refs=ye,this.updater=Ke||te}var pe=ae.prototype=new ne;pe.constructor=ae,ue(pe,oe.prototype),pe.isPureReactComponent=!0;var je=Array.isArray;function Ve(){}var Ue={H:null,A:null,T:null,S:null},$e=Object.prototype.hasOwnProperty;function We(Le,Ge,Ke){var Ze=Ke.ref;return{$$typeof:r,type:Le,key:Ge,ref:Ze!==void 0?Ze:null,props:Ke}}function ot(Le,Ge){return We(Le.type,Ge,Le.props)}function ct(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===r}function it(Le){var Ge={"=":"=0",":":"=2"};return"$"+Le.replace(/[=:]/g,function(Ke){return Ge[Ke]})}var ft=/\/+/g;function dt(Le,Ge){return typeof Le=="object"&&Le!==null&&Le.key!=null?it(""+Le.key):Ge.toString(36)}function nt(Le){switch(Le.status){case"fulfilled":return Le.value;case"rejected":throw Le.reason;default:switch(typeof Le.status=="string"?Le.then(Ve,Ve):(Le.status="pending",Le.then(function(Ge){Le.status==="pending"&&(Le.status="fulfilled",Le.value=Ge)},function(Ge){Le.status==="pending"&&(Le.status="rejected",Le.reason=Ge)})),Le.status){case"fulfilled":return Le.value;case"rejected":throw Le.reason}}throw Le}function Ne(Le,Ge,Ke,Ze,ut){var pt=typeof Le;(pt==="undefined"||pt==="boolean")&&(Le=null);var xt=!1;if(Le===null)xt=!0;else switch(pt){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(Le.$$typeof){case r:case y:xt=!0;break;case q:return xt=Le._init,Ne(xt(Le._payload),Ge,Ke,Ze,ut)}}if(xt)return ut=ut(Le),xt=Ze===""?"."+dt(Le,0):Ze,je(ut)?(Ke="",xt!=null&&(Ke=xt.replace(ft,"$&/")+"/"),Ne(ut,Ge,Ke,"",function(Yt){return Yt})):ut!=null&&(ct(ut)&&(ut=ot(ut,Ke+(ut.key==null||Le&&Le.key===ut.key?"":(""+ut.key).replace(ft,"$&/")+"/")+xt)),Ge.push(ut)),1;xt=0;var Nt=Ze===""?".":Ze+":";if(je(Le))for(var kt=0;kt<Le.length;kt++)Ze=Le[kt],pt=Nt+dt(Ze,kt),xt+=Ne(Ze,Ge,Ke,pt,ut);else if(kt=fe(Le),typeof kt=="function")for(Le=kt.call(Le),kt=0;!(Ze=Le.next()).done;)Ze=Ze.value,pt=Nt+dt(Ze,kt++),xt+=Ne(Ze,Ge,Ke,pt,ut);else if(pt==="object"){if(typeof Le.then=="function")return Ne(nt(Le),Ge,Ke,Ze,ut);throw Ge=String(Le),Error("Objects are not valid as a React child (found: "+(Ge==="[object Object]"?"object with keys {"+Object.keys(Le).join(", ")+"}":Ge)+"). If you meant to render a collection of children, use an array instead.")}return xt}function He(Le,Ge,Ke){if(Le==null)return Le;var Ze=[],ut=0;return Ne(Le,Ze,"","",function(pt){return Ge.call(Ke,pt,ut++)}),Ze}function _e(Le){if(Le._status===-1){var Ge=Le._result;Ge=Ge(),Ge.then(function(Ke){(Le._status===0||Le._status===-1)&&(Le._status=1,Le._result=Ke)},function(Ke){(Le._status===0||Le._status===-1)&&(Le._status=2,Le._result=Ke)}),Le._status===-1&&(Le._status=0,Le._result=Ge)}if(Le._status===1)return Le._result.default;throw Le._result}var Be=typeof reportError=="function"?reportError:function(Le){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Ge=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Le=="object"&&Le!==null&&typeof Le.message=="string"?String(Le.message):String(Le),error:Le});if(!window.dispatchEvent(Ge))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Le);return}console.error(Le)},Ye={map:He,forEach:function(Le,Ge,Ke){He(Le,function(){Ge.apply(this,arguments)},Ke)},count:function(Le){var Ge=0;return He(Le,function(){Ge++}
vendor: 13,133 bytes, line 1
1),Ge},toArray:function(Le){return He(Le,function(Ge){return Ge})||[]},only:function(Le){if(!ct(Le))throw Error("React.Children.only expected to receive a single React element child.");return Le}};return react_production.Activity=J,react_production.Children=Ye,react_production.Component=oe,react_production.Fragment=x,react_production.Profiler=R,react_production.PureComponent=ae,react_production.StrictMode=b,react_production.Suspense=U,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ue,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(Le){return Ue.H.useMemoCache(Le)}},react_production.cache=function(Le){return function(){return Le.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(Le,Ge,Ke){if(Le==null)throw Error("The argument must be a React element, but you passed "+Le+".");var Ze=ue({},Le.props),ut=Le.key;if(Ge!=null)for(pt in Ge.key!==void 0&&(ut=""+Ge.key),Ge)!$e.call(Ge,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&Ge.ref===void 0||(Ze[pt]=Ge[pt]);var pt=arguments.length-2;if(pt===1)Ze.children=Ke;else if(1<pt){for(var xt=Array(pt),Nt=0;Nt<pt;Nt++)xt[Nt]=arguments[Nt+2];Ze.children=xt}return We(Le.type,ut,Ze)},react_production.createContext=function(Le){return Le={$$typeof:O,_currentValue:Le,_currentValue2:Le,_threadCount:0,Provider:null,Consumer:null},Le.Provider=Le,Le.Consumer={$$typeof:M,_context:Le},Le},react_production.createElement=function(Le,Ge,Ke){var Ze,ut={},pt=null;if(Ge!=null)for(Ze in Ge.key!==void 0&&(pt=""+Ge.key),Ge)$e.call(Ge,Ze)&&Ze!=="key"&&Ze!=="__self"&&Ze!=="__source"&&(ut[Ze]=Ge[Ze]);var xt=arguments.length-2;if(xt===1)ut.children=Ke;else if(1<xt){for(var Nt=Array(xt),kt=0;kt<xt;kt++)Nt[kt]=arguments[kt+2];ut.children=Nt}if(Le&&Le.defaultProps)for(Ze in xt=Le.defaultProps,xt)ut[Ze]===void 0&&(ut[Ze]=xt[Ze]);return We(Le,pt,ut)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(Le){return{$$typeof:z,render:Le}},react_production.isValidElement=ct,react_production.lazy=function(Le){return{$$typeof:q,_payload:{_status:-1,_result:Le},_init:_e}},react_production.memo=function(Le,Ge){return{$$typeof:G,type:Le,compare:Ge===void 0?null:Ge}},react_production.startTransition=function(Le){var Ge=Ue.T,Ke={};Ue.T=Ke;try{var Ze=Le(),ut=Ue.S;ut!==null&&ut(Ke,Ze),typeof Ze=="object"&&Ze!==null&&typeof Ze.then=="function"&&Ze.then(Ve,Be)}catch(pt){Be(pt)}finally{Ge!==null&&Ke.types!==null&&(Ge.types=Ke.types),Ue.T=Ge}},react_production.unstable_useCacheRefresh=function(){return Ue.H.useCacheRefresh()},react_production.use=function(Le){return Ue.H.use(Le)},react_production.useActionState=function(Le,Ge,Ke){return Ue.H.useActionState(Le,Ge,Ke)},react_production.useCallback=function(Le,Ge){return Ue.H.useCallback(Le,Ge)},react_production.useContext=function(Le){return Ue.H.useContext(Le)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(Le,Ge){return Ue.H.useDeferredValue(Le,Ge)},react_production.useEffect=function(Le,Ge){return Ue.H.useEffect(Le,Ge)},react_production.useEffectEvent=function(Le){return Ue.H.useEffectEvent(Le)},react_production.useId=function(){return Ue.H.useId()},react_production.useImperativeHandle=function(Le,Ge,Ke){return Ue.H.useImperativeHandle(Le,Ge,Ke)},react_production.useInsertionEffect=function(Le,Ge){return Ue.H.useInsertionEffect(Le,Ge)},react_production.useLayoutEffect=function(Le,Ge){return Ue.H.useLayoutEffect(Le,Ge)},react_production.useMemo=function(Le,Ge){return Ue.H.useMemo(Le,Ge)},react_production.useOptimistic=function(Le,Ge){return Ue.H.useOptimistic(Le,Ge)},react_production.useReducer=function(Le,Ge,Ke){return Ue.H.useReducer(Le,Ge,Ke)},react_production.useRef=function(Le){return Ue.H.useRef(Le)},react_production.useState=function(Le){return Ue.H.useState(Le)},react_production.useSyncExternalStore=function(Le,Ge,Ke){return Ue.H.useSyncExternalStore(Le,Ge,Ke)},react_production.useTransition=function(){return Ue.H.useTransition()},react_production.version="19.2.3",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactExports=requireReact();const React3=getDefaultExportFromCjs(reactExports);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(r){function y(Ne,He){var _e=Ne.length;Ne.push(He);e:for(;0<_e;){var Be=_e-1>>>1,Ye=Ne[Be];if(0<R(Ye,He))Ne[Be]=He,Ne[_e]=Ye,_e=Be;else break e}}function x(Ne){return Ne.length===0?null:Ne[0]}function b(Ne){if(Ne.length===0)return null;var He=Ne[0],_e=Ne.pop();if(_e!==He){Ne[0]=_e;e:for(var Be=0,Ye=Ne.length,Le=Ye>>>1;Be<Le;){var Ge=2*(Be+1)-1,Ke=Ne[Ge],Ze=Ge+1,ut=Ne[Ze];if(0>R(Ke,_e))Ze<Ye&&0>R(ut,Ke)?(Ne[Be]=ut,Ne[Ze]=_e,Be=Ze):(Ne[Be]=Ke,Ne[Ge]=_e,Be=Ge);else if(Ze<Ye&&0>R(ut,_e))Ne[Be]=ut,Ne[Ze]=_e,Be=Ze;else break e}}return He}function R(Ne,He){var _e=Ne.sortIndex-He.sortIndex;return _e!==0?_e:Ne.id-He.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var M=performance;r.unstable_now=function(){return M.now()}}else{var O=Date,z=O.now();r.unstable_now=function(){return O.now()-z}}var U=[],G=[],q=1,J=null,X=3,fe=!1,te=!1,ue=!1,ye=!1,oe=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;function pe(Ne){for(var He=x(G);He!==null;){if(He.callback===null)b(G);else if(He.startTime<=Ne)b(G),He.sortIndex=He.expirationTime,y(U,He);else break;He=x(G)}}function je(Ne){if(ue=!1,pe(Ne),!te)if(x(U)!==null)te=!0,Ve||(Ve=!0,it());else{var He=x(G);He!==null&&nt(je,He.startTime-Ne)}}var Ve=!1,Ue=-1,$e=5,We=-1;function ot(){return ye?!0:!(r.unstable_now()-We<$e)}function ct(){if(ye=!1,Ve){var Ne=r.unstable_now();We=Ne;var He=!0;try{e:{te=!1,ue&&(ue=!1,ne(Ue),Ue=-1),fe=!0;var _e=X;try{t:{for(pe(Ne),J=x(U);J!==null&&!(J.expirationTime>Ne&&ot());){var Be=J.callback;if(typeof Be=="function"){J.callback=null,X=J.priorityLevel;var Ye=Be(J.expirationTime<=Ne);if(Ne=r.unstable_now(),typeof Ye=="function"){J.callback=Ye,pe(Ne),He=!0;break t}J===x(U)&&b(U),pe(Ne)}else b(U);J=x(U)}if(J!==null)He=!0;else{var Le=x(G);Le!==null&&nt(je,Le.startTime-Ne),He=!1}}break e}finally{J=null,X=_e,fe=!1}He=void 0}}finally{He?it():Ve=!1}}}var it;if(typeof ae=="function")it=function(){ae(ct)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,dt=ft.port2;ft.port1.onmessage=ct,it=function(){dt.postMessage(null)}}else it=function(){oe(ct,0)};function nt(Ne,He){Ue=oe(function(){Ne(r.unstable_now())},He)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(Ne){Ne.callback=null},r.unstable_forceFrameRate=function(Ne){0>Ne||125<Ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$e=0<Ne?Math.floor(1e3/Ne):5},r.unstable_getCurrentPriorityLevel=function(){return X},r.unstable_next=function(Ne){switch(X){case 1:case 2:case 3:var He=3;break;default:He=X}var _e=X;X=He;try{return Ne()}finally{X=_e}},r.unstable_requestPaint=function(){ye=!0},r.unstable_runWithPriority=function(Ne,He){switch(Ne){case 1:case 2:case 3:case 4:case 5:break;default:Ne=3}var _e=X;X=Ne;try{return He()}finally{X=_e}},r.unstable_scheduleCallback=function(Ne,He,_e){var Be=r.unstable_now();switch(typeof _e=="object"&&_e!==null?(_e=_e.delay,_e=typeof _e=="number"&&0<_e?Be+_e:Be):_e=Be,Ne){case 1:var Ye=-1;break;case 2:Ye=250;break;case 5:Ye=1073741823;break;case 4:Ye=1e4;break;default:Ye=5e3}return Ye=_e+Ye,Ne={id:q++,callback:He,priorityLevel:Ne,startTime:_e,expirationTime:Ye,sortIndex:-1},_e>Be?(Ne.sortIndex=_e,y(G,Ne),x(U)===null&&Ne===x(G)&&(ue?(ne(Ue),Ue=-1):ue=!0,nt(je,_e-Be))):(Ne.sortIndex=Ye,y(U,Ne),te||fe||(te=!0,Ve||(Ve=!0,it()))),Ne},r.unstable_shouldYield=ot,r.unstable_wrapCallback=function(Ne){var He=X;return function(){var _e=X;X=He;try{return Ne.apply(this,arguments)}finally{X=_e}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var r=requireReact();function y(U){var G="https://react.dev/errors/"+U;if(1<arguments.length){G+="?args[]="+encodeURIComponent(arguments[1]);for(var q=2;q<arguments.length;q++)G+="&args[]="+encodeURIComponent(arguments[q])}return"Minified React error #"+U+"; visit "+G+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(){}var b={d:{f:x,r:function(){throw Error(y(522))},D:x,C:x,L:x,m:x,X:x,S:x,M:x},p:0,findDOMNode:null},R=Symbol.for("react.portal");function M(U,G,q){var J=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:J==null?null:""+J,children:U,containerInfo:G,implementation:q}}var O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function z(U,G){if(U==="font")return"";if(typeof G=="string")return G==="use-credentials"?G:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,reactDom_production.createPortal=function(U,G){var q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!G||G.nodeType!==1&&G.nodeType!==9&&G.nodeType!==11)throw Error(y(299));return M(U,G,null,q)},reactDom_production.flushSync=function(U){var G=O.T,q=b.p;try{if(O.T=null,b.p=2,U)return U()}finally{O.T=G,b.p=q,b.d.f()}},reactDom_production.preconnect=function(U,G){typeof U=="string"&&(G?(G=G.crossOrigin,G=typeof G=="string"?G==="use-credentials"?G:"":void 0):G=null,b.d.C(U,G))},reactDom_production.prefetchDNS=function(U){typeof U=="string"&&b.d.D(U)},reactDom_production.preinit=function(U,G){if(typeof U=="string"&&G&&typeof G.as=="string"){var q=G.as,J=z(q,G.crossOrigin),X=typeof G.integrity=="string"?G.integrity:void 0,fe=typeof G.fetchPriority=="string"?G.fetchPriority:void 0;q==="style"?b.d.S(U,typeof G.precedence=="string"?G.precedence:void 0,{crossOrigin:J,integrity:X,fetchPriority:fe}):q==="script"&&b.d.X(U,{crossOrigin:J,integrity:X,fetchPriority:fe,nonce:typeof G.nonce=="string"?G.nonce:void 0})}},reactDom_production.preinitModule=function(U,G){if(typeof U=="string")if(typeof G=="object"&&G!==null){if(G.as==null||G.as==="script"){var q=z(G.as,G.crossOrigin);b.d.M(U,{crossOrigin:q,integrity:typeof G.integrity=="string"?G.integrity:void 0,nonce:typeof G.nonce=="string"?G.nonce:void 0})}}else G==null&&b.d.M(U)},reactDom_production.preload=function(U,G){if(typeof U=="string"&&typeof G=="object"&&G!==null&&typeof G.as=="string"){var q=G.as,J=z(q,G.crossOrigin);b.d.L(U,q,{crossOrigin:J,integrity:typeof G.integrity=="string"?G.integrity:void 0,nonce:typeof G.nonce=="string"?G.nonce:void 0,type:typeof G.type=="string"?G.type:void 0,fetchPriority:typeof G.fetchPriority=="string"?G.fetchPriority:void 0,referrerPolicy:typeof G.referrerPolicy=="string"?G.referrerPolicy:void 0,imageSrcSet:typeof G.imageSrcSet=="string"?G.imageSrcSet:void 0,imageSizes:typeof G.imageSizes=="string"?G.imageSizes:void 0,media:typeof G.media=="string"?G.media:void 0})}},reactDom_production.preloadModule=function(U,G){if(typeof U=="string")if(G){var q=z(G.as,G.crossOrigin);b.d.m(U,{as:typeof G.as=="string"&&G.as!=="script"?G.as:void 0,crossOrigin:q,integrity:typeof G.integrity=="string"?G.integrity:void 0})}else b.d.m(U)},reactDom_production.requestFormReset=function(U){b.d.r(U)},reactDom_production.unstable_batchedUpdates=function(U,G){return U(G)},reactDom_production.useFormState=function(U,G,q){return O.H.useFormState(U,G,q)},reactDom_production.useFormStatus=function(){return O.H.useHostTransitionStatus()},reactDom_production.version="19.2.3",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(y){console.error(y)}}return r(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var r=requireScheduler(),y=requireReact(),x=requireReactDom();function b(T){var A="https://react.dev/errors/"+T;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var I=2;I<arguments.length;
vendor: 9,365 bytes, lines 1-8
1I++)A+="&args[]="+encodeURIComponent(arguments[I])}return"Minified React error #"+T+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function R(T){return!(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)}function M(T){var A=T,I=T;if(T.alternate)for(;A.return;)A=A.return;else{T=A;do A=T,(A.flags&4098)!==0&&(I=A.return),T=A.return;while(T)}return A.tag===3?I:null}function O(T){if(T.tag===13){var A=T.memoizedState;if(A===null&&(T=T.alternate,T!==null&&(A=T.memoizedState)),A!==null)return A.dehydrated}return null}function z(T){if(T.tag===31){var A=T.memoizedState;if(A===null&&(T=T.alternate,T!==null&&(A=T.memoizedState)),A!==null)return A.dehydrated}return null}function U(T){if(M(T)!==T)throw Error(b(188))}function G(T){var A=T.alternate;if(!A){if(A=M(T),A===null)throw Error(b(188));return A!==T?null:T}for(var I=T,B=A;;){var K=I.return;if(K===null)break;var ee=K.alternate;if(ee===null){if(B=K.return,B!==null){I=B;continue}break}if(K.child===ee.child){for(ee=K.child;ee;){if(ee===I)return U(K),T;if(ee===B)return U(K),A;ee=ee.sibling}throw Error(b(188))}if(I.return!==B.return)I=K,B=ee;else{for(var xe=!1,ze=K.child;ze;){if(ze===I){xe=!0,I=K,B=ee;break}if(ze===B){xe=!0,B=K,I=ee;break}ze=ze.sibling}if(!xe){for(ze=ee.child;ze;){if(ze===I){xe=!0,I=ee,B=K;break}if(ze===B){xe=!0,B=ee,I=K;break}ze=ze.sibling}if(!xe)throw Error(b(189))}}if(I.alternate!==B)throw Error(b(190))}if(I.tag!==3)throw Error(b(188));return I.stateNode.current===I?T:A}function q(T){var A=T.tag;if(A===5||A===26||A===27||A===6)return T;for(T=T.child;T!==null;){if(A=q(T),A!==null)return A;T=T.sibling}return null}var J=Object.assign,X=Symbol.for("react.element"),fe=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),ue=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),Ve=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),We=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function it(T){return T===null||typeof T!="object"?null:(T=ct&&T[ct]||T["@@iterator"],typeof T=="function"?T:null)}var ft=Symbol.for("react.client.reference");function dt(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===ft?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case ue:return"Fragment";case oe:return"Profiler";case ye:return"StrictMode";case je:return"Suspense";case Ve:return"SuspenseList";case We:return"Activity"}if(typeof T=="object")switch(T.$$typeof){case te:return"Portal";case ae:return T.displayName||"Context";case ne:return(T._context.displayName||"Context")+".Consumer";case pe:var A=T.render;return T=T.displayName,T||(T=A.displayName||A.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case Ue:return A=T.displayName||null,A!==null?A:dt(T.type)||"Memo";case $e:A=T._payload,T=T._init;try{return dt(T(A))}catch{}}return null}var nt=Array.isArray,Ne=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=x.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e={pending:!1,data:null,method:null,action:null},Be=[],Ye=-1;function Le(T){return{current:T}}function Ge(T){0>Ye||(T.current=Be[Ye],Be[Ye]=null,Ye--)}function Ke(T,A){Ye++,Be[Ye]=T.current,T.current=A}var Ze=Le(null),ut=Le(null),pt=Le(null),xt=Le(null);function Nt(T,A){switch(Ke(pt,A),Ke(ut,T),Ke(Ze,null),A.nodeType){case 9:case 11:T=(T=A.documentElement)&&(T=T.namespaceURI)?Uf(T):0;break;default:if(T=A.tagName,A=A.namespaceURI)A=Uf(A),T=Hf(A,T);else switch(T){case"svg":T=1;break;case"math":T=2;break;default:T=0}}Ge(Ze),Ke(Ze,T)}function kt(){Ge(Ze),Ge(ut),Ge(pt)}function Yt(T){T.memoizedState!==null&&Ke(xt,T);var A=Ze.current,I=Hf(A,T.type);A!==I&&(Ke(ut,T),Ke(Ze,I))}function qt(T){ut.current===T&&(Ge(Ze),Ge(ut)),xt.current===T&&(Ge(xt),zs._currentValue=_e)}var ir,jt;function mt(T){if(ir===void 0)try{throw Error()}catch(I){var A=I.stack.trim().match(/\n( *(at )?)/);ir=A&&A[1]||"",jt=-1<I.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<I.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+ir+T+jt}var mr=!1;function br(T,A){if(!T||mr)return"";mr=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var B={DetermineComponentFrameRoot:function(){try{if(A){var lt=function(){throw Error()};if(Object.defineProperty(lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(lt,[])}catch(rt){var tt=rt}Reflect.construct(T,[],lt)}else{try{lt.call()}catch(rt){tt=rt}T.call(lt.prototype)}}else{try{throw Error()}catch(rt){tt=rt}(lt=T())&&typeof lt.catch=="function"&&lt.catch(function(){})}}catch(rt){if(rt&&tt&&typeof rt.stack=="string")return[rt.stack,tt.stack]}return[null,null]}};B.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var K=Object.getOwnPropertyDescriptor(B.DetermineComponentFrameRoot,"name");K&&K.configurable&&Object.defineProperty(B.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ee=B.DetermineComponentFrameRoot(),xe=ee[0],ze=ee[1];if(xe&&ze){var qe=xe.split(`
4`),et=ze.split(`
5`);for(K=B=0;B<qe.length&&!qe[B].includes("DetermineComponentFrameRoot");)B++;for(;K<et.length&&!et[K].includes("DetermineComponentFrameRoot");)K++;if(B===qe.length||K===et.length)for(B=qe.length-1,K=et.length-1;1<=B&&0<=K&&qe[B]!==et[K];)K--;for(;1<=B&&0<=K;B--,K--)if(qe[B]!==et[K]){if(B!==1||K!==1)do if(B--,K--,0>K||qe[B]!==et[K]){var st=`
6`+qe[B].replace(" at new "," at ");return T.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",T.displayName)),st}while(1<=B&&0<=K);break}}}finally{mr=!1,Error.prepareStackTrace=I}return(I=T?T.displayName||T.name:"")?mt(I):""}function Er(T,A){switch(T.tag){case 26:case 27:case 5:return mt(T.type);case 16:return mt("Lazy");case 13:return T.child!==A&&A!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return br(T.type,!1);case 11:return br(T.type.render,!1);case 1:return br(T.type,!0);case 31:return mt("Activity");default:return""}}function gr(T){try{var A="",I=null;do A+=Er(T,I),I=T,T=T.return;while(T);return A}catch(B){return`
7Error generating stack: `+B.message+`
8`+B.stack}}var yr=Object.prototype.hasOwnProperty,vr=r.unstable_scheduleCallback,ht=r.unstable_cancelCallback,Et=r.unstable_shouldYield,Tt=r.unstable_requestPaint,At=r.unstable_now,sr=r.unstable_getCurrentPriorityLevel,pr=r.unstable_ImmediatePriority,Br=r.unstable_UserBlockingPriority,Qr=r.unstable_NormalPriority,Pr=r.unstable_LowPriority,wi=r.unstable_IdlePriority,bc=r.log,Vr=r.unstable_setDisableYieldValue,Wi=null,jr=null;function Ti(T){if(typeof bc=="function"&&Vr(T),jr&&typeof jr.setStrictMode=="function")try{jr.setStrictMode(Wi,T)}catch{}}var Mr=Math.clz32?Math.clz32:Td,Sd=Math.log,wd=Math.LN2;function Td(T){return T>>>=0,T===0?32:31-(Sd(T)/wd|0)|0}var Gs=256,qs=262144,Ks=4194304;function Xi(T){var A=T&42;if(A!==0)return A;switch(T&-T){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return T&261888;case 262144:case 524288:case 1048576:case 2097152:return T&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return T&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return T}}function Ys(T,A,I){var B=T.pendingLanes;if(B===0)return 0;var K=0,ee=T.suspendedLanes,xe=T.pingedLanes;T=T.warmLanes;var ze=B&134217727;return ze!==0?(B=ze&~ee,B!==0?K=Xi(B):(xe&=ze,xe!==0?K=Xi(xe):I||(I=ze&~T,I!==0&&(K=Xi(I))))):(ze=B&~ee,ze!==0?K=Xi(ze):xe!==0?K=Xi(xe):I||(I=B&~T,I!==0&&(K=Xi(I)))),K===0?0:A!==0&&A!==K&&(A&ee)===0&&(ee=K&-K,I=A&-A,ee>=I||ee===32&&(I&4194048)!==0)?A:K}function es(T,A){return(T.pendingLanes&~(T.suspendedLanes&~T.pingedLanes)&A)===0}function Cd(T,A){switch(T){case 1:case 2:case 4:case 8:case 64:return A+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return A+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ec(){var T=Ks;return Ks<<=1,(Ks&62914560)===0&&(Ks=4194304),T}function oo(T){for(var A=[],I=0;31>I;I++)A.push(T);return A}function ts(T,A){T.pendingLanes|=A,A!==268435456&&(T.suspendedLanes=0,T.pingedLanes=0,T.warmLanes=0)}function Rd(T,A,I,B,K,ee){var xe=T.pendingLanes;T.pendingLanes=I,T.suspendedLanes=0,T.pingedLanes=0,T.warmLanes=0,T.expiredLanes&=I,T.entangledLanes&=I,T.errorRecoveryDisabledLanes&=I,T.shellSuspendCounter=0;var ze=T.entanglements,qe=T.expirationTimes,et=T.hiddenUpdates;for(I=xe&~I;0<I;){var st=31-Mr(I),lt=1<<st;ze[st]=0,qe[st]=-1;var tt=et[st];if(tt!==null)for(et[st]=null,st=0;st<tt.length;st++){var rt=tt[st];rt!==null&&(rt.lane&=-536870913)}I&=~lt}B!==0&&Sc(T,B,0),ee!==0&&K===0&&T.tag!==0&&(T.suspendedLanes|=ee&~(xe&~A))}
vendor: 8,843 bytes, line 8
8function Sc(T,A,I){T.pendingLanes|=A,T.suspendedLanes&=~A;var B=31-Mr(A);T.entangledLanes|=A,T.entanglements[B]=T.entanglements[B]|1073741824|I&261930}function wc(T,A){var I=T.entangledLanes|=A;for(T=T.entanglements;I;){var B=31-Mr(I),K=1<<B;K&A|T[B]&A&&(T[B]|=A),I&=~K}}function Tc(T,A){var I=A&-A;return I=(I&42)!==0?1:lo(I),(I&(T.suspendedLanes|A))!==0?0:I}function lo(T){switch(T){case 2:T=1;break;case 8:T=4;break;case 32:T=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:T=128;break;case 268435456:T=134217728;break;default:T=0}return T}function co(T){return T&=-T,2<T?8<T?(T&134217727)!==0?32:268435456:8:2}function Cc(){var T=He.p;return T!==0?T:(T=window.event,T===void 0?32:dd(T.type))}function Rc(T,A){var I=He.p;try{return He.p=T,A()}finally{He.p=I}}var Ci=Math.random().toString(36).slice(2),lr="__reactFiber$"+Ci,Sr="__reactProps$"+Ci,gn="__reactContainer$"+Ci,uo="__reactEvents$"+Ci,Ad="__reactListeners$"+Ci,_d="__reactHandles$"+Ci,Ac="__reactResources$"+Ci,rs="__reactMarker$"+Ci;function ho(T){delete T[lr],delete T[Sr],delete T[uo],delete T[Ad],delete T[_d]}function yn(T){var A=T[lr];if(A)return A;for(var I=T.parentNode;I;){if(A=I[gn]||I[lr]){if(I=A.alternate,A.child!==null||I!==null&&I.child!==null)for(T=Xf(T);T!==null;){if(I=T[lr])return I;T=Xf(T)}return A}T=I,I=T.parentNode}return null}function vn(T){if(T=T[lr]||T[gn]){var A=T.tag;if(A===5||A===6||A===13||A===31||A===26||A===27||A===3)return T}return null}function is(T){var A=T.tag;if(A===5||A===26||A===27||A===6)return T.stateNode;throw Error(b(33))}function xn(T){var A=T[Ac];return A||(A=T[Ac]={hoistableStyles:new Map,hoistableScripts:new Map}),A}function ar(T){T[rs]=!0}var _c=new Set,Pc={};function Qi(T,A){bn(T,A),bn(T+"Capture",A)}function bn(T,A){for(Pc[T]=A,T=0;T<A.length;T++)_c.add(A[T])}var Pd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),jc={},Mc={};function jd(T){return yr.call(Mc,T)?!0:yr.call(jc,T)?!1:Pd.test(T)?Mc[T]=!0:(jc[T]=!0,!1)}function Ws(T,A,I){if(jd(A))if(I===null)T.removeAttribute(A);else{switch(typeof I){case"undefined":case"function":case"symbol":T.removeAttribute(A);return;case"boolean":var B=A.toLowerCase().slice(0,5);if(B!=="data-"&&B!=="aria-"){T.removeAttribute(A);return}}T.setAttribute(A,""+I)}}function Xs(T,A,I){if(I===null)T.removeAttribute(A);else{switch(typeof I){case"undefined":case"function":case"symbol":case"boolean":T.removeAttribute(A);return}T.setAttribute(A,""+I)}}function si(T,A,I,B){if(B===null)T.removeAttribute(I);else{switch(typeof B){case"undefined":case"function":case"symbol":case"boolean":T.removeAttribute(I);return}T.setAttributeNS(A,I,""+B)}}function zr(T){switch(typeof T){case"bigint":case"boolean":case"number":case"string":case"undefined":return T;case"object":return T;default:return""}}function kc(T){var A=T.type;return(T=T.nodeName)&&T.toLowerCase()==="input"&&(A==="checkbox"||A==="radio")}function Md(T,A,I){var B=Object.getOwnPropertyDescriptor(T.constructor.prototype,A);if(!T.hasOwnProperty(A)&&typeof B<"u"&&typeof B.get=="function"&&typeof B.set=="function"){var K=B.get,ee=B.set;return Object.defineProperty(T,A,{configurable:!0,get:function(){return K.call(this)},set:function(xe){I=""+xe,ee.call(this,xe)}}),Object.defineProperty(T,A,{enumerable:B.enumerable}),{getValue:function(){return I},setValue:function(xe){I=""+xe},stopTracking:function(){T._valueTracker=null,delete T[A]}}}}function fo(T){if(!T._valueTracker){var A=kc(T)?"checked":"value";T._valueTracker=Md(T,A,""+T[A])}}function Nc(T){if(!T)return!1;var A=T._valueTracker;if(!A)return!0;var I=A.getValue(),B="";return T&&(B=kc(T)?T.checked?"true":"false":T.value),T=B,T!==I?(A.setValue(T),!0):!1}function Qs(T){if(T=T||(typeof document<"u"?document:void 0),typeof T>"u")return null;try{return T.activeElement||T.body}catch{return T.body}}var kd=/[\n"\\]/g;function Ur(T){return T.replace(kd,function(A){return"\\"+A.charCodeAt(0).toString(16)+" "})}function po(T,A,I,B,K,ee,xe,ze){T.name="",xe!=null&&typeof xe!="function"&&typeof xe!="symbol"&&typeof xe!="boolean"?T.type=xe:T.removeAttribute("type"),A!=null?xe==="number"?(A===0&&T.value===""||T.value!=A)&&(T.value=""+zr(A)):T.value!==""+zr(A)&&(T.value=""+zr(A)):xe!=="submit"&&xe!=="reset"||T.removeAttribute("value"),A!=null?mo(T,xe,zr(A)):I!=null?mo(T,xe,zr(I)):B!=null&&T.removeAttribute("value"),K==null&&ee!=null&&(T.defaultChecked=!!ee),K!=null&&(T.checked=K&&typeof K!="function"&&typeof K!="symbol"),ze!=null&&typeof ze!="function"&&typeof ze!="symbol"&&typeof ze!="boolean"?T.name=""+zr(ze):T.removeAttribute("name")}function Ic(T,A,I,B,K,ee,xe,ze){if(ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"&&(T.type=ee),A!=null||I!=null){if(!(ee!=="submit"&&ee!=="reset"||A!=null)){fo(T);return}I=I!=null?""+zr(I):"",A=A!=null?""+zr(A):I,ze||A===T.value||(T.value=A),T.defaultValue=A}B=B??K,B=typeof B!="function"&&typeof B!="symbol"&&!!B,T.checked=ze?T.checked:!!B,T.defaultChecked=!!B,xe!=null&&typeof xe!="function"&&typeof xe!="symbol"&&typeof xe!="boolean"&&(T.name=xe),fo(T)}function mo(T,A,I){A==="number"&&Qs(T.ownerDocument)===T||T.defaultValue===""+I||(T.defaultValue=""+I)}function En(T,A,I,B){if(T=T.options,A){A={};for(var K=0;K<I.length;K++)A["$"+I[K]]=!0;for(I=0;I<T.length;I++)K=A.hasOwnProperty("$"+T[I].value),T[I].selected!==K&&(T[I].selected=K),K&&B&&(T[I].defaultSelected=!0)}else{for(I=""+zr(I),A=null,K=0;K<T.length;K++){if(T[K].value===I){T[K].selected=!0,B&&(T[K].defaultSelected=!0);return}A!==null||T[K].disabled||(A=T[K])}A!==null&&(A.selected=!0)}}function Oc(T,A,I){if(A!=null&&(A=""+zr(A),A!==T.value&&(T.value=A),I==null)){T.defaultValue!==A&&(T.defaultValue=A);return}T.defaultValue=I!=null?""+zr(I):""}function Dc(T,A,I,B){if(A==null){if(B!=null){if(I!=null)throw Error(b(92));if(nt(B)){if(1<B.length)throw Error(b(93));B=B[0]}I=B}I==null&&(I=""),A=I}I=zr(A),T.defaultValue=I,B=T.textContent,B===I&&B!==""&&B!==null&&(T.value=B),fo(T)}function Sn(T,A){if(A){var I=T.firstChild;if(I&&I===T.lastChild&&I.nodeType===3){I.nodeValue=A;return}}T.textContent=A}var Nd=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lc(T,A,I){var B=A.indexOf("--")===0;I==null||typeof I=="boolean"||I===""?B?T.setProperty(A,""):A==="float"?T.cssFloat="":T[A]="":B?T.setProperty(A,I):typeof I!="number"||I===0||Nd.has(A)?A==="float"?T.cssFloat=I:T[A]=(""+I).trim():T[A]=I+"px"}function Fc(T,A,I){if(A!=null&&typeof A!="object")throw Error(b(62));if(T=T.style,I!=null){for(var B in I)!I.hasOwnProperty(B)||A!=null&&A.hasOwnProperty(B)||(B.indexOf("--")===0?T.setProperty(B,""):B==="float"?T.cssFloat="":T[B]="");for(var K in A)B=A[K],A.hasOwnProperty(K)&&I[K]!==B&&Lc(T,K,B)}else for(var ee in A)A.hasOwnProperty(ee)&&Lc(T,ee,A[ee])}function go(T){if(T.indexOf("-")===-1)return!1;switch(T){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Id=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Od=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zs(T){return Od.test(""+T)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":T}function ai(){}var yo=null;function vo(T){return T=T.target||T.srcElement||window,T.correspondingUseElement&&(T=T.correspondingUseElement),T.nodeType===3?T.parentNode:T}var wn=null,Tn=null;function Bc(T){var A=vn(T);if(A&&(T=A.stateNode)){var I=T[Sr]||null;e:switch(T=A.stateNode,A.type){case"input":if(po(T,I.value,I.defaultValue,I.defaultValue,I.checked,I.defaultChecked,I.type,I.name),A=I.name,I.type==="radio"&&A!=null){for(I=T;I.parentNode;)I=I.parentNode;for(I=I.querySelectorAll('input[name="'+Ur(""+A)+'"][type="radio"]'),A=0;A<I.length;A++){var B=I[A];if(B!==T&&B.form===T.form){var K=B[Sr]||null;if(!K)throw Error(b(90));po(B,K.value,K.defaultValue,K.defaultValue,K.checked,K.defaultChecked,K.type,K.name)}}for(A=0;A<I.length;A++)B=I[A],B.form===T.form&&Nc(B)}break e;case"textarea":Oc(T,I.value,I.defaultValue);break e;case"select":A=I.value,A!=null&&En(T,!!I.multiple,A,!1)}}}var xo=!1;function Vc(T,A,I){if(xo)return T(A,I);xo=!0;try{var B=T(A);return B}finally{if(xo=!1,(wn!==null||Tn!==null)&&(Ba(),wn&&(A=wn,T=Tn,Tn=wn=null,Bc(A),T)))for(A=0;A<T.length;A++)Bc(T[A])}}function ns(T,A){var I=T.stateNode;if(I===null)return null;var B=I[Sr]||null;if(B===null)return null;I=B[A];e:switch(A){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(B=!B.disabled)||(T=T.type,B=!(T==="button"||T==="input"||T==="select"||T==="textarea")),T=!B;break e;default:T=!1}if(T)return null;if(I&&typeof I!="function")throw Error(b(231,A,typeof I));return I}var oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bo=!1;if(oi)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){bo=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{bo=!1}var Ri=null,Eo=null,Js=null;function zc(){if(Js)return Js;var T,A=Eo,I=A.length,B,K="value"in Ri?Ri.value:Ri.textContent,ee=K.length;for(T=0;T<I&&A[T]===K[T];T++);var xe=I-T;for(B=1;B<=xe&&A[I-B]===K[ee-B];B++);return Js=K.slice(T,1<B?1-B:void 0)}function ea(T){var A=T.keyCode;return"charCode"in T?(T=T.charCode,T===0&&A===13&&(T=13)):T=A,T===10&&(T=13),32<=T||T===13?T:0}function ta(){return!0}function Uc(){return!1}function wr(T){function A(I,B,K,ee,xe){this._reactName=I,this._targetInst=K,this.type=B,this.nativeEvent=ee,this.target=xe,this.currentTarget=null;for(var ze in T)T.hasOwnProperty(ze)&&(I=T[ze],this[ze]=I?I(ee):ee[ze]);return this.isDefaultPrevented=(ee.defaultPrevented!=null?ee.defaultPrevented:ee.returnValue===!1)?ta:Uc,this.isPropagationStopped=Uc,this}return J(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var I=this.nativeEvent;I&&(I.preventDefault?I.preventDefault():typeof I.returnValue!="unknown"&&(I.returnValue=!1),this.isDefaultPrevented=ta)},stopPropagation:function(){var I=this.nativeEvent;I&&(I.stopPropagation?I.stopPropagation():typeof I.cancelBubble!="unknown"&&(I.cancelBubble=!0),this.isPropagationStopped=ta)},persist:function(){},isPersistent:ta}),A}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(T){return T.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ra=wr(Zi),as=J({},Zi,{view:0,detail:0}),Dd=wr(as),So,wo,os,ia=J({},as,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Co,button:0,buttons:0,relatedTarget:function(T){return T.relatedTarget===void 0?T.fromElement===T.srcElement?T.toElement:T.fromElement:T.relatedTarget},movementX:function(T){return"movementX"in T?T.movementX:(T!==os&&(os&&T.type==="mousemove"?(So=T.screenX-os.screenX,wo=T.screenY-os.screenY):wo=So=0,os=T),So
vendor: 4,821 bytes, line 8
8)},movementY:function(T){return"movementY"in T?T.movementY:wo}}),Hc=wr(ia),Ld=J({},ia,{dataTransfer:0}),Fd=wr(Ld),Bd=J({},as,{relatedTarget:0}),To=wr(Bd),Vd=J({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),zd=wr(Vd),Ud=J({},Zi,{clipboardData:function(T){return"clipboardData"in T?T.clipboardData:window.clipboardData}}),Hd=wr(Ud),$d=J({},Zi,{data:0}),$c=wr($d),Gd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yd(T){var A=this.nativeEvent;return A.getModifierState?A.getModifierState(T):(T=Kd[T])?!!A[T]:!1}function Co(){return Yd}var Wd=J({},as,{key:function(T){if(T.key){var A=Gd[T.key]||T.key;if(A!=="Unidentified")return A}return T.type==="keypress"?(T=ea(T),T===13?"Enter":String.fromCharCode(T)):T.type==="keydown"||T.type==="keyup"?qd[T.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Co,charCode:function(T){return T.type==="keypress"?ea(T):0},keyCode:function(T){return T.type==="keydown"||T.type==="keyup"?T.keyCode:0},which:function(T){return T.type==="keypress"?ea(T):T.type==="keydown"||T.type==="keyup"?T.keyCode:0}}),Xd=wr(Wd),Qd=J({},ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gc=wr(Qd),Zd=J({},as,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Co}),Jd=wr(Zd),ep=J({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),tp=wr(ep),rp=J({},ia,{deltaX:function(T){return"deltaX"in T?T.deltaX:"wheelDeltaX"in T?-T.wheelDeltaX:0},deltaY:function(T){return"deltaY"in T?T.deltaY:"wheelDeltaY"in T?-T.wheelDeltaY:"wheelDelta"in T?-T.wheelDelta:0},deltaZ:0,deltaMode:0}),np=wr(rp),sp=J({},Zi,{newState:0,oldState:0}),ap=wr(sp),lp=[9,13,27,32],Ro=oi&&"CompositionEvent"in window,ls=null;oi&&"documentMode"in document&&(ls=document.documentMode);var cp=oi&&"TextEvent"in window&&!ls,qc=oi&&(!Ro||ls&&8<ls&&11>=ls),Kc=" ",Yc=!1;function Wc(T,A){switch(T){case"keyup":return lp.indexOf(A.keyCode)!==-1;case"keydown":return A.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xc(T){return T=T.detail,typeof T=="object"&&"data"in T?T.data:null}var Cn=!1;function up(T,A){switch(T){case"compositionend":return Xc(A);case"keypress":return A.which!==32?null:(Yc=!0,Kc);case"textInput":return T=A.data,T===Kc&&Yc?null:T;default:return null}}function hp(T,A){if(Cn)return T==="compositionend"||!Ro&&Wc(T,A)?(T=zc(),Js=Eo=Ri=null,Cn=!1,T):null;switch(T){case"paste":return null;case"keypress":if(!(A.ctrlKey||A.altKey||A.metaKey)||A.ctrlKey&&A.altKey){if(A.char&&1<A.char.length)return A.char;if(A.which)return String.fromCharCode(A.which)}return null;case"compositionend":return qc&&A.locale!=="ko"?null:A.data;default:return null}}var fp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qc(T){var A=T&&T.nodeName&&T.nodeName.toLowerCase();return A==="input"?!!fp[T.type]:A==="textarea"}function Zc(T,A,I,B){wn?Tn?Tn.push(B):Tn=[B]:wn=B,A=qa(A,"onChange"),0<A.length&&(I=new ra("onChange","change",null,I,B),T.push({event:I,listeners:A}))}var cs=null,us=null;function dp(T){Df(T,0)}function na(T){var A=is(T);if(Nc(A))return T}function Jc(T,A){if(T==="change")return A}var eu=!1;if(oi){var Ao;if(oi){var _o="oninput"in document;if(!_o){var tu=document.createElement("div");tu.setAttribute("oninput","return;"),_o=typeof tu.oninput=="function"}Ao=_o}else Ao=!1;eu=Ao&&(!document.documentMode||9<document.documentMode)}function ru(){cs&&(cs.detachEvent("onpropertychange",iu),us=cs=null)}function iu(T){if(T.propertyName==="value"&&na(us)){var A=[];Zc(A,us,T,vo(T)),Vc(dp,A)}}function pp(T,A,I){T==="focusin"?(ru(),cs=A,us=I,cs.attachEvent("onpropertychange",iu)):T==="focusout"&&ru()}function mp(T){if(T==="selectionchange"||T==="keyup"||T==="keydown")return na(us)}function gp(T,A){if(T==="click")return na(A)}function yp(T,A){if(T==="input"||T==="change")return na(A)}function vp(T,A){return T===A&&(T!==0||1/T===1/A)||T!==T&&A!==A}var kr=typeof Object.is=="function"?Object.is:vp;function hs(T,A){if(kr(T,A))return!0;
vendor: 17,777 bytes, line 8
8if(typeof T!="object"||T===null||typeof A!="object"||A===null)return!1;var I=Object.keys(T),B=Object.keys(A);if(I.length!==B.length)return!1;for(B=0;B<I.length;B++){var K=I[B];if(!yr.call(A,K)||!kr(T[K],A[K]))return!1}return!0}function nu(T){for(;T&&T.firstChild;)T=T.firstChild;return T}function su(T,A){var I=nu(T);T=0;for(var B;I;){if(I.nodeType===3){if(B=T+I.textContent.length,T<=A&&B>=A)return{node:I,offset:A-T};T=B}e:{for(;I;){if(I.nextSibling){I=I.nextSibling;break e}I=I.parentNode}I=void 0}I=nu(I)}}function au(T,A){return T&&A?T===A?!0:T&&T.nodeType===3?!1:A&&A.nodeType===3?au(T,A.parentNode):"contains"in T?T.contains(A):T.compareDocumentPosition?!!(T.compareDocumentPosition(A)&16):!1:!1}function ou(T){T=T!=null&&T.ownerDocument!=null&&T.ownerDocument.defaultView!=null?T.ownerDocument.defaultView:window;for(var A=Qs(T.document);A instanceof T.HTMLIFrameElement;){try{var I=typeof A.contentWindow.location.href=="string"}catch{I=!1}if(I)T=A.contentWindow;else break;A=Qs(T.document)}return A}function Po(T){var A=T&&T.nodeName&&T.nodeName.toLowerCase();return A&&(A==="input"&&(T.type==="text"||T.type==="search"||T.type==="tel"||T.type==="url"||T.type==="password")||A==="textarea"||T.contentEditable==="true")}var xp=oi&&"documentMode"in document&&11>=document.documentMode,Rn=null,jo=null,fs=null,Mo=!1;function lu(T,A,I){var B=I.window===I?I.document:I.nodeType===9?I:I.ownerDocument;Mo||Rn==null||Rn!==Qs(B)||(B=Rn,"selectionStart"in B&&Po(B)?B={start:B.selectionStart,end:B.selectionEnd}:(B=(B.ownerDocument&&B.ownerDocument.defaultView||window).getSelection(),B={anchorNode:B.anchorNode,anchorOffset:B.anchorOffset,focusNode:B.focusNode,focusOffset:B.focusOffset}),fs&&hs(fs,B)||(fs=B,B=qa(jo,"onSelect"),0<B.length&&(A=new ra("onSelect","select",null,A,I),T.push({event:A,listeners:B}),A.target=Rn)))}function Ji(T,A){var I={};return I[T.toLowerCase()]=A.toLowerCase(),I["Webkit"+T]="webkit"+A,I["Moz"+T]="moz"+A,I}var An={animationend:Ji("Animation","AnimationEnd"),animationiteration:Ji("Animation","AnimationIteration"),animationstart:Ji("Animation","AnimationStart"),transitionrun:Ji("Transition","TransitionRun"),transitionstart:Ji("Transition","TransitionStart"),transitioncancel:Ji("Transition","TransitionCancel"),transitionend:Ji("Transition","TransitionEnd")},ko={},cu={};oi&&(cu=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function en(T){if(ko[T])return ko[T];if(!An[T])return T;var A=An[T],I;for(I in A)if(A.hasOwnProperty(I)&&I in cu)return ko[T]=A[I];return T}var uu=en("animationend"),hu=en("animationiteration"),fu=en("animationstart"),bp=en("transitionrun"),Ep=en("transitionstart"),Sp=en("transitioncancel"),du=en("transitionend"),pu=new Map,No="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");No.push("scrollEnd");function Zr(T,A){pu.set(T,A),Qi(A,[T])}var sa=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Hr=[],_n=0,Io=0;function aa(){for(var T=_n,A=Io=_n=0;A<T;){var I=Hr[A];Hr[A++]=null;var B=Hr[A];Hr[A++]=null;var K=Hr[A];Hr[A++]=null;var ee=Hr[A];if(Hr[A++]=null,B!==null&&K!==null){var xe=B.pending;xe===null?K.next=K:(K.next=xe.next,xe.next=K),B.pending=K}ee!==0&&mu(I,K,ee)}}function oa(T,A,I,B){Hr[_n++]=T,Hr[_n++]=A,Hr[_n++]=I,Hr[_n++]=B,Io|=B,T.lanes|=B,T=T.alternate,T!==null&&(T.lanes|=B)}function Oo(T,A,I,B){return oa(T,A,I,B),la(T)}function tn(T,A){return oa(T,null,null,A),la(T)}function mu(T,A,I){T.lanes|=I;var B=T.alternate;B!==null&&(B.lanes|=I);for(var K=!1,ee=T.return;ee!==null;)ee.childLanes|=I,B=ee.alternate,B!==null&&(B.childLanes|=I),ee.tag===22&&(T=ee.stateNode,T===null||T._visibility&1||(K=!0)),T=ee,ee=ee.return;return T.tag===3?(ee=T.stateNode,K&&A!==null&&(K=31-Mr(I),T=ee.hiddenUpdates,B=T[K],B===null?T[K]=[A]:B.push(A),A.lane=I|536870912),ee):null}function la(T){if(50<Is)throw Is=0,$l=null,Error(b(185));for(var A=T.return;A!==null;)T=A,A=T.return;return T.tag===3?T.stateNode:null}var Pn={};function wp(T,A,I,B){this.tag=T,this.key=I,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=A,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=B,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nr(T,A,I,B){return new wp(T,A,I,B)}function Do(T){return T=T.prototype,!(!T||!T.isReactComponent)}function li(T,A){var I=T.alternate;return I===null?(I=Nr(T.tag,A,T.key,T.mode),I.elementType=T.elementType,I.type=T.type,I.stateNode=T.stateNode,I.alternate=T,T.alternate=I):(I.pendingProps=A,I.type=T.type,I.flags=0,I.subtreeFlags=0,I.deletions=null),I.flags=T.flags&65011712,I.childLanes=T.childLanes,I.lanes=T.lanes,I.child=T.child,I.memoizedProps=T.memoizedProps,I.memoizedState=T.memoizedState,I.updateQueue=T.updateQueue,A=T.dependencies,I.dependencies=A===null?null:{lanes:A.lanes,firstContext:A.firstContext},I.sibling=T.sibling,I.index=T.index,I.ref=T.ref,I.refCleanup=T.refCleanup,I}function gu(T,A){T.flags&=65011714;var I=T.alternate;return I===null?(T.childLanes=0,T.lanes=A,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=I.childLanes,T.lanes=I.lanes,T.child=I.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=I.memoizedProps,T.memoizedState=I.memoizedState,T.updateQueue=I.updateQueue,T.type=I.type,A=I.dependencies,T.dependencies=A===null?null:{lanes:A.lanes,firstContext:A.firstContext}),T}function ca(T,A,I,B,K,ee){var xe=0;if(B=T,typeof T=="function")Do(T)&&(xe=1);else if(typeof T=="string")xe=Pm(T,I,Ze.current)?26:T==="html"||T==="head"||T==="body"?27:5;else e:switch(T){case We:return T=Nr(31,I,A,K),T.elementType=We,T.lanes=ee,T;case ue:return rn(I.children,K,ee,A);case ye:xe=8,K|=24;break;case oe:return T=Nr(12,I,A,K|2),T.elementType=oe,T.lanes=ee,T;case je:return T=Nr(13,I,A,K),T.elementType=je,T.lanes=ee,T;case Ve:return T=Nr(19,I,A,K),T.elementType=Ve,T.lanes=ee,T;default:if(typeof T=="object"&&T!==null)switch(T.$$typeof){case ae:xe=10;break e;case ne:xe=9;break e;case pe:xe=11;break e;case Ue:xe=14;break e;case $e:xe=16,B=null;break e}xe=29,I=Error(b(130,T===null?"null":typeof T,"")),B=null}return A=Nr(xe,I,A,K),A.elementType=T,A.type=B,A.lanes=ee,A}function rn(T,A,I,B){return T=Nr(7,T,B,A),T.lanes=I,T}function Lo(T,A,I){return T=Nr(6,T,null,A),T.lanes=I,T}function yu(T){var A=Nr(18,null,null,0);return A.stateNode=T,A}function Fo(T,A,I){return A=Nr(4,T.children!==null?T.children:[],T.key,A),A.lanes=I,A.stateNode={containerInfo:T.containerInfo,pendingChildren:null,implementation:T.implementation},A}var vu=new WeakMap;function $r(T,A){if(typeof T=="object"&&T!==null){var I=vu.get(T);return I!==void 0?I:(A={value:T,source:A,stack:gr(A)},vu.set(T,A),A)}return{value:T,source:A,stack:gr(A)}}var jn=[],Mn=0,ua=null,ds=0,Gr=[],qr=0,Ai=null,ti=1,ri="";function ci(T,A){jn[Mn++]=ds,jn[Mn++]=ua,ua=T,ds=A}function xu(T,A,I){Gr[qr++]=ti,Gr[qr++]=ri,Gr[qr++]=Ai,Ai=T;var B=ti;T=ri;var K=32-Mr(B)-1;B&=~(1<<K),I+=1;var ee=32-Mr(A)+K;if(30<ee){var xe=K-K%5;ee=(B&(1<<xe)-1).toString(32),B>>=xe,K-=xe,ti=1<<32-Mr(A)+K|I<<K|B,ri=ee+T}else ti=1<<ee|I<<K|B,ri=T}function Bo(T){T.return!==null&&(ci(T,1),xu(T,1,0))}function Vo(T){for(;T===ua;)ua=jn[--Mn],jn[Mn]=null,ds=jn[--Mn],jn[Mn]=null;for(;T===Ai;)Ai=Gr[--qr],Gr[qr]=null,ri=Gr[--qr],Gr[qr]=null,ti=Gr[--qr],Gr[qr]=null}function bu(T,A){Gr[qr++]=ti,Gr[qr++]=ri,Gr[qr++]=Ai,ti=A.id,ri=A.overflow,Ai=T}var cr=null,$t=null,Mt=!1,_i=null,Kr=!1,zo=Error(b(519));function Pi(T){var A=Error(b(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ps($r(A,T)),zo}function Eu(T){var A=T.stateNode,I=T.type,B=T.memoizedProps;switch(A[lr]=T,A[Sr]=B,I){case"dialog":Rt("cancel",A),Rt("close",A);break;case"iframe":case"object":case"embed":Rt("load",A);break;case"video":case"audio":for(I=0;I<Ds.length;I++)Rt(Ds[I],A);break;case"source":Rt("error",A);break;case"img":case"image":case"link":Rt("error",A),Rt("load",A);break;case"details":Rt("toggle",A);break;case"input":Rt("invalid",A),Ic(A,B.value,B.defaultValue,B.checked,B.defaultChecked,B.type,B.name,!0);break;case"select":Rt("invalid",A);break;case"textarea":Rt("invalid",A),Dc(A,B.value,B.defaultValue,B.children)}I=B.children,typeof I!="string"&&typeof I!="number"&&typeof I!="bigint"||A.textContent===""+I||B.suppressHydrationWarning===!0||Vf(A.textContent,I)?(B.popover!=null&&(Rt("beforetoggle",A),Rt("toggle",A)),B.onScroll!=null&&Rt("scroll",A),B.onScrollEnd!=null&&Rt("scrollend",A),B.onClick!=null&&(A.onclick=ai),A=!0):A=!1,A||Pi(T,!0)}function Su(T){for(cr=T.return;cr;)switch(cr.tag){case 5:case 31:case 13:Kr=!1;return;case 27:case 3:Kr=!0;return;default:cr=cr.return}}function kn(T){if(T!==cr)return!1;if(!Mt)return Su(T),Mt=!0,!1;var A=T.tag,I;if((I=A!==3&&A!==27)&&((I=A===5)&&(I=T.type,I=!(I!=="form"&&I!=="button")||sc(T.type,T.memoizedProps)),I=!I),I&&$t&&Pi(T),Su(T),A===13){if(T=T.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(b(317));$t=Wf(T)}else if(A===31){if(T=T.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(b(317));$t=Wf(T)}else A===27?(A=$t,Hi(T.type)?(T=uc,uc=null,$t=T):$t=A):$t=cr?Wr(T.stateNode.nextSibling):null;return!0}function nn(){$t=cr=null,Mt=!1}function Uo(){var T=_i;return T!==null&&(Ar===null?Ar=T:Ar.push.apply(Ar,T),_i=null),T}function ps(T){_i===null?_i=[T]:_i.push(T)}var Ho=Le(null),sn=null,ui=null;function ji(T,A,I){Ke(Ho,A._currentValue),A._currentValue=I}function hi(T){T._currentValue=Ho.current,Ge(Ho)}function $o(T,A,I){for(;T!==null;){var B=T.alternate;if((T.childLanes&A)!==A?(T.childLanes|=A,B!==null&&(B.childLanes|=A)):B!==null&&(B.childLanes&A)!==A&&(B.childLanes|=A),T===I)break;T=T.return}}function Go(T,A,I,B){var K=T.child;for(K!==null&&(K.return=T);K!==null;){var ee=K.dependencies;if(ee!==null){var xe=K.child;ee=ee.firstContext;e:for(;ee!==null;){var ze=ee;ee=K;for(var qe=0;qe<A.length;qe++)if(ze.context===A[qe]){ee.lanes|=I,ze=ee.alternate,ze!==null&&(ze.lanes|=I),$o(ee.return,I,T),B||(xe=null);break e}ee=ze.next}}else if(K.tag===18){if(xe=K.return,xe===null)throw Error(b(341));xe.lanes|=I,ee=xe.alternate,ee!==null&&(ee.lanes|=I),$o(xe,I,T),xe=null}else xe=K.child;if(xe!==null)xe.return=K;else for(xe=K;xe!==null;){if(xe===T){xe=null;break}if(K=xe.sibling,K!==null){K.return=xe.return,xe=K;break}xe=xe.return}K=xe}}function Nn(T,A,I,B){T=null;for(var K=A,ee=!1;K!==null;){if(!ee){if((K.flags&524288)!==0)ee=!0;else if((K.flags&262144)!==0)break}if(K.tag===10){var xe=K.alternate;if(xe===null)throw Error(b(387));if(xe=xe.memoizedProps,xe!==null){var ze=K.type;kr(K.pendingProps.value,xe.value)||(T!==null?T.push(ze):T=[ze])}}else if(K===xt.current){if(xe=K.alternate,xe===null)throw Error(b(387));xe.memoizedState.memoizedState!==K.memoizedState.memoizedState&&(T!==null?T.push(zs):T=[zs])}K=K.return}T!==null&&Go(A,T,I,B),A.flags|=262144}function ha(T){for(T=T.firstContext;T!==null;){if(!kr(T.context._currentValue,T.memoizedValue))return!0;T=T.next}return!1}function an(T){sn=T,ui=null,T=T.dependencies,T!==null&&(T.firstContext=null)}function ur(T){return wu(sn,T)}function fa(T,A){return sn===null&&an(T),wu(T,A)}function wu(T,A){var I=A._currentValue;if(A={context:A,memoizedValue:I,next:null},ui===null){if(T===null)throw Error(b(308));ui=A,T.dependencies={lanes:0,firstContext:A},T.flags|=524288}else ui=ui.next=A;return I}var Tp=typeof AbortController<"u"?AbortController:function(){var T=[],A=this.signal={aborted:!1,addEventListener:function(I,B){T.push(B)}};this.abort=function(){A.aborted=!0,T.forEach(function(I){return I()})}},Cp=r.unstable_scheduleCallback,Rp=r.unstable_NormalPriority,Jt={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qo(){return{controller:new Tp,data:new Map,refCount:0}}function ms(T){T.refCount--,T.refCount===0&&Cp(Rp,function(){T.controller.abort()})}var gs=null,Ko=0,In=0,On=null;function Ap(T,A){if(gs===null){var I=gs=[];Ko=0,In=Xl(),On={status:"pending",value:void 0,then:function(B){I.push(B)}}}return Ko++,A.then(Tu,Tu),A}function Tu(){if(--Ko===0&&gs!==null){On!==null&&(On.status="fulfilled");var T=gs;gs=null,In=0,On=null;for(var A=0;A<T.length;A++)(0,T[A])()}}function _p(T,A){var I=[],B={status:"pending",value:null,reason:null,then:function(K){I.push(K)}};return T.then(function(){B.status="fulfilled",B.value=A;for(var K=0;K<I.length;K++)(0,I[K])(A)},function(K){for(B.status="rejected",B.reason=K,K=0;K<I.length;K++)(0,I[K])(void 0)}),B}var Cu=Ne.S;Ne.S=function(T,A){uf=At(),typeof A=="object"&&A!==null&&typeof A.then=="function"&&Ap(T,A),Cu!==null&&Cu(T,A)};var ln=Le(null);function Yo(){var T=ln.current;return T!==null?T:Ht.pooledCache}function da(T,A){A===null?Ke(ln,ln.current):Ke(ln,A.pool)}function Ru(){var T=Yo();return T===null?null:{parent:Jt._currentValue,pool:T}}var Dn=Error(b(460)),Wo=Error(b(474)),pa=Error(b(542)),ma={then:function(){}};function Au(T){return T=T.status,T==="fulfilled"||T==="rejected"}function _u(T,A,I){switch(I=T[I],I===void 0?T.push(A):I!==A&&(A.then(ai,ai),A=I),A.status){case"fulfilled":return A.value;case"rejected":throw T=A.reason,ju(T),T;default:if(typeof A.status=="string")A.then(ai,ai);else{if(T=Ht,T!==null&&100<T.shellSuspendCounter)throw Error(b(482));T=A,T.status="pending",T.then(function(B){if(A.status==="pending"){var K=A;K.status="fulfilled",K.value=B}},function(B){if(A.status==="pending"){var K=A;K.status="rejected",K.reason=B}})}switch(A.status){case"fulfilled":return A.value;case"rejected":throw T=A.reason,ju(T),T}throw un=A,Dn}}function cn(T){try{var A=T._init;return A(T._payload)}catch(I){throw I!==null&&typeof I=="object"&&typeof I.then=="function"?(un=I,Dn):I}}var un=null;function Pu(){if(un===null)throw Error(b(459));var T=un;return un=null,T}function ju(T){if(T===Dn||T===pa)throw Error(b(483))}var Ln=null,ys=0;function ga(T){var A=ys;return ys+=1,Ln===null&&(Ln=[]),_u(Ln,T,A)}function vs(T,A){A=A.props.ref,T.ref=A!==void 0?A:null}function ya(T,A){throw A.$$typeof===X?Error(b(525)):(T=Object.prototype.toString.call(A),Error(b(31,T==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":T)))}function Mu(T){function A(Qe,Xe){if(T){var Je=Qe.deletions;Je===null?(Qe.deletions=[Xe],Qe.flags|=16):Je.push(Xe)}}function I(Qe,Xe){if(!T)return null;for(;Xe!==null;)A(Qe,Xe),Xe=Xe.sibling;return null}function B(Qe){for(var Xe=new Map;Qe!==null;)Qe.key!==null?Xe.set(Qe.key,Qe):Xe.set(Qe.index,Qe),Qe=Qe.sibling;return Xe}function K(Qe,Xe){return Qe=li(Qe,Xe),Qe.index=0,Qe.sibling=null,Qe}function ee(Qe,Xe,Je){return Qe.index=Je,T?(Je=Qe.alternate,Je!==null?(Je=Je.index,Je<Xe?(Qe.flags|=67108866,Xe):Je):(Qe.flags|=67108866,Xe)):(Qe.flags|=1048576,Xe)}function xe(Qe){return T&&Qe.alternate===null&&(Qe.flags|=67108866),Qe}function ze(Qe,Xe,Je,at){return Xe===null||Xe.tag!==6?(Xe=Lo(Je,Qe.mode,at),Xe.return=Qe,Xe):(Xe=K(Xe,Je),Xe.return=Qe,Xe)}function qe(Qe,Xe,Je,at){var vt=Je.type;return vt===ue?st(Qe,Xe,Je.props.children,at,Je.key):Xe!==null&&(Xe.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===$e&&cn(vt)===Xe.type)?(Xe=K(Xe,Je.props),vs(Xe,Je),Xe.return=Qe,Xe):(Xe=ca(Je.type,Je.key,Je.props,null,Qe.mode,at),vs(Xe,Je),Xe.return=Qe,Xe)}function et(Qe,Xe,Je,at){return Xe===null||Xe.tag!==4||Xe.stateNode.containerInfo!==Je.containerInfo||Xe.stateNode.implementation!==Je.implementation?(Xe=Fo(Je,Qe.mode,at),Xe.return=Qe,Xe):(Xe=K(Xe,Je.children||[]),Xe.return=Qe,Xe)}function st(Qe,Xe,Je,at,vt){return Xe===null||Xe.tag!==7?(Xe=rn(Je,Qe.mode,at,vt),Xe.return=Qe,Xe):(Xe=K(Xe,Je),Xe.return=Qe,Xe)}function lt(Qe,Xe,Je){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number"||typeof Xe=="bigint")return Xe=Lo(""+Xe,Qe.mode,Je),Xe.return=Qe,Xe;if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case fe:return Je=ca(Xe.type,Xe.key,Xe.props,null,Qe.mode,Je),vs(Je,Xe),Je.return=Qe,Je;case te:return Xe=Fo(Xe,Qe.mode,Je),Xe.return=Qe,Xe;case $e:return Xe=cn(Xe),lt(Qe,Xe,Je)}if(nt(Xe)||it(Xe))return Xe=rn(Xe,Qe.mode,Je,null),Xe.return=Qe,Xe;if(typeof Xe.then=="function")return lt(Qe,ga(Xe),Je);if(Xe.$$typeof===ae)return lt(Qe,fa(Qe,Xe),Je);ya(Qe,Xe)}return null}function tt(Qe,Xe,Je,at){var vt=Xe!==null?Xe.key:null;if(typeof Je=="string"&&Je!==""||typeof Je=="number"||typeof Je=="bigint")return vt!==null?null:ze(Qe,Xe,""+Je,at);if(typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case fe:return Je.key===vt?qe(Qe,Xe,Je,at):null;case te:return Je.key===vt?et(Qe,Xe,Je,at):null;case $e:return Je=cn(Je),tt(Qe,Xe,Je,at)}if(nt(Je)||it(Je))return vt!==null?null:st(Qe,Xe,Je,at,null);if(typeof Je.then=="function")return tt(Qe,Xe,ga(Je),at);
vendor: 6,389 bytes, line 8
8if(Je.$$typeof===ae)return tt(Qe,Xe,fa(Qe,Je),at);ya(Qe,Je)}return null}function rt(Qe,Xe,Je,at,vt){if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return Qe=Qe.get(Je)||null,ze(Xe,Qe,""+at,vt);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case fe:return Qe=Qe.get(at.key===null?Je:at.key)||null,qe(Xe,Qe,at,vt);case te:return Qe=Qe.get(at.key===null?Je:at.key)||null,et(Xe,Qe,at,vt);case $e:return at=cn(at),rt(Qe,Xe,Je,at,vt)}if(nt(at)||it(at))return Qe=Qe.get(Je)||null,st(Xe,Qe,at,vt,null);if(typeof at.then=="function")return rt(Qe,Xe,Je,ga(at),vt);if(at.$$typeof===ae)return rt(Qe,Xe,Je,fa(Xe,at),vt);ya(Xe,at)}return null}function gt(Qe,Xe,Je,at){for(var vt=null,It=null,yt=Xe,wt=Xe=0,Pt=null;yt!==null&&wt<Je.length;wt++){yt.index>wt?(Pt=yt,yt=null):Pt=yt.sibling;var Ot=tt(Qe,yt,Je[wt],at);if(Ot===null){yt===null&&(yt=Pt);break}T&&yt&&Ot.alternate===null&&A(Qe,yt),Xe=ee(Ot,Xe,wt),It===null?vt=Ot:It.sibling=Ot,It=Ot,yt=Pt}if(wt===Je.length)return I(Qe,yt),Mt&&ci(Qe,wt),vt;if(yt===null){for(;wt<Je.length;wt++)yt=lt(Qe,Je[wt],at),yt!==null&&(Xe=ee(yt,Xe,wt),It===null?vt=yt:It.sibling=yt,It=yt);return Mt&&ci(Qe,wt),vt}for(yt=B(yt);wt<Je.length;wt++)Pt=rt(yt,Qe,wt,Je[wt],at),Pt!==null&&(T&&Pt.alternate!==null&&yt.delete(Pt.key===null?wt:Pt.key),Xe=ee(Pt,Xe,wt),It===null?vt=Pt:It.sibling=Pt,It=Pt);return T&&yt.forEach(function(Yi){return A(Qe,Yi)}),Mt&&ci(Qe,wt),vt}function bt(Qe,Xe,Je,at){if(Je==null)throw Error(b(151));for(var vt=null,It=null,yt=Xe,wt=Xe=0,Pt=null,Ot=Je.next();yt!==null&&!Ot.done;wt++,Ot=Je.next()){yt.index>wt?(Pt=yt,yt=null):Pt=yt.sibling;var Yi=tt(Qe,yt,Ot.value,at);if(Yi===null){yt===null&&(yt=Pt);break}T&&yt&&Yi.alternate===null&&A(Qe,yt),Xe=ee(Yi,Xe,wt),It===null?vt=Yi:It.sibling=Yi,It=Yi,yt=Pt}if(Ot.done)return I(Qe,yt),Mt&&ci(Qe,wt),vt;if(yt===null){for(;!Ot.done;wt++,Ot=Je.next())Ot=lt(Qe,Ot.value,at),Ot!==null&&(Xe=ee(Ot,Xe,wt),It===null?vt=Ot:It.sibling=Ot,It=Ot);return Mt&&ci(Qe,wt),vt}for(yt=B(yt);!Ot.done;wt++,Ot=Je.next())Ot=rt(yt,Qe,wt,Ot.value,at),Ot!==null&&(T&&Ot.alternate!==null&&yt.delete(Ot.key===null?wt:Ot.key),Xe=ee(Ot,Xe,wt),It===null?vt=Ot:It.sibling=Ot,It=Ot);return T&&yt.forEach(function(Vm){return A(Qe,Vm)}),Mt&&ci(Qe,wt),vt}function Ut(Qe,Xe,Je,at){if(typeof Je=="object"&&Je!==null&&Je.type===ue&&Je.key===null&&(Je=Je.props.children),typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case fe:e:{for(var vt=Je.key;Xe!==null;){if(Xe.key===vt){if(vt=Je.type,vt===ue){if(Xe.tag===7){I(Qe,Xe.sibling),at=K(Xe,Je.props.children),at.return=Qe,Qe=at;break e}}else if(Xe.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===$e&&cn(vt)===Xe.type){I(Qe,Xe.sibling),at=K(Xe,Je.props),vs(at,Je),at.return=Qe,Qe=at;break e}I(Qe,Xe);break}else A(Qe,Xe);Xe=Xe.sibling}Je.type===ue?(at=rn(Je.props.children,Qe.mode,at,Je.key),at.return=Qe,Qe=at):(at=ca(Je.type,Je.key,Je.props,null,Qe.mode,at),vs(at,Je),at.return=Qe,Qe=at)}return xe(Qe);case te:e:{for(vt=Je.key;Xe!==null;){if(Xe.key===vt)if(Xe.tag===4&&Xe.stateNode.containerInfo===Je.containerInfo&&Xe.stateNode.implementation===Je.implementation){I(Qe,Xe.sibling),at=K(Xe,Je.children||[]),at.return=Qe,Qe=at;break e}else{I(Qe,Xe);break}else A(Qe,Xe);Xe=Xe.sibling}at=Fo(Je,Qe.mode,at),at.return=Qe,Qe=at}return xe(Qe);case $e:return Je=cn(Je),Ut(Qe,Xe,Je,at)}if(nt(Je))return gt(Qe,Xe,Je,at);if(it(Je)){if(vt=it(Je),typeof vt!="function")throw Error(b(150));return Je=vt.call(Je),bt(Qe,Xe,Je,at)}if(typeof Je.then=="function")return Ut(Qe,Xe,ga(Je),at);if(Je.$$typeof===ae)return Ut(Qe,Xe,fa(Qe,Je),at);ya(Qe,Je)}return typeof Je=="string"&&Je!==""||typeof Je=="number"||typeof Je=="bigint"?(Je=""+Je,Xe!==null&&Xe.tag===6?(I(Qe,Xe.sibling),at=K(Xe,Je),at.return=Qe,Qe=at):(I(Qe,Xe),at=Lo(Je,Qe.mode,at),at.return=Qe,Qe=at),xe(Qe)):I(Qe,Xe)}return function(Qe,Xe,Je,at){try{ys=0;var vt=Ut(Qe,Xe,Je,at);return Ln=null,vt}catch(yt){if(yt===Dn||yt===pa)throw yt;var It=Nr(29,yt,null,Qe.mode);return It.lanes=at,It.return=Qe,It}}}var hn=Mu(!0),ku=Mu(!1),Mi=!1;function Xo(T){T.updateQueue={baseState:T.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(T,A){T=T.updateQueue,A.updateQueue===T&&(A.updateQueue={baseState:T.baseState,firstBaseUpdate:T.firstBaseUpdate,lastBaseUpdate:T.lastBaseUpdate,shared:T.shared,callbacks:null})}function ki(T){return{lane:T,tag:0,payload:null,callback:null,next:null}}function Ni(T,A,I){var B=T.updateQueue;if(B===null)return null;if(B=B.shared,(Dt&2)!==0){var K=B.pending;return K===null?A.next=A:(A.next=K.next,K.next=A),B.pending=A,A=la(T),mu(T,null,I),A}return oa(T,B,A,I),la(T)}function xs(T,A,I){if(A=A.updateQueue,A!==null&&(A=A.shared,(I&4194048)!==0)){var B=A.lanes;B&=T.pendingLanes,I|=B,A.lanes=I,wc(T,I)}}function Zo(T,A){var I=T.updateQueue,B=T.alternate;if(B!==null&&(B=B.updateQueue,I===B)){var K=null,ee=null;if(I=I.firstBaseUpdate,I!==null){do{var xe={lane:I.lane,tag:I.tag,payload:I.payload,callback:null,next:null};ee===null?K=ee=xe:ee=ee.next=xe,I=I.next}while(I!==null);ee===null?K=ee=A:ee=ee.next=A}else K=ee=A;I={baseState:B.baseState,firstBaseUpdate:K,lastBaseUpdate:ee,shared:B.shared,callbacks:B.callbacks},T.updateQueue=I;return}T=I.lastBaseUpdate,T===null?I.firstBaseUpdate=A:T.next=A,I.lastBaseUpdate=A}var Jo=!1;function bs(){if(Jo){var T=On;if(T!==null)throw T}}function Es(T,A,I,B){Jo=!1;var K=T.updateQueue;Mi=!1;var ee=K.firstBaseUpdate,xe=K.lastBaseUpdate,ze=K.shared.pending;if(ze!==null){K.shared.pending=null;var qe=ze,et=qe.next;qe.next=null,xe===null?ee=et:xe.next=et,xe=qe;var st=T.alternate;st!==null&&(st=st.updateQueue,ze=st.lastBaseUpdate,ze!==xe&&(ze===null?st.firstBaseUpdate=et:ze.next=et,st.lastBaseUpdate=qe))}if(ee!==null){var lt=K.baseState;xe=0,st=et=qe=null,ze=ee;do{var tt=ze.lane&-536870913,rt=tt!==ze.lane;if(rt?(_t&tt)===tt:(B&tt)===tt){tt!==0&&tt===In&&(Jo=!0),st!==null&&(st=st.next={lane:0,tag:ze.tag,payload:ze.payload,callback:null,next:null});e:{var gt=T,bt=ze;tt=A;var Ut=I;switch(bt.tag){case 1:if(gt=bt.payload,typeof gt=="function"){lt=gt.call(Ut,lt,tt);break e}lt=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=bt.payload,tt=typeof gt=="function"?gt.call(Ut,lt,tt):gt,tt==null)break e;lt=J({},lt,tt);break e;case 2:Mi=!0}}tt=ze.callback,tt!==null&&(T.flags|=64,rt&&(T.flags|=8192),rt=K.callbacks,rt===null?K.callbacks=[tt]:rt.pu
vendor: 2,278 bytes, line 8
8sh(tt))}else rt={lane:tt,tag:ze.tag,payload:ze.payload,callback:ze.callback,next:null},st===null?(et=st=rt,qe=lt):st=st.next=rt,xe|=tt;if(ze=ze.next,ze===null){if(ze=K.shared.pending,ze===null)break;rt=ze,ze=rt.next,rt.next=null,K.lastBaseUpdate=rt,K.shared.pending=null}}while(!0);st===null&&(qe=lt),K.baseState=qe,K.firstBaseUpdate=et,K.lastBaseUpdate=st,ee===null&&(K.shared.lanes=0),Fi|=xe,T.lanes=xe,T.memoizedState=lt}}function Nu(T,A){if(typeof T!="function")throw Error(b(191,T));T.call(A)}function Iu(T,A){var I=T.callbacks;if(I!==null)for(T.callbacks=null,T=0;T<I.length;T++)Nu(I[T],A)}var Fn=Le(null),va=Le(0);function Ou(T,A){T=bi,Ke(va,T),Ke(Fn,A),bi=T|A.baseLanes}function el(){Ke(va,bi),Ke(Fn,Fn.current)}function tl(){bi=va.current,Ge(Fn),Ge(va)}var Ir=Le(null),Yr=null;function Ii(T){var A=T.alternate;Ke(Qt,Qt.current&1),Ke(Ir,T),Yr===null&&(A===null||Fn.current!==null||A.memoizedState!==null)&&(Yr=T)}function rl(T){Ke(Qt,Qt.current),Ke(Ir,T),Yr===null&&(Yr=T)}function Du(T){T.tag===22?(Ke(Qt,Qt.current),Ke(Ir,T),Yr===null&&(Yr=T)):Oi()}function Oi(){Ke(Qt,Qt.current),Ke(Ir,Ir.current)}function Or(T){Ge(Ir),Yr===T&&(Yr=null),Ge(Qt)}var Qt=Le(0);function xa(T){for(var A=T;A!==null;){if(A.tag===13){var I=A.memoizedState;if(I!==null&&(I=I.dehydrated,I===null||lc(I)||cc(I)))return A}else if(A.tag===19&&(A.memoizedProps.revealOrder==="forwards"||A.memoizedProps.revealOrder==="backwards"||A.memoizedProps.revealOrder==="unstable_legacy-backwards"||A.memoizedProps.revealOrder==="together")){if((A.flags&128)!==0)return A}else if(A.child!==null){A.child.return=A,A=A.child;continue}if(A===T)break;for(;A.sibling===null;){if(A.return===null||A.return===T)return null;A=A.return}A.sibling.return=A.return,A=A.sibling}return null}var fi=0,St=null,Bt=null,er=null,ba=!1,Bn=!1,fn=!1,Ea=0,Ss=0,Vn=null,Pp=0;function Wt(){throw Error(b(321))}function il(T,A){if(A===null)return!1;for(var I=0;I<A.length&&I<T.length;I++)if(!kr(T[I],A[I]))return!1;return!0}function nl(T,A,I,B,K,ee){return fi=ee,St=A,A.memoizedState=null,A.updateQueue=null,A.lanes=0,Ne.H=T===null||T.memoizedState===null?bh:xl,fn=!1,ee=I(B,K),fn=!1,Bn&&(ee=Fu(A,I,B,K)),Lu(T),ee}function Lu(T){Ne.H=Cs;var A=Bt!==null&&Bt.next!==null;if(fi=0,er=Bt=St=null,ba=!1,Ss=0,Vn=null,A)throw Error(b(300));
vendor: 4,510 bytes, line 8
8T===null||tr||(T=T.dependencies,T!==null&&ha(T)&&(tr=!0))}function Fu(T,A,I,B){St=T;var K=0;do{if(Bn&&(Vn=null),Ss=0,Bn=!1,25<=K)throw Error(b(301));if(K+=1,er=Bt=null,T.updateQueue!=null){var ee=T.updateQueue;ee.lastEffect=null,ee.events=null,ee.stores=null,ee.memoCache!=null&&(ee.memoCache.index=0)}Ne.H=Eh,ee=A(I,B)}while(Bn);return ee}function jp(){var T=Ne.H,A=T.useState()[0];return A=typeof A.then=="function"?ws(A):A,T=T.useState()[0],(Bt!==null?Bt.memoizedState:null)!==T&&(St.flags|=1024),A}function sl(){var T=Ea!==0;return Ea=0,T}function al(T,A,I){A.updateQueue=T.updateQueue,A.flags&=-2053,T.lanes&=~I}function ol(T){if(ba){for(T=T.memoizedState;T!==null;){var A=T.queue;A!==null&&(A.pending=null),T=T.next}ba=!1}fi=0,er=Bt=St=null,Bn=!1,Ss=Ea=0,Vn=null}function xr(){var T={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return er===null?St.memoizedState=er=T:er=er.next=T,er}function Zt(){if(Bt===null){var T=St.alternate;T=T!==null?T.memoizedState:null}else T=Bt.next;var A=er===null?St.memoizedState:er.next;if(A!==null)er=A,Bt=T;else{if(T===null)throw St.alternate===null?Error(b(467)):Error(b(310));Bt=T,T={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},er===null?St.memoizedState=er=T:er=er.next=T}return er}function Sa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ws(T){var A=Ss;return Ss+=1,Vn===null&&(Vn=[]),T=_u(Vn,T,A),A=St,(er===null?A.memoizedState:er.next)===null&&(A=A.alternate,Ne.H=A===null||A.memoizedState===null?bh:xl),T}function wa(T){if(T!==null&&typeof T=="object"){if(typeof T.then=="function")return ws(T);if(T.$$typeof===ae)return ur(T)}throw Error(b(438,String(T)))}function ll(T){var A=null,I=St.updateQueue;if(I!==null&&(A=I.memoCache),A==null){var B=St.alternate;B!==null&&(B=B.updateQueue,B!==null&&(B=B.memoCache,B!=null&&(A={data:B.data.map(function(K){return K.slice()}),index:0})))}if(A==null&&(A={data:[],index:0}),I===null&&(I=Sa(),St.updateQueue=I),I.memoCache=A,I=A.data[A.index],I===void 0)for(I=A.data[A.index]=Array(T),B=0;B<T;B++)I[B]=ot;return A.index++,I}function di(T,A){return typeof A=="function"?A(T):A}function Ta(T){var A=Zt();return cl(A,Bt,T)}function cl(T,A,I){var B=T.queue;if(B===null)throw Error(b(311));B.lastRenderedReducer=I;var K=T.baseQueue,ee=B.pending;if(ee!==null){if(K!==null){var xe=K.next;K.next=ee.next,ee.next=xe}A.baseQueue=K=ee,B.pending=null}if(ee=T.baseState,K===null)T.memoizedState=ee;else{A=K.next;var ze=xe=null,qe=null,et=A,st=!1;do{var lt=et.lane&-536870913;if(lt!==et.lane?(_t&lt)===lt:(fi&lt)===lt){var tt=et.revertLane;if(tt===0)qe!==null&&(qe=qe.next={lane:0,revertLane:0,gesture:null,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null}),lt===In&&(st=!0);else if((fi&tt)===tt){et=et.next,tt===In&&(st=!0);continue}else lt={lane:0,revertLane:et.revertLane,gesture:null,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null},qe===null?(ze=qe=lt,xe=ee):qe=qe.next=lt,St.lanes|=tt,Fi|=tt;lt=et.action,fn&&I(ee,lt),ee=et.hasEagerState?et.eagerState:I(ee,lt)}else tt={lane:lt,revertLane:et.revertLane,gesture:et.gesture,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null},qe===null?(ze=qe=tt,xe=ee):qe=qe.next=tt,St.lanes|=lt,Fi|=lt;et=et.next}while(et!==null&&et!==A);if(qe===null?xe=ee:qe.next=ze,!kr(ee,T.memoizedState)&&(tr=!0,st&&(I=On,I!==null)))throw I;T.memoizedState=ee,T.baseState=xe,T.baseQueue=qe,B.lastRenderedState=ee}return K===null&&(B.lanes=0),[T.memoizedState,B.dispatch]}function ul(T){var A=Zt(),I=A.queue;if(I===null)throw Error(b(311));I.lastRenderedReducer=T;var B=I.dispatch,K=I.pending,ee=A.memoizedState;if(K!==null){I.pending=null;var xe=K=K.next;do ee=T(ee,xe.action),xe=xe.next;while(xe!==K);kr(ee,A.memoizedState)||(tr=!0),A.memoizedState=ee,A.baseQueue===null&&(A.baseState=ee),I.lastRenderedState=ee}return[ee,B]}function Bu(T,A,I){var B=St,K=Zt(),ee=Mt;if(ee){if(I===void 0)throw Error(b(407));I=I()}else I=A();var xe=!kr((Bt||K).memoizedState,I);if(xe&&(K.memoizedState=I,tr=!0),K=K.queue,dl(Uu.bind(null,B,K,T),[T]),K.getSnapshot!==A||xe||er!==null&&er.memoizedState.tag&1){if(B.flags|=2048,zn(9,{destroy:void 0},zu.bind(null,B,K,I,A),null),Ht===null)throw Error(b(349));ee||(fi&127)!==0||Vu(B,A,I)}return I}function Vu(T,A,I){T.flags|=16384,T={getSnapshot:A,value:I},A=St.updateQueue,A===null?(A=Sa(),St.updateQueue=A,A.stores=[T]):(I=A.stores,I===null?A.stores=[T]:I.push(T))}
vendor: 8,406 bytes, line 8
8function zu(T,A,I,B){A.value=I,A.getSnapshot=B,Hu(A)&&$u(T)}function Uu(T,A,I){return I(function(){Hu(A)&&$u(T)})}function Hu(T){var A=T.getSnapshot;T=T.value;try{var I=A();return!kr(T,I)}catch{return!0}}function $u(T){var A=tn(T,2);A!==null&&_r(A,T,2)}function hl(T){var A=xr();if(typeof T=="function"){var I=T;if(T=I(),fn){Ti(!0);try{I()}finally{Ti(!1)}}}return A.memoizedState=A.baseState=T,A.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:T},A}function Gu(T,A,I,B){return T.baseState=I,cl(T,Bt,typeof B=="function"?B:di)}function Mp(T,A,I,B,K){if(Aa(T))throw Error(b(485));if(T=A.action,T!==null){var ee={payload:K,action:T,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(xe){ee.listeners.push(xe)}};Ne.T!==null?I(!0):ee.isTransition=!1,B(ee),I=A.pending,I===null?(ee.next=A.pending=ee,qu(A,ee)):(ee.next=I.next,A.pending=I.next=ee)}}function qu(T,A){var I=A.action,B=A.payload,K=T.state;if(A.isTransition){var ee=Ne.T,xe={};Ne.T=xe;try{var ze=I(K,B),qe=Ne.S;qe!==null&&qe(xe,ze),Ku(T,A,ze)}catch(et){fl(T,A,et)}finally{ee!==null&&xe.types!==null&&(ee.types=xe.types),Ne.T=ee}}else try{ee=I(K,B),Ku(T,A,ee)}catch(et){fl(T,A,et)}}function Ku(T,A,I){I!==null&&typeof I=="object"&&typeof I.then=="function"?I.then(function(B){Yu(T,A,B)},function(B){return fl(T,A,B)}):Yu(T,A,I)}function Yu(T,A,I){A.status="fulfilled",A.value=I,Wu(A),T.state=I,A=T.pending,A!==null&&(I=A.next,I===A?T.pending=null:(I=I.next,A.next=I,qu(T,I)))}function fl(T,A,I){var B=T.pending;if(T.pending=null,B!==null){B=B.next;do A.status="rejected",A.reason=I,Wu(A),A=A.next;while(A!==B)}T.action=null}function Wu(T){T=T.listeners;for(var A=0;A<T.length;A++)(0,T[A])()}function Xu(T,A){return A}function Qu(T,A){if(Mt){var I=Ht.formState;if(I!==null){e:{var B=St;if(Mt){if($t){t:{for(var K=$t,ee=Kr;K.nodeType!==8;){if(!ee){K=null;break t}if(K=Wr(K.nextSibling),K===null){K=null;break t}}ee=K.data,K=ee==="F!"||ee==="F"?K:null}if(K){$t=Wr(K.nextSibling),B=K.data==="F!";break e}}Pi(B)}B=!1}B&&(A=I[0])}}return I=xr(),I.memoizedState=I.baseState=A,B={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xu,lastRenderedState:A},I.queue=B,I=gh.bind(null,St,B),B.dispatch=I,B=hl(!1),ee=vl.bind(null,St,!1,B.queue),B=xr(),K={state:A,dispatch:null,action:T,pending:null},B.queue=K,I=Mp.bind(null,St,K,ee,I),K.dispatch=I,B.memoizedState=T,[A,I,!1]}function Zu(T){var A=Zt();return Ju(A,Bt,T)}function Ju(T,A,I){if(A=cl(T,A,Xu)[0],T=Ta(di)[0],typeof A=="object"&&A!==null&&typeof A.then=="function")try{var B=ws(A)}catch(xe){throw xe===Dn?pa:xe}else B=A;A=Zt();var K=A.queue,ee=K.dispatch;return I!==A.memoizedState&&(St.flags|=2048,zn(9,{destroy:void 0},kp.bind(null,K,I),null)),[B,ee,T]}function kp(T,A){T.action=A}function eh(T){var A=Zt(),I=Bt;if(I!==null)return Ju(A,I,T);Zt(),A=A.memoizedState,I=Zt();var B=I.queue.dispatch;return I.memoizedState=T,[A,B,!1]}function zn(T,A,I,B){return T={tag:T,create:I,deps:B,inst:A,next:null},A=St.updateQueue,A===null&&(A=Sa(),St.updateQueue=A),I=A.lastEffect,I===null?A.lastEffect=T.next=T:(B=I.next,I.next=T,T.next=B,A.lastEffect=T),T}function th(){return Zt().memoizedState}function Ca(T,A,I,B){var K=xr();St.flags|=T,K.memoizedState=zn(1|A,{destroy:void 0},I,B===void 0?null:B)}function Ra(T,A,I,B){var K=Zt();B=B===void 0?null:B;var ee=K.memoizedState.inst;Bt!==null&&B!==null&&il(B,Bt.memoizedState.deps)?K.memoizedState=zn(A,ee,I,B):(St.flags|=T,K.memoizedState=zn(1|A,ee,I,B))}function rh(T,A){Ca(8390656,8,T,A)}function dl(T,A){Ra(2048,8,T,A)}function Np(T){St.flags|=4;var A=St.updateQueue;if(A===null)A=Sa(),St.updateQueue=A,A.events=[T];else{var I=A.events;I===null?A.events=[T]:I.push(T)}}function ih(T){var A=Zt().memoizedState;return Np({ref:A,nextImpl:T}),function(){if((Dt&2)!==0)throw Error(b(440));return A.impl.apply(void 0,arguments)}}function nh(T,A){return Ra(4,2,T,A)}function sh(T,A){return Ra(4,4,T,A)}function ah(T,A){if(typeof A=="function"){T=T();var I=A(T);return function(){typeof I=="function"?I():A(null)}}if(A!=null)return T=T(),A.current=T,function(){A.current=null}}function oh(T,A,I){I=I!=null?I.concat([T]):null,Ra(4,4,ah.bind(null,A,T),I)}function pl(){}function lh(T,A){var I=Zt();A=A===void 0?null:A;var B=I.memoizedState;return A!==null&&il(A,B[1])?B[0]:(I.memoizedState=[T,A],T)}function ch(T,A){var I=Zt();A=A===void 0?null:A;var B=I.memoizedState;if(A!==null&&il(A,B[1]))return B[0];if(B=T(),fn){Ti(!0);try{T()}finally{Ti(!1)}}return I.memoizedState=[B,A],B}function ml(T,A,I){return I===void 0||(fi&1073741824)!==0&&(_t&261930)===0?T.memoizedState=A:(T.memoizedState=I,T=ff(),St.lanes|=T,Fi|=T,I)}function uh(T,A,I,B){return kr(I,A)?I:Fn.current!==null?(T=ml(T,I,B),kr(T,A)||(tr=!0),T):(fi&42)===0||(fi&1073741824)!==0&&(_t&261930)===0?(tr=!0,T.memoizedState=I):(T=ff(),St.lanes|=T,Fi|=T,A)}function hh(T,A,I,B,K){var ee=He.p;He.p=ee!==0&&8>ee?ee:8;var xe=Ne.T,ze={};Ne.T=ze,vl(T,!1,A,I);try{var qe=K(),et=Ne.S;if(et!==null&&et(ze,qe),qe!==null&&typeof qe=="object"&&typeof qe.then=="function"){var st=_p(qe,B);Ts(T,A,st,Fr(T))}else Ts(T,A,B,Fr(T))}catch(lt){Ts(T,A,{then:function(){},status:"rejected",reason:lt},Fr())}finally{He.p=ee,xe!==null&&ze.types!==null&&(xe.types=ze.types),Ne.T=xe}}function Ip(){}function gl(T,A,I,B){if(T.tag!==5)throw Error(b(476));var K=fh(T).queue;hh(T,K,A,_e,I===null?Ip:function(){return dh(T),I(B)})}function fh(T){var A=T.memoizedState;if(A!==null)return A;A={memoizedState:_e,baseState:_e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:_e},next:null};var I={};return A.next={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:I},next:null},T.memoizedState=A,T=T.alternate,T!==null&&(T.memoizedState=A),A}function dh(T){var A=fh(T);A.next===null&&(A=T.alternate.memoizedState),Ts(T,A.next.queue,{},Fr())}function yl(){return ur(zs)}function ph(){return Zt().memoizedState}function mh(){return Zt().memoizedState}function Op(T){for(var A=T.return;A!==null;){switch(A.tag){case 24:case 3:var I=Fr();T=ki(I);var B=Ni(A,T,I);B!==null&&(_r(B,A,I),xs(B,A,I)),A={cache:qo()},T.payload=A;return}A=A.return}}function Dp(T,A,I){var B=Fr();I={lane:B,revertLane:0,gesture:null,action:I,hasEagerState:!1,eagerState:null,next:null},Aa(T)?yh(A,I):(I=Oo(T,A,I,B),I!==null&&(_r(I,T,B),xh(I,A,B)))}function gh(T,A,I){var B=Fr();Ts(T,A,I,B)}function Ts(T,A,I,B){var K={lane:B,revertLane:0,gesture:null,action:I,hasEagerState:!1,eagerState:null,next:null};if(Aa(T))yh(A,K);else{var ee=T.alternate;if(T.lanes===0&&(ee===null||ee.lanes===0)&&(ee=A.lastRenderedReducer,ee!==null))try{var xe=A.lastRenderedState,ze=ee(xe,I);if(K.hasEagerState=!0,K.eagerState=ze,kr(ze,xe))return oa(T,A,K,0),Ht===null&&aa(),!1}catch{}if(I=Oo(T,A,K,B),I!==null)return _r(I,T,B),xh(I,A,B),!0}return!1}function vl(T,A,I,B){if(B={lane:2,revertLane:Xl(),gesture:null,action:B,hasEagerState:!1,eagerState:null,next:null},Aa(T)){if(A)throw Error(b(479))}else A=Oo(T,I,B,2),A!==null&&_r(A,T,2)}function Aa(T){var A=T.alternate;return T===St||A!==null&&A===St}function yh(T,A){Bn=ba=!0;var I=T.pending;I===null?A.next=A:(A.next=I.next,I.next=A),T.pending=A}function xh(T,A,I){if((I&4194048)!==0){var B=A.lanes;B&=T.pendingLanes,I|=B,A.lanes=I,wc(T,I)}}var Cs={readContext:ur,use:wa,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt,useHostTransitionStatus:Wt,useFormState:Wt,useActionState:Wt,useOptimistic:Wt,useMemoCache:Wt,useCacheRefresh:Wt};Cs.useEffectEvent=Wt;var bh={readContext:ur,use:wa,useCallback:function(T,A){return xr().memoizedState=[T,A===void 0?null:A],T},useContext:ur,useEffect:rh,useImperativeHandle:function(T,A,I){I=I!=null?I.concat([T]):null,Ca(4194308,4,ah.bind(null,A,T),I)},useLayoutEffect:function(T,A){return Ca(4194308,4,T,A)},useInsertionEffect:function(T,A){Ca(4,2,T,A)},useMemo:function(T,A){var I=xr();A=A===void 0?null:A;var B=T();if(fn){Ti(!0);try{T()}finally{Ti(!1)}}return I.memoizedState=[B,A],B},useReducer:function(T,A,I){var B=xr();if(I!==void 0){var K=I(A);if(fn){Ti(!0);try{I(A)}finally{Ti(!1)}}}else K=A;return B.memoizedState=B.baseState=K,T={pending:null,lanes:0,dispatch:null,lastRenderedReducer:T,lastRenderedState:K}
vendor: 17,681 bytes, line 8
8,B.queue=T,T=T.dispatch=Dp.bind(null,St,T),[B.memoizedState,T]},useRef:function(T){var A=xr();return T={current:T},A.memoizedState=T},useState:function(T){T=hl(T);var A=T.queue,I=gh.bind(null,St,A);return A.dispatch=I,[T.memoizedState,I]},useDebugValue:pl,useDeferredValue:function(T,A){var I=xr();return ml(I,T,A)},useTransition:function(){var T=hl(!1);return T=hh.bind(null,St,T.queue,!0,!1),xr().memoizedState=T,[!1,T]},useSyncExternalStore:function(T,A,I){var B=St,K=xr();if(Mt){if(I===void 0)throw Error(b(407));I=I()}else{if(I=A(),Ht===null)throw Error(b(349));(_t&127)!==0||Vu(B,A,I)}K.memoizedState=I;var ee={value:I,getSnapshot:A};return K.queue=ee,rh(Uu.bind(null,B,ee,T),[T]),B.flags|=2048,zn(9,{destroy:void 0},zu.bind(null,B,ee,I,A),null),I},useId:function(){var T=xr(),A=Ht.identifierPrefix;if(Mt){var I=ri,B=ti;I=(B&~(1<<32-Mr(B)-1)).toString(32)+I,A="_"+A+"R_"+I,I=Ea++,0<I&&(A+="H"+I.toString(32)),A+="_"}else I=Pp++,A="_"+A+"r_"+I.toString(32)+"_";return T.memoizedState=A},useHostTransitionStatus:yl,useFormState:Qu,useActionState:Qu,useOptimistic:function(T){var A=xr();A.memoizedState=A.baseState=T;var I={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return A.queue=I,A=vl.bind(null,St,!0,I),I.dispatch=A,[T,A]},useMemoCache:ll,useCacheRefresh:function(){return xr().memoizedState=Op.bind(null,St)},useEffectEvent:function(T){var A=xr(),I={impl:T};return A.memoizedState=I,function(){if((Dt&2)!==0)throw Error(b(440));return I.impl.apply(void 0,arguments)}}},xl={readContext:ur,use:wa,useCallback:lh,useContext:ur,useEffect:dl,useImperativeHandle:oh,useInsertionEffect:nh,useLayoutEffect:sh,useMemo:ch,useReducer:Ta,useRef:th,useState:function(){return Ta(di)},useDebugValue:pl,useDeferredValue:function(T,A){var I=Zt();return uh(I,Bt.memoizedState,T,A)},useTransition:function(){var T=Ta(di)[0],A=Zt().memoizedState;return[typeof T=="boolean"?T:ws(T),A]},useSyncExternalStore:Bu,useId:ph,useHostTransitionStatus:yl,useFormState:Zu,useActionState:Zu,useOptimistic:function(T,A){var I=Zt();return Gu(I,Bt,T,A)},useMemoCache:ll,useCacheRefresh:mh};xl.useEffectEvent=ih;var Eh={readContext:ur,use:wa,useCallback:lh,useContext:ur,useEffect:dl,useImperativeHandle:oh,useInsertionEffect:nh,useLayoutEffect:sh,useMemo:ch,useReducer:ul,useRef:th,useState:function(){return ul(di)},useDebugValue:pl,useDeferredValue:function(T,A){var I=Zt();return Bt===null?ml(I,T,A):uh(I,Bt.memoizedState,T,A)},useTransition:function(){var T=ul(di)[0],A=Zt().memoizedState;return[typeof T=="boolean"?T:ws(T),A]},useSyncExternalStore:Bu,useId:ph,useHostTransitionStatus:yl,useFormState:eh,useActionState:eh,useOptimistic:function(T,A){var I=Zt();return Bt!==null?Gu(I,Bt,T,A):(I.baseState=T,[T,I.queue.dispatch])},useMemoCache:ll,useCacheRefresh:mh};Eh.useEffectEvent=ih;function bl(T,A,I,B){A=T.memoizedState,I=I(B,A),I=I==null?A:J({},A,I),T.memoizedState=I,T.lanes===0&&(T.updateQueue.baseState=I)}var El={enqueueSetState:function(T,A,I){T=T._reactInternals;var B=Fr(),K=ki(B);K.payload=A,I!=null&&(K.callback=I),A=Ni(T,K,B),A!==null&&(_r(A,T,B),xs(A,T,B))},enqueueReplaceState:function(T,A,I){T=T._reactInternals;var B=Fr(),K=ki(B);K.tag=1,K.payload=A,I!=null&&(K.callback=I),A=Ni(T,K,B),A!==null&&(_r(A,T,B),xs(A,T,B))},enqueueForceUpdate:function(T,A){T=T._reactInternals;var I=Fr(),B=ki(I);B.tag=2,A!=null&&(B.callback=A),A=Ni(T,B,I),A!==null&&(_r(A,T,I),xs(A,T,I))}};function Sh(T,A,I,B,K,ee,xe){return T=T.stateNode,typeof T.shouldComponentUpdate=="function"?T.shouldComponentUpdate(B,ee,xe):A.prototype&&A.prototype.isPureReactComponent?!hs(I,B)||!hs(K,ee):!0}function wh(T,A,I,B){T=A.state,typeof A.componentWillReceiveProps=="function"&&A.componentWillReceiveProps(I,B),typeof A.UNSAFE_componentWillReceiveProps=="function"&&A.UNSAFE_componentWillReceiveProps(I,B),A.state!==T&&El.enqueueReplaceState(A,A.state,null)}function dn(T,A){var I=A;if("ref"in A){I={};for(var B in A)B!=="ref"&&(I[B]=A[B])}if(T=T.defaultProps){I===A&&(I=J({},I));for(var K in T)I[K]===void 0&&(I[K]=T[K])}return I}function Th(T){sa(T)}function Ch(T){console.error(T)}function Rh(T){sa(T)}function _a(T,A){try{var I=T.onUncaughtError;I(A.value,{componentStack:A.stack})}catch(B){setTimeout(function(){throw B})}}function Ah(T,A,I){try{var B=T.onCaughtError;B(I.value,{componentStack:I.stack,errorBoundary:A.tag===1?A.stateNode:null})}catch(K){setTimeout(function(){throw K})}}function Sl(T,A,I){return I=ki(I),I.tag=3,I.payload={element:null},I.callback=function(){_a(T,A)},I}function _h(T){return T=ki(T),T.tag=3,T}function Ph(T,A,I,B){var K=I.type.getDerivedStateFromError;if(typeof K=="function"){var ee=B.value;T.payload=function(){return K(ee)},T.callback=function(){Ah(A,I,B)}}var xe=I.stateNode;xe!==null&&typeof xe.componentDidCatch=="function"&&(T.callback=function(){Ah(A,I,B),typeof K!="function"&&(Bi===null?Bi=new Set([this]):Bi.add(this));var ze=B.stack;this.componentDidCatch(B.value,{componentStack:ze!==null?ze:""})})}function Lp(T,A,I,B,K){if(I.flags|=32768,B!==null&&typeof B=="object"&&typeof B.then=="function"){if(A=I.alternate,A!==null&&Nn(A,I,K,!0),I=Ir.current,I!==null){switch(I.tag){case 31:case 13:return Yr===null?Va():I.alternate===null&&Xt===0&&(Xt=3),I.flags&=-257,I.flags|=65536,I.lanes=K,B===ma?I.flags|=16384:(A=I.updateQueue,A===null?I.updateQueue=new Set([B]):A.add(B),Kl(T,B,K)),!1;case 22:return I.flags|=65536,B===ma?I.flags|=16384:(A=I.updateQueue,A===null?(A={transitions:null,markerInstances:null,retryQueue:new Set([B])},I.updateQueue=A):(I=A.retryQueue,I===null?A.retryQueue=new Set([B]):I.add(B)),Kl(T,B,K)),!1}throw Error(b(435,I.tag))}return Kl(T,B,K),Va(),!1}if(Mt)return A=Ir.current,A!==null?((A.flags&65536)===0&&(A.flags|=256),A.flags|=65536,A.lanes=K,B!==zo&&(T=Error(b(422),{cause:B}),ps($r(T,I)))):(B!==zo&&(A=Error(b(423),{cause:B}),ps($r(A,I))),T=T.current.alternate,T.flags|=65536,K&=-K,T.lanes|=K,B=$r(B,I),K=Sl(T.stateNode,B,K),Zo(T,K),Xt!==4&&(Xt=2)),!1;var ee=Error(b(520),{cause:B});if(ee=$r(ee,I),Ns===null?Ns=[ee]:Ns.push(ee),Xt!==4&&(Xt=2),A===null)return!0;B=$r(B,I),I=A;do{switch(I.tag){case 3:return I.flags|=65536,T=K&-K,I.lanes|=T,T=Sl(I.stateNode,B,T),Zo(I,T),!1;case 1:if(A=I.type,ee=I.stateNode,(I.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(Bi===null||!Bi.has(ee))))return I.flags|=65536,K&=-K,I.lanes|=K,K=_h(K),Ph(K,T,I,B),Zo(I,K),!1}I=I.return}while(I!==null);return!1}var wl=Error(b(461)),tr=!1;function hr(T,A,I,B){A.child=T===null?ku(A,null,I,B):hn(A,T.child,I,B)}function jh(T,A,I,B,K){I=I.render;var ee=A.ref;if("ref"in B){var xe={};for(var ze in B)ze!=="ref"&&(xe[ze]=B[ze])}else xe=B;return an(A),B=nl(T,A,I,xe,ee,K),ze=sl(),T!==null&&!tr?(al(T,A,K),pi(T,A,K)):(Mt&&ze&&Bo(A),A.flags|=1,hr(T,A,B,K),A.child)}function Mh(T,A,I,B,K){if(T===null){var ee=I.type;return typeof ee=="function"&&!Do(ee)&&ee.defaultProps===void 0&&I.compare===null?(A.tag=15,A.type=ee,kh(T,A,ee,B,K)):(T=ca(I.type,null,B,A,A.mode,K),T.ref=A.ref,T.return=A,A.child=T)}if(ee=T.child,!Ml(T,K)){var xe=ee.memoizedProps;if(I=I.compare,I=I!==null?I:hs,I(xe,B)&&T.ref===A.ref)return pi(T,A,K)}return A.flags|=1,T=li(ee,B),T.ref=A.ref,T.return=A,A.child=T}function kh(T,A,I,B,K){if(T!==null){var ee=T.memoizedProps;if(hs(ee,B)&&T.ref===A.ref)if(tr=!1,A.pendingProps=B=ee,Ml(T,K))(T.flags&131072)!==0&&(tr=!0);else return A.lanes=T.lanes,pi(T,A,K)}return Tl(T,A,I,B,K)}function Nh(T,A,I,B){var K=B.children,ee=T!==null?T.memoizedState:null;if(T===null&&A.stateNode===null&&(A.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),B.mode==="hidden"){if((A.flags&128)!==0){if(ee=ee!==null?ee.baseLanes|I:I,T!==null){for(B=A.child=T.child,K=0;B!==null;)K=K|B.lanes|B.childLanes,B=B.sibling;B=K&~ee}else B=0,A.child=null;return Ih(T,A,ee,I,B)}if((I&536870912)!==0)A.memoizedState={baseLanes:0,cachePool:null},T!==null&&da(A,ee!==null?ee.cachePool:null),ee!==null?Ou(A,ee):el(),Du(A);else return B=A.lanes=536870912,Ih(T,A,ee!==null?ee.baseLanes|I:I,I,B)}else ee!==null?(da(A,ee.cachePool),Ou(A,ee),Oi(),A.memoizedState=null):(T!==null&&da(A,null),el(),Oi());return hr(T,A,K,I),A.child}function Rs(T,A){return T!==null&&T.tag===22||A.stateNode!==null||(A.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),A.sibling}function Ih(T,A,I,B,K){var ee=Yo();return ee=ee===null?null:{parent:Jt._currentValue,pool:ee},A.memoizedState={baseLanes:I,cachePool:ee},T!==null&&da(A,null),el(),Du(A),T!==null&&Nn(T,A,B,!0),A.childLanes=K,null}function Pa(T,A){return A=Ma({mode:A.mode,children:A.children},T.mode),A.ref=T.ref,T.child=A,A.return=T,A}function Oh(T,A,I){return hn(A,T.child,null,I),T=Pa(A,A.pendingProps),T.flags|=2,Or(A),A.memoizedState=null,T}function Fp(T,A,I){var B=A.pendingProps,K=(A.flags&128)!==0;if(A.flags&=-129,T===null){if(Mt){if(B.mode==="hidden")return T=Pa(A,B),A.lanes=536870912,Rs(null,T);if(rl(A),(T=$t)?(T=Yf(T,Kr),T=T!==null&&T.data==="&"?T:null,T!==null&&(A.memoizedState={dehydrated:T,treeContext:Ai!==null?{id:ti,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},I=yu(T),I.return=A,A.child=I,cr=A,$t=null)):T=null,T===null)throw Pi(A);return A.lanes=536870912,null}return Pa(A,B)}var ee=T.memoizedState;if(ee!==null){var xe=ee.dehydrated;if(rl(A),K)if(A.flags&256)A.flags&=-257,A=Oh(T,A,I);else if(A.memoizedState!==null)A.child=T.child,A.flags|=128,A=null;else throw Error(b(558));else if(tr||Nn(T,A,I,!1),K=(I&T.childLanes)!==0,tr||K){if(B=Ht,B!==null&&(xe=Tc(B,I),xe!==0&&xe!==ee.retryLane))throw ee.retryLane=xe,tn(T,xe),_r(B,T,xe),wl;Va(),A=Oh(T,A,I)}else T=ee.treeContext,$t=Wr(xe.nextSibling),cr=A,Mt=!0,_i=null,Kr=!1,T!==null&&bu(A,T),A=Pa(A,B),A.flags|=4096;return A}return T=li(T.child,{mode:B.mode,children:B.children}),T.ref=A.ref,A.child=T,T.return=A,T}function ja(T,A){var I=A.ref;if(I===null)T!==null&&T.ref!==null&&(A.flags|=4194816);else{if(typeof I!="function"&&typeof I!="object")throw Error(b(284));(T===null||T.ref!==I)&&(A.flags|=4194816)}}function Tl(T,A,I,B,K){return an(A),I=nl(T,A,I,B,void 0,K),B=sl(),T!==null&&!tr?(al(T,A,K),pi(T,A,K)):(Mt&&B&&Bo(A),A.flags|=1,hr(T,A,I,K),A.child)}function Dh(T,A,I,B,K,ee){return an(A),A.updateQueue=null,I=Fu(A,B,I,K),Lu(T),B=sl(),T!==null&&!tr?(al(T,A,ee),pi(T,A,ee)):(Mt&&B&&Bo(A),A.flags|=1,hr(T,A,I,ee),A.child)}function Lh(T,A,I,B,K){if(an(A),A.stateNode===null){var ee=Pn,xe=I.contextType;typeof xe=="object"&&xe!==null&&(ee=ur(xe)),ee=new I(B,ee),A.memoizedState=ee.state!==null&&ee.state!==void 0?ee.state:null,ee.updater=El,A.stateNode=ee,ee._reactInternals=A,ee=A.stateNode,ee.props=B,ee.state=A.memoizedState,ee.refs={},Xo(A),xe=I.contextType,ee.context=typeof xe=="object"&&xe!==null?ur(xe):Pn,ee.state=A.memoizedState,xe=I.getDerivedStateFromProps,typeof xe=="function"&&(bl(A,I,xe,B),ee.state=A.memoizedState),typeof I.getDerivedStateFromProps=="function"||typeof ee.getSnapshotBeforeUpdate=="function"||typeof ee.UNSAFE_componentWillMount!="function"&&typeof ee.componentWillMount!="function"||(xe=ee.state,typeof ee.componentWillMount=="function"&&ee.componentWillMount(),typeof ee.UNSAFE_componentWillMount=="function"&&ee.UNSAFE_componentWillMount(),xe!==ee.state&&El.enqueueReplaceState(ee,ee.state,null),Es(A,B,ee,K),bs(),ee.state=A.memoizedState),typeof ee.componentDidMount=="function"&&(A.flags|=4194308),B=!0}else if(T===null){ee=A.stateNode;var ze=A.memoizedProps,qe=dn(I,ze);ee.props=qe;var et=ee.context,st=I.contextType;xe=Pn,typeof st=="object"&&st!==null&&(xe=ur(st));var lt=I.getDerivedStateFromProps;st=typeof lt=="function"||typeof ee.getSnapshotBeforeUpdate=="function",ze=A.pendingProps!==ze,st||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(ze||et!==xe)&&wh(A,ee,B,xe),Mi=!1;var tt=A.memoizedState;ee.state=tt,Es(A,B,ee,K),bs(),et=A.memoizedState,ze||tt!==et||Mi?(typeof lt=="function"&&(bl(A,I,lt,B),et=A.memoizedState),(qe=Mi||Sh(A,I,qe,B,tt,et,xe))?(st||typeof ee.UNSAFE_componentWillMount!="function"&&typeof ee.componentWillMount!="function"||(typeof ee.componentWillMount=="function"&&ee.componentWillMount(),typeof ee.UNSAFE_componentWillMount=="function"&&ee.UNSAFE_componentWillMount()),typeof ee.componentDidMount=="function"&&(A.flags|=4194308)):(typeof ee.componentDidMount=="function"&&(A.flags|=4194308),A.memoizedProps=B,A.memoizedState=et),ee.props=B,ee.state=et,ee.context=xe,B=qe):(typeof ee.componentDidMount=="function"&&(A.flags|=4194308),B=!1)}else{ee=A.stateNode,Qo(T,A),xe=A.memoizedProps,st=dn(I,xe),ee.props=st,lt=A.pendingProps,tt=ee.context,et=I.contextType,qe=Pn,typeof et=="object"&&et!==null&&(qe=ur(et)),ze=I.getDerivedStateFromProps,(et=typeof ze=="function"||typeof ee.getSnapshotBeforeUpdate=="function")||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(xe!==lt||tt!==qe)&&wh(A,ee,B,qe),Mi=!1,tt=A.memoizedState,ee.state=tt,Es(A,B,ee,K),bs();var rt=A.memoizedState;xe!==lt||tt!==rt||Mi||T!==null&&T.dependencies!==null&&ha(T.dependencies)?(typeof ze=="function"&&(bl(A,I,ze,B),rt=A.memoizedState),(st=Mi||Sh(A,I,st,B,tt,rt,qe)||T!==null&&T.dependencies!==null&&ha(T.dependencies))?(et||typeof ee.UNSAFE_componentWillUpdate!="function"&&typeof ee.componentWillUpdate!="function"||(typeof ee.componentWillUpdate=="function"&&ee.componentWillUpdate(B,rt,qe),typeof ee.UNSAFE_componentWillUpdate=="function"&&ee.UNSAFE_componentWillUpdate(B,rt,qe)),typeof ee.componentDidUpdate=="function"&&(A.flags|=4),typeof ee.getSnapshotBeforeUpdate=="function"&&(A.flags|=1024)):(typeof ee.componentDidUpdate!="function"||xe===T.memoizedProps&&tt===T.memoizedState||(A.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||xe===T.memoizedProps&&tt===T.memoizedState||(A.flags|=1024),A.memoizedProps=B,A.memoizedState=rt),ee.props=B,ee.state=rt,ee.context=qe,B=st):(typeof ee.componentDidUpdate!="function"||xe===T.memoizedProps&&tt===T.memoizedState||(A.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||xe===T.memoizedProps&&tt===T.memoizedState||(A.flags|=1024),B=!1)}return ee=B,ja(T,A),B=(A.flags&128)!==0,ee||B?(ee=A.stateNode,I=B&&typeof I.getDerivedStateFromError!="function"?null:ee.render(),A.flags|=1,T!==null&&B?(A.child=hn(A,T.child,null,K),A.child=hn(A,null,I,K)):hr(T,A,I,K),A.memoizedState=ee.state,T=A.child):T=pi(T,A,K),T}function Fh(T,A,I,B){return nn(),A.flags|=256,hr(T,A,I,B),A.child}var Cl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rl(T){return{baseLanes:T,cachePool:Ru()}}function Al(T,A,I){return T=T!==null?T.childLanes&~I:0,A&&(T|=Lr),T}function Bh(T,A,I){var B=A.pendingProps,K=!1,ee=(A.flags&128)!==0,xe;if((xe=ee)||(xe=T!==null&&T.memoizedState===null?!1:(Qt.current&2)!==0),xe&&(K=!0,A.flags&=-129),xe=(A.flags&32)!==0,A.flags&=-33,T===null){if(Mt){if(K?Ii(A):Oi(),(T=$t)?(T=Yf(T,Kr),T=T!==null&&T.data!=="&"?T:null,T!==null&&(A.memoizedState={dehydrated:T,treeContext:Ai!==null?{id:ti,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},I=yu(T),I.return=A,A.child=I,cr=A,$t=null)):T=null,T===null)throw Pi(A);return cc(T)?A.lanes=32:A.lanes=536870912,null}var ze=B.children;return B=B.fallback,K?(Oi(),K=A.mode,ze=Ma({mode:"hidden",children:ze},K),B=rn(B,K,I,null),ze.return=A,B.return=A,ze.sibling=B,A.child=ze,B=A.child,B.memoizedState=Rl(I),B.childLanes=Al(T,xe,I),A.memoizedState=Cl,Rs(null,B)):(Ii(A),_l(A,ze))}var qe=T.memoizedState;if(qe!==null&&(ze=qe.dehydrated,ze!==null)){if(ee)A.flags&256?(Ii(A),A.flags&=-257,A=Pl(T,A,I)):A.memoizedState!==null?(Oi(),A.child=T.child,A.flags|=128,A=null):(Oi(),ze=B.fallback,K=A.mode,B=Ma({mode:"visible",children:B.children},K),ze=rn(ze,K,I,null),ze.flags|=2,B.return=A,ze.return=A,B.sibling=ze,A.child=B,hn(A,T.child,null,I),B=A.child,B.memoizedState=Rl(I),B.childLanes=Al(T,xe,I),A.memoizedState=Cl,A=Rs(null,B));else if(Ii(A),cc(ze)){if(xe=ze.nextSibling&&ze.nextSibling.dataset,xe)var et=xe.dgst;xe=et,B=Error(b(419)),B.stack="",B.digest=xe,ps({value:B,source:null,stack:null}),A=Pl(T,A,I)}else if(tr||Nn(T,A,I,!1),xe=(I&T.childLanes)!==0,tr||xe){if(xe=Ht,xe!==null&&(B=Tc(xe,I),B!==0&&B!==qe.retryLane))throw qe.retryLane=B,tn(T,B),_r(xe,T,B),wl;lc(ze)||Va(),A=Pl(T,A,I)}else lc(ze)?(A.flags|=192,A.child=T.child,A=null):(T=qe.treeContext,$t=Wr(ze.nextSibling),cr=A,Mt=!0,_i=null,Kr=!1,T!==null&&bu(A,T),A=_l(A,B.children),A.flags|=4096);return A}return K?(Oi(),ze=B.fallback,K=A.mode,qe=T.child,et=qe.sibling,B=li(qe,{mode:"hidden",children:B.children}),B.subtreeFlags=qe.subtreeFlags&65011712,et!==null?ze=li(et,ze):(ze=rn(ze,K,I,null),ze.flags|=2),ze.return=A,B.return=A,B.sibling=ze,A.child=B,Rs(null,B),B=A.child,ze=T.child.memoizedState,ze===null?ze=Rl(I):(K=ze.cachePool,K!==null?(qe=Jt._currentValue,K=K.parent!==qe?{parent:qe,pool:qe}:K):K=Ru(),ze={baseLanes:ze.baseLanes|I,cachePool:K}),B.memoizedState=ze,B.childLanes=Al(T,xe,I),A.memoizedState=Cl,Rs(T.child,B)):(Ii(A),I=T.child,T=I.sibling,I=li(I,{mode:"visible",children:B.children}),I.return=A,I.sibling=null,T!==null&&(xe=A.deletions,xe===null?(A.deletions=[T],A.flags|=16):xe.push(T)),A.child=I,A.memoizedState=null,I)}function _l(T,A){return A=Ma({mode:"visible",children:A},T.mode),A.return=T,T.child=A}function Ma(T,A){return T=Nr(22,T,null,A),T.lanes=0,T}function Pl(T,A,I){return hn(A,T.child,null,I),T=_l(A,A.pendingProps.children),T.flags|=2,A.memoizedState=null,T}function Vh(T,A,I){T.lanes|=A;var B=T.alternate;B!==null&&(B.lanes|=A),$o(T.return,A,I)}function jl(T,A,I,B,K,ee){var xe=T.memoizedState;xe===null?T.memoizedState={isBackwards:A,rendering:null,renderingStartTime:0,last:B,tail:I,tailMode:K,treeForkCount:ee}:(xe.isBackwards=A,xe.rendering=null,xe.renderingStartTime=0,xe.last=B,xe.tail
vendor: 4,260 bytes, line 8
8=I,xe.tailMode=K,xe.treeForkCount=ee)}function zh(T,A,I){var B=A.pendingProps,K=B.revealOrder,ee=B.tail;B=B.children;var xe=Qt.current,ze=(xe&2)!==0;if(ze?(xe=xe&1|2,A.flags|=128):xe&=1,Ke(Qt,xe),hr(T,A,B,I),B=Mt?ds:0,!ze&&T!==null&&(T.flags&128)!==0)e:for(T=A.child;T!==null;){if(T.tag===13)T.memoizedState!==null&&Vh(T,I,A);else if(T.tag===19)Vh(T,I,A);else if(T.child!==null){T.child.return=T,T=T.child;continue}if(T===A)break e;for(;T.sibling===null;){if(T.return===null||T.return===A)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}switch(K){case"forwards":for(I=A.child,K=null;I!==null;)T=I.alternate,T!==null&&xa(T)===null&&(K=I),I=I.sibling;I=K,I===null?(K=A.child,A.child=null):(K=I.sibling,I.sibling=null),jl(A,!1,K,I,ee,B);break;case"backwards":case"unstable_legacy-backwards":for(I=null,K=A.child,A.child=null;K!==null;){if(T=K.alternate,T!==null&&xa(T)===null){A.child=K;break}T=K.sibling,K.sibling=I,I=K,K=T}jl(A,!0,I,null,ee,B);break;case"together":jl(A,!1,null,null,void 0,B);break;default:A.memoizedState=null}return A.child}function pi(T,A,I){if(T!==null&&(A.dependencies=T.dependencies),Fi|=A.lanes,(I&A.childLanes)===0)if(T!==null){if(Nn(T,A,I,!1),(I&A.childLanes)===0)return null}else return null;if(T!==null&&A.child!==T.child)throw Error(b(153));if(A.child!==null){for(T=A.child,I=li(T,T.pendingProps),A.child=I,I.return=A;T.sibling!==null;)T=T.sibling,I=I.sibling=li(T,T.pendingProps),I.return=A;I.sibling=null}return A.child}function Ml(T,A){return(T.lanes&A)!==0?!0:(T=T.dependencies,!!(T!==null&&ha(T)))}function Bp(T,A,I){switch(A.tag){case 3:Nt(A,A.stateNode.containerInfo),ji(A,Jt,T.memoizedState.cache),nn();break;case 27:case 5:Yt(A);break;case 4:Nt(A,A.stateNode.containerInfo);break;case 10:ji(A,A.type,A.memoizedProps.value);break;case 31:if(A.memoizedState!==null)return A.flags|=128,rl(A),null;break;case 13:var B=A.memoizedState;if(B!==null)return B.dehydrated!==null?(Ii(A),A.flags|=128,null):(I&A.child.childLanes)!==0?Bh(T,A,I):(Ii(A),T=pi(T,A,I),T!==null?T.sibling:null);Ii(A);break;case 19:var K=(T.flags&128)!==0;if(B=(I&A.childLanes)!==0,B||(Nn(T,A,I,!1),B=(I&A.childLanes)!==0),K){if(B)return zh(T,A,I);A.flags|=128}if(K=A.memoizedState,K!==null&&(K.rendering=null,K.tail=null,K.lastEffect=null),Ke(Qt,Qt.current),B)break;return null;case 22:return A.lanes=0,Nh(T,A,I,A.pendingProps);case 24:ji(A,Jt,T.memoizedState.cache)}return pi(T,A,I)}function Uh(T,A,I){if(T!==null)if(T.memoizedProps!==A.pendingProps)tr=!0;else{if(!Ml(T,I)&&(A.flags&128)===0)return tr=!1,Bp(T,A,I);tr=(T.flags&131072)!==0}else tr=!1,Mt&&(A.flags&1048576)!==0&&xu(A,ds,A.index);switch(A.lanes=0,A.tag){case 16:e:{var B=A.pendingProps;if(T=cn(A.elementType),A.type=T,typeof T=="function")Do(T)?(B=dn(T,B),A.tag=1,A=Lh(null,A,T,B,I)):(A.tag=0,A=Tl(null,A,T,B,I));else{if(T!=null){var K=T.$$typeof;if(K===pe){A.tag=11,A=jh(null,A,T,B,I);break e}else if(K===Ue){A.tag=14,A=Mh(null,A,T,B,I);break e}}throw A=dt(T)||T,Error(b(306,A,""))}}return A;case 0:return Tl(T,A,A.type,A.pendingProps,I);case 1:return B=A.type,K=dn(B,A.pendingProps),Lh(T,A,B,K,I);case 3:e:{if(Nt(A,A.stateNode.containerInfo),T===null)throw Error(b(387));B=A.pendingProps;var ee=A.memoizedState;K=ee.element,Qo(T,A),Es(A,B,null,I);var xe=A.memoizedState;if(B=xe.cache,ji(A,Jt,B),B!==ee.cache&&Go(A,[Jt],I,!0),bs(),B=xe.element,ee.isDehydrated)if(ee={element:B,isDehydrated:!1,cache:xe.cache},A.updateQueue.baseState=ee,A.memoizedState=ee,A.flags&256){A=Fh(T,A,B,I);break e}else if(B!==K){K=$r(Error(b(424)),A),ps(K),A=Fh(T,A,B,I);break e}else for(T=A.stateNode.containerInfo,T.nodeType===9?T=T.body:T=T.nodeName==="HTML"?T.ownerDocument.body:T,$t=Wr(T.firstChild),cr=A,Mt=!0,_i=null,Kr=!0,I=ku(A,null,B,I),A.child=I;I;)I.flags=I.flags&-3|4096,I=I.sibling;else{if(nn(),B===K){A=pi(T,A,I);break e}hr(T,A,B,I)}A=A.child}return A;case 26:return ja(T,A),T===null?(I=ed(A.type,null,A.pendingProps,null))?A.memoizedState=I:Mt||(I=A.type,T=A.pendingProps,B=Ka(pt.current).createElement(I),B[lr]=A,B[Sr]=T,dr(B,I,T),ar(B),A.stateNode=B):A.memoizedState=ed(A.type,T.memoizedProps,A.pendingProps,T.memoizedState),null;case 27:return Yt(A),T===null&&Mt&&(B=A.stateNode=Qf(A.type,A.pendingProps,pt.current),cr=A,Kr=!0,K=$t,Hi(A.type)?(uc=K,$t=Wr(B.firstChild)):$t=K),hr(T,A,A.pen
vendor: 4,664 bytes, line 8
8dingProps.children,I),ja(T,A),T===null&&(A.flags|=4194304),A.child;case 5:return T===null&&Mt&&((K=B=$t)&&(B=gm(B,A.type,A.pendingProps,Kr),B!==null?(A.stateNode=B,cr=A,$t=Wr(B.firstChild),Kr=!1,K=!0):K=!1),K||Pi(A)),Yt(A),K=A.type,ee=A.pendingProps,xe=T!==null?T.memoizedProps:null,B=ee.children,sc(K,ee)?B=null:xe!==null&&sc(K,xe)&&(A.flags|=32),A.memoizedState!==null&&(K=nl(T,A,jp,null,null,I),zs._currentValue=K),ja(T,A),hr(T,A,B,I),A.child;case 6:return T===null&&Mt&&((T=I=$t)&&(I=ym(I,A.pendingProps,Kr),I!==null?(A.stateNode=I,cr=A,$t=null,T=!0):T=!1),T||Pi(A)),null;case 13:return Bh(T,A,I);case 4:return Nt(A,A.stateNode.containerInfo),B=A.pendingProps,T===null?A.child=hn(A,null,B,I):hr(T,A,B,I),A.child;case 11:return jh(T,A,A.type,A.pendingProps,I);case 7:return hr(T,A,A.pendingProps,I),A.child;case 8:return hr(T,A,A.pendingProps.children,I),A.child;case 12:return hr(T,A,A.pendingProps.children,I),A.child;case 10:return B=A.pendingProps,ji(A,A.type,B.value),hr(T,A,B.children,I),A.child;case 9:return K=A.type._context,B=A.pendingProps.children,an(A),K=ur(K),B=B(K),A.flags|=1,hr(T,A,B,I),A.child;case 14:return Mh(T,A,A.type,A.pendingProps,I);case 15:return kh(T,A,A.type,A.pendingProps,I);case 19:return zh(T,A,I);case 31:return Fp(T,A,I);case 22:return Nh(T,A,I,A.pendingProps);case 24:return an(A),B=ur(Jt),T===null?(K=Yo(),K===null&&(K=Ht,ee=qo(),K.pooledCache=ee,ee.refCount++,ee!==null&&(K.pooledCacheLanes|=I),K=ee),A.memoizedState={parent:B,cache:K},Xo(A),ji(A,Jt,K)):((T.lanes&I)!==0&&(Qo(T,A),Es(A,null,null,I),bs()),K=T.memoizedState,ee=A.memoizedState,K.parent!==B?(K={parent:B,cache:B},A.memoizedState=K,A.lanes===0&&(A.memoizedState=A.updateQueue.baseState=K),ji(A,Jt,B)):(B=ee.cache,ji(A,Jt,B),B!==K.cache&&Go(A,[Jt],I,!0))),hr(T,A,A.pendingProps.children,I),A.child;case 29:throw A.pendingProps}throw Error(b(156,A.tag))}function mi(T){T.flags|=4}function kl(T,A,I,B,K){if((A=(T.mode&32)!==0)&&(A=!1),A){if(T.flags|=16777216,(K&335544128)===K)if(T.stateNode.complete)T.flags|=8192;else if(gf())T.flags|=8192;else throw un=ma,Wo}else T.flags&=-16777217}function Hh(T,A){if(A.type!=="stylesheet"||(A.state.loading&4)!==0)T.flags&=-16777217;else if(T.flags|=16777216,!ad(A))if(gf())T.flags|=8192;else throw un=ma,Wo}function ka(T,A){A!==null&&(T.flags|=4),T.flags&16384&&(A=T.tag!==22?Ec():536870912,T.lanes|=A,Gn|=A)}function As(T,A){if(!Mt)switch(T.tailMode){case"hidden":A=T.tail;for(var I=null;A!==null;)A.alternate!==null&&(I=A),A=A.sibling;I===null?T.tail=null:I.sibling=null;break;case"collapsed":I=T.tail;for(var B=null;I!==null;)I.alternate!==null&&(B=I),I=I.sibling;B===null?A||T.tail===null?T.tail=null:T.tail.sibling=null:B.sibling=null}}function Gt(T){var A=T.alternate!==null&&T.alternate.child===T.child,I=0,B=0;if(A)for(var K=T.child;K!==null;)I|=K.lanes|K.childLanes,B|=K.subtreeFlags&65011712,B|=K.flags&65011712,K.return=T,K=K.sibling;else for(K=T.child;K!==null;)I|=K.lanes|K.childLanes,B|=K.subtreeFlags,B|=K.flags,K.return=T,K=K.sibling;return T.subtreeFlags|=B,T.childLanes=I,A}function Vp(T,A,I){var B=A.pendingProps;switch(Vo(A),A.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(A),null;case 1:return Gt(A),null;case 3:return I=A.stateNode,B=null,T!==null&&(B=T.memoizedState.cache),A.memoizedState.cache!==B&&(A.flags|=2048),hi(Jt),kt(),I.pendingContext&&(I.context=I.pendingContext,I.pendingContext=null),(T===null||T.child===null)&&(kn(A)?mi(A):T===null||T.memoizedState.isDehydrated&&(A.flags&256)===0||(A.flags|=1024,Uo())),Gt(A),null;case 26:var K=A.type,ee=A.memoizedState;return T===null?(mi(A),ee!==null?(Gt(A),Hh(A,ee)):(Gt(A),kl(A,K,null,B,I))):ee?ee!==T.memoizedState?(mi(A),Gt(A),Hh(A,ee)):(Gt(A),A.flags&=-16777217):(T=T.memoizedProps,T!==B&&mi(A),Gt(A),kl(A,K,T,B,I)),null;case 27:if(qt(A),I=pt.current,K=A.type,T!==null&&A.stateNode!=null)T.memoizedProps!==B&&mi(A);else{if(!B){if(A.stateNode===null)throw Error(b(166));return Gt(A),null}T=Ze.current,kn(A)?Eu(A):(T=Qf(K,B,I),A.stateNode=T,mi(A))}return Gt(A),null;case 5:if(qt(A),K=A.type,T!==null&&A.stateNode!=null)T.memoizedProps!==B&&mi(A);else{if(!B){if(A.stateNode===null)throw Error(b(166));return Gt(A),null}if(ee=Ze.current,kn(A))Eu(A);else{var xe=Ka(pt.current);switch(ee){case 1:ee=xe.createElementNS("http://www.w3.org/2000/svg",K);break;case 2:ee=xe.createElementNS("http://www.w3.org/1998/Math/MathML",K);break;default:switch(K){case"svg":ee=xe.createElementNS("http://www.w3.org/2000/svg",K);break;case"math":ee=xe.createElementNS("http://www.w3.org/1998/Math/MathML",K);break;case"script":ee=xe.createElement("div"),ee.innerHTML="<script><\/script>",ee=ee.removeChild(ee.firstChild);break;
vendor: 20,162 bytes, line 8
8case"select":ee=typeof B.is=="string"?xe.createElement("select",{is:B.is}):xe.createElement("select"),B.multiple?ee.multiple=!0:B.size&&(ee.size=B.size);break;default:ee=typeof B.is=="string"?xe.createElement(K,{is:B.is}):xe.createElement(K)}}ee[lr]=A,ee[Sr]=B;e:for(xe=A.child;xe!==null;){if(xe.tag===5||xe.tag===6)ee.appendChild(xe.stateNode);else if(xe.tag!==4&&xe.tag!==27&&xe.child!==null){xe.child.return=xe,xe=xe.child;continue}if(xe===A)break e;for(;xe.sibling===null;){if(xe.return===null||xe.return===A)break e;xe=xe.return}xe.sibling.return=xe.return,xe=xe.sibling}A.stateNode=ee;e:switch(dr(ee,K,B),K){case"button":case"input":case"select":case"textarea":B=!!B.autoFocus;break e;case"img":B=!0;break e;default:B=!1}B&&mi(A)}}return Gt(A),kl(A,A.type,T===null?null:T.memoizedProps,A.pendingProps,I),null;case 6:if(T&&A.stateNode!=null)T.memoizedProps!==B&&mi(A);else{if(typeof B!="string"&&A.stateNode===null)throw Error(b(166));if(T=pt.current,kn(A)){if(T=A.stateNode,I=A.memoizedProps,B=null,K=cr,K!==null)switch(K.tag){case 27:case 5:B=K.memoizedProps}T[lr]=A,T=!!(T.nodeValue===I||B!==null&&B.suppressHydrationWarning===!0||Vf(T.nodeValue,I)),T||Pi(A,!0)}else T=Ka(T).createTextNode(B),T[lr]=A,A.stateNode=T}return Gt(A),null;case 31:if(I=A.memoizedState,T===null||T.memoizedState!==null){if(B=kn(A),I!==null){if(T===null){if(!B)throw Error(b(318));if(T=A.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(b(557));T[lr]=A}else nn(),(A.flags&128)===0&&(A.memoizedState=null),A.flags|=4;Gt(A),T=!1}else I=Uo(),T!==null&&T.memoizedState!==null&&(T.memoizedState.hydrationErrors=I),T=!0;if(!T)return A.flags&256?(Or(A),A):(Or(A),null);if((A.flags&128)!==0)throw Error(b(558))}return Gt(A),null;case 13:if(B=A.memoizedState,T===null||T.memoizedState!==null&&T.memoizedState.dehydrated!==null){if(K=kn(A),B!==null&&B.dehydrated!==null){if(T===null){if(!K)throw Error(b(318));if(K=A.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error(b(317));K[lr]=A}else nn(),(A.flags&128)===0&&(A.memoizedState=null),A.flags|=4;Gt(A),K=!1}else K=Uo(),T!==null&&T.memoizedState!==null&&(T.memoizedState.hydrationErrors=K),K=!0;if(!K)return A.flags&256?(Or(A),A):(Or(A),null)}return Or(A),(A.flags&128)!==0?(A.lanes=I,A):(I=B!==null,T=T!==null&&T.memoizedState!==null,I&&(B=A.child,K=null,B.alternate!==null&&B.alternate.memoizedState!==null&&B.alternate.memoizedState.cachePool!==null&&(K=B.alternate.memoizedState.cachePool.pool),ee=null,B.memoizedState!==null&&B.memoizedState.cachePool!==null&&(ee=B.memoizedState.cachePool.pool),ee!==K&&(B.flags|=2048)),I!==T&&I&&(A.child.flags|=8192),ka(A,A.updateQueue),Gt(A),null);case 4:return kt(),T===null&&ec(A.stateNode.containerInfo),Gt(A),null;case 10:return hi(A.type),Gt(A),null;case 19:if(Ge(Qt),B=A.memoizedState,B===null)return Gt(A),null;if(K=(A.flags&128)!==0,ee=B.rendering,ee===null)if(K)As(B,!1);else{if(Xt!==0||T!==null&&(T.flags&128)!==0)for(T=A.child;T!==null;){if(ee=xa(T),ee!==null){for(A.flags|=128,As(B,!1),T=ee.updateQueue,A.updateQueue=T,ka(A,T),A.subtreeFlags=0,T=I,I=A.child;I!==null;)gu(I,T),I=I.sibling;return Ke(Qt,Qt.current&1|2),Mt&&ci(A,B.treeForkCount),A.child}T=T.sibling}B.tail!==null&&At()>La&&(A.flags|=128,K=!0,As(B,!1),A.lanes=4194304)}else{if(!K)if(T=xa(ee),T!==null){if(A.flags|=128,K=!0,T=T.updateQueue,A.updateQueue=T,ka(A,T),As(B,!0),B.tail===null&&B.tailMode==="hidden"&&!ee.alternate&&!Mt)return Gt(A),null}else 2*At()-B.renderingStartTime>La&&I!==536870912&&(A.flags|=128,K=!0,As(B,!1),A.lanes=4194304);B.isBackwards?(ee.sibling=A.child,A.child=ee):(T=B.last,T!==null?T.sibling=ee:A.child=ee,B.last=ee)}return B.tail!==null?(T=B.tail,B.rendering=T,B.tail=T.sibling,B.renderingStartTime=At(),T.sibling=null,I=Qt.current,Ke(Qt,K?I&1|2:I&1),Mt&&ci(A,B.treeForkCount),T):(Gt(A),null);case 22:case 23:return Or(A),tl(),B=A.memoizedState!==null,T!==null?T.memoizedState!==null!==B&&(A.flags|=8192):B&&(A.flags|=8192),B?(I&536870912)!==0&&(A.flags&128)===0&&(Gt(A),A.subtreeFlags&6&&(A.flags|=8192)):Gt(A),I=A.updateQueue,I!==null&&ka(A,I.retryQueue),I=null,T!==null&&T.memoizedState!==null&&T.memoizedState.cachePool!==null&&(I=T.memoizedState.cachePool.pool),B=null,A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(B=A.memoizedState.cachePool.pool),B!==I&&(A.flags|=2048),T!==null&&Ge(ln),null;case 24:return I=null,T!==null&&(I=T.memoizedState.cache),A.memoizedState.cache!==I&&(A.flags|=2048),hi(Jt),Gt(A),null;case 25:return null;case 30:return null}throw Error(b(156,A.tag))}function zp(T,A){switch(Vo(A),A.tag){case 1:return T=A.flags,T&65536?(A.flags=T&-65537|128,A):null;case 3:return hi(Jt),kt(),T=A.flags,(T&65536)!==0&&(T&128)===0?(A.flags=T&-65537|128,A):null;case 26:case 27:case 5:return qt(A),null;case 31:if(A.memoizedState!==null){if(Or(A),A.alternate===null)throw Error(b(340));nn()}return T=A.flags,T&65536?(A.flags=T&-65537|128,A):null;case 13:if(Or(A),T=A.memoizedState,T!==null&&T.dehydrated!==null){if(A.alternate===null)throw Error(b(340));nn()}return T=A.flags,T&65536?(A.flags=T&-65537|128,A):null;case 19:return Ge(Qt),null;case 4:return kt(),null;case 10:return hi(A.type),null;case 22:case 23:return Or(A),tl(),T!==null&&Ge(ln),T=A.flags,T&65536?(A.flags=T&-65537|128,A):null;case 24:return hi(Jt),null;case 25:return null;default:return null}}function $h(T,A){switch(Vo(A),A.tag){case 3:hi(Jt),kt();break;case 26:case 27:case 5:qt(A);break;case 4:kt();break;case 31:A.memoizedState!==null&&Or(A);break;case 13:Or(A);break;case 19:Ge(Qt);break;case 10:hi(A.type);break;case 22:case 23:Or(A),tl(),T!==null&&Ge(ln);break;case 24:hi(Jt)}}function _s(T,A){try{var I=A.updateQueue,B=I!==null?I.lastEffect:null;if(B!==null){var K=B.next;I=K;do{if((I.tag&T)===T){B=void 0;var ee=I.create,xe=I.inst;B=ee(),xe.destroy=B}I=I.next}while(I!==K)}}catch(ze){Ft(A,A.return,ze)}}function Di(T,A,I){try{var B=A.updateQueue,K=B!==null?B.lastEffect:null;if(K!==null){var ee=K.next;B=ee;do{if((B.tag&T)===T){var xe=B.inst,ze=xe.destroy;if(ze!==void 0){xe.destroy=void 0,K=A;var qe=I,et=ze;try{et()}catch(st){Ft(K,qe,st)}}}B=B.next}while(B!==ee)}}catch(st){Ft(A,A.return,st)}}function Gh(T){var A=T.updateQueue;if(A!==null){var I=T.stateNode;try{Iu(A,I)}catch(B){Ft(T,T.return,B)}}}function qh(T,A,I){I.props=dn(T.type,T.memoizedProps),I.state=T.memoizedState;try{I.componentWillUnmount()}catch(B){Ft(T,A,B)}}function Ps(T,A){try{var I=T.ref;if(I!==null){switch(T.tag){case 26:case 27:case 5:var B=T.stateNode;break;case 30:B=T.stateNode;break;default:B=T.stateNode}typeof I=="function"?T.refCleanup=I(B):I.current=B}}catch(K){Ft(T,A,K)}}function ii(T,A){var I=T.ref,B=T.refCleanup;if(I!==null)if(typeof B=="function")try{B()}catch(K){Ft(T,A,K)}finally{T.refCleanup=null,T=T.alternate,T!=null&&(T.refCleanup=null)}else if(typeof I=="function")try{I(null)}catch(K){Ft(T,A,K)}else I.current=null}function Kh(T){var A=T.type,I=T.memoizedProps,B=T.stateNode;try{e:switch(A){case"button":case"input":case"select":case"textarea":I.autoFocus&&B.focus();break e;case"img":I.src?B.src=I.src:I.srcSet&&(B.srcset=I.srcSet)}}catch(K){Ft(T,T.return,K)}}function Nl(T,A,I){try{var B=T.stateNode;um(B,T.type,I,A),B[Sr]=A}catch(K){Ft(T,T.return,K)}}function Yh(T){return T.tag===5||T.tag===3||T.tag===26||T.tag===27&&Hi(T.type)||T.tag===4}function Il(T){e:for(;;){for(;T.sibling===null;){if(T.return===null||Yh(T.return))return null;T=T.return}for(T.sibling.return=T.return,T=T.sibling;T.tag!==5&&T.tag!==6&&T.tag!==18;){if(T.tag===27&&Hi(T.type)||T.flags&2||T.child===null||T.tag===4)continue e;T.child.return=T,T=T.child}if(!(T.flags&2))return T.stateNode}}function Ol(T,A,I){var B=T.tag;if(B===5||B===6)T=T.stateNode,A?(I.nodeType===9?I.body:I.nodeName==="HTML"?I.ownerDocument.body:I).insertBefore(T,A):(A=I.nodeType===9?I.body:I.nodeName==="HTML"?I.ownerDocument.body:I,A.appendChild(T),I=I._reactRootContainer,I!=null||A.onclick!==null||(A.onclick=ai));else if(B!==4&&(B===27&&Hi(T.type)&&(I=T.stateNode,A=null),T=T.child,T!==null))for(Ol(T,A,I),T=T.sibling;T!==null;)Ol(T,A,I),T=T.sibling}function Na(T,A,I){var B=T.tag;if(B===5||B===6)T=T.stateNode,A?I.insertBefore(T,A):I.appendChild(T);else if(B!==4&&(B===27&&Hi(T.type)&&(I=T.stateNode),T=T.child,T!==null))for(Na(T,A,I),T=T.sibling;T!==null;)Na(T,A,I),T=T.sibling}function Wh(T){var A=T.stateNode,I=T.memoizedProps;try{for(var B=T.type,K=A.attributes;K.length;)A.removeAttributeNode(K[0]);dr(A,B,I),A[lr]=T,A[Sr]=I}catch(ee){Ft(T,T.return,ee)}}var gi=!1,rr=!1,Dl=!1,Xh=typeof WeakSet=="function"?WeakSet:Set,or=null;function Up(T,A){if(T=T.containerInfo,ic=eo,T=ou(T),Po(T)){if("selectionStart"in T)var I={start:T.selectionStart,end:T.selectionEnd};else e:{I=(I=T.ownerDocument)&&I.defaultView||window;var B=I.getSelection&&I.getSelection();if(B&&B.rangeCount!==0){I=B.anchorNode;var K=B.anchorOffset,ee=B.focusNode;B=B.focusOffset;try{I.nodeType,ee.nodeType}catch{I=null;break e}var xe=0,ze=-1,qe=-1,et=0,st=0,lt=T,tt=null;t:for(;;){for(var rt;lt!==I||K!==0&&lt.nodeType!==3||(ze=xe+K),lt!==ee||B!==0&&lt.nodeType!==3||(qe=xe+B),lt.nodeType===3&&(xe+=lt.nodeValue.length),(rt=lt.firstChild)!==null;)tt=lt,lt=rt;for(;;){if(lt===T)break t;if(tt===I&&++et===K&&(ze=xe),tt===ee&&++st===B&&(qe=xe),(rt=lt.nextSibling)!==null)break;lt=tt,tt=lt.parentNode}lt=rt}I=ze===-1||qe===-1?null:{start:ze,end:qe}}else I=null}I=I||{start:0,end:0}}else I=null;for(nc={focusedElem:T,selectionRange:I},eo=!1,or=A;or!==null;)if(A=or,T=A.child,(A.subtreeFlags&1028)!==0&&T!==null)T.return=A,or=T;else for(;or!==null;){switch(A=or,ee=A.alternate,T=A.flags,A.tag){case 0:if((T&4)!==0&&(T=A.updateQueue,T=T!==null?T.events:null,T!==null))for(I=0;I<T.length;I++)K=T[I],K.ref.impl=K.nextImpl;break;case 11:case 15:break;case 1:if((T&1024)!==0&&ee!==null){T=void 0,I=A,K=ee.memoizedProps,ee=ee.memoizedState,B=I.stateNode;try{var gt=dn(I.type,K);T=B.getSnapshotBeforeUpdate(gt,ee),B.__reactInternalSnapshotBeforeUpdate=T}catch(bt){Ft(I,I.return,bt)}}break;case 3:if((T&1024)!==0){if(T=A.stateNode.containerInfo,I=T.nodeType,I===9)oc(T);else if(I===1)switch(T.nodeName){case"HEAD":case"HTML":case"BODY":oc(T);break;default:T.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((T&1024)!==0)throw Error(b(163))}if(T=A.sibling,T!==null){T.return=A.return,or=T;break}or=A.return}}function Qh(T,A,I){var B=I.flags;switch(I.tag){case 0:case 11:case 15:vi(T,I),B&4&&_s(5,I);break;case 1:if(vi(T,I),B&4)if(T=I.stateNode,A===null)try{T.componentDidMount()}catch(xe){Ft(I,I.return,xe)}else{var K=dn(I.type,A.memoizedProps);A=A.memoizedState;try{T.componentDidUpdate(K,A,T.__reactInternalSnapshotBeforeUpdate)}catch(xe){Ft(I,I.return,xe)}}B&64&&Gh(I),B&512&&Ps(I,I.return);break;case 3:if(vi(T,I),B&64&&(T=I.updateQueue,T!==null)){if(A=null,I.child!==null)switch(I.child.tag){case 27:case 5:A=I.child.stateNode;break;case 1:A=I.child.stateNode}try{Iu(T,A)}catch(xe){Ft(I,I.return,xe)}}break;case 27:A===null&&B&4&&Wh(I);case 26:case 5:vi(T,I),A===null&&B&4&&Kh(I),B&512&&Ps(I,I.return);break;case 12:vi(T,I);break;case 31:vi(T,I),B&4&&ef(T,I);break;case 13:vi(T,I),B&4&&tf(T,I),B&64&&(T=I.memoizedState,T!==null&&(T=T.dehydrated,T!==null&&(I=Qp.bind(null,I),vm(T,I))));break;case 22:if(B=I.memoizedState!==null||gi,!B){A=A!==null&&A.memoizedState!==null||rr,K=gi;var ee=rr;gi=B,(rr=A)&&!ee?xi(T,I,(I.subtreeFlags&8772)!==0):vi(T,I),gi=K,rr=ee}break;case 30:break;default:vi(T,I)}}function Zh(T){var A=T.alternate;A!==null&&(T.alternate=null,Zh(A)),T.child=null,T.deletions=null,T.sibling=null,T.tag===5&&(A=T.stateNode,A!==null&&ho(A)),T.stateNode=null,T.return=null,T.dependencies=null,T.memoizedProps=null,T.memoizedState=null,T.pendingProps=null,T.stateNode=null,T.updateQueue=null}var Kt=null,Tr=!1;function yi(T,A,I){for(I=I.child;I!==null;)Jh(T,A,I),I=I.sibling}function Jh(T,A,I){if(jr&&typeof jr.onCommitFiberUnmount=="function")try{jr.onCommitFiberUnmount(Wi,I)}catch{}switch(I.tag){case 26:rr||ii(I,A),yi(T,A,I),I.memoizedState?I.memoizedState.count--:I.stateNode&&(I=I.stateNode,I.parentNode.removeChild(I));break;case 27:rr||ii(I,A);var B=Kt,K=Tr;Hi(I.type)&&(Kt=I.stateNode,Tr=!1),yi(T,A,I),Fs(I.stateNode),Kt=B,Tr=K;break;case 5:rr||ii(I,A);case 6:if(B=Kt,K=Tr,Kt=null,yi(T,A,I),Kt=B,Tr=K,Kt!==null)if(Tr)try{(Kt.nodeType===9?Kt.body:Kt.nodeName==="HTML"?Kt.ownerDocument.body:Kt).removeChild(I.stateNode)}catch(ee){Ft(I,A,ee)}else try{Kt.removeChild(I.stateNode)}catch(ee){Ft(I,A,ee)}break;case 18:Kt!==null&&(Tr?(T=Kt,qf(T.nodeType===9?T.body:T.nodeName==="HTML"?T.ownerDocument.body:T,I.stateNode),Jn(T)):qf(Kt,I.stateNode));break;case 4:B=Kt,K=Tr,Kt=I.stateNode.containerInfo,Tr=!0,yi(T,A,I),Kt=B,Tr=K;break;case 0:case 11:case 14:case 15:Di(2,I,A),rr||Di(4,I,A),yi(T,A,I);break;case 1:rr||(ii(I,A),B=I.stateNode,typeof B.componentWillUnmount=="function"&&qh(I,A,B)),yi(T,A,I);break;case 21:yi(T,A,I);break;case 22:rr=(B=rr)||I.memoizedState!==null,yi(T,A,I),rr=B;break;default:yi(T,A,I)}}function ef(T,A){if(A.memoizedState===null&&(T=A.alternate,T!==null&&(T=T.memoizedState,T!==null))){T=T.dehydrated;try{Jn(T)}catch(I){Ft(A,A.return,I)}}}function tf(T,A){if(A.memoizedState===null&&(T=A.alternate,T!==null&&(T=T.memoizedState,T!==null&&(T=T.dehydrated,T!==null))))try{Jn(T)}catch(I){Ft(A,A.return,I)}}function Hp(T){switch(T.tag){case 31:case 13:case 19:var A=T.stateNode;return A===null&&(A=T.stateNode=new Xh),A;case 22:return T=T.stateNode,A=T._retryCache,A===null&&(A=T._retryCache=new Xh),A;default:throw Error(b(435,T.tag))}}function Ia(T,A){var I=Hp(T);A.forEach(function(B){if(!I.has(B)){I.add(B);var K=Zp.bind(null,T,B);B.then(K,K)}})}function Cr(T,A){var I=A.deletions;if(I!==null)for(var B=0;B<I.length;B++){var K=I[B],ee=T,xe=A,ze=xe;e:for(;ze!==null;){switch(ze.tag){case 27:if(Hi(ze.type)){Kt=ze.stateNode,Tr=!1;break e}break;case 5:Kt=ze.stateNode,Tr=!1;break e;case 3:case 4:Kt=ze.stateNode.containerInfo,Tr=!0;break e}ze=ze.return}if(Kt===null)throw Error(b(160));Jh(ee,xe,K),Kt=null,Tr=!1,ee=K.alternate,ee!==null&&(ee.return=null),K.return=null}if(A.subtreeFlags&13886)for(A=A.child;A!==null;)rf(A,T),A=A.sibling}var Jr=null;function rf(T,A){var I=T.alternate,B=T.flags;switch(T.tag){case 0:case 11:case 14:case 15:Cr(A,T),Rr(T),B&4&&(Di(3,T,T.return),_s(3,T),Di(5,T,T.return));break;case 1:Cr(A,T),Rr(T),B&512&&(rr||I===null||ii(I,I.return)),B&64&&gi&&(T=T.updateQueue,T!==null&&(B=T.callbacks,B!==null&&(I=T.shared.hiddenCallbacks,T.shared.hiddenCallbacks=I===null?B:I.concat(B))));break;case 26:var K=Jr;if(Cr(A,T),Rr(T),B&512&&(rr||I===null||ii(I,I.return)),B&4){var ee=I!==null?I.memoizedState:null;if(B=T.memoizedState,I===null)if(B===null)if(T.stateNode===null){e:{B=T.type,I=T.memoizedProps,K=K.ownerDocument||K;t:switch(B){case"title":ee=K.getElementsByTagName("title")[0],(!ee||ee[rs]||ee[lr]||ee.namespaceURI==="http://www.w3.org/2000/svg"||ee.hasAttribute("itemprop"))&&(ee=K.createElement(B),K.head.insertBefore(ee,K.querySelector("head > title"))),dr(ee,B,I),ee[lr]=T,ar(ee),B=ee;break e;case"link":var xe=nd("link","href",K).get(B+(I.href||""));if(xe){for(var ze=0;ze<xe.length;ze++)if(ee=xe[ze],ee.getAttribute("href")===(I.href==null||I.href===""?null:I.href)&&ee.getAttribute("rel")===(I.rel==null?null:I.rel)&&ee.getAttribute("title")===(I.title==null?null:I.title)&&ee.getAttribute("crossorigin")===(I.crossOrigin==null?null:I.crossOrigin)){xe.splice(ze,1);break t}}ee=K.createElement(B),dr(ee,B,I),K.head.appendChild(ee);break;case"meta":if(xe=nd("meta","content",K).get(B+(I.content||""))){for(ze=0;ze<xe.length;ze++)if(ee=xe[ze],ee.getAttribute("content")===(I.content==null?null:""+I.content)&&ee.getAttribute("name")===(I.name==null?null:I.name)&&ee.getAttribute("property")===(I.property==null?null:I.property)&&ee.getAttribute("http-equiv")===(I.httpEquiv==null?null:I.httpEquiv)&&ee.getAttribute("charset")===(I.charSet==null?null:I.charSet)){xe.splice(ze,1);break t}}ee=K.createElement(B),dr(ee,B,I),K.head.appendChild(ee);break;default:throw Error(b(468,B))}ee[lr]=T,ar(ee),B=ee}T.stateNode=B}else sd(K,T.type,T.stateNode);else T.stateNode=rd(K,B,T.memoizedProps);else ee!==B?(ee===null?I.stateNode!==null&&(I=I.stateNode,I.parentNode.removeChild(I)):ee.count--,B===null?sd(K,T.type,T.stateNode):rd(K,B,T.memoizedProps)):B===null&&T.stateNode!==null&&Nl(T,T.memoizedProps,I.memoizedProps)}break;case 27:Cr(A,T),Rr(T),B&512&&(rr||I===null||ii(I,I.return)),I!==null&&B&4&&Nl(T,T.memoizedProps,I.memoizedProps);break;case 5:if(Cr(A,T),Rr(T),B&512&&(rr||I===null||ii(I,I.return)),T.flags&32){K=T.stateNode;try{Sn(K,"")}catch(gt){Ft(T,T.return,gt)}}B&4&&T.stateNode!=null&&(K=T.memoizedProps,Nl(T,K,I!==null?I.memoizedProps:K)),B&1024&&(Dl=!0);break;case 6:if(Cr(A,T),Rr(T),B&4){if(T.stateNode===null)throw Error(b(162));B=T.memoizedProps,I=T.stateNode;try{I.nodeValue=B}catch(gt){Ft(T,T.return,gt)}}break;case 3:if(Xa=null,K=Jr,Jr=Ya(A.containerInfo),Cr(A,T),Jr=K,Rr(T),B&4&&I!==null&&I.memoizedState.isDehydrated)try{Jn(A.containerInfo)}catch(gt){Ft(T,T.return,gt)}Dl&&(Dl=!1,nf(T));break;case 4:B=Jr,Jr=Ya(T.stateNode.containerInfo),Cr(A,T),Rr(T),Jr=B;break;case 12:Cr(A,T),Rr(T);break;case 31:Cr(A,T),Rr(T),B&4&&(B=T.updateQueue,B!==null&&(T.updateQueue=null,Ia(T,B)));break;case 13:Cr(A,T),Rr(T),T.child.flags&8192&&T.memoizedState!==null!=(I!==null&&I.memoizedState!==null)&&(Da=At()),B&4&&(B=T.updateQueue,B!==null&&(T.updateQueue=null,Ia(T,B)));break;case 22:K=T.memoizedState!==null;var qe=I!==null&&I.memoizedState!==null,et=gi,st=rr;if(gi=et||K,rr=st||qe,Cr(A,T),rr=st,gi=et,Rr(T),B&8192)e:for(A=T.stateNode,A._visibility=K?A._visibility&-2:A._visibility|1,K&&(I===null||qe||gi||rr||pn(T)),I=null,A=T;;){if(A.tag===5||A.tag===26){if(I===null){qe=I=A;try{if(ee=qe.stateNode,K)xe=ee.style,typeof xe.setProperty=="function"?xe.setProperty("display","none","important"):xe.display="none";else{ze=qe.stateNode;var lt=qe.memoizedProps.style,tt=lt!=null&&lt.hasOwnProperty("display")?lt.display:null;ze.style.display=tt==null||typeof tt=="boolean"?"":(""+tt).trim()}}catch(gt){Ft(qe,qe.return,gt)}}}else if(A.tag===6){if(I===null){qe=A;try{qe.stateNode.nodeValue=K?"":qe.memoizedProps}catch(gt){Ft(qe,qe.return,gt)}}}else if(A.tag===18){if(I===null){qe=A;try{var rt=qe.stateNode;K?Kf(rt,!0):Kf(qe.stateNode,!1)}catch(gt){Ft(qe,qe.return,gt)}}}else if((A.tag!==22&&A.tag!==23||A.memoizedState===null||A===T)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===T)break e;for(;A.sibling===null;){if(A.return===null||A.return===T)break e;I===A&&(I=null),A=A.return}I===A&&(I=null),A.sibling.return=A.return,A=A.sibling}B&4&&(B=T.updateQueue,B!==null&&(I=B.retryQueue,I!==null&&(B.retryQueue=null,Ia(T,I))));break;case 19:Cr(A,T),Rr(T),B&4&&(B=T.updateQueue,B!==null&&(T.updateQueue=null,Ia(T,B)));break;case 30:break;case 21:break;default:Cr(A,T),Rr(T)}}function Rr(T){var A=T.flags;if(A&2){try{for(var I,B=T.return;B!==null;){if(Yh(B)){I=B;break}B=B.return}if(I==null)throw Error(b(160));switch(I.tag){case 27:var K=I.stateNode,ee=Il(T);Na(T,ee,K);break;case 5:var xe=I.stateNode;I.flags&32&&(Sn(xe,""),I.flags&=-33);var ze=Il(T);Na(T,ze,xe);break;case 3:case 4:var qe=I.stateNode.containerInfo,et=Il(T);Ol(T,et,qe);break;default:throw Error(b(161))}}catch(st){Ft(T,T.return,st)}T.flags&=-3}A&4096&&(T.flags&=-4097)}function nf(T){if(T.subtreeFlags&1024)for(T=T.child;T!==null;){var A=T;nf(A),A.tag===5&&A.flags&1024&&A.stateNode.reset(),T=T.sibling}}function vi(T,A){if(A.subtreeFlags&8772)for(A=A.child;A!==null;)Qh(T,A.alternate,A),A=A.sibling}function pn(T){for(T=T.child;T!==null;){var A=T;switch(A.tag){case 0:case 11:case 14:case 15:Di(4,A,A.return),pn(A);break;case 1:ii(A,A.return);var I=A.stateNode;typeof I.componentWillUnmount=="function"&&qh(A,A.return,I),pn(A);break;case 27:Fs(A.stateNode);case 26:case 5:ii(A,A.return),pn(A);break;case 22:A.memoizedState===null&&pn(A);break;case 30:pn(A);break;default:pn(A)}T=T.sibling}}function xi(T,A,I){for(I=I&&(A.subtreeFlags&8772)!==0,A=A.child;A!==null;){var B=A.alternate,K=T,ee=A,xe=ee.flags;switch(ee.tag){case 0:case 11:case 15:xi(K,ee,I),_s(4,ee);break;case 1:if(xi(K,ee,I),B=ee,K=B.stateNode,typeof K.componentDidMount=="function")try{K.componentDidMount()}catch(et){Ft(B,B.return,et)}if(B=ee,K=B.updateQueue,K!==null){var ze=B.stateNode;try{var qe=K.shared.hiddenCallbacks;
vendor: 1,575 bytes, line 8
8if(qe!==null)for(K.shared.hiddenCallbacks=null,K=0;K<qe.length;K++)Nu(qe[K],ze)}catch(et){Ft(B,B.return,et)}}I&&xe&64&&Gh(ee),Ps(ee,ee.return);break;case 27:Wh(ee);case 26:case 5:xi(K,ee,I),I&&B===null&&xe&4&&Kh(ee),Ps(ee,ee.return);break;case 12:xi(K,ee,I);break;case 31:xi(K,ee,I),I&&xe&4&&ef(K,ee);break;case 13:xi(K,ee,I),I&&xe&4&&tf(K,ee);break;case 22:ee.memoizedState===null&&xi(K,ee,I),Ps(ee,ee.return);break;case 30:break;default:xi(K,ee,I)}A=A.sibling}}function Ll(T,A){var I=null;T!==null&&T.memoizedState!==null&&T.memoizedState.cachePool!==null&&(I=T.memoizedState.cachePool.pool),T=null,A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(T=A.memoizedState.cachePool.pool),T!==I&&(T!=null&&T.refCount++,I!=null&&ms(I))}function Fl(T,A){T=null,A.alternate!==null&&(T=A.alternate.memoizedState.cache),A=A.memoizedState.cache,A!==T&&(A.refCount++,T!=null&&ms(T))}function ei(T,A,I,B){if(A.subtreeFlags&10256)for(A=A.child;A!==null;)sf(T,A,I,B),A=A.sibling}function sf(T,A,I,B){var K=A.flags;switch(A.tag){case 0:case 11:case 15:ei(T,A,I,B),K&2048&&_s(9,A);break;case 1:ei(T,A,I,B);break;case 3:ei(T,A,I,B),K&2048&&(T=null,A.alternate!==null&&(T=A.alternate.memoizedState.cache),A=A.memoizedState.cache,A!==T&&(A.refCount++,T!=null&&ms(T)));break;case 12:if(K&2048){ei(T,A,I,B),T=A.stateNode;try{var ee=A.memoizedProps,xe=ee.id,ze=ee.onPostCommit;typeof ze=="function"&&ze(xe,A.alternate===null?"mount":"update",T.passiveEffectDuration,-0)}catch(qe){Ft(A,A.return,qe)}}else ei(T,A,I,B);break;case 31:ei(T,A,I,B);break;case 13:ei(T,A,I,B);break;case 23:break;
vendor: 3,635 bytes, line 8
8case 22:ee=A.stateNode,xe=A.alternate,A.memoizedState!==null?ee._visibility&2?ei(T,A,I,B):js(T,A):ee._visibility&2?ei(T,A,I,B):(ee._visibility|=2,Un(T,A,I,B,(A.subtreeFlags&10256)!==0||!1)),K&2048&&Ll(xe,A);break;case 24:ei(T,A,I,B),K&2048&&Fl(A.alternate,A);break;default:ei(T,A,I,B)}}function Un(T,A,I,B,K){for(K=K&&((A.subtreeFlags&10256)!==0||!1),A=A.child;A!==null;){var ee=T,xe=A,ze=I,qe=B,et=xe.flags;switch(xe.tag){case 0:case 11:case 15:Un(ee,xe,ze,qe,K),_s(8,xe);break;case 23:break;case 22:var st=xe.stateNode;xe.memoizedState!==null?st._visibility&2?Un(ee,xe,ze,qe,K):js(ee,xe):(st._visibility|=2,Un(ee,xe,ze,qe,K)),K&&et&2048&&Ll(xe.alternate,xe);break;case 24:Un(ee,xe,ze,qe,K),K&&et&2048&&Fl(xe.alternate,xe);break;default:Un(ee,xe,ze,qe,K)}A=A.sibling}}function js(T,A){if(A.subtreeFlags&10256)for(A=A.child;A!==null;){var I=T,B=A,K=B.flags;switch(B.tag){case 22:js(I,B),K&2048&&Ll(B.alternate,B);break;case 24:js(I,B),K&2048&&Fl(B.alternate,B);break;default:js(I,B)}A=A.sibling}}var Ms=8192;function Hn(T,A,I){if(T.subtreeFlags&Ms)for(T=T.child;T!==null;)af(T,A,I),T=T.sibling}function af(T,A,I){switch(T.tag){case 26:Hn(T,A,I),T.flags&Ms&&T.memoizedState!==null&&jm(I,Jr,T.memoizedState,T.memoizedProps);break;case 5:Hn(T,A,I);break;case 3:case 4:var B=Jr;Jr=Ya(T.stateNode.containerInfo),Hn(T,A,I),Jr=B;break;case 22:T.memoizedState===null&&(B=T.alternate,B!==null&&B.memoizedState!==null?(B=Ms,Ms=16777216,Hn(T,A,I),Ms=B):Hn(T,A,I));break;default:Hn(T,A,I)}}function of(T){var A=T.alternate;if(A!==null&&(T=A.child,T!==null)){A.child=null;do A=T.sibling,T.sibling=null,T=A;while(T!==null)}}function ks(T){var A=T.deletions;if((T.flags&16)!==0){if(A!==null)for(var I=0;I<A.length;I++){var B=A[I];or=B,cf(B,T)}of(T)}if(T.subtreeFlags&10256)for(T=T.child;T!==null;)lf(T),T=T.sibling}function lf(T){switch(T.tag){case 0:case 11:case 15:ks(T),T.flags&2048&&Di(9,T,T.return);break;case 3:ks(T);break;case 12:ks(T);break;case 22:var A=T.stateNode;T.memoizedState!==null&&A._visibility&2&&(T.return===null||T.return.tag!==13)?(A._visibility&=-3,Oa(T)):ks(T);break;default:ks(T)}}function Oa(T){var A=T.deletions;if((T.flags&16)!==0){if(A!==null)for(var I=0;I<A.length;I++){var B=A[I];or=B,cf(B,T)}of(T)}for(T=T.child;T!==null;){switch(A=T,A.tag){case 0:case 11:case 15:Di(8,A,A.return),Oa(A);break;case 22:I=A.stateNode,I._visibility&2&&(I._visibility&=-3,Oa(A));break;default:Oa(A)}T=T.sibling}}function cf(T,A){for(;or!==null;){var I=or;switch(I.tag){case 0:case 11:case 15:Di(8,I,A);break;case 23:case 22:if(I.memoizedState!==null&&I.memoizedState.cachePool!==null){var B=I.memoizedState.cachePool.pool;B!=null&&B.refCount++}break;case 24:ms(I.memoizedState.cache)}if(B=I.child,B!==null)B.return=I,or=B;else e:for(I=T;or!==null;){B=or;var K=B.sibling,ee=B.return;if(Zh(B),B===I){or=null;break e}if(K!==null){K.return=ee,or=K;break e}or=ee}}}var $p={getCacheForType:function(T){var A=ur(Jt),I=A.data.get(T);return I===void 0&&(I=T(),A.data.set(T,I)),I},cacheSignal:function(){return ur(Jt).controller.signal}},Gp=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Ht=null,Ct=null,_t=0,Lt=0,Dr=null,Li=!1,$n=!1,Bl=!1,bi=0,Xt=0,Fi=0,mn=0,Vl=0,Lr=0,Gn=0,Ns=null,Ar=null,zl=!1,Da=0,uf=0,La=1/0,Fa=null,Bi=null,nr=0,Vi=null,qn=null,Ei=0,Ul=0,Hl=null,hf=null,Is=0,$l=null;function Fr(){return(Dt&2)!==0&&_t!==0?_t&-_t:Ne.T!==null?Xl():Cc()}function ff(){if(Lr===0)if((_t&536870912)===0||Mt){var T=qs;qs<<=1,(qs&3932160)===0&&(qs=262144),Lr=T}else Lr=536870912;return T=Ir.current,T!==null&&(T.flags|=32),Lr}function _r(T,A,I){(T===Ht&&(Lt===2||Lt===9)||T.cancelPendingCommit!==null)&&(Kn(T,0),zi(T,_t,Lr,!1)),ts(T,I),((Dt&2)===0||T!==
vendor: 16,121 bytes, line 8
8Ht)&&(T===Ht&&((Dt&2)===0&&(mn|=I),Xt===4&&zi(T,_t,Lr,!1)),ni(T))}function df(T,A,I){if((Dt&6)!==0)throw Error(b(327));var B=!I&&(A&127)===0&&(A&T.expiredLanes)===0||es(T,A),K=B?Yp(T,A):ql(T,A,!0),ee=B;do{if(K===0){$n&&!B&&zi(T,A,0,!1);break}else{if(I=T.current.alternate,ee&&!qp(I)){K=ql(T,A,!1),ee=!1;continue}if(K===2){if(ee=A,T.errorRecoveryDisabledLanes&ee)var xe=0;else xe=T.pendingLanes&-536870913,xe=xe!==0?xe:xe&536870912?536870912:0;if(xe!==0){A=xe;e:{var ze=T;K=Ns;var qe=ze.current.memoizedState.isDehydrated;if(qe&&(Kn(ze,xe).flags|=256),xe=ql(ze,xe,!1),xe!==2){if(Bl&&!qe){ze.errorRecoveryDisabledLanes|=ee,mn|=ee,K=4;break e}ee=Ar,Ar=K,ee!==null&&(Ar===null?Ar=ee:Ar.push.apply(Ar,ee))}K=xe}if(ee=!1,K!==2)continue}}if(K===1){Kn(T,0),zi(T,A,0,!0);break}e:{switch(B=T,ee=K,ee){case 0:case 1:throw Error(b(345));case 4:if((A&4194048)!==A)break;case 6:zi(B,A,Lr,!Li);break e;case 2:Ar=null;break;case 3:case 5:break;default:throw Error(b(329))}if((A&62914560)===A&&(K=Da+300-At(),10<K)){if(zi(B,A,Lr,!Li),Ys(B,0,!0)!==0)break e;Ei=A,B.timeoutHandle=$f(pf.bind(null,B,I,Ar,Fa,zl,A,Lr,mn,Gn,Li,ee,"Throttled",-0,0),K);break e}pf(B,I,Ar,Fa,zl,A,Lr,mn,Gn,Li,ee,null,-0,0)}}break}while(!0);ni(T)}function pf(T,A,I,B,K,ee,xe,ze,qe,et,st,lt,tt,rt){if(T.timeoutHandle=-1,lt=A.subtreeFlags,lt&8192||(lt&16785408)===16785408){lt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ai},af(A,ee,lt);var gt=(ee&62914560)===ee?Da-At():(ee&4194048)===ee?uf-At():0;if(gt=Mm(lt,gt),gt!==null){Ei=ee,T.cancelPendingCommit=gt(Sf.bind(null,T,A,ee,I,B,K,xe,ze,qe,st,lt,null,tt,rt)),zi(T,ee,xe,!et);return}}Sf(T,A,ee,I,B,K,xe,ze,qe)}function qp(T){for(var A=T;;){var I=A.tag;if((I===0||I===11||I===15)&&A.flags&16384&&(I=A.updateQueue,I!==null&&(I=I.stores,I!==null)))for(var B=0;B<I.length;B++){var K=I[B],ee=K.getSnapshot;K=K.value;try{if(!kr(ee(),K))return!1}catch{return!1}}if(I=A.child,A.subtreeFlags&16384&&I!==null)I.return=A,A=I;else{if(A===T)break;for(;A.sibling===null;){if(A.return===null||A.return===T)return!0;A=A.return}A.sibling.return=A.return,A=A.sibling}}return!0}function zi(T,A,I,B){A&=~Vl,A&=~mn,T.suspendedLanes|=A,T.pingedLanes&=~A,B&&(T.warmLanes|=A),B=T.expirationTimes;for(var K=A;0<K;){var ee=31-Mr(K),xe=1<<ee;B[ee]=-1,K&=~xe}I!==0&&Sc(T,I,A)}function Ba(){return(Dt&6)===0?(Os(0),!1):!0}function Gl(){if(Ct!==null){if(Lt===0)var T=Ct.return;else T=Ct,ui=sn=null,ol(T),Ln=null,ys=0,T=Ct;for(;T!==null;)$h(T.alternate,T),T=T.return;Ct=null}}function Kn(T,A){var I=T.timeoutHandle;I!==-1&&(T.timeoutHandle=-1,dm(I)),I=T.cancelPendingCommit,I!==null&&(T.cancelPendingCommit=null,I()),Ei=0,Gl(),Ht=T,Ct=I=li(T.current,null),_t=A,Lt=0,Dr=null,Li=!1,$n=es(T,A),Bl=!1,Gn=Lr=Vl=mn=Fi=Xt=0,Ar=Ns=null,zl=!1,(A&8)!==0&&(A|=A&32);var B=T.entangledLanes;if(B!==0)for(T=T.entanglements,B&=A;0<B;){var K=31-Mr(B),ee=1<<K;A|=T[K],B&=~ee}return bi=A,aa(),I}function mf(T,A){St=null,Ne.H=Cs,A===Dn||A===pa?(A=Pu(),Lt=3):A===Wo?(A=Pu(),Lt=4):Lt=A===wl?8:A!==null&&typeof A=="object"&&typeof A.then=="function"?6:1,Dr=A,Ct===null&&(Xt=1,_a(T,$r(A,T.current)))}function gf(){var T=Ir.current;return T===null?!0:(_t&4194048)===_t?Yr===null:(_t&62914560)===_t||(_t&536870912)!==0?T===Yr:!1}function yf(){var T=Ne.H;return Ne.H=Cs,T===null?Cs:T}function vf(){var T=Ne.A;return Ne.A=$p,T}function Va(){Xt=4,Li||(_t&4194048)!==_t&&Ir.current!==null||($n=!0),(Fi&134217727)===0&&(mn&134217727)===0||Ht===null||zi(Ht,_t,Lr,!1)}function ql(T,A,I){var B=Dt;Dt|=2;var K=yf(),ee=vf();(Ht!==T||_t!==A)&&(Fa=null,Kn(T,A)),A=!1;var xe=Xt;e:do try{if(Lt!==0&&Ct!==null){var ze=Ct,qe=Dr;switch(Lt){case 8:Gl(),xe=6;break e;case 3:case 2:case 9:case 6:Ir.current===null&&(A=!0);var et=Lt;if(Lt=0,Dr=null,Yn(T,ze,qe,et),I&&$n){xe=0;break e}break;default:et=Lt,Lt=0,Dr=null,Yn(T,ze,qe,et)}}Kp(),xe=Xt;break}catch(st){mf(T,st)}while(!0);return A&&T.shellSuspendCounter++,ui=sn=null,Dt=B,Ne.H=K,Ne.A=ee,Ct===null&&(Ht=null,_t=0,aa()),xe}function Kp(){for(;Ct!==null;)xf(Ct)}function Yp(T,A){var I=Dt;Dt|=2;var B=yf(),K=vf();Ht!==T||_t!==A?(Fa=null,La=At()+500,Kn(T,A)):$n=es(T,A);e:do try{if(Lt!==0&&Ct!==null){A=Ct;var ee=Dr;t:switch(Lt){case 1:Lt=0,Dr=null,Yn(T,A,ee,1);break;case 2:case 9:if(Au(ee)){Lt=0,Dr=null,bf(A);break}A=function(){Lt!==2&&Lt!==9||Ht!==T||(Lt=7),ni(T)},ee.then(A,A);break e;case 3:Lt=7;break e;case 4:Lt=5;break e;case 7:Au(ee)?(Lt=0,Dr=null,bf(A)):(Lt=0,Dr=null,Yn(T,A,ee,7));break;case 5:var xe=null;switch(Ct.tag){case 26:xe=Ct.memoizedState;case 5:case 27:var ze=Ct;if(xe?ad(xe):ze.stateNode.complete){Lt=0,Dr=null;var qe=ze.sibling;if(qe!==null)Ct=qe;else{var et=ze.return;et!==null?(Ct=et,za(et)):Ct=null}break t}}Lt=0,Dr=null,Yn(T,A,ee,5);break;case 6:Lt=0,Dr=null,Yn(T,A,ee,6);break;case 8:Gl(),Xt=6;break e;default:throw Error(b(462))}}Wp();break}catch(st){mf(T,st)}while(!0);return ui=sn=null,Ne.H=B,Ne.A=K,Dt=I,Ct!==null?0:(Ht=null,_t=0,aa(),Xt)}function Wp(){for(;Ct!==null&&!Et();)xf(Ct)}function xf(T){var A=Uh(T.alternate,T,bi);T.memoizedProps=T.pendingProps,A===null?za(T):Ct=A}function bf(T){var A=T,I=A.alternate;switch(A.tag){case 15:case 0:A=Dh(I,A,A.pendingProps,A.type,void 0,_t);break;case 11:A=Dh(I,A,A.pendingProps,A.type.render,A.ref,_t);break;case 5:ol(A);default:$h(I,A),A=Ct=gu(A,bi),A=Uh(I,A,bi)}T.memoizedProps=T.pendingProps,A===null?za(T):Ct=A}function Yn(T,A,I,B){ui=sn=null,ol(A),Ln=null,ys=0;var K=A.return;try{if(Lp(T,K,A,I,_t)){Xt=1,_a(T,$r(I,T.current)),Ct=null;return}}catch(ee){if(K!==null)throw Ct=K,ee;Xt=1,_a(T,$r(I,T.current)),Ct=null;return}A.flags&32768?(Mt||B===1?T=!0:$n||(_t&536870912)!==0?T=!1:(Li=T=!0,(B===2||B===9||B===3||B===6)&&(B=Ir.current,B!==null&&B.tag===13&&(B.flags|=16384))),Ef(A,T)):za(A)}function za(T){var A=T;do{if((A.flags&32768)!==0){Ef(A,Li);return}T=A.return;var I=Vp(A.alternate,A,bi);if(I!==null){Ct=I;return}if(A=A.sibling,A!==null){Ct=A;return}Ct=A=T}while(A!==null);Xt===0&&(Xt=5)}function Ef(T,A){do{var I=zp(T.alternate,T);if(I!==null){I.flags&=32767,Ct=I;return}if(I=T.return,I!==null&&(I.flags|=32768,I.subtreeFlags=0,I.deletions=null),!A&&(T=T.sibling,T!==null)){Ct=T;return}Ct=T=I}while(T!==null);Xt=6,Ct=null}function Sf(T,A,I,B,K,ee,xe,ze,qe){T.cancelPendingCommit=null;do Ua();while(nr!==0);if((Dt&6)!==0)throw Error(b(327));if(A!==null){if(A===T.current)throw Error(b(177));if(ee=A.lanes|A.childLanes,ee|=Io,Rd(T,I,ee,xe,ze,qe),T===Ht&&(Ct=Ht=null,_t=0),qn=A,Vi=T,Ei=I,Ul=ee,Hl=K,hf=B,(A.subtreeFlags&10256)!==0||(A.flags&10256)!==0?(T.callbackNode=null,T.callbackPriority=0,Jp(Qr,function(){return Af(),null})):(T.callbackNode=null,T.callbackPriority=0),B=(A.flags&13878)!==0,(A.subtreeFlags&13878)!==0||B){B=Ne.T,Ne.T=null,K=He.p,He.p=2,xe=Dt,Dt|=4;try{Up(T,A,I)}finally{Dt=xe,He.p=K,Ne.T=B}}nr=1,wf(),Tf(),Cf()}}function wf(){if(nr===1){nr=0;var T=Vi,A=qn,I=(A.flags&13878)!==0;if((A.subtreeFlags&13878)!==0||I){I=Ne.T,Ne.T=null;var B=He.p;He.p=2;var K=Dt;Dt|=4;try{rf(A,T);var ee=nc,xe=ou(T.containerInfo),ze=ee.focusedElem,qe=ee.selectionRange;if(xe!==ze&&ze&&ze.ownerDocument&&au(ze.ownerDocument.documentElement,ze)){if(qe!==null&&Po(ze)){var et=qe.start,st=qe.end;if(st===void 0&&(st=et),"selectionStart"in ze)ze.selectionStart=et,ze.selectionEnd=Math.min(st,ze.value.length);else{var lt=ze.ownerDocument||document,tt=lt&&lt.defaultView||window;if(tt.getSelection){var rt=tt.getSelection(),gt=ze.textContent.length,bt=Math.min(qe.start,gt),Ut=qe.end===void 0?bt:Math.min(qe.end,gt);!rt.extend&&bt>Ut&&(xe=Ut,Ut=bt,bt=xe);var Qe=su(ze,bt),Xe=su(ze,Ut);if(Qe&&Xe&&(rt.rangeCount!==1||rt.anchorNode!==Qe.node||rt.anchorOffset!==Qe.offset||rt.focusNode!==Xe.node||rt.focusOffset!==Xe.offset)){var Je=lt.createRange();Je.setStart(Qe.node,Qe.offset),rt.removeAllRanges(),bt>Ut?(rt.addRange(Je),rt.extend(Xe.node,Xe.offset)):(Je.setEnd(Xe.node,Xe.offset),rt.addRange(Je))}}}}for(lt=[],rt=ze;rt=rt.parentNode;)rt.nodeType===1&&lt.push({element:rt,left:rt.scrollLeft,top:rt.scrollTop});for(typeof ze.focus=="function"&&ze.focus(),ze=0;ze<lt.length;ze++){var at=lt[ze];at.element.scrollLeft=at.left,at.element.scrollTop=at.top}}eo=!!ic,nc=ic=null}finally{Dt=K,He.p=B,Ne.T=I}}T.current=A,nr=2}}function Tf(){if(nr===2){nr=0;var T=Vi,A=qn,I=(A.flags&8772)!==0;if((A.subtreeFlags&8772)!==0||I){I=Ne.T,Ne.T=null;var B=He.p;He.p=2;var K=Dt;Dt|=4;try{Qh(T,A.alternate,A)}finally{Dt=K,He.p=B,Ne.T=I}}nr=3}}function Cf(){if(nr===4||nr===3){nr=0,Tt();var T=Vi,A=qn,I=Ei,B=hf;(A.subtreeFlags&10256)!==0||(A.flags&10256)!==0?nr=5:(nr=0,qn=Vi=null,Rf(T,T.pendingLanes));var K=T.pendingLanes;if(K===0&&(Bi=null),co(I),A=A.stateNode,jr&&typeof jr.onCommitFiberRoot=="function")try{jr.onCommitFiberRoot(Wi,A,void 0,(A.current.flags&128)===128)}catch{}if(B!==null){A=Ne.T,K=He.p,He.p=2,Ne.T=null;try{for(var ee=T.onRecoverableError,xe=0;xe<B.length;xe++){var ze=B[xe];ee(ze.value,{componentStack:ze.stack})}}finally{Ne.T=A,He.p=K}}(Ei&3)!==0&&Ua(),ni(T),K=T.pendingLanes,(I&261930)!==0&&(K&42)!==0?T===$l?Is++:(Is=0,$l=T):Is=0,Os(0)}}function Rf(T,A){(T.pooledCacheLanes&=A)===0&&(A=T.pooledCache,A!=null&&(T.pooledCache=null,ms(A)))}function Ua(){return wf(),Tf(),Cf(),Af()}function Af(){if(nr!==5)return!1;var T=Vi,A=Ul;Ul=0;var I=co(Ei),B=Ne.T,K=He.p;try{He.p=32>I?32:I,Ne.T=null,I=Hl,Hl=null;var ee=Vi,xe=Ei;if(nr=0,qn=Vi=null,Ei=0,(Dt&6)!==0)throw Error(b(331));var ze=Dt;if(Dt|=4,lf(ee.current),sf(ee,ee.current,xe,I),Dt=ze,Os(0,!1),jr&&typeof jr.onPostCommitFiberRoot=="function")try{jr.onPostCommitFiberRoot(Wi,ee)}catch{}return!0}finally{He.p=K,Ne.T=B,Rf(T,A)}}function _f(T,A,I){A=$r(I,A),A=Sl(T.stateNode,A,2),T=Ni(T,A,2),T!==null&&(ts(T,2),ni(T))}function Ft(T,A,I){if(T.tag===3)_f(T,T,I);else for(;A!==null;){if(A.tag===3){_f(A,T,I);break}else if(A.tag===1){var B=A.stateNode;if(typeof A.type.getDerivedStateFromError=="function"||typeof B.componentDidCatch=="function"&&(Bi===null||!Bi.has(B))){T=$r(I,T),I=_h(2),B=Ni(A,I,2),B!==null&&(Ph(I,B,A,T),ts(B,2),ni(B));break}}A=A.return}}function Kl(T,A,I){var B=T.pingCache;if(B===null){B=T.pingCache=new Gp;var K=new Set;B.set(A,K)}else K=B.get(A),K===void 0&&(K=new Set,B.set(A,K));K.has(I)||(Bl=!0,K.add(I),T=Xp.bind(null,T,A,I),A.then(T,T))}function Xp(T,A,I){var B=T.pingCache;B!==null&&B.delete(A),T.pingedLanes|=T.suspendedLanes&I,T.warmLanes&=~I,Ht===T&&(_t&I)===I&&(Xt===4||Xt===3&&(_t&62914560)===_t&&300>At()-Da?(Dt&2)===0&&Kn(T,0):Vl|=I,Gn===_t&&(Gn=0)),ni(T)}function Pf(T,A){A===0&&(A=Ec()),T=tn(T,A),T!==null&&(ts(T,A),ni(T))}function Qp(T){var A=T.memoizedState,I=0;A!==null&&(I=A.retryLane),Pf(T,I)}function Zp(T,A){var I=0;switch(T.tag){case 31:case 13:var B=T.stateNode,K=T.memoizedState;K!==null&&(I=K.retryLane);break;case 19:B=T.stateNode;break;case 22:B=T.stateNode._retryCache;break;default:throw Error(b(314))}B!==null&&B.delete(A),Pf(T,I)}function Jp(T,A){return vr(T,A)}var Ha=null,Wn=null,Yl=!1,$a=!1,Wl=!1,Ui=0;function ni(T){T!==Wn&&T.next===null&&(Wn===null?Ha=Wn=T:Wn=Wn.next=T),$a=!0,Yl||(Yl=!0,tm())}function Os(T,A){if(!Wl&&$a){Wl=!0;do for(var I=!1,B=Ha;B!==null;){if(T!==0){var K=B.pendingLanes;if(K===0)var ee=0;else{var xe=B.suspendedLanes,ze=B.pingedLanes;ee=(1<<31-Mr(42|T)+1)-1,ee&=K&~(xe&~ze),ee=ee&201326741?ee&201326741|1:ee?ee|2:0}ee!==0&&(I=!0,Nf(B,ee))}else ee=_t,ee=Ys(B,B===Ht?ee:0,B.cancelPendingCommit!==null||B.timeoutHandle!==-1),(ee&3)===0||es(B,ee)||(I=!0,Nf(B,ee));B=B.next}while(I);Wl=!1}}function em(){jf()}function jf(){$a=Yl=!1;var T=0;Ui!==0&&fm()&&(T=Ui);for(var A=At(),I=null,B=Ha;B!==null;){var K=B.next,ee=Mf(B,A);ee===0?(B.next=null,I===null?Ha=K:I.next=K,K===null&&(Wn=I)):(I=B,(T!==0||(ee&3)!==0)&&($a=!0)),B=K}nr!==0&&nr!==5||Os(T),Ui!==0&&(Ui=0)}function Mf(T,A){for(var I=T.suspendedLanes,B=T.pingedLanes,K=T.expirationTimes,ee=T.pendingLanes&-62914561;0<ee;){var xe=31-Mr(ee),ze=1<<xe,qe=K[xe];qe===-1?((ze&I)===0||(ze&B)!==0)&&(K[xe]=Cd(ze,A)):qe<=A&&(T.expiredLanes|=ze),ee&=~ze}if(A=Ht,I=_t,I=Ys(T,T===A?I:0,T.cancelPendingCommit!==null||T.timeoutHandle!==-1),B=T.callbackNode,I===0||T===A&&(Lt===2||Lt===9)||T.cancelPendingCommit!==null)return B!==null&&B!==null&&ht(B),T.callbackNode=null,T.callbackPriority=0;if((I&3)===0||es(T,I)){if(A=I&-I,A===T.callbackPriority)return A;switch(B!==null&&ht(B),co(I)){case 2:case 8:I=Br;break;case 32:I=Qr;break;case 268435456:I=wi;break;default:I=Qr}return B=kf.bind(null,T),I=vr(I,B),T.callbackPriority=A,T.callbackNode=I,A}return B!==null&&B!==null&&ht(B),T.callbackPriority=2,T.callbackNode=null,2}function kf(T,A){if(nr!==0&&nr!==5)return T.callbackNode=null,T.callbackPriority=0,null;var I=T.callbackNode;if(Ua()&&T.callbackNode!==I)return null;var B=_t;return B=Ys(T,T===Ht?B:0,T.cancelPendingCommit!==null||T.timeoutHandle!==-1),B===0?null:(df(T,B,A),Mf(T,At()),T.callbackNode!=null&&T.callbackNode===I?kf.bind(null,T):null)}function Nf(T,A){if(Ua())return null;df(T,A,!0)}function tm(){pm(function(){(Dt&6)!==0?vr(pr,em):jf()})}function Xl(){if(Ui===0){var T=In;T===0&&(T=Gs,Gs<<=1,(Gs&261888)===0&&(Gs=256)),Ui=T}return Ui}function If(T){return T==null||typeof T=="symbol"||typeof T=="boolean"?null:typeof T=="function"?T:Zs(""+T)}function Of(T,A){var I=A.ownerDocument.createElement("input");return I.name=A.name,I.value=A.value,T.id&&I.setAttribute("form",T.id),A.parentNode.insertBefore(I,A),T=new FormData(T),I.parentNode.removeChild(I),T}function rm(T,A,I,B,K){if(A==="submit"&&I&&I.stateNode===K){var ee=If((K[Sr]||null).action),xe=B.submitter;xe&&(A=(A=xe[Sr]||null)?If(A.formAction):xe.getAttribute("formAction"),A!==null&&(ee=A,xe=null));var ze=new ra("action","action",null,B,K);T.push({event:ze,listeners:[{instance:null,listener:function(){if(B.defaultPrevented){if(Ui!==0){var qe=xe?Of(K,xe):new FormData(K);gl(I,{pending:!0,data:qe,method:K.method,action:ee},null,qe)}}else typeof ee=="function"&&(ze.preventDefault(),qe=xe?Of(K,xe):new FormData(K),gl(I,{pending:!0,data:qe,method:K.method,action:ee},ee,qe))},currentTarget:K}]})}}for(var Ql=0;Ql<No.length;Ql++){var Zl=No[Ql],im=Zl.toLowerCase(),sm=Zl[0].toUpperCase()+Zl.slice(1);Zr(im,"on"+sm)}Zr(uu,"onAnimationEnd"),Zr(hu,"onAnimationIteration"),Zr(fu,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(bp,"onTransitionRun"),Zr(Ep,"onTransitionStart"),Zr(Sp,"onTransitionCancel"),Zr(du,"onTransitionEnd"),bn("onMouseEnter",["mouseout","mouseover"]),bn("onMouseLeave",["mouseout","mouseover"]),bn("onPointerEnter",["pointerout","pointerover"]),bn("onPointerLeave",["pointerout","pointerover"]),Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),am=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ds));function Df(T,A){A=(A&4)!==0;for(var I=0;I<T.length;I++){var B=T[I],K=B.event;B=B.listeners;e:{var ee=void 0;if(A)for(var xe=B.length-1;0<=xe;xe--){var ze=B[xe],qe=ze.instance,et=ze.currentTarget;if(ze=ze.listener,qe!==ee&&K.isPropagationStopped())break e;ee=ze,K.currentTarget=et;try{ee(K)}catch(st){sa(st)}K.currentTarget=null,ee=qe}else for(xe=0;xe<B.length;xe++){if(ze=B[xe],qe=ze.instance,et=ze.currentTarget,ze=ze.listener,qe!==ee&&K.isPropagationStopped())break e;ee=ze,K.currentTarget=et;try{ee(K)}catch(st){sa(st)}K.currentTarget=null,ee=qe}}}}function Rt(T,A){var I=A[uo];I===void 0&&(I=A[uo]=new Set);var B=T+"__bubble";I.has(B)||(Lf(A,T,2,!1),I.add(B))}function Jl(T,A,I){var B=0;A&&(B|=4),Lf(I,T,B,A)}var Ga="_reactListening"+Math.random().toString(36).slice(2);
vendor: 3,528 bytes, line 8
8function ec(T){if(!T[Ga]){T[Ga]=!0,_c.forEach(function(I){I!=="selectionchange"&&(am.has(I)||Jl(I,!1,T),Jl(I,!0,T))});var A=T.nodeType===9?T:T.ownerDocument;A===null||A[Ga]||(A[Ga]=!0,Jl("selectionchange",!1,A))}}function Lf(T,A,I,B){switch(dd(A)){case 2:var K=Im;break;case 8:K=Om;break;default:K=mc}I=K.bind(null,A,I,T),K=void 0,!bo||A!=="touchstart"&&A!=="touchmove"&&A!=="wheel"||(K=!0),B?K!==void 0?T.addEventListener(A,I,{capture:!0,passive:K}):T.addEventListener(A,I,!0):K!==void 0?T.addEventListener(A,I,{passive:K}):T.addEventListener(A,I,!1)}function tc(T,A,I,B,K){var ee=B;if((A&1)===0&&(A&2)===0&&B!==null)e:for(;;){if(B===null)return;var xe=B.tag;if(xe===3||xe===4){var ze=B.stateNode.containerInfo;if(ze===K)break;if(xe===4)for(xe=B.return;xe!==null;){var qe=xe.tag;if((qe===3||qe===4)&&xe.stateNode.containerInfo===K)return;xe=xe.return}for(;ze!==null;){if(xe=yn(ze),xe===null)return;if(qe=xe.tag,qe===5||qe===6||qe===26||qe===27){B=ee=xe;continue e}ze=ze.parentNode}}B=B.return}Vc(function(){var et=ee,st=vo(I),lt=[];e:{var tt=pu.get(T);if(tt!==void 0){var rt=ra,gt=T;switch(T){case"keypress":if(ea(I)===0)break e;case"keydown":case"keyup":rt=Xd;break;case"focusin":gt="focus",rt=To;break;case"focusout":gt="blur",rt=To;break;case"beforeblur":case"afterblur":rt=To;break;case"click":if(I.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":rt=Hc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":rt=Fd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":rt=Jd;break;case uu:case hu:case fu:rt=zd;break;case du:rt=tp;break;case"scroll":case"scrollend":rt=Dd;break;case"wheel":rt=np;break;case"copy":case"cut":case"paste":rt=Hd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":rt=Gc;break;case"toggle":case"beforetoggle":rt=ap}var bt=(A&4)!==0,Ut=!bt&&(T==="scroll"||T==="scrollend"),Qe=bt?tt!==null?tt+"Capture":null:tt;bt=[];for(var Xe=et,Je;Xe!==null;){var at=Xe;if(Je=at.stateNode,at=at.tag,at!==5&&at!==26&&at!==27||Je===null||Qe===null||(at=ns(Xe,Qe),at!=null&&bt.push(Ls(Xe,at,Je))),Ut)break;Xe=Xe.return}0<bt.length&&(tt=new rt(tt,gt,null,I,st),lt.push({event:tt,listeners:bt}))}}if((A&7)===0){e:{if(tt=T==="mouseover"||T==="pointerover",rt=T==="mouseout"||T==="pointerout",tt&&I!==yo&&(gt=I.relatedTarget||I.fromElement)&&(yn(gt)||gt[gn]))break e;if((rt||tt)&&(tt=st.window===st?st:(tt=st.ownerDocument)?tt.defaultView||tt.parentWindow:window,rt?(gt=I.relatedTarget||I.toElement,rt=et,gt=gt?yn(gt):null,gt!==null&&(Ut=M(gt),bt=gt.tag,gt!==Ut||bt!==5&&bt!==27&&bt!==6)&&(gt=null)):(rt=null,gt=et),rt!==gt)){if(bt=Hc,at="onMouseLeave",Qe="onMouseEnter",Xe="mouse",(T==="pointerout"||T==="pointerover")&&(bt=Gc,at="onPointerLeave",Qe="onPointerEnter",Xe="pointer"),Ut=rt==null?tt:is(rt),Je=gt==null?tt:is(gt),tt=new bt(at,Xe+"leave",rt,I,st),tt.target=Ut,tt.relatedTarget=Je,at=null,yn(st)===et&&(bt=new bt(Qe,Xe+"enter",gt,I,st),bt.target=Je,bt.relatedTarget=Ut,at=bt),Ut=at,rt&&gt)t:{for(bt=om,Qe=rt,Xe=gt,Je=0,at=Qe;at;at=bt(at))Je++;at=0;for(var vt=Xe;vt;vt=bt(vt))at++;for(;0<Je-at;)Qe=bt(Qe),Je--;for(;0<at-Je;)Xe=bt(Xe),at--;for(;Je--;){if(Qe===Xe||Xe!==null&&Qe===Xe.alternate){bt=Qe;break t}Qe=bt(Qe),Xe=bt(Xe)}bt=null}else bt=null;rt!==null&&Ff(lt,tt,rt,bt,!1),gt!==null&&Ut!==null&&Ff(lt,Ut,gt,bt,!0)}}
vendor: 5,273 bytes, lines 8-9
8e:{if(tt=et?is(et):window,rt=tt.nodeName&&tt.nodeName.toLowerCase(),rt==="select"||rt==="input"&&tt.type==="file")var It=Jc;else if(Qc(tt))if(eu)It=yp;else{It=mp;var yt=pp}else rt=tt.nodeName,!rt||rt.toLowerCase()!=="input"||tt.type!=="checkbox"&&tt.type!=="radio"?et&&go(et.elementType)&&(It=Jc):It=gp;if(It&&(It=It(T,et))){Zc(lt,It,I,st);break e}yt&&yt(T,tt,et),T==="focusout"&&et&&tt.type==="number"&&et.memoizedProps.value!=null&&mo(tt,"number",tt.value)}switch(yt=et?is(et):window,T){case"focusin":(Qc(yt)||yt.contentEditable==="true")&&(Rn=yt,jo=et,fs=null);break;case"focusout":fs=jo=Rn=null;break;case"mousedown":Mo=!0;break;case"contextmenu":case"mouseup":case"dragend":Mo=!1,lu(lt,I,st);break;case"selectionchange":if(xp)break;case"keydown":case"keyup":lu(lt,I,st)}var wt;if(Ro)e:{switch(T){case"compositionstart":var Pt="onCompositionStart";break e;case"compositionend":Pt="onCompositionEnd";break e;case"compositionupdate":Pt="onCompositionUpdate";break e}Pt=void 0}else Cn?Wc(T,I)&&(Pt="onCompositionEnd"):T==="keydown"&&I.keyCode===229&&(Pt="onCompositionStart");Pt&&(qc&&I.locale!=="ko"&&(Cn||Pt!=="onCompositionStart"?Pt==="onCompositionEnd"&&Cn&&(wt=zc()):(Ri=st,Eo="value"in Ri?Ri.value:Ri.textContent,Cn=!0)),yt=qa(et,Pt),0<yt.length&&(Pt=new $c(Pt,T,null,I,st),lt.push({event:Pt,listeners:yt}),wt?Pt.data=wt:(wt=Xc(I),wt!==null&&(Pt.data=wt)))),(wt=cp?up(T,I):hp(T,I))&&(Pt=qa(et,"onBeforeInput"),0<Pt.length&&(yt=new $c("onBeforeInput","beforeinput",null,I,st),lt.push({event:yt,listeners:Pt}),yt.data=wt)),rm(lt,T,et,I,st)}Df(lt,A)})}function Ls(T,A,I){return{instance:T,listener:A,currentTarget:I}}function qa(T,A){for(var I=A+"Capture",B=[];T!==null;){var K=T,ee=K.stateNode;if(K=K.tag,K!==5&&K!==26&&K!==27||ee===null||(K=ns(T,I),K!=null&&B.unshift(Ls(T,K,ee)),K=ns(T,A),K!=null&&B.push(Ls(T,K,ee))),T.tag===3)return B;T=T.return}return[]}function om(T){if(T===null)return null;do T=T.return;while(T&&T.tag!==5&&T.tag!==27);return T||null}function Ff(T,A,I,B,K){for(var ee=A._reactName,xe=[];I!==null&&I!==B;){var ze=I,qe=ze.alternate,et=ze.stateNode;if(ze=ze.tag,qe!==null&&qe===B)break;ze!==5&&ze!==26&&ze!==27||et===null||(qe=et,K?(et=ns(I,ee),et!=null&&xe.unshift(Ls(I,et,qe))):K||(et=ns(I,ee),et!=null&&xe.push(Ls(I,et,qe)))),I=I.return}xe.length!==0&&T.push({event:A,listeners:xe})}var lm=/\r\n?/g,cm=/\u0000|\uFFFD/g;function Bf(T){return(typeof T=="string"?T:""+T).replace(lm,`
9`).replace(cm,"")}function Vf(T,A){return A=Bf(A),Bf(T)===A}function Vt(T,A,I,B,K,ee){switch(I){case"children":typeof B=="string"?A==="body"||A==="textarea"&&B===""||Sn(T,B):(typeof B=="number"||typeof B=="bigint")&&A!=="body"&&Sn(T,""+B);break;case"className":Xs(T,"class",B);break;case"tabIndex":Xs(T,"tabindex",B);break;case"dir":case"role":case"viewBox":case"width":case"height":Xs(T,I,B);break;case"style":Fc(T,B,ee);break;case"data":if(A!=="object"){Xs(T,"data",B);break}case"src":case"href":if(B===""&&(A!=="a"||I!=="href")){T.removeAttribute(I);break}if(B==null||typeof B=="function"||typeof B=="symbol"||typeof B=="boolean"){T.removeAttribute(I);break}B=Zs(""+B),T.setAttribute(I,B);break;case"action":case"formAction":if(typeof B=="function"){T.setAttribute(I,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof ee=="function"&&(I==="formAction"?(A!=="input"&&Vt(T,A,"name",K.name,K,null),Vt(T,A,"formEncType",K.formEncType,K,null),Vt(T,A,"formMethod",K.formMethod,K,null),Vt(T,A,"formTarget",K.formTarget,K,null)):(Vt(T,A,"encType",K.encType,K,null),Vt(T,A,"method",K.method,K,null),Vt(T,A,"target",K.target,K,null)));if(B==null||typeof B=="symbol"||typeof B=="boolean"){T.removeAttribute(I);break}B=Zs(""+B),T.setAttribute(I,B);break;case"onClick":B!=null&&(T.onclick=ai);break;case"onScroll":B!=null&&Rt("scroll",T);break;case"onScrollEnd":B!=null&&Rt("scrollend",T);break;case"dangerouslySetInnerHTML":if(B!=null){if(typeof B!="object"||!("__html"in B))throw Error(b(61));if(I=B.__html,I!=null){if(K.children!=null)throw Error(b(60));T.innerHTML=I}}break;case"multiple":T.multiple=B&&typeof B!="function"&&typeof B!="symbol";break;case"muted":T.muted=B&&typeof B!="function"&&typeof B!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(B==null||typeof B=="function"||typeof B=="boolean"||typeof B=="symbol"){T.removeAttribute("xlink:href");break}I=Zs(""+B),T.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",I);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":B!=null&&typeof B!="function"&&typeof B!="symbol"?T.setAttribute(I,""+B):T.removeAttribute(I);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":B&&typeof B!="function"&&typeof B!="symbol"?T.setAttribute(I,""):T.removeAttribute(I);break;case"capture":case"download":B===!0?T.setAttribute(I,""):B!==!1&&B!=null&&typeof B!="function"&&typeof B!="symbol"?T.setAttribute(I,B):T.removeAttribute(I);break;case"cols":case"rows":case"size":case"span":B!=null&&typeof B!="function"&&typeof B!="symbol"&&!isNaN(B)&&1<=B?T.setAttribute(I,B):T.removeAttribute(I);break;case"rowSpan":case"start":B==null||typeof B=="function"||typeof B=="symbol"||isNaN(B)?T.removeAttribute(I):T.setAttribute(I,B);break;case"popover":Rt("beforetoggle",T),Rt("toggle",T),Ws(T,"popover",B);break;case"xlinkActuate":si(T,"http://www.w3.org/1999/xlink","xlink:actuate",B);break;case"xlinkArcrole":si(T,"http://www.w3.org/1999/xlink","xlink:arcrole",B);break;case"xlinkRole":si(T,"http://www.w3.org/1999/xlink","xlink:role",B);break;case"xlinkShow":si(T,"http://www.w3.org/1999/xlink","xlink:show",B);break;case"xlinkTitle":si(T,"http://www.w3.org/1999/xlink","xlink:title",B);break;case"xlinkType":si(T,"http://www.w3.org/1999/xlink","xlink:type",B);break;case"xmlBase":si(T,"http://www.w3.org/XML/1998/namespace","xml:base",B);break;case"xmlLang":si(T,"http://www.w3.org/XML/1998/namespace","xml:lang",B);break;case"xmlSpace":si(T,"http://www.w3.org/XML/1998/namespace","xml:space",B);break;case"is":Ws(T,"is",B);break;case"innerText":case"textContent":break;default:(!(2<I.length)||I[0]!=="o"&&I[0]!=="O"||I[1]!=="n"&&I[1]!=="N")&&(I=Id.get(I)||I,Ws(T,I,B))}}function rc(T,A,I,B,K,ee){switch(I){case"style":Fc(T,B,ee);break;case"dangerouslySetInnerHTML":if(B!=null){if(typeof B!="object"||!("__html"in B))throw Error(b(61));if(I=B.__html,I!=null){if(K.children!=null)throw Error(b(60));T.innerHTML=I}}break;case"children":typeof B=="string"?Sn(T,B):(typeof B=="number"||typeof B=="bigint")&&Sn(T,""+B);break;case"onScroll":B!=null&&Rt("scroll",T);break;case"onScrollEnd":B!=null&&Rt("scrollend",T);break;case"onClick":B!=null&&(T.onclick=ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pc.hasOwnProperty(I))e:{if(I[0]==="o"&&I[1]==="n"&&(K=I.endsWith("Capture"),A=I.slice(2,K?I.length-7:void 0),ee=T[Sr]||null,ee=ee!=null?ee[I]:null,typeof ee=="function"&&T.removeEventListener(A,ee,K),typeof B=="function")){typeof ee!="function"&&ee!==null&&(I in T?T[I]=null:T.hasAttribute(I)&&T.removeAttribute(I)),T.addEventListener(A,B,K);break e}I in T?T[I]=B:B===!0?T.setAttribute(I,""):Ws(T,I,B)}}}function dr(T,A,I){switch(A){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",T),Rt("load",T);var B=!1,K=!1,ee;for(ee in I)if(I.hasOwnProperty(ee)){var xe=I[ee];if(xe!=null)switch(ee){case"src":B=!0;break;case"srcSet":K=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(b(137,A));default:Vt(T,A,ee,xe,I,null)}}K&&Vt(T,A,"srcSet",I.srcSet,I,null),B&&Vt(T,A,"src",I.src,I,null);return;case"input":Rt("invalid",T);var ze=ee=xe=K=null,qe=null,et=null;for(B in I)if(I.hasOwnProperty(B)){var st=I[B];if(st!=null)switch(B){case"name":K=st;break;case"type":xe=st;break;case"checked":qe=st;break;case"defaultChecked":et=st;break;case"value":ee=st;break;case"defaultValue":ze=st;break;case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(b(137,A));break;default:Vt(T,A,B,st,I,null)}}Ic(T,ee,ze,qe,et,xe,K,!1);return;case"select":Rt("invalid",T),B=xe=ee=null;for(K in I)if(I.hasOwnProperty(K)&&(ze=I[K],ze!=null))switch(K){case"value":ee=ze;break;case"defaultValue":xe=ze;break;case"multiple":B=ze;default:Vt(T,A,K,ze,I,null)}A=ee,I=xe,T.multiple=!!B,A!=null?En(T,!!B,A,!1):I!=null&&En(T,!!B,I,!0);return;case"textarea":Rt("invalid",T),ee=K=B=null;for(xe in I)if(I.hasOwnProperty(xe)&&(ze=I[xe],ze!=null))switch(xe){case"value":B=ze;break;case"defaultValue":K=ze;break;case"children":ee=ze;break;case"dangerouslySetInnerHTML":if(ze!=null)throw Error(b(91));break;default:Vt(T,A,xe,ze,I,null)}Dc(T,B,K,ee);return;case"option":for(qe in I)I.hasOwnProperty(qe)&&(B=I[qe],B!=null)&&(qe==="selected"?T.selected=B&&typeof B!="function"&&typeof B!="symbol":Vt(T,A,qe,B,I,null));return;case"dialog":Rt("beforetoggle",T),Rt("toggle",T),Rt("cancel",T),Rt("close",T);break;case"iframe":case"object":Rt("load",T);break;case"video":case"audio":for(B=0;B<Ds.length;B++)Rt(Ds[B],T);break;case"image":Rt("error",T),Rt("load",T);break;case"details":Rt("toggle",T);break;case"embed":case"source":case"link":Rt("error",T),Rt("load",T);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(et in I)if(I.hasOwnProperty(et)&&(B=I[et],B!=null))switch(et){case"children":case"dangerouslySetInnerHTML":throw Error(b(137,A));default:Vt(T,A,et,B,I,null)}return;default:if(go(A)){for(st in I)I.hasOwnProperty(st)&&(B=I[st],B!==void 0&&rc(T,A,st,B,I,void 0));return}}for(ze in I)I.hasOwnProperty(ze)&&(B=I[ze],B!=null&&Vt(T,A,ze,B,I,null))}function um(T,A,I,B){switch(A){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var K=null,ee=null,xe=null,ze=null,qe=null,et=null,st=null;for(rt in I){var lt=I[rt];if(I.hasOwnProperty(rt)&&lt!=null)switch(rt){case"checked":break;case"value":break;case"defaultValue":qe=lt;default:B.hasOwnProperty(rt)||Vt(T,A,rt,null,B,lt)}}for(var tt in B){var rt=B[tt];if(lt=I[tt],B.hasOwnProperty(tt)&&(rt!=null||lt!=null))switch(tt){case"type":ee=rt;break;case"name":K=rt;break;case"checked":et=rt;break;case"defaultChecked":st=rt;break;case"value":xe=rt;break;case"defaultValue":ze=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(b(137,A));break;default:rt!==lt&&Vt(T,A,tt,rt,B,lt)}}po(T,xe,ze,qe,et,st,ee,K);return;case"select":rt=xe=ze=tt=null;for(ee in I)if(qe=I[ee],I.hasOwnProperty(ee)&&qe!=null)switch(ee){case"value":break;case"multiple":rt=qe;default:B.hasOwnProperty(ee)||Vt(T,A,ee,null,B,qe)}for(K in B)if(ee=B[K],qe=I[K],B.hasOwnProperty(K)&&(ee!=null||qe!=null))switch(K){case"value":tt=ee;break;case"defaultValue":ze=ee;break;case"multiple":xe=ee;default:ee!==qe&&Vt(T,A,K,ee,B,qe)}A=ze,I=xe,B=rt,tt!=null?En(T,!!I,tt,!1):!!B!=!!I&&(A!=null?En(T,!!I,A,!0):En(T,!!I,I?[]:"",!1));return;case"textarea":rt=tt=null;for(ze in I)if(K=I[ze],I.hasOwnProperty(ze)&&K!=null&&!B.hasOwnProperty(ze))switch(ze){case"value":break;case"children":break;default:Vt(T,A,ze,null,B,K)}for(xe in B)if(K=B[xe],ee=I[xe],B.hasOwnProperty(xe)&&(K!=null||ee!=null))switch(xe){case"value":tt=K;break;case"defaultValue":rt=K;break;case"children":break;case"dangerouslySetInnerHTML":if(K!=null)throw Error(b(91));break;default:K!==ee&&Vt(T,A,xe,K,B,ee)}Oc(T,tt,rt);return;case"option":for(var gt in I)tt=I[gt],I.hasOwnProperty(gt)&&tt!=null&&!B.hasOwnProperty(gt)&&(gt==="selected"?T.selected=!1:Vt(T,A,gt,null,B,tt));for(qe in B)tt=B[qe],rt=I[qe],B.hasOwnProperty(qe)&&tt!==rt&&(tt!=null||rt!=null)&&(qe==="selected"?T.selected=tt&&typeof tt!="function"&&typeof tt!="symbol":Vt(T,A,qe,tt,B,rt));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var bt in I)tt=I[bt],I.hasOwnProperty(bt)&&tt!=null&&!B.hasOwnProperty(bt)&&Vt(T,A,bt,null,B,tt);for(et in B)if(tt=B[et],rt=I[et],B.hasOwnProperty(et)&&tt!==rt&&(tt!=null||rt!=null))switch(et){case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(b(137,A));break;default:Vt(T,A,et,tt,B,rt)}return;default:if(go(A)){for(var Ut in I)tt=I[Ut],I.hasOwnProperty(Ut)&&tt!==void 0&&!B.hasOwnProperty(Ut)&&rc(T,A,Ut,void 0,B,tt);for(st in B)tt=B[st],rt=I[st],!B.hasOwnProperty(st)||tt===rt||tt===void 0&&rt===void 0||rc(T,A,st,tt,B,rt);return}}for(var Qe in I)tt=I[Qe],I.hasOwnProperty(Qe)&&tt!=null&&!B.hasOwnProperty(Qe)&&Vt(T,A,Qe,null,B,tt);for(lt in B)tt=B[lt],rt=I[lt],!B.hasOwnProperty(lt)||tt===rt||tt==null&&rt==null||Vt(T,A,lt,tt,B,rt)}function zf(T){switch(T){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hm(){if(typeof performance.getEntriesByType=="function"){for(var T=0,A=0,I=performance.getEntriesByType("resource"),B=0;B<I.length;B++){var K=I[B],ee=K.transferSize,xe=K.initiatorType,ze=K.duration;if(ee&&ze&&zf(xe)){for(xe=0,ze=K.responseEnd,B+=1;B<I.length;B++){var qe=I[B],et=qe.startTime;if(et>ze)break;var st=qe.transferSize,lt=qe.initiatorType;st&&zf(lt)&&(qe=qe.responseEnd,xe+=st*(qe<ze?1:(ze-et)/(qe-et)))}if(--B,A+=8*(ee+xe)/(K.duration/1e3),T++,10<T)break}}if(0<T)return A/T/1e6}return navigator.connection&&(T=navigator.connection.downlink,typeof T=="number")?T:5}var ic=null,nc=null;function Ka(T){return T.nodeType===9?T:T.ownerDocument}function Uf(T){switch(T){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hf(T,A){if(T===0)switch(A){case"svg":return 1;case"math":return 2;default:return 0}return T===1&&A==="foreignObject"?0:T}function sc(T,A){return T==="textarea"||T==="noscript"||typeof A.children=="string"||typeof A.children=="number"||typeof A.children=="bigint"||typeof A.dangerouslySetInnerHTML=="object"&&A.dangerouslySetInnerHTML!==null&&A.dangerouslySetInnerHTML.__html!=null}var ac=null;function fm(){var T=window.event;return T&&T.type==="popstate"?T===ac?!1:(ac=T,!0):(ac=null,!1)}var $f=typeof setTimeout=="function"?setTimeout:void 0,dm=typeof clearTimeout=="function"?clearTimeout:void 0,Gf=typeof Promise=="function"?Promise:void 0,pm=typeof queueMicrotask=="function"?queueMicrotask:typeof Gf<"u"?function(T){return Gf.resolve(null).then(T).catch(mm)}:$f;function mm(T){setTimeout(function(){throw T})}function Hi(T){return T==="head"}function qf(T,A){var I=A,B=0;do{var K=I.nextSibling;if(T.removeChild(I),K&&K.nodeType===8)if(I=K.data,I==="/$"||I==="/&"){if(B===0){T.removeChild(K),Jn(A);return}B--}else if(I==="$"||I==="$?"||I==="$~"||I==="$!"||I==="&")B++;else if(I==="html")Fs(T.ownerDocument.documentElement);else if(I==="head"){I=T.ownerDocument.head,Fs(I);for(var ee=I.firstChild;ee;){var xe=ee.nextSibling,ze=ee.nodeName;ee[rs]||ze==="SCRIPT"||ze==="STYLE"||ze==="LINK"&&ee.rel.toLowerCase()==="stylesheet"||I.removeChild(ee),ee=xe}}else I==="body"&&Fs(T.ownerDocument.body);I=K}while(I);Jn(A)}function Kf(T,A){var I=T;T=0;do{var B=I.nextSibling;if(I.nodeType===1?A?(I._stashedDisplay=I.style.display,I.style.display="none"):(I.style.display=I._stashedDisplay||"",I.getAttribute("style")===""&&I.removeAttribute("style")):I.nodeType===3&&(A?(I._stashedText=I.nodeValue,I.nodeValue=""):I.nodeValue=I._stashedText||""),B&&B.nodeType===8)if(I=B.data,I==="/$"){if(T===0)break;T--}else I!=="$"&&I!=="$?"&&I!=="$~"&&I!=="$!"||T++;I=B}while(I)}function oc(T){var A=T.firstChild;for(A&&A.nodeType===10&&(A=A.nextSibling);A;){var I=A;switch(A=A.nextSibling,I.nodeName){case"HTML":case"HEAD":case"BODY":oc(I),ho(I);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(I.rel.toLowerCase()==="stylesheet")continue}T.removeChild(I)}}function gm(T,A,I,B){for(;T.nodeType===1;){var K=I;if(T.nodeName.toLowerCase()!==A.toLowerCase()){if(!B&&(T.nodeName!=="INPUT"||T.type!=="hidden"))break}else if(B){if(!T[rs])switch(A){case"meta":if(!T.hasAttribute("itemprop"))break;return T;case"link":if(ee=T.getAttribute("rel"),ee==="stylesheet"&&T.hasAttribute("data-precedence"))break;if(ee!==K.rel||T.getAttribute("href")!==(K.href==null||K.href===""?null:K.href)||T.getAttribute("crossorigin")!==(K.crossOrigin==null?null:K.crossOrigin)||T.getAttribute("title")!==(K.title==null?null:K.title))break;return T;case"style":if(T.hasAttribute("data-precedence"))break;return T;case"script":if(ee=T.getAttribute("src"),(ee!==(K.src==null?null:K.src)||T.getAttribute("type")!==(K.type==null?null:K.type)||T.getAttribute("crossorigin")!==(K.crossOrigin==null?null:K.crossOrigin))&&ee&&T.hasAttribute("async")&&!T.hasAttribute("itemprop"))break;return T;default:return T}}else if(A==="input"&&T.type==="hidden"){var ee=K.name==null?null:""+K.name;if(K.type==="hidden"&&T.getAttribute("name")===ee)return T}else return T;if(T=Wr(T.nextSibling),T===null)break}return null}function ym(T,A,I){if(A==="")return null;for(;T.nodeType!==3;)if((T.nodeType!==1||T.nodeName!=="INPUT"||T.type!=="hidden")&&!I||(T=Wr(T.nextSibling),T===null))return null;return T}function Yf(T,A){for(;T.nodeType!==8;)if((T.nodeType!==1||T.nodeName!=="INPUT"||T.type!=="hidden")&&!A||(T=Wr(T.nextSibling),T===null))return null;return T}function lc(T){return T.data==="$?"||T.data==="$~"}function cc(T){return T.data==="$!"||T.data==="$?"&&T.ownerDocument.readyState!=="loading"}function vm(T,A){var I=T.ownerDocument;if(T.data==="$~")T._reactRetry=A;else if(T.data!=="$?"||I.readyState!=="loading")A();else{var B=function(){A(),I.removeEventListener("DOMContentLoaded",B)};I.addEventListener("DOMContentLoaded",B),T._reactRetry=B}}function Wr(T){for(;T!=null;T=T.nextSibling){var A=T.nodeType;if(A===1||A===3)break;if(A===8){if(A=T.data,A==="$"||A==="$!"||A==="$?"||A==="$~"||A==="&"||A==="F!"||A==="F")break;
vendor: 7,713 bytes, line 9
9if(A==="/$"||A==="/&")return null}}return T}var uc=null;function Wf(T){T=T.nextSibling;for(var A=0;T;){if(T.nodeType===8){var I=T.data;if(I==="/$"||I==="/&"){if(A===0)return Wr(T.nextSibling);A--}else I!=="$"&&I!=="$!"&&I!=="$?"&&I!=="$~"&&I!=="&"||A++}T=T.nextSibling}return null}function Xf(T){T=T.previousSibling;for(var A=0;T;){if(T.nodeType===8){var I=T.data;if(I==="$"||I==="$!"||I==="$?"||I==="$~"||I==="&"){if(A===0)return T;A--}else I!=="/$"&&I!=="/&"||A++}T=T.previousSibling}return null}function Qf(T,A,I){switch(A=Ka(I),T){case"html":if(T=A.documentElement,!T)throw Error(b(452));return T;case"head":if(T=A.head,!T)throw Error(b(453));return T;case"body":if(T=A.body,!T)throw Error(b(454));return T;default:throw Error(b(451))}}function Fs(T){for(var A=T.attributes;A.length;)T.removeAttributeNode(A[0]);ho(T)}var Xr=new Map,Zf=new Set;function Ya(T){return typeof T.getRootNode=="function"?T.getRootNode():T.nodeType===9?T:T.ownerDocument}var Si=He.d;He.d={f:xm,r:bm,D:Em,C:Sm,L:wm,m:Tm,X:Rm,S:Cm,M:Am};function xm(){var T=Si.f(),A=Ba();return T||A}function bm(T){var A=vn(T);A!==null&&A.tag===5&&A.type==="form"?dh(A):Si.r(T)}var Xn=typeof document>"u"?null:document;function Jf(T,A,I){var B=Xn;if(B&&typeof A=="string"&&A){var K=Ur(A);K='link[rel="'+T+'"][href="'+K+'"]',typeof I=="string"&&(K+='[crossorigin="'+I+'"]'),Zf.has(K)||(Zf.add(K),T={rel:T,crossOrigin:I,href:A},B.querySelector(K)===null&&(A=B.createElement("link"),dr(A,"link",T),ar(A),B.head.appendChild(A)))}}function Em(T){Si.D(T),Jf("dns-prefetch",T,null)}function Sm(T,A){Si.C(T,A),Jf("preconnect",T,A)}function wm(T,A,I){Si.L(T,A,I);var B=Xn;if(B&&T&&A){var K='link[rel="preload"][as="'+Ur(A)+'"]';A==="image"&&I&&I.imageSrcSet?(K+='[imagesrcset="'+Ur(I.imageSrcSet)+'"]',typeof I.imageSizes=="string"&&(K+='[imagesizes="'+Ur(I.imageSizes)+'"]')):K+='[href="'+Ur(T)+'"]';var ee=K;switch(A){case"style":ee=Qn(T);break;case"script":ee=Zn(T)}Xr.has(ee)||(T=J({rel:"preload",href:A==="image"&&I&&I.imageSrcSet?void 0:T,as:A},I),Xr.set(ee,T),B.querySelector(K)!==null||A==="style"&&B.querySelector(Bs(ee))||A==="script"&&B.querySelector(Vs(ee))||(A=B.createElement("link"),dr(A,"link",T),ar(A),B.head.appendChild(A)))}}function Tm(T,A){Si.m(T,A);var I=Xn;if(I&&T){var B=A&&typeof A.as=="string"?A.as:"script",K='link[rel="modulepreload"][as="'+Ur(B)+'"][href="'+Ur(T)+'"]',ee=K;switch(B){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":ee=Zn(T)}if(!Xr.has(ee)&&(T=J({rel:"modulepreload",href:T},A),Xr.set(ee,T),I.querySelector(K)===null)){switch(B){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(I.querySelector(Vs(ee)))return}B=I.createElement("link"),dr(B,"link",T),ar(B),I.head.appendChild(B)}}}function Cm(T,A,I){Si.S(T,A,I);var B=Xn;if(B&&T){var K=xn(B).hoistableStyles,ee=Qn(T);A=A||"default";var xe=K.get(ee);if(!xe){var ze={loading:0,preload:null};if(xe=B.querySelector(Bs(ee)))ze.loading=5;else{T=J({rel:"stylesheet",href:T,"data-precedence":A},I),(I=Xr.get(ee))&&hc(T,I);var qe=xe=B.createElement("link");ar(qe),dr(qe,"link",T),qe._p=new Promise(function(et,st){qe.onload=et,qe.onerror=st}),qe.addEventListener("load",function(){ze.loading|=1}),qe.addEventListener("error",function(){ze.loading|=2}),ze.loading|=4,Wa(xe,A,B)}xe={type:"stylesheet",instance:xe,count:1,state:ze},K.set(ee,xe)}}}function Rm(T,A){Si.X(T,A);var I=Xn;if(I&&T){var B=xn(I).hoistableScripts,K=Zn(T),ee=B.get(K);ee||(ee=I.querySelector(Vs(K)),ee||(T=J({src:T,async:!0},A),(A=Xr.get(K))&&fc(T,A),ee=I.createElement("script"),ar(ee),dr(ee,"link",T),I.head.appendChild(ee)),ee={type:"script",instance:ee,count:1,state:null},B.set(K,ee))}}function Am(T,A){Si.M(T,A);var I=Xn;if(I&&T){var B=xn(I).hoistableScripts,K=Zn(T),ee=B.get(K);ee||(ee=I.querySelector(Vs(K)),ee||(T=J({src:T,async:!0,type:"module"},A),(A=Xr.get(K))&&fc(T,A),ee=I.createElement("script"),ar(ee),dr(ee,"link",T),I.head.appendChild(ee)),ee={type:"script",instance:ee,count:1,state:null},B.set(K,ee))}}function ed(T,A,I,B){var K=(K=pt.current)?Ya(K):null;if(!K)throw Error(b(446));switch(T){case"meta":case"title":return null;case"style":return typeof I.precedence=="string"&&typeof I.href=="string"?(A=Qn(I.href),I=xn(K).hoistableStyles,B=I.get(A),B||(B={type:"style",instance:null,count:0,state:null},I.set(A,B)),B):{type:"void",instance:null,count:0,state:null};case"link":if(I.rel==="stylesheet"&&typeof I.href=="string"&&typeof I.precedence=="string"){T=Qn(I.href);var ee=xn(K).hoistableStyles,xe=ee.get(T);if(xe||(K=K.ownerDocument||K,xe={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},ee.set(T,xe),(ee=K.querySelector(Bs(T)))&&!ee._p&&(xe.instance=ee,xe.state.loading=5),Xr.has(T)||(I={rel:"preload",as:"style",href:I.href,crossOrigin:I.crossOrigin,integrity:I.integrity,media:I.media,hrefLang:I.hrefLang,referrerPolicy:I.referrerPolicy},Xr.set(T,I),ee||_m(K,T,I,xe.state))),A&&B===null)throw Error(b(528,""));return xe}if(A&&B!==null)throw Error(b(529,""));return null;case"script":return A=I.async,I=I.src,typeof I=="string"&&A&&typeof A!="function"&&typeof A!="symbol"?(A=Zn(I),I=xn(K).hoistableScripts,B=I.get(A),B||(B={type:"script",instance:null,count:0,state:null},I.set(A,B)),B):{type:"void",instance:null,count:0,state:null};default:throw Error(b(444,T))}}function Qn(T){return'href="'+Ur(T)+'"'}function Bs(T){return'link[rel="stylesheet"]['+T+"]"}function td(T){return J({},T,{"data-precedence":T.precedence,precedence:null})}function _m(T,A,I,B){T.querySelector('link[rel="preload"][as="style"]['+A+"]")?B.loading=1:(A=T.createElement("link"),B.preload=A,A.addEventListener("load",function(){return B.loading|=1}),A.addEventListener("error",function(){return B.loading|=2}),dr(A,"link",I),ar(A),T.head.appendChild(A))}function Zn(T){return'[src="'+Ur(T)+'"]'}function Vs(T){return"script[async]"+T}function rd(T,A,I){if(A.count++,A.instance===null)switch(A.type){case"style":var B=T.querySelector('style[data-href~="'+Ur(I.href)+'"]');if(B)return A.instance=B,ar(B),B;var K=J({},I,{"data-href":I.href,"data-precedence":I.precedence,href:null,precedence:null});return B=(T.ownerDocument||T).createElement("style"),ar(B),dr(B,"style",K),Wa(B,I.precedence,T),A.instance=B;case"stylesheet":K=Qn(I.href);var ee=T.querySelector(Bs(K));if(ee)return A.state.loading|=4,A.instance=ee,ar(ee),ee;B=td(I),(K=Xr.get(K))&&hc(B,K),ee=(T.ownerDocument||T).createElement("link"),ar(ee);var xe=ee;return xe._p=new Promise(function(ze,qe){xe.onload=ze,xe.onerror=qe}),dr(ee,"link",B),A.state.loading|=4,Wa(ee,I.precedence,T),A.instance=ee;case"script":return ee=Zn(I.src),(K=T.querySelector(Vs(ee)))?(A.instance=K,ar(K),K):(B=I,(K=Xr.get(ee))&&(B=J({},I),fc(B,K)),T=T.ownerDocument||T,K=T.createElement("script"),ar(K),dr(K,"link",B),T.head.appendChild(K),A.instance=K);case"void":return null;default:throw Error(b(443,A.type))}else A.type==="stylesheet"&&(A.state.loading&4)===0&&(B=A.instance,A.state.loading|=4,Wa(B,I.precedence,T));return A.instance}function Wa(T,A,I){for(var B=I.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),K=B.length?B[B.length-1]:null,ee=K,xe=0;xe<B.length;xe++){var ze=B[xe];if(ze.dataset.precedence===A)ee=ze;else if(ee!==K)break}ee?ee.parentNode.insertBefore(T,ee.nextSibling):(A=I.nodeType===9?I.head:I,A.insertBefore(T,A.firstChild))}function hc(T,A){T.crossOrigin==null&&(T.crossOrigin=A.crossOrigin),T.referrerPolicy==null&&(T.referrerPolicy=A.referrerPolicy),T.title==null&&(T.title=A.title)}function fc(T,A){T.crossOrigin==null&&(T.crossOrigin=A.crossOrigin),T.referrerPolicy==null&&(T.referrerPolicy=A.referrerPolicy),T.integrity==null&&(T.integrity=A.integrity)}var Xa=null;
vendor: 4,239 bytes, line 9
9function nd(T,A,I){if(Xa===null){var B=new Map,K=Xa=new Map;K.set(I,B)}else K=Xa,B=K.get(I),B||(B=new Map,K.set(I,B));if(B.has(T))return B;for(B.set(T,null),I=I.getElementsByTagName(T),K=0;K<I.length;K++){var ee=I[K];if(!(ee[rs]||ee[lr]||T==="link"&&ee.getAttribute("rel")==="stylesheet")&&ee.namespaceURI!=="http://www.w3.org/2000/svg"){var xe=ee.getAttribute(A)||"";xe=T+xe;var ze=B.get(xe);ze?ze.push(ee):B.set(xe,[ee])}}return B}function sd(T,A,I){T=T.ownerDocument||T,T.head.insertBefore(I,A==="title"?T.querySelector("head > title"):null)}function Pm(T,A,I){if(I===1||A.itemProp!=null)return!1;switch(T){case"meta":case"title":return!0;case"style":if(typeof A.precedence!="string"||typeof A.href!="string"||A.href==="")break;return!0;case"link":if(typeof A.rel!="string"||typeof A.href!="string"||A.href===""||A.onLoad||A.onError)break;return A.rel==="stylesheet"?(T=A.disabled,typeof A.precedence=="string"&&T==null):!0;case"script":if(A.async&&typeof A.async!="function"&&typeof A.async!="symbol"&&!A.onLoad&&!A.onError&&A.src&&typeof A.src=="string")return!0}return!1}function ad(T){return!(T.type==="stylesheet"&&(T.state.loading&3)===0)}function jm(T,A,I,B){if(I.type==="stylesheet"&&(typeof B.media!="string"||matchMedia(B.media).matches!==!1)&&(I.state.loading&4)===0){if(I.instance===null){var K=Qn(B.href),ee=A.querySelector(Bs(K));if(ee){A=ee._p,A!==null&&typeof A=="object"&&typeof A.then=="function"&&(T.count++,T=Qa.bind(T),A.then(T,T)),I.state.loading|=4,I.instance=ee,ar(ee);return}ee=A.ownerDocument||A,B=td(B),(K=Xr.get(K))&&hc(B,K),ee=ee.createElement("link"),ar(ee);var xe=ee;xe._p=new Promise(function(ze,qe){xe.onload=ze,xe.onerror=qe}),dr(ee,"link",B),I.instance=ee}T.stylesheets===null&&(T.stylesheets=new Map),T.stylesheets.set(I,A),(A=I.state.preload)&&(I.state.loading&3)===0&&(T.count++,I=Qa.bind(T),A.addEventListener("load",I),A.addEventListener("error",I))}}var dc=0;function Mm(T,A){return T.stylesheets&&T.count===0&&Ja(T,T.stylesheets),0<T.count||0<T.imgCount?function(I){var B=setTimeout(function(){if(T.stylesheets&&Ja(T,T.stylesheets),T.unsuspend){var ee=T.unsuspend;T.unsuspend=null,ee()}},6e4+A);0<T.imgBytes&&dc===0&&(dc=62500*hm());var K=setTimeout(function(){if(T.waitingForImages=!1,T.count===0&&(T.stylesheets&&Ja(T,T.stylesheets),T.unsuspend)){var ee=T.unsuspend;T.unsuspend=null,ee()}},(T.imgBytes>dc?50:800)+A);return T.unsuspend=I,function(){T.unsuspend=null,clearTimeout(B),clearTimeout(K)}}:null}function Qa(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ja(this,this.stylesheets);else if(this.unsuspend){var T=this.unsuspend;this.unsuspend=null,T()}}}var Za=null;function Ja(T,A){T.stylesheets=null,T.unsuspend!==null&&(T.count++,Za=new Map,A.forEach(km,T),Za=null,Qa.call(T))}function km(T,A){if(!(A.state.loading&4)){var I=Za.get(T);if(I)var B=I.get(null);else{I=new Map,Za.set(T,I);for(var K=T.querySelectorAll("link[data-precedence],style[data-precedence]"),ee=0;ee<K.length;ee++){var xe=K[ee];(xe.nodeName==="LINK"||xe.getAttribute("media")!=="not all")&&(I.set(xe.dataset.precedence,xe),B=xe)}B&&I.set(null,B)}K=A.instance,xe=K.getAttribute("data-precedence"),ee=I.get(xe)||B,ee===B&&I.set(null,K),I.set(xe,K),this.count++,B=Qa.bind(this),K.addEventListener("load",B),K.addEventListener("error",B),ee?ee.parentNode.insertBefore(K,ee.nextSibling):(T=T.nodeType===9?T.head:T,T.insertBefore(K,T.firstChild)),A.state.loading|=4}}var zs={$$typeof:ae,Provider:null,Consumer:null,_currentValue:_e,_currentValue2:_e,_threadCount:0};function Nm(T,A,I,B,K,ee,xe,ze,qe){this.tag=1,this.containerInfo=T,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=oo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oo(0),this.hiddenUpdates=oo(null),this.identifierPrefix=B,this.onUncaughtError=K,this.onCaughtError=ee,this.onRecoverableError=xe,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=qe,this.incompleteTransitions=new Map}
vendor: 8,516 bytes, line 9
9function od(T,A,I,B,K,ee,xe,ze,qe,et,st,lt){return T=new Nm(T,A,I,xe,qe,et,st,lt,ze),A=1,ee===!0&&(A|=24),ee=Nr(3,null,null,A),T.current=ee,ee.stateNode=T,A=qo(),A.refCount++,T.pooledCache=A,A.refCount++,ee.memoizedState={element:B,isDehydrated:I,cache:A},Xo(ee),T}function ld(T){return T?(T=Pn,T):Pn}function cd(T,A,I,B,K,ee){K=ld(K),B.context===null?B.context=K:B.pendingContext=K,B=ki(A),B.payload={element:I},ee=ee===void 0?null:ee,ee!==null&&(B.callback=ee),I=Ni(T,B,A),I!==null&&(_r(I,T,A),xs(I,T,A))}function ud(T,A){if(T=T.memoizedState,T!==null&&T.dehydrated!==null){var I=T.retryLane;T.retryLane=I!==0&&I<A?I:A}}function pc(T,A){ud(T,A),(T=T.alternate)&&ud(T,A)}function hd(T){if(T.tag===13||T.tag===31){var A=tn(T,67108864);A!==null&&_r(A,T,67108864),pc(T,67108864)}}function fd(T){if(T.tag===13||T.tag===31){var A=Fr();A=lo(A);var I=tn(T,A);I!==null&&_r(I,T,A),pc(T,A)}}var eo=!0;function Im(T,A,I,B){var K=Ne.T;Ne.T=null;var ee=He.p;try{He.p=2,mc(T,A,I,B)}finally{He.p=ee,Ne.T=K}}function Om(T,A,I,B){var K=Ne.T;Ne.T=null;var ee=He.p;try{He.p=8,mc(T,A,I,B)}finally{He.p=ee,Ne.T=K}}function mc(T,A,I,B){if(eo){var K=gc(B);if(K===null)tc(T,A,B,to,I),pd(T,B);else if(Lm(K,T,A,I,B))B.stopPropagation();else if(pd(T,B),A&4&&-1<Dm.indexOf(T)){for(;K!==null;){var ee=vn(K);if(ee!==null)switch(ee.tag){case 3:if(ee=ee.stateNode,ee.current.memoizedState.isDehydrated){var xe=Xi(ee.pendingLanes);if(xe!==0){var ze=ee;for(ze.pendingLanes|=2,ze.entangledLanes|=2;xe;){var qe=1<<31-Mr(xe);ze.entanglements[1]|=qe,xe&=~qe}ni(ee),(Dt&6)===0&&(La=At()+500,Os(0))}}break;case 31:case 13:ze=tn(ee,2),ze!==null&&_r(ze,ee,2),Ba(),pc(ee,2)}if(ee=gc(B),ee===null&&tc(T,A,B,to,I),ee===K)break;K=ee}K!==null&&B.stopPropagation()}else tc(T,A,B,null,I)}}function gc(T){return T=vo(T),yc(T)}var to=null;function yc(T){if(to=null,T=yn(T),T!==null){var A=M(T);if(A===null)T=null;else{var I=A.tag;if(I===13){if(T=O(A),T!==null)return T;T=null}else if(I===31){if(T=z(A),T!==null)return T;T=null}else if(I===3){if(A.stateNode.current.memoizedState.isDehydrated)return A.tag===3?A.stateNode.containerInfo:null;T=null}else A!==T&&(T=null)}}return to=T,null}function dd(T){switch(T){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(sr()){case pr:return 2;case Br:return 8;case Qr:case Pr:return 32;case wi:return 268435456;default:return 32}default:return 32}}var vc=!1,$i=null,Gi=null,qi=null,Us=new Map,Hs=new Map,Ki=[],Dm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pd(T,A){switch(T){case"focusin":case"focusout":$i=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":Us.delete(A.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(A.pointerId)}}function $s(T,A,I,B,K,ee){return T===null||T.nativeEvent!==ee?(T={blockedOn:A,domEventName:I,eventSystemFlags:B,nativeEvent:ee,targetContainers:[K]},A!==null&&(A=vn(A),A!==null&&hd(A)),T):(T.eventSystemFlags|=B,A=T.targetContainers,K!==null&&A.indexOf(K)===-1&&A.push(K),T)}function Lm(T,A,I,B,K){switch(A){case"focusin":return $i=$s($i,T,A,I,B,K),!0;case"dragenter":return Gi=$s(Gi,T,A,I,B,K),!0;case"mouseover":return qi=$s(qi,T,A,I,B,K),!0;case"pointerover":var ee=K.pointerId;return Us.set(ee,$s(Us.get(ee)||null,T,A,I,B,K)),!0;case"gotpointercapture":return ee=K.pointerId,Hs.set(ee,$s(Hs.get(ee)||null,T,A,I,B,K)),!0}return!1}function md(T){var A=yn(T.target);if(A!==null){var I=M(A);if(I!==null){if(A=I.tag,A===13){if(A=O(I),A!==null){T.blockedOn=A,Rc(T.priority,function(){fd(I)});return}}else if(A===31){if(A=z(I),A!==null){T.blockedOn=A,Rc(T.priority,function(){fd(I)});return}}else if(A===3&&I.stateNode.current.memoizedState.isDehydrated){T.blockedOn=I.tag===3?I.stateNode.containerInfo:null;return}}}T.blockedOn=null}function ro(T){if(T.blockedOn!==null)return!1;for(var A=T.targetContainers;0<A.length;){var I=gc(T.nativeEvent);if(I===null){I=T.nativeEvent;var B=new I.constructor(I.type,I);yo=B,I.target.dispatchEvent(B),yo=null}else return A=vn(I),A!==null&&hd(A),T.blockedOn=I,!1;A.shift()}return!0}function gd(T,A,I){ro(T)&&I.delete(A)}function Fm(){vc=!1,$i!==null&&ro($i)&&($i=null),Gi!==null&&ro(Gi)&&(Gi=null),qi!==null&&ro(qi)&&(qi=null),Us.forEach(gd),Hs.forEach(gd)}function io(T,A){T.blockedOn===A&&(T.blockedOn=null,vc||(vc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Fm)))}var no=null;function yd(T){no!==T&&(no=T,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){no===T&&(no=null);for(var A=0;A<T.length;A+=3){var I=T[A],B=T[A+1],K=T[A+2];if(typeof B!="function"){if(yc(B||I)===null)continue;break}var ee=vn(I);ee!==null&&(T.splice(A,3),A-=3,gl(ee,{pending:!0,data:K,method:I.method,action:B},B,K))}}))}function Jn(T){function A(qe){return io(qe,T)}$i!==null&&io($i,T),Gi!==null&&io(Gi,T),qi!==null&&io(qi,T),Us.forEach(A),Hs.forEach(A);for(var I=0;I<Ki.length;I++){var B=Ki[I];B.blockedOn===T&&(B.blockedOn=null)}for(;0<Ki.length&&(I=Ki[0],I.blockedOn===null);)md(I),I.blockedOn===null&&Ki.shift();if(I=(T.ownerDocument||T).$$reactFormReplay,I!=null)for(B=0;B<I.length;B+=3){var K=I[B],ee=I[B+1],xe=K[Sr]||null;if(typeof ee=="function")xe||yd(I);else if(xe){var ze=null;if(ee&&ee.hasAttribute("formAction")){if(K=ee,xe=ee[Sr]||null)ze=xe.formAction;else if(yc(K)!==null)continue}else ze=xe.action;typeof ze=="function"?I[B+1]=ze:(I.splice(B,3),B-=3),yd(I)}}}function vd(){function T(ee){ee.canIntercept&&ee.info==="react-transition"&&ee.intercept({handler:function(){return new Promise(function(xe){return K=xe})},focusReset:"manual",scroll:"manual"})}function A(){K!==null&&(K(),K=null),B||setTimeout(I,20)}function I(){if(!B&&!navigation.transition){var ee=navigation.currentEntry;ee&&ee.url!=null&&navigation.navigate(ee.url,{state:ee.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var B=!1,K=null;return navigation.addEventListener("navigate",T),navigation.addEventListener("navigatesuccess",A),navigation.addEventListener("navigateerror",A),setTimeout(I,100),function(){B=!0,navigation.removeEventListener("navigate",T),navigation.removeEventListener("navigatesuccess",A),navigation.removeEventListener("navigateerror",A),K!==null&&(K(),K=null)}}}function xc(T){this._internalRoot=T}so.prototype.render=xc.prototype.render=function(T){var A=this._internalRoot;if(A===null)throw Error(b(409));var I=A.current,B=Fr();cd(I,B,T,A,null,null)},so.prototype.unmount=xc.prototype.unmount=function(){var T=this._internalRoot;if(T!==null){this._internalRoot=null;var A=T.containerInfo;cd(T.current,2,null,T,null,null),Ba(),A[gn]=null}};function so(T){this._internalRoot=T}so.prototype.unstable_scheduleHydration=function(T){if(T){var A=Cc();T={blockedOn:null,target:T,priority:A};for(var I=0;I<Ki.length&&A!==0&&A<Ki[I].priority;I++);Ki.splice(I,0,T),I===0&&md(T)}};var xd=y.version;if(xd!=="19.2.3")throw Error(b(527,xd,"19.2.3"));He.findDOMNode=function(T){var A=T._reactInternals;if(A===void 0)throw typeof T.render=="function"?Error(b(188)):(T=Object.keys(T).join(","),Error(b(268,T)));return T=G(A),T=T!==null?q(T):null,T=T===null?null:T.stateNode,T};var Bm={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:Ne,reconcilerVersion:"19.2.3"};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ao.isDisabled&&ao.supportsFiber)try{Wi=ao.inject(Bm),jr=ao}catch{}}return reactDomClient_production.createRoot=function(T,A){if(!R(T))throw Error(b(299));var I=!1,B="",K=Th,ee=Ch,xe=Rh;return A!=null&&(A.unstable_strictMode===!0&&(I=!0),A.identifierPrefix!==void 0&&(B=A.identifierPrefix),A.onUncaughtError!==void 0&&(K=A.onUncaughtError),A.onCaughtError!==void 0&&(ee=A.onCaughtError),A.onRecoverableError!==void 0&&(xe=A.onRecoverableError)),A=od(T,1,!1,null,null,I,B,null,K,ee,xe,vd),T[gn]=A.current,ec(T),new xc(A)},reactDomClient_production.hydrateRoot=function(T,A,I){if(!R(T))throw Error(b(299));var B=!1,K="",ee=Th,xe=Ch,ze=Rh,qe=null;return I!=null&&(I.unstable_strictMode===!0&&(B=!0),I.identifierPrefix!==void 0&&(K=I.identifierPrefix),I.onUncaughtError!==void 0&&(ee=I.onUncaughtError),I.onCaughtError!==void 0&&(xe=I.onCaughtError),I.onRecoverableError!==void 0&&(ze=I.onRecoverableError),I.formState!==void 0&&(qe=I.formState)),A=od(T,1,!0,A,I??null,B,K,qe,ee,xe,ze,vd),A.context=ld(null),I=A.current,B=Fr(),B=lo(B),K=ki(B),K.callback=null,Ni(I,K,B),I=B,A.current.lanes=I,ts(A,I),ni(A),T[gn]=A.current,ec(T),new so(A)},reactDomClient_production.version="19.2.3",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(y){console.error(y)}}return r(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();var PopStateEventType="popstate";function createBrowserHistory(r={}){function y(b,R){let{pathname:M,search:O,hash:z}=b.location;return createLocation("",{pathname:M,search:O,hash:z},R.state&&R.state.usr||null,R.state&&R.state.key||"default")}function x(b,R){return typeof R=="string"?R:createPath(R)}return getUrlBasedHistory(y,x,null,r)}function invariant$2(r,y){if(r===!1||r===null||typeof r>"u")throw new Error(y)}function warning(r,y){if(!r){typeof console<"u"&&console.warn(y);try{throw new Error(y)}catch{}}}function createKey(){return Math.random().toString(36).substring(2,10)}function getHistoryState(r,y){return{usr:r.state,key:r.key,idx:y}}function createLocation(r,y,x=null,b){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof y=="string"?parsePath(y):y,state:x,key:y&&y.key||b||createKey()}}function createPath({pathname:r="/",search:y="",hash:x=""}){return y&&y!=="?"&&(r+=y.charAt(0)==="?"?y:"?"+y),x&&x!=="#"&&(r+=x.charAt(0)==="#"?x:"#"+x),r}function parsePath(r){let y={};if(r){let x=r.indexOf("#");x>=0&&(y.hash=r.substring(x),r=r.substring(0,x));let b=r.indexOf("?");b>=0&&(y.search=r.substring(b),r=r.substring(0,b)),r&&(y.pathname=r)}return y}function getUrlBasedHistory(r,y,x,b={}){let{window:R=document.defaultView,v5Compat:M=!1}=b,O=R.history,z="POP",U=null,G=q();G==null&&(G=0,O.replaceState({...O.state,idx:G},""));function q(){return(O.state||{idx:null}).idx}function J(){z="POP";let ye=q(),oe=ye==null?null:ye-G;G=ye,U&&U({action:z,location:ue.location,delta:oe})}function X(ye,oe){z="PUSH";let ne=createLocation(ue.location,ye,oe);G=q()+1;let ae=getHistoryState(ne,G),pe=ue.createHref(ne);try{O.pushState(ae,"",pe)}catch(je){if(je instanceof DOMException&&je.name==="DataCloneError")throw je;R.location.assign(pe)}M&&U&&U({action:z,location:ue.location,delta:1})}function fe(ye,oe){z="REPLACE";let ne=createLocation(ue.location,ye,oe);G=q();let ae=getHistoryState(ne,G),pe=ue.createHref(ne);O.replaceState(ae,"",pe),M&&U&&U({action:z,location:ue.location,delta:0})}function te(ye){return createBrowserURLImpl(ye)}let ue={get action(){return z},get location(){return r(R,O)},listen(ye){if(U)throw new Error("A history only accepts one active listener");return R.addEventListener(PopStateEventType,J),U=ye,()=>{R.removeEventListener(PopStateEventType,J),U=null}},createHref(ye){return y(R,ye)},createURL:te,encodeLocation(ye){let oe=te(ye);return{pathname:oe.pathname,search:oe.search,hash:oe.hash}},push:X,replace:fe,go(ye){return O.go(ye)}};return ue}function createBrowserURLImpl(r,y=!1){let x="http://localhost";
9typeof window<"u"&&(x=window.location.origin!=="null"?window.location.origin:window.location.href),invariant$2(x,"No window.location.(origin|href) available to create URL");let b=typeof r=="string"?r:createPath(r);return b=b.replace(/ $/,"%20"),!y&&b.startsWith("//")&&(b=x+b),new URL(b,x)}function matchRoutes(r,y,x="/"){return matchRoutesImpl(r,y,x,!1)}function matchRoutesImpl(r,y,x,b){let R=typeof y=="string"?parsePath(y):y,M=stripBasename(R.pathname||"/",x);if(M==null)return null;let O=flattenRoutes(r);rankRouteBranches(O);let z=null;for(let U=0;z==null&&U<O.length;++U){let G=decodePath(M);z=matchRouteBranch(O[U],G,b)}return z}function flattenRoutes(r,y=[],x=[],b="",R=!1){let M=(O,z,U=R,G)=>{let q={relativePath:G===void 0?O.path||"":G,caseSensitive:O.caseSensitive===!0,childrenIndex:z,route:O};if(q.relativePath.startsWith("/")){if(!q.relativePath.startsWith(b)&&U)return;invariant$2(q.relativePath.startsWith(b),`Absolute route path "${q.relativePath}" nested under path "${b}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),q.relativePath=q.relativePath.slice(b.length)}let J=joinPaths([b,q.relativePath]),X=x.concat(q);O.children&&O.children.length>0&&(invariant$2(O.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${J}".`),flattenRoutes(O.children,y,X,J,U)),!(O.path==null&&!O.index)&&y.push({path:J,score:computeScore(J,O.index),routesMeta:X})};return r.forEach((O,z)=>{if(O.path===""||!O.path?.includes("?"))M(O,z);else for(let U of explodeOptionalSegments(O.path))M(O,z,!0,U)}),y}function explodeOptionalSegments(r){let y=r.split("/");if(y.length===0)return[];let[x,...b]=y,R=x.endsWith("?"),M=x.replace(/\?$/,"");if(b.length===0)return R?[M,""]:[M];let O=explodeOptionalSegments(b.join("/")),z=[];return z.push(...O.map(U=>U===""?M:[M,U].join("/"))),R&&z.push(...O),z.map(U=>r.startsWith("/")&&U===""?"/":U)}function rankRouteBranches(r){r.sort((y,x)=>y.score!==x.score?x.score-y.score:compareIndexes(y.routesMeta.map(b=>b.childrenIndex),x.routesMeta.map(b=>b.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=r=>r==="*";function computeScore(r,y){let x=r.split("/"),b=x.length;return x.some(isSplat)&&(b+=splatPenalty),y&&(b+=indexRouteValue),x.filter(R=>!isSplat(R)).reduce((R,M)=>R+(paramRe.test(M)?dynamicSegmentValue:M===""?emptySegmentValue:staticSegmentValue),b)}function compareIndexes(r,y){return r.length===y.length&&r.slice(0,-1).every((b,R)=>b===y[R])?r[r.length-1]-y[y.length-1]:0}function matchRouteBranch(r,y,x=!1){let{routesMeta:b}=r,R={},M="/",O=[];for(let z=0;z<b.length;++z){let U=b[z],G=z===b.length-1,q=M==="/"?y:y.slice(M.length)||"/",J=matchPath({path:U.relativePath,caseSensitive:U.caseSensitive,end:G},q),X=U.route;if(!J&&G&&x&&!b[b.length-1].route.index&&(J=matchPath({path:U.relativePath,caseSensitive:U.caseSensitive,end:!1},q)),!J)return null;
9Object.assign(R,J.params),O.push({params:R,pathname:joinPaths([M,J.pathname]),pathnameBase:normalizePathname(joinPaths([M,J.pathnameBase])),route:X}),J.pathnameBase!=="/"&&(M=joinPaths([M,J.pathnameBase]))}return O}function matchPath(r,y){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[x,b]=compilePath(r.path,r.caseSensitive,r.end),R=y.match(x);if(!R)return null;let M=R[0],O=M.replace(/(.)\/+$/,"$1"),z=R.slice(1);return{params:b.reduce((G,{paramName:q,isOptional:J},X)=>{if(q==="*"){let te=z[X]||"";O=M.slice(0,M.length-te.length).replace(/(.)\/+$/,"$1")}const fe=z[X];return J&&!fe?G[q]=void 0:G[q]=(fe||"").replace(/%2F/g,"/"),G},{}),pathname:M,pathnameBase:O,pattern:r}}function compilePath(r,y=!1,x=!0){warning(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let b=[],R="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(O,z,U)=>(b.push({paramName:z,isOptional:U!=null}),U?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(b.push({paramName:"*"}),R+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):x?R+="\\/*$":r!==""&&r!=="/"&&(R+="(?:(?=\\/|$))"),[new RegExp(R,y?void 0:"i"),b]}function decodePath(r){try{return r.split("/").map(y=>decodeURIComponent(y).replace(/\//g,"%2F")).join("/")}catch(y){return warning(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${y}).`),r}}function stripBasename(r,y){if(y==="/")return r;if(!r.toLowerCase().startsWith(y.toLowerCase()))return null;let x=y.endsWith("/")?y.length-1:y.length,b=r.charAt(x);return b&&b!=="/"?null:r.slice(x)||"/"}var ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,isAbsoluteUrl=r=>ABSOLUTE_URL_REGEX.test(r);function resolvePath(r,y="/"){let{pathname:x,search:b="",hash:R=""}=typeof r=="string"?parsePath(r):r,M;if(x)if(isAbsoluteUrl(x))M=x;else{if(x.includes("//")){let O=x;x=x.replace(/\/\/+/g,"/"),warning(!1,`Pathnames cannot have embedded double slashes - normalizing ${O} -> ${x}`)}x.startsWith("/")?M=resolvePathname(x.substring(1),"/"):M=resolvePathname(x,y)}else M=y;return{pathname:M,search:normalizeSearch(b),hash:normalizeHash(R)}}function resolvePathname(r,y){let x=y.replace(/\/+$/,"").split("/");return r.split("/").forEach(R=>{R===".."?x.length>1&&x.pop():R!=="."&&x.push(R)}),x.length>1?x.join("/"):"/"}function getInvalidPathError(r,y,x,b){return`Cannot include a '${r}' character in a manually specified \`to.${y}\` field [${JSON.stringify(b)}].  Please separate it out to the \`to.${x}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function getPathContributingMatches(r){return r.filter((y,x)=>x===0||y.route.path&&y.route.path.length>0)}function getResolveToMatches(r){let y=getPathContributingMatches(r);return y.map((x,b)=>b===y.length-1?x.pathname:x.pathnameBase)}function resolveTo(r,y,x,b=!1){let R;typeof r=="string"?R=parsePath(r):(R={...r},invariant$2(!R.pathname||!R.pathname.includes("?"),getInvalidPathError("?","pathname","search",R)),invariant$2(!R.pathname||!R.pathname.includes("#"),getInvalidPathError("#","pathname","hash",R)),invariant$2(!R.search||!R.search.includes("#"),getInvalidPathError("#","search","hash",R)));let M=r===""||R.pathname==="",O=M?"/":R.pathname,z;if(O==null)z=x;else{let J=y.length-1;if(!b&&O.startsWith("..")){let X=O.split("/");for(;X[0]==="..";)X.shift(),J-=1;R.pathname=X.join("/")}z=J>=0?y[J]:"/"}let U=resolvePath(R,z),G=O&&O!=="/"&&O.endsWith("/"),q=(M||O===".")&&x.endsWith("/");return!U.pathname.endsWith("/")&&(G||q)&&(U.pathname+="/"),U}var joinPaths=r=>r.join("/").replace(/\/\/+/g,"/"),normalizePathname=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,normalizeHash=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,ErrorResponseImpl=class{constructor(r,y,x,b=!1){this.status=r,this.statusText=y||"",this.internal=b,x instanceof Error?(this.data=x.toString(),this.error=x):this.data=x}};function isRouteErrorResponse(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function getRoutePattern(r){return r.map(y=>
9y.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function parseToInfo(r,y){let x=r;if(typeof x!="string"||!ABSOLUTE_URL_REGEX.test(x))return{absoluteURL:void 0,isExternal:!1,to:x};let b=x,R=!1;if(isBrowser$1)try{let M=new URL(window.location.href),O=x.startsWith("//")?new URL(M.protocol+x):new URL(x),z=stripBasename(O.pathname,y);O.origin===M.origin&&z!=null?x=z+O.search+O.hash:R=!0}catch{warning(!1,`<Link to="${x}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:b,isExternal:R,to:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var validMutationMethodsArr=["POST","PUT","PATCH","DELETE"];new Set(validMutationMethodsArr);var validRequestMethodsArr=["GET",...validMutationMethodsArr];new Set(validRequestMethodsArr);var DataRouterContext=reactExports.createContext(null);DataRouterContext.displayName="DataRouter";var DataRouterStateContext=reactExports.createContext(null);DataRouterStateContext.displayName="DataRouterState";var RSCRouterContext=reactExports.createContext(!1),ViewTransitionContext=reactExports.createContext({isTransitioning:!1});ViewTransitionContext.displayName="ViewTransition";var FetchersContext=reactExports.createContext(new Map);FetchersContext.displayName="Fetchers";var AwaitContext=reactExports.createContext(null);AwaitContext.displayName="Await";var NavigationContext=reactExports.createContext(null);NavigationContext.displayName="Navigation";var LocationContext=reactExports.createContext(null);LocationContext.displayName="Location";var RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});RouteContext.displayName="Route";var RouteErrorContext=reactExports.createContext(null);RouteErrorContext.displayName="RouteError";var ERROR_DIGEST_BASE="REACT_ROUTER_ERROR",ERROR_DIGEST_REDIRECT="REDIRECT",ERROR_DIGEST_ROUTE_ERROR_RESPONSE="ROUTE_ERROR_RESPONSE";function decodeRedirectErrorDigest(r){if(r.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_REDIRECT}:{`))try{let y=JSON.parse(r.slice(28));if(typeof y=="object"&&y&&typeof y.status=="number"&&typeof y.statusText=="string"&&typeof y.location=="string"&&typeof y.reloadDocument=="boolean"&&typeof y.replace=="boolean")return y}catch{}}function decodeRouteErrorResponseDigest(r){if(r.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_ROUTE_ERROR_RESPONSE}:{`))try{let y=JSON.parse(r.slice(40));if(typeof y=="object"&&y&&typeof y.status=="number"&&typeof y.statusText=="string")return new ErrorResponseImpl(y.status,y.statusText,y.data)}catch{}}function useHref(r,{relative:y}={}){invariant$2(useInRouterContext(),"useHref() may be used only in the context of a <Router> component.");let{basename:x,navigator:b}=reactExports.useContext(NavigationContext),{hash:R,pathname:M,search:O}=useResolvedPath(r,{relative:y}),z=M;return x!=="/"&&(z=M==="/"?x:joinPaths([x,M])),b.createHref({pathname:z,search:O,hash:R})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant$2(useInRouterContext(),"useLocation() may be used only in the context of a <Router> component."),reactExports.useContext(LocationContext).location}var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect$1(r){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(r)}function useNavigate(){let{isDataRoute:r}=reactExports.useContext(RouteContext);return r?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant$2(useInRouterContext(),"useNavigate() may be used only in the context of a <Router> component.");let r=reactExports.useContext(DataRouterContext),{basename:y,navigator:x}=reactExports.useContext(NavigationContext),{matches:b}=reactExports.useContext(RouteContext),{pathname:R}=useLocation(),M=JSON.stringify(getResolveToMatches(b)),O=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>{O.current=!0}),reactExports.useCallback((U,G={})=>
9{if(warning(O.current,navigateEffectWarning),!O.current)return;if(typeof U=="number"){x.go(U);return}let q=resolveTo(U,JSON.parse(M),R,G.relative==="path");r==null&&y!=="/"&&(q.pathname=q.pathname==="/"?y:joinPaths([y,q.pathname])),(G.replace?x.replace:x.push)(q,G.state,G)},[y,x,M,R,r])}var OutletContext=reactExports.createContext(null);function useOutlet(r){let y=reactExports.useContext(RouteContext).outlet;return reactExports.useMemo(()=>y&&reactExports.createElement(OutletContext.Provider,{value:r},y),[y,r])}function useParams(){let{matches:r}=reactExports.useContext(RouteContext),y=r[r.length-1];return y?y.params:{}}function useResolvedPath(r,{relative:y}={}){let{matches:x}=reactExports.useContext(RouteContext),{pathname:b}=useLocation(),R=JSON.stringify(getResolveToMatches(x));return reactExports.useMemo(()=>resolveTo(r,JSON.parse(R),b,y==="path"),[r,R,b,y])}function useRoutes(r,y){return useRoutesImpl(r,y)}function useRoutesImpl(r,y,x,b,R){invariant$2(useInRouterContext(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:M}=reactExports.useContext(NavigationContext),{matches:O}=reactExports.useContext(RouteContext),z=O[O.length-1],U=z?z.params:{},G=z?z.pathname:"/",q=z?z.pathnameBase:"/",J=z&&z.route;{let ne=J&&J.path||"";warningOnce(G,!J||ne.endsWith("*")||ne.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${G}" (under <Route path="${ne}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
11Please change the parent <Route path="${ne}"> to <Route path="${ne==="/"?"*":`${ne}/*`}">.`)}let X=useLocation(),fe;if(y){let ne=typeof y=="string"?parsePath(y):y;invariant$2(q==="/"||ne.pathname?.startsWith(q),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${q}" but pathname "${ne.pathname}" was given in the \`location\` prop.`),fe=ne}else fe=X;let te=fe.pathname||"/",ue=te;if(q!=="/"){let ne=q.replace(/^\//,"").split("/");ue="/"+te.replace(/^\//,"").split("/").slice(ne.length).join("/")}let ye=matchRoutes(r,{pathname:ue});warning(J||ye!=null,`No routes matched location "${fe.pathname}${fe.search}${fe.hash}" `),warning(ye==null||ye[ye.length-1].route.element!==void 0||ye[ye.length-1].route.Component!==void 0||ye[ye.length-1].route.lazy!==void 0,`Matched leaf route at location "${fe.pathname}${fe.search}${fe.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let oe=_renderMatches(ye&&ye.map(ne=>Object.assign({},ne,{params:Object.assign({},U,ne.params),pathname:joinPaths([q,M.encodeLocation?M.encodeLocation(ne.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:ne.pathname]),pathnameBase:ne.pathnameBase==="/"?q:joinPaths([q,M.encodeLocation?M.encodeLocation(ne.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:ne.pathnameBase])})),O,x,b,R);return y&&oe?reactExports.createElement(LocationContext.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...fe},navigationType:"POP"}},oe):oe}function DefaultErrorComponent(){let r=useRouteError(),y=isRouteErrorResponse(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),x=r instanceof Error?r.stack:null,b="rgba(200,200,200, 0.5)",R={padding:"0.5rem",backgroundColor:b},M={padding:"2px 4px",backgroundColor:b},O=null;return console.error("Error handled by React Router default ErrorBoundary:",r),O=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("p",null,"💿 Hey developer 👋"),reactExports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",reactExports.createElement("code",{style:M},"ErrorBoundary")," or"," ",reactExports.createElement("code",{style:M},"errorElement")," prop on your route.")),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application 
11Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},y),x?reactExports.createElement("pre",{style:R},x):null,O)}var defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null),RenderErrorBoundary=class extends reactExports.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,y){return y.location!==r.location||y.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:y.error,location:y.location,revalidation:r.revalidation||y.revalidation}}componentDidCatch(r,y){this.props.onError?this.props.onError(r,y):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const x=decodeRouteErrorResponseDigest(r.digest);x&&(r=x)}let y=r!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?reactExports.createElement(RSCErrorHandler,{error:r},y):y}};RenderErrorBoundary.contextType=RSCRouterContext;var errorRedirectHandledMap=new WeakMap;function RSCErrorHandler({children:r,error:y}){let{basename:x}=reactExports.useContext(NavigationContext);if(typeof y=="object"&&y&&"digest"in y&&typeof y.digest=="string"){let b=decodeRedirectErrorDigest(y.digest);if(b){let R=errorRedirectHandledMap.get(y);if(R)throw R;let M=parseToInfo(b.location,x);if(isBrowser$1&&!errorRedirectHandledMap.get(y))if(M.isExternal||b.reloadDocument)window.location.href=M.absoluteURL||M.to;else{const O=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(M.to,{replace:b.replace}));throw errorRedirectHandledMap.set(y,O),O}return reactExports.createElement("meta",{httpEquiv:"refresh",content:`0;url=${M.absoluteURL||M.to}`})}}return r}function RenderedRoute({routeContext:r,match:y,children:x}){let b=reactExports.useContext(DataRouterContext);return b&&b.static&&b.staticContext&&(y.route.errorElement||y.route.ErrorBoundary)&&(b.staticContext._deepestRenderedBoundaryId=y.route.id),reactExports.createElement(RouteContext.Provider,{value:r},x)}function _renderMatches(r,y=[],x=null,b=null,R=null){if(r==null){if(!x)return null;if(x.errors)r=x.matches;else if(y.length===0&&!x.initialized&&x.matches.length>0)r=x.matches;else return null}let M=r,O=x?.errors;if(O!=null){let q=M.findIndex(J=>J.route.id&&O?.[J.route.id]!==void 0);invariant$2(q>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(O).join(",")}`),M=M.slice(0,Math.min(M.length,q+1))}let z=!1,U=-1;if(x)for(let q=0;q<M.length;q++){let J=M[q];if((J.route.HydrateFallback||J.route.hydrateFallbackElement)&&(U=q),J.route.id){let{loaderData:X,errors:fe}=x,te=J.route.loader&&!X.hasOwnProperty(J.route.id)&&(!fe||fe[J.route.id]===void 0);if(J.route.lazy||te){z=!0,U>=0?M=M.slice(0,U+1):M=[M[0]];break}}}let G=x&&b?(q,J)=>{b(q,{location:x.location,params:x.matches?.[0]?.params??{},unstable_pattern:getRoutePattern(x.matches),errorInfo:J})}:void 0;return M.reduceRight((q,J,X)=>{let fe,te=!1,ue=null,ye=null;x&&(fe=O&&J.route.id?O[J.route.id]:void 0,ue=J.route.errorElement||defaultErrorElement,z&&(U<0&&X===0?(warningOnce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),te=!0,ye=null):U===X&&(te=!0,ye=J.route.hydrateFallbackElement||null)));let oe=y.concat(M.slice(0,X+1)),ne=()=>{let ae;return fe?ae=ue:te?ae=ye:J.route.Component?ae=reactExports.createElement(J.route.Component,null):J.route.element?ae=J.route.element:ae=q,reactExports.createElement(RenderedRoute,{match:J,routeContext:{outlet:q,matches:oe,isDataRoute:x!=null},children:ae})};return x&&(J.route.ErrorBoundary||J.route.errorElement||X===0)?reactExports.createElement(RenderErrorBoundary,{location:x.location,revalidation:x.revalidation,component:ue,error:fe,children:ne(),routeC
11ontext:{outlet:null,matches:oe,isDataRoute:!0},onError:G}):ne()},null)}function getDataRouterConsoleError(r){return`${r} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext(r){let y=reactExports.useContext(DataRouterContext);return invariant$2(y,getDataRouterConsoleError(r)),y}function useDataRouterState(r){let y=reactExports.useContext(DataRouterStateContext);return invariant$2(y,getDataRouterConsoleError(r)),y}function useRouteContext(r){let y=reactExports.useContext(RouteContext);return invariant$2(y,getDataRouterConsoleError(r)),y}function useCurrentRouteId(r){let y=useRouteContext(r),x=y.matches[y.matches.length-1];return invariant$2(x.route.id,`${r} can only be used on routes that contain a unique "id"`),x.route.id}function useRouteId(){return useCurrentRouteId("useRouteId")}function useRouteError(){let r=reactExports.useContext(RouteErrorContext),y=useDataRouterState("useRouteError"),x=useCurrentRouteId("useRouteError");return r!==void 0?r:y.errors?.[x]}function useNavigateStable(){let{router:r}=useDataRouterContext("useNavigate"),y=useCurrentRouteId("useNavigate"),x=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>{x.current=!0}),reactExports.useCallback(async(R,M={})=>{warning(x.current,navigateEffectWarning),x.current&&(typeof R=="number"?await r.navigate(R):await r.navigate(R,{fromRouteId:y,...M}))},[r,y])}var alreadyWarned={};function warningOnce(r,y,x){!y&&!alreadyWarned[r]&&(alreadyWarned[r]=!0,warning(!1,x))}reactExports.memo(DataRoutes);function DataRoutes({routes:r,future:y,state:x,onError:b}){return useRoutesImpl(r,void 0,x,b,y)}function Outlet(r){return useOutlet(r.context)}function Route(r){invariant$2(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Router({basename:r="/",children:y=null,location:x,navigationType:b="POP",navigator:R,static:M=!1,unstable_useTransitions:O}){invariant$2(!useInRouterContext(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let z=r.replace(/^\/*/,"/"),U=reactExports.useMemo(()=>({basename:z,navigator:R,static:M,unstable_useTransitions:O,future:{}}),[z,R,M,O]);typeof x=="string"&&(x=parsePath(x));let{pathname:G="/",search:q="",hash:J="",state:X=null,key:fe="default"}=x,te=reactExports.useMemo(()=>{let ue=stripBasename(G,z);return ue==null?null:{location:{pathname:ue,search:q,hash:J,state:X,key:fe},navigationType:b}},[z,G,q,J,X,fe,b]);return warning(te!=null,`<Router basename="${z}"> is not able to match the URL "${G}${q}${J}" because it does not start with the basename, so the <Router> won't render anything.`),te==null?null:reactExports.createElement(NavigationContext.Provider,{value:U},reactExports.createElement(LocationContext.Provider,{children:y,value:te}))}function Routes({children:r,location:y}){return useRoutes(createRoutesFromChildren(r),y)}function createRoutesFromChildren(r,y=[]){let x=[];return reactExports.Children.forEach(r,(b,R)=>{if(!reactExports.isValidElement(b))return;let M=[...y,R];if(b.type===reactExports.Fragment){x.push.apply(x,createRoutesFromChildren(b.props.children,M));return}invariant$2(b.type===Route,`[${typeof b.type=="string"?b.type:b.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),invariant$2(!b.props.index||!b.props.children,"An index route cannot have child routes.");let O={id:b.props.id||M.join("-"),caseSensitive:b.props.caseSensitive,element:b.props.element,Component:b.props.Component,index:b.props.index,path:b.props.path,middleware:b.props.middleware,loader:b.props.loader,action:b.props.action,hydrateFallbackElement:b.props.hydrateFallbackElement,HydrateFallback:b.props.HydrateFallback,errorElement:b.props.errorElement,ErrorBoundary:b.props.ErrorBoundary,hasErrorBoundary:b.props.hasErrorBoundary===!0||b.props.ErrorBoundary!=null||b.props.errorElement!=null,shouldRevalidate:b.props.shouldRevalidate,handle:b.props.handle,lazy:b.props.lazy};b.props.children&&(O.children=createRoutesFromChildren(b.props.children,M)),x.push(O)}),x}var defaultMethod="get",defaultEncType="application/x-www-form-urlencoded";function isHtmlElement(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function isButtonElement(r){return isHtmlElement(r)&&r.tagName.toLowerCase()==="button"}function isFormElement(r){return isHtmlElement(r)&&r.tagName.toLowerCase()==="form"}function isInputElement(r){return isHtmlElement(r)&&r.tagName.toLowerCase()==="input"}function isModifiedEvent(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function shouldProcessLinkClick(r,y){return r.button===0&&(!y||y==="_self")&&!isModifiedEvent(r)}var _formDataSupportsSubmitter=null;function isFormDataSubmitterSupported(){if(_formDataSupportsSubmitter===null)try{new FormData(document.createElement("form"),0),_formDataSupportsSubmitter=!1}catch{_formDataSupportsSubmitter=!0}return _formDataSupportsSubmitter}var supportedFormEncTypes=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function getFormEncType(r){return r!=null&&!supportedFormEncTypes.has(r)?(warning(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`),null):r}function getFormSubmissionInfo(r,y){let x,b,R,M,O;if(isFormElement(r)){let z=r.getAttribute("action");b=z?stripBasename(z,y):null,x=r.getAttribute("method")||defaultMethod,R=getFormEncType(r.getAttribute("enctype"))||defaultEncType,M=new FormData(r)}else if(isButtonElement(r)||isInputElement(r)&&(r.type==="submit"||r.type==="image")){let z=r.form;if(z==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let U=r.getAttribute("formaction")||z.getAttribute("action");if(b=U?stripBasename(U,y):null,x=r.getAttribute("formmethod")||z.getAttribute("method")||defaultMethod,R=getFormEncType(r.getAttribute("formenctype"))||getFormEncType(z.getAttribute("enctype"))||defaultEncType,M=new FormData(z,r),!isFormDataSubmitterSupported()){let{name:G,type:q,value:J}=r;if(q==="image"){let X=G?`${G}.`:"";M.append(`${X}x`,"0"),M.append(`${X}y`,"0")}else G&&M.append(G,J)}}else{if(isHtmlElement(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');x=defaultMethod,b=null,R=defaultEncType,O=r}return M&&R==="text/plain"&&(O=M,M=void 0),{action:b,method:x.toLowerCase(),encType:R,formData:M,body:O}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function invariant2(r,y){if(r===!1||r===null||typeof r>"u")throw new Error(y)}function singleFetchUrl(r,y,x){let b=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return b.pathname==="/"?b.pathname=`_root.${x}`:y&&stripBasename(b.pathname,y)==="/"?b.pathname=`${y.replace(/\/$/,"")}/_root.${x}`:b.pathname=`${b.pathname.replace(/\/$/,"")}.${x}`,b}async function loadRouteModule(r,y){if(r.id in y)return y[r.id];try{let x=await import(r.module);return y[r.id]=x,x}catch(x){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(x),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function isHtmlLinkDescriptor(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function getKeyedPrefetchLinks(r,y,x){let b=await Promise.all(r.map(async R=>{let M=y.routes[R.route.id];if(M){let O=await loadRouteModule(M,x);return O.links?O.links():[]}return[]}));return dedupeLinkDescriptors(b.flat(1).filter(isHtmlLinkDescriptor).filter(R=>R.rel==="stylesheet"||R.rel==="preload").map(R=>R.rel==="stylesheet"?{...R,rel:"prefetch",as:"style"}:{...R,rel:"prefetch"}))}function getNewMatchesForLinks(r,y,x,b,R,M){let O=(U,G)=>x[G]?U.route.id!==x[G].route.id:!0,z=(U,G)=>x[G].pathname!==U.pathname||x[G].route.path?.endsWith("*")&&x[G].params["*"]!==U.params["*"];return M==="assets"?y.filter((U,G)=>O(U,G)||z(U,G)):M==="data"?y.filter((U,G)=>{let q=b.routes[U.route.id];if(!q||!q.hasLoader)return!1;if(O(U,G)||z(U,G))return!0;if(U.route.shouldRevalidate){let J=U.route.shouldRevalidate({currentUrl:new URL(R.pathname+R.search+R.hash,window.origin),currentParams:x[0]?.params||{},nextUrl:new URL(r,window.origin),nextParams:U.params,defaultShouldRevalidate:!0});if(typeof J=="boolean")return J}return!0}):[]}function getModuleLinkHrefs(r,y,{includeHydrateFallback:x}={}){return dedupeHrefs(r.map(b=>{let R=y.routes[b.route.id];if(!R)return[];let M=[R.module];return R.clientActionModule&&(M=M.concat(R.clientActionModule)),R.clientLoaderModule&&(M=M.concat(R.clientLoaderModule)),x&&R.hydrateFallbackModule&&(M=M.concat(R.hydrateFallbackModule)),R.imports&&(M=M.concat(R.imports)),M}).flat(1))}function dedupeHrefs(r){return[...new Set(r)]}function sortKeys(r){let y={},x=Object.keys(r).sort();for(let b of x)y[b]=r[b];return y}function dedupeLinkDescriptors(r,y){let x=new Set;return new Set(y),r.reduce((b,R)=>{let M=JSON.stringify(sortKeys(R));return x.has(M)||(x.add(M),b.push({key:M,link:R})),b},[])}function useDataRouterContext2(){let r=reactExports.useContext(DataRouterContext);return invariant2(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function useDataRouterStateContext(){let r=reactExports.useContext(DataRouterStateContext);return invariant2(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var FrameworkContext=reactExports.createContext(void 0);FrameworkContext.displayName="FrameworkContext";function useFrameworkContext(){let r=reactExports.useContext(FrameworkContext);return invariant2(r,"You must render this element inside a <HydratedRouter> element"),r}function usePrefetchBehavior(r,y){let x=reactExports.useContext(FrameworkContext),[b,R]=reactExports.useState(!1),[M,O]=reactExports.useState(!1),{onFocus:z,onBlur:U,onMouseEnter:G,onMouseLeave:q,onTouchStart:J}=y,X=reactExports.useRef(null);reactExports.useEffect(()=>{if(r==="render"&&O(!0),r==="viewport"){let ue=oe=>{oe.forEach(ne=>{O(ne.isIntersecting)})},ye=new IntersectionObserver(ue,{threshold:.5});return X.current&&ye.observe(X.current),()=>{ye.disconnect()}}},[r]),reactExports.useEffect(()=>{if(b){let ue=setTimeout(()=>{O(!0)},100);return()=>{clearTimeout(ue)}}},[b]);let fe=()=>{R(!0)},te=()=>{R(!1),O(!1)};return x?r!=="intent"?[M,X,{}]:[M,X,{onFocus:composeEventHandlers(z,fe),onBlur:composeEventHandlers(U,te),onMouseEnter:composeEventHandlers(G,fe),onMouseLeave:composeEventHandlers(q,te),onTouchStart:composeEventHandlers(J,fe)}]:[!1,X,{}]}function composeEventHandlers(r,y){return x=>{r&&r(x),x.defaultPrevented||y(x)}}function PrefetchPageLinks({page:r,...y}){let{router:x}=useDataRouterContext2(),b=reactExports.useMemo(()=>matchRoutes(x.routes,r,x.basename),[x.routes,r,x.basename]);return b?reactExports.createElement(PrefetchPageLinksImpl,{page:r,matches:b,...y}):null}function useKeyedPrefetchLinks(r){let{manifest:y,routeModules:x}=useFrameworkContext(),[b,R]=reactExports.useState([]);return reactExports.useEffect(()=>{let M=!1;return getKeyedPrefetchLinks(r,y,x).then(O=>{M||R(O)}),()=>{M=!0}},[r,y,x]),b}function PrefetchPageLinksImpl({page:r,matches:y,...x}){let b=useLocation(),{manifest:R,routeModules:M}
11=useFrameworkContext(),{basename:O}=useDataRouterContext2(),{loaderData:z,matches:U}=useDataRouterStateContext(),G=reactExports.useMemo(()=>getNewMatchesForLinks(r,y,U,R,b,"data"),[r,y,U,R,b]),q=reactExports.useMemo(()=>getNewMatchesForLinks(r,y,U,R,b,"assets"),[r,y,U,R,b]),J=reactExports.useMemo(()=>{if(r===b.pathname+b.search+b.hash)return[];let te=new Set,ue=!1;if(y.forEach(oe=>{let ne=R.routes[oe.route.id];!ne||!ne.hasLoader||(!G.some(ae=>ae.route.id===oe.route.id)&&oe.route.id in z&&M[oe.route.id]?.shouldRevalidate||ne.hasClientLoader?ue=!0:te.add(oe.route.id))}),te.size===0)return[];let ye=singleFetchUrl(r,O,"data");return ue&&te.size>0&&ye.searchParams.set("_routes",y.filter(oe=>te.has(oe.route.id)).map(oe=>oe.route.id).join(",")),[ye.pathname+ye.search]},[O,z,b,R,G,y,r,M]),X=reactExports.useMemo(()=>getModuleLinkHrefs(q,R),[q,R]),fe=useKeyedPrefetchLinks(q);return reactExports.createElement(reactExports.Fragment,null,J.map(te=>reactExports.createElement("link",{key:te,rel:"prefetch",as:"fetch",href:te,...x})),X.map(te=>reactExports.createElement("link",{key:te,rel:"modulepreload",href:te,...x})),fe.map(({key:te,link:ue})=>reactExports.createElement("link",{key:te,nonce:x.nonce,...ue})))}function mergeRefs(...r){return y=>{r.forEach(x=>{typeof x=="function"?x(y):x!=null&&(x.current=y)})}}var isBrowser2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{isBrowser2&&(window.__reactRouterVersion="7.11.0")}catch{}function BrowserRouter({basename:r,children:y,unstable_useTransitions:x,window:b}){let R=reactExports.useRef();R.current==null&&(R.current=createBrowserHistory({window:b,v5Compat:!0}));let M=R.current,[O,z]=reactExports.useState({action:M.action,location:M.location}),U=reactExports.useCallback(G=>{x===!1?z(G):reactExports.startTransition(()=>z(G))},[x]);return reactExports.useLayoutEffect(()=>M.listen(U),[M,U]),reactExports.createElement(Router,{basename:r,children:y,location:O.location,navigationType:O.action,navigator:M,unstable_useTransitions:x})}var ABSOLUTE_URL_REGEX2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function({onClick:y,discover:x="render",prefetch:b="none",relative:R,reloadDocument:M,replace:O,state:z,target:U,to:G,preventScrollReset:q,viewTransition:J,unstable_defaultShouldRevalidate:X,...fe},te){let{basename:ue,unstable_useTransitions:ye}=reactExports.useContext(NavigationContext),oe=typeof G=="string"&&ABSOLUTE_URL_REGEX2.test(G),ne=parseToInfo(G,ue);G=ne.to;let ae=useHref(G,{relative:R}),[pe,je,Ve]=usePrefetchBehavior(b,fe),Ue=useLinkClickHandler(G,{replace:O,state:z,target:U,preventScrollReset:q,relative:R,viewTransition:J,unstable_defaultShouldRevalidate:X,unstable_useTransitions:ye});function $e(ot){y&&y(ot),ot.defaultPrevented||Ue(ot)}let We=reactExports.createElement("a",{...fe,...Ve,href:ne.absoluteURL||ae,onClick:ne.isExternal||M?y:$e,ref:mergeRefs(te,je),target:U,"data-discover":!oe&&x==="render"?"true":void 0});return pe&&!oe?reactExports.createElement(reactExports.Fragment,null,We,reactExports.createElement(PrefetchPageLinks,{page:ae})):We});Link.displayName="Link";var NavLink=reactExports.forwardRef(function({"aria-current":y="page",caseSensitive:x=!1,className:b="",end:R=!1,style:M,to:O,viewTransition:z,children:U,...G},q){let J=useResolvedPath(O,{relative:G.relative}),X=useLocation(),fe=reactExports.useContext(DataRouterStateContext),{navigator:te,basename:ue}=reactExports.useContext(NavigationContext),ye=fe!=null&&useViewTransitionState(J)&&z===!0,oe=te.encodeLocation?te.encodeLocation(J).pathname:J.pathname,ne=X.pathname,ae=fe&&fe.navigation&&fe.navigation.location?fe.navigation.location.pathname:null;x||(ne=ne.toLowerCase(),ae=ae?ae.toLowerCase():null,oe=oe.toLowerCase()),ae&&ue&&(ae=stripBasename(ae,ue)||ae);const pe=oe!=="/"&&oe.endsWith("/")?oe.length-1:oe.length;let je=ne===oe||!R&&ne.startsWith(oe)&&ne.charAt(pe)==="/",Ve=ae!=null&&(ae===oe||!R&&ae.startsWith(oe)&&ae.charAt(oe.length)==="/"),Ue={isActive:je,isPending:Ve,isTransitioning:ye},$e=je?y:void 0,We;typeof b=="function"?We=b(Ue):We=[b,je?"active":null,Ve?"pending":null,ye?"transitioning":null].filter(
11Boolean).join(" ");let ot=typeof M=="function"?M(Ue):M;return reactExports.createElement(Link,{...G,"aria-current":$e,className:We,ref:q,style:ot,to:O,viewTransition:z},typeof U=="function"?U(Ue):U)});NavLink.displayName="NavLink";var Form=reactExports.forwardRef(({discover:r="render",fetcherKey:y,navigate:x,reloadDocument:b,replace:R,state:M,method:O=defaultMethod,action:z,onSubmit:U,relative:G,preventScrollReset:q,viewTransition:J,unstable_defaultShouldRevalidate:X,...fe},te)=>{let{unstable_useTransitions:ue}=reactExports.useContext(NavigationContext),ye=useSubmit(),oe=useFormAction(z,{relative:G}),ne=O.toLowerCase()==="get"?"get":"post",ae=typeof z=="string"&&ABSOLUTE_URL_REGEX2.test(z),pe=je=>{if(U&&U(je),je.defaultPrevented)return;je.preventDefault();let Ve=je.nativeEvent.submitter,Ue=Ve?.getAttribute("formmethod")||O,$e=()=>ye(Ve||je.currentTarget,{fetcherKey:y,method:Ue,navigate:x,replace:R,state:M,relative:G,preventScrollReset:q,viewTransition:J,unstable_defaultShouldRevalidate:X});ue&&x!==!1?reactExports.startTransition(()=>$e()):$e()};return reactExports.createElement("form",{ref:te,method:ne,action:oe,onSubmit:b?U:pe,...fe,"data-discover":!ae&&r==="render"?"true":void 0})});Form.displayName="Form";function getDataRouterConsoleError2(r){return`${r} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext3(r){let y=reactExports.useContext(DataRouterContext);return invariant$2(y,getDataRouterConsoleError2(r)),y}function useLinkClickHandler(r,{target:y,replace:x,state:b,preventScrollReset:R,relative:M,viewTransition:O,unstable_defaultShouldRevalidate:z,unstable_useTransitions:U}={}){let G=useNavigate(),q=useLocation(),J=useResolvedPath(r,{relative:M});return reactExports.useCallback(X=>{if(shouldProcessLinkClick(X,y)){X.preventDefault();let fe=x!==void 0?x:createPath(q)===createPath(J),te=()=>G(r,{replace:fe,state:b,preventScrollReset:R,relative:M,viewTransition:O,unstable_defaultShouldRevalidate:z});U?reactExports.startTransition(()=>te()):te()}},[q,G,J,x,b,y,r,R,M,O,z,U])}var fetcherId=0,getUniqueFetcherId=()=>`__${String(++fetcherId)}__`;function useSubmit(){let{router:r}=useDataRouterContext3("useSubmit"),{basename:y}=reactExports.useContext(NavigationContext),x=useRouteId(),b=r.fetch,R=r.navigate;return reactExports.useCallback(async(M,O={})=>{let{action:z,method:U,encType:G,formData:q,body:J}=getFormSubmissionInfo(M,y);if(O.navigate===!1){let X=O.fetcherKey||getUniqueFetcherId();await b(X,x,O.action||z,{unstable_defaultShouldRevalidate:O.unstable_defaultShouldRevalidate,preventScrollReset:O.preventScrollReset,formData:q,body:J,formMethod:O.method||U,formEncType:O.encType||G,flushSync:O.flushSync})}else await R(O.action||z,{unstable_defaultShouldRevalidate:O.unstable_defaultShouldRevalidate,preventScrollReset:O.preventScrollReset,formData:q,body:J,formMethod:O.method||U,formEncType:O.encType||G,replace:O.replace,state:O.state,fromRouteId:x,flushSync:O.flushSync,viewTransition:O.viewTransition})},[b,R,y,x])}function useFormAction(r,{relative:y}={}){let{basename:x}=reactExports.useContext(NavigationContext),b=reactExports.useContext(RouteContext);invariant$2(b,"useFormAction must be used inside a RouteContext");let[R]=b.matches.slice(-1),M={...useResolvedPath(r||".",{relative:y})},O=useLocation();if(r==null){M.search=O.search;let z=new URLSearchParams(M.search),U=z.getAll("index");if(U.some(q=>q==="")){z.delete("index"),U.filter(J=>J).forEach(J=>z.append("index",J));let q=z.toString();M.search=q?`?${q}`:""}}return(!r||r===".")&&R.route.index&&(M.search=M.search?M.search.replace(/^\?/,"?index&"):"?index"),x!=="/"&&(M.pathname=M.pathname==="/"?x:joinPaths([x,M.pathname])),createPath(M)}function useViewTransitionState(r,{relative:y}={}){let x=reactExports.useContext(ViewTransitionContext);invariant$2(x!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:b}=useDataRouterContext3("useViewTransitionState"),R=useResolvedPath(r,{relative:y});if(!x.isTransitioning)return!1;let M=stripBasename(x.currentLocation.pathname,b)||x.currentLocation.pathname,O=stripBasename(x.nextLocation.pathname,b)||x.nextLocation.pathname;return matchPath(R.pathname,O)!=null||matchPath(R.pathname,M)!=null}let e={data:""},t=r=>{if(typeof window=="object"){let y=(r?r.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return y.nonce=window.__nonce__,y.parentNode||(r||document.head).appendChild(y),y.firstChild}return r||e},l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a$1=/\/\*[^]*?\*\/|  +/g,n$1=/\n+/g,o=(r,y)=>{let x="",b="",R="";for(let M in r){let O=r[M];M[0]=="@"?M[1]=="i"?x=M+" "+O+";":b+=M[1]=="f"?o(O,M):M+"{"+o(O,M[1]=="k"?"":y)+"}":typeof O=="object"?b+=o(O,y?y.replace(/([^,])+/g,z=>M.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,U=>/&/.test(U)?U.replace(/&/g,z):z?z+" "+U:U)):M):O!=null&&(M=/^--/.test(M)?M:M.replace(/[A-Z]/g,"-$&").toLowerCase(),R+=o.p?o.p(M,O):M+":"+O+";")}return x+(y&&R?y+"{"+R+"}":R)+b},c={},s=r=>{if(typeof r=="object"){let y="";for(let x in r)y+=x+s(r[x]);return y}return r},i$1=(r,y,x,b,R)=>{let M=s(r),O=c[M]||(c[M]=(U=>{let G=0,q=11;for(;G<U.length;)q=101*q+U.charCodeAt(G++)>>>0;return"go"+q})(M));if(!c[O]){let U=M!==r?r:(G=>{let q,J,X=[{}];for(;q=l.exec(G.replace(a$1,""));)q[4]?X.shift():q[3]?(J=q[3].replace(n$1," ").trim(),X.unshift(X[0][J]=X[0][J]||{})):X[0][q[1]]=q[2].replace(n$1," ").trim();return X[0]})(r);c[O]=o(R?{["@keyframes "+O]:U}:U,x?"":"."+O)}let z=x&&c.g?c.g:null;return x&&(c.g=c[O]),((U,G,q,J)=>{J?G.data=G.data.replace(J,U):G.data.indexOf(U)===-1&&(G.data=q?U+G.data:G.data+U)})(c[O],y,b,z),O},p=(r,y,x)=>r.reduce((b,R,M)=>{let O=y[M];if(O&&O.call){let z=O(x),U=z&&z.props&&z.props.className||/^go/.test(z)&&z;O=U?"."+U:z&&typeof z=="object"?z.props?"":o(z,""):z===!1?"":z}return b+R+(O??"")},"");function u(r){let y=this||{},x=r.call?r(y.p):r;
11return i$1(x.unshift?x.raw?p(x,[].slice.call(arguments,1),y.p):x.reduce((b,R)=>Object.assign(b,R&&R.call?R(y.p):R),{}):x,t(y.target),y.g,y.o,y.k)}let d,f$1,g;u.bind({g:1});let h$2=u.bind({k:1});function m(r,y,x,b){o.p=y,d=r,f$1=x,g=b}function w$2(r,y){let x=this||{};return function(){let b=arguments;function R(M,O){let z=Object.assign({},M),U=z.className||R.className;x.p=Object.assign({theme:f$1&&f$1()},z),x.o=/ *go\d+/.test(U),z.className=u.apply(x,b)+(U?" "+U:"");let G=r;return r[0]&&(G=z.as||r,delete z.as),g&&G[0]&&g(z),d(G,z)}return R}}var Z=r=>typeof r=="function",h$1=(r,y)=>Z(r)?r(y):r,W=(()=>{let r=0;return()=>(++r).toString()})(),E=(()=>{let r;return()=>{if(r===void 0&&typeof window<"u"){let y=matchMedia("(prefers-reduced-motion: reduce)");r=!y||y.matches}return r}})(),re$1=20,k="default",H=(r,y)=>{let{toastLimit:x}=r.settings;switch(y.type){case 0:return{...r,toasts:[y.toast,...r.toasts].slice(0,x)};case 1:return{...r,toasts:r.toasts.map(O=>O.id===y.toast.id?{...O,...y.toast}:O)};case 2:let{toast:b}=y;return H(r,{type:r.toasts.find(O=>O.id===b.id)?1:0,toast:b});case 3:let{toastId:R}=y;return{...r,toasts:r.toasts.map(O=>O.id===R||R===void 0?{...O,dismissed:!0,visible:!1}:O)};case 4:return y.toastId===void 0?{...r,toasts:[]}:{...r,toasts:r.toasts.filter(O=>O.id!==y.toastId)};case 5:return{...r,pausedAt:y.time};case 6:let M=y.time-(r.pausedAt||0);return{...r,pausedAt:void 0,toasts:r.toasts.map(O=>({...O,pauseDuration:O.pauseDuration+M}))}}},v$1=[],j={toasts:[],pausedAt:void 0,settings:{toastLimit:re$1}},f={},Y=(r,y=k)=>{f[y]=H(f[y]||j,r),v$1.forEach(([x,b])=>{x===y&&b(f[y])})},_=r=>Object.keys(f).forEach(y=>Y(r,y)),Q=r=>Object.keys(f).find(y=>f[y].toasts.some(x=>x.id===r)),S=(r=k)=>y=>{Y(y,r)},se={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},V=(r={},y=k)=>{let[x,b]=reactExports.useState(f[y]||j),R=reactExports.useRef(f[y]);reactExports.useEffect(()=>(R.current!==f[y]&&b(f[y]),v$1.push([y,b]),()=>{let O=v$1.findIndex(([z])=>z===y);O>-1&&v$1.splice(O,1)}),[y]);let M=x.toasts.map(O=>{var z,U,G;return{...r,...r[O.type],...O,removeDelay:O.removeDelay||((z=r[O.type])==null?void 0:z.removeDelay)||r?.removeDelay,duration:O.duration||((U=r[O.type])==null?void 0:U.duration)||r?.duration||se[O.type],style:{...r.style,...(G=r[O.type])==null?void 0:G.style,...O.style}}});return{...x,toasts:M}},ie=(r,y="blank",x)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:y,ariaProps:{role:"status","aria-live":"polite"},message:r,pauseDuration:0,...x,id:x?.id||W()}),P=r=>(y,x)=>{let b=ie(y,r,x);return S(b.toasterId||Q(b.id))({type:2,toast:b}),b.id},n=(r,y)=>P("blank")(r,y);n.error=P("error");n.success=P("success");n.loading=P("loading");n.custom=P("custom");
11n.dismiss=(r,y)=>{let x={type:3,toastId:r};y?S(y)(x):_(x)};n.dismissAll=r=>n.dismiss(void 0,r);n.remove=(r,y)=>{let x={type:4,toastId:r};y?S(y)(x):_(x)};n.removeAll=r=>n.remove(void 0,r);n.promise=(r,y,x)=>{let b=n.loading(y.loading,{...x,...x?.loading});return typeof r=="function"&&(r=r()),r.then(R=>{let M=y.success?h$1(y.success,R):void 0;return M?n.success(M,{id:b,...x,...x?.success}):n.dismiss(b),R}).catch(R=>{let M=y.error?h$1(y.error,R):void 0;M?n.error(M,{id:b,...x,...x?.error}):n.dismiss(b)}),r};var ce=1e3,w$1=(r,y="default")=>{let{toasts:x,pausedAt:b}=V(r,y),R=reactExports.useRef(new Map).current,M=reactExports.useCallback((J,X=ce)=>{if(R.has(J))return;let fe=setTimeout(()=>{R.delete(J),O({type:4,toastId:J})},X);R.set(J,fe)},[]);reactExports.useEffect(()=>{if(b)return;let J=Date.now(),X=x.map(fe=>{if(fe.duration===1/0)return;let te=(fe.duration||0)+fe.pauseDuration-(J-fe.createdAt);if(te<0){fe.visible&&n.dismiss(fe.id);return}return setTimeout(()=>n.dismiss(fe.id,y),te)});return()=>{X.forEach(fe=>fe&&clearTimeout(fe))}},[x,b,y]);let O=reactExports.useCallback(S(y),[y]),z=reactExports.useCallback(()=>{O({type:5,time:Date.now()})},[O]),U=reactExports.useCallback((J,X)=>{O({type:1,toast:{id:J,height:X}})},[O]),G=reactExports.useCallback(()=>{b&&O({type:6,time:Date.now()})},[b,O]),q=reactExports.useCallback((J,X)=>{let{reverseOrder:fe=!1,gutter:te=8,defaultPosition:ue}=X||{},ye=x.filter(ae=>(ae.position||ue)===(J.position||ue)&&ae.height),oe=ye.findIndex(ae=>ae.id===J.id),ne=ye.filter((ae,pe)=>pe<oe&&ae.visible).length;return ye.filter(ae=>ae.visible).slice(...fe?[ne+1]:[0,ne]).reduce((ae,pe)=>ae+(pe.height||0)+te,0)},[x]);return reactExports.useEffect(()=>{x.forEach(J=>{if(J.dismissed)M(J.id,J.removeDelay);else{let X=R.get(J.id);X&&(clearTimeout(X),R.delete(J.id))}})},[x,M]),{toasts:x,handlers:{updateHeight:U,startPause:z,endPause:G,calculateOffset:q}}},de=h$2`
12from {
13  transform: scale(0) rotate(45deg);
14	opacity: 0;
15}
16to {
17 transform: scale(1) rotate(45deg);
18  opacity: 1;
19}`,me=h$2`
20from {
21  transform: scale(0);
22  opacity: 0;
23}
24to {
25  transform: scale(1);
26  opacity: 1;
27}`,le=h$2`
28from {
29  transform: scale(0) rotate(90deg);
30	opacity: 0;
31}
32to {
33  transform: scale(1) rotate(90deg);
34	opacity: 1;
35}`,C=w$2("div")`
36  width: 20px;
37  opacity: 0;
38  height: 20px;
39  border-radius: 10px;
40  background: ${r=>r.primary||"#ff4b4b"};
41  position: relative;
42  transform: rotate(45deg);
43
44  animation: ${de} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
45    forwards;
46  animation-delay: 100ms;
47
48  &:after,
49  &:before {
50    content: '';
51    animation: ${me} 0.15s ease-out forwards;
52    animation-delay: 150ms;
53    position: absolute;
54    border-radius: 3px;
55    opacity: 0;
56    background: ${r=>r.secondary||"#fff"};
57    bottom: 9px;
58    left: 4px;
59    height: 2px;
60    width: 12px;
61  }
62
63  &:before {
64    animation: ${le} 0.15s ease-out forwards;
65    animation-delay: 180ms;
66    transform: rotate(90deg);
67  }
68`,Te=h$2`
69  from {
70    transform: rotate(0deg);
71  }
72  to {
73    transform: rotate(360deg);
74  }
75`,F=w$2("div")`
76  width: 12px;
77  height: 12px;
78  box-sizing: border-box;
79  border: 2px solid;
80  border-radius: 100%;
81  border-color: ${r=>r.secondary||"#e0e0e0"};
82  border-right-color: ${r=>r.primary||"#616161"};
83  animation: ${Te} 1s linear infinite;
84`,ge=h$2`
85from {
86  transform: scale(0) rotate(45deg);
87	opacity: 0;
88}
89to {
90  transform: scale(1) rotate(45deg);
91	opacity: 1;
92}`,he=h$2`
930% {
94	height: 0;
95	width: 0;
96	opacity: 0;
97}
9840% {
99  height: 0;
100	width: 6px;
101	opacity: 1;
102}
103100% {
104  opacity: 1;
105  height: 10px;
106}`,L=w$2("div")`
107  width: 20px;
108  opacity: 0;
109  height: 20px;
110  border-radius: 10px;
111  background: ${r=>r.primary||"#61d345"};
112  position: relative;
113  transform: rotate(45deg);
114
115  animation: ${ge} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
116    forwards;
117  animation-delay: 100ms;
118  &:after {
119    content: '';
120    box-sizing: border-box;
121    animation: ${he} 0.2s ease-out forwards;
122    opacity: 0;
123    animation-delay: 200ms;
124    position: absolute;
125    border-right: 2px solid;
126    border-bottom: 2px solid;
127    border-color: ${r=>r.secondary||"#fff"};
128    bottom: 6px;
129    left: 6px;
130    height: 10px;
131    width: 6px;
132  }
133`,be=w$2("div")`
134  position: absolute;
135`,Se=w$2("div")`
136  position: relative;
137  display: flex;
138  justify-content: center;
139  align-items: center;
140  min-width: 20px;
141  min-height: 20px;
142`,Ae=h$2`
143from {
144  transform: scale(0.6);
145  opacity: 0.4;
146}
147to {
148  transform: scale(1);
149  opacity: 1;
150}`,Pe=w$2("div")`
151  position: relative;
152  transform: scale(0.6);
153  opacity: 0.4;
154  min-width: 20px;
155  animation: ${Ae} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
156    forwards;
157`,$=({toast:r})=>{let{icon:y,type:x,iconTheme:b}=r;return y!==void 0?typeof y=="string"?reactExports.createElement(Pe,null,y):y:x==="blank"?null:reactExports.createElement(Se,null,reactExports.createElement(F,{...b}),x!=="loading"&&reactExports.createElement(be,null,x==="error"?reactExports.createElement(C,{...b}):reactExports.createElement(L,{...b})))},Re=r=>`
1580% {transform: translate3d(0,${r*-200}%,0) scale(.6); opacity:.5;}
159100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
160`,Ee=r=>`
1610% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
162100% {transform: translate3d(0,${r*-150}%,-1px) scale(.6); opacity:0;}
163`,ve="0%{opacity:0;} 100%{opacity:1;}",De="0%{opacity:1;} 100%{opacity:0;}",Oe=w$2("div")`
164  display: flex;
165  align-items: center;
166  background: #fff;
167  color: #363636;
168  line-height: 1.3;
169  will-change: transform;
170  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
171  max-width: 350px;
172  pointer-events: auto;
173  padding: 8px 10px;
174  border-radius: 8px;
175`,Ie=w$2("div")`
176  display: flex;
177  justify-content: center;
178  margin: 4px 10px;
179  color: inherit;
180  flex: 1 1 auto;
181  white-space: pre-line;
182`,ke=(r,y)=>{let x=r.includes("top")?1:-1,[b,R]=E()?[ve,De]:[Re(x),Ee(x)];return{animation:y?`${h$2(b)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${h$2(R)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},N=reactExports.memo(({toast:r,position:y,style:x,children:b})=>{let R=r.height?ke(r.position||y||"top-center",r.visible):{opacity:0},M=reactExports.createElement($,{toast:r}),O=reactExports.createElement(Ie,{...r.ariaProps},h$1(r.message,r));return reactExports.createElement(Oe,{className:r.className,style:{...R,...x,...r.style}},typeof b=="function"?b({icon:M,message:O}):reactExports.createElement(reactExports.Fragment,null,M,O))});m(reactExports.createElement);var we=({id:r,className:y,style:x,onHeightUpdate:b,children:R})=>{let M=reactExports.useCallback(O=>{if(O){let z=()=>{let U=O.getBoundingClientRect().height;b(r,U)};z(),new MutationObserver(z).observe(O,{subtree:!0,childList:!0,characterData:!0})}},[r,b]);return reactExports.createElement("div",{ref:M,className:y,style:x},R)},Me=(r,y)=>{let x=r.includes("top"),b=x?{top:0}:{bottom:0},R=r.includes("center")?{justifyContent:"center"}:r.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:E()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${y*(x?1:-1)}px)`,...b,...R}},Ce=u`
183  z-index: 9999;
184  > * {
185    pointer-events: auto;
186  }
187`,D=16,Fe=({reverseOrder:r,position:y="top-center",toastOptions:x,gutter:b,children:R,toasterId:M,containerStyle:O,containerClassName:z})=>{let{toasts:U,handlers:G}=w$1(x,M);return reactExports.createElement("div",{"data-rht-toaster":M||"",style:{position:"fixed",zIndex:9999,top:D,left:D,right:D,bottom:D,pointerEvents:"none",...O},className:z,onMouseEnter:G.startPause,onMouseLeave:G.endPause},U.map(q=>{let J=q.position||y,X=G.calculateOffset(q,{reverseOrder:r,gutter:b,defaultPosition:y}),fe=Me(J,X);return reactExports.createElement(we,{id:q.id,key:q.id,onHeightUpdate:G.updateHeight,className:q.visible?Ce:"",style:fe},q.type==="custom"?h$1(q.message,q):R?R(q):reactExports.createElement(N,{toast:q,position:J}))}))},zt=n;const getDefaultsFromPostinstall=()=>{};var define_process_env_default={};const stringToByteArray$1=function(r){const y=[];let x=0;for(let b=0;b<r.length;b++){let R=r.charCodeAt(b);R<128?y[x++]=R:R<2048?(y[x++]=R>>6|192,y[x++]=R&63|128):(R&64512)===55296&&b+1<r.length&&(r.charCodeAt(b+1)&64512)===56320?(R=65536+((R&1023)<<10)+(r.charCodeAt(++b)&1023),y[x++]=R>>18|240,y[x++]=R>>12&63|128,y[x++]=R>>6&63|128,y[x++]=R&63|128):(y[x++]=R>>12|224,y[x++]=R>>6&63|128,y[x++]=R&63|128)}return y},byteArrayToString=function(r){const y=[];let x=0,b=0;for(;x<r.length;){const R=r[x++];if(R<128)y[b++]=String.fromCharCode(R);else if(R>191&&R<224){const M=r[x++];
187y[b++]=String.fromCharCode((R&31)<<6|M&63)}else if(R>239&&R<365){const M=r[x++],O=r[x++],z=r[x++],U=((R&7)<<18|(M&63)<<12|(O&63)<<6|z&63)-65536;y[b++]=String.fromCharCode(55296+(U>>10)),y[b++]=String.fromCharCode(56320+(U&1023))}else{const M=r[x++],O=r[x++];y[b++]=String.fromCharCode((R&15)<<12|(M&63)<<6|O&63)}}return y.join("")},base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(r,y){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();const x=y?this.byteToCharMapWebSafe_:this.byteToCharMap_,b=[];for(let R=0;R<r.length;R+=3){const M=r[R],O=R+1<r.length,z=O?r[R+1]:0,U=R+2<r.length,G=U?r[R+2]:0,q=M>>2,J=(M&3)<<4|z>>4;let X=(z&15)<<2|G>>6,fe=G&63;U||(fe=64,O||(X=64)),b.push(x[q],x[J],x[X],x[fe])}return b.join("")},encodeString(r,y){return this.HAS_NATIVE_SUPPORT&&!y?btoa(r):this.encodeByteArray(stringToByteArray$1(r),y)},decodeString(r,y){return this.HAS_NATIVE_SUPPORT&&!y?atob(r):byteArrayToString(this.decodeStringToByteArray(r,y))},decodeStringToByteArray(r,y){this.init_();const x=y?this.charToByteMapWebSafe_:this.charToByteMap_,b=[];for(let R=0;R<r.length;){const M=x[r.charAt(R++)],z=R<r.length?x[r.charAt(R)]:0;++R;const G=R<r.length?x[r.charAt(R)]:64;++R;const J=R<r.length?x[r.charAt(R)]:64;if(++R,M==null||z==null||G==null||J==null)throw new DecodeBase64StringError;const X=M<<2|z>>4;if(b.push(X),G!==64){const fe=z<<4&240|G>>2;if(b.push(fe),J!==64){const te=G<<6&192|J;b.push(te)}}}return b},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r<this.ENCODED_VALS.length;r++)this.byteToCharMap_[r]=this.ENCODED_VALS.charAt(r),this.charToByteMap_[this.byteToCharMap_[r]]=r,this.byteToCharMapWebSafe_[r]=this.ENCODED_VALS_WEBSAFE.charAt(r),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[r]]=r,r>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64Encode=function(r){const y=stringToByteArray$1(r);return base64.encodeByteArray(y,!0)},base64urlEncodeWithoutPadding=function(r){return base64Encode(r).replace(/\./g,"")},base64Decode=function(r){try{return base64.decodeString(r,!0)}catch(y){console.error("base64Decode failed: ",y)}return null};function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const getDefaultsFromGlobal=()=>getGlobal().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(typeof process>"u"||typeof define_process_env_default>"u")return;const r=define_process_env_default.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},getDefaultsFromCookie=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const y=r&&base64Decode(r[1]);return y&&JSON.parse(y)},getDefaults=()=>{try{return getDefaultsFromPostinstall()||getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},getDefaultEmulatorHost=r=>getDefaults()?.emulatorHosts?.[r],getDefaultAppConfig=()=>getDefaults()?.config,getExperimentalSetting=r=>getDefaults()?.[`_${r}`];class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}wrapCallback(y){return(x,b)=>{x?this.reject(x):this.resolve(b),typeof y=="function"&&(this.promise.catch(()=>{}),y.length===1?y(x):y(x,b))}}}function isCloudWorkstation(r){try{return(r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r).endsWith(".cloudworkstations.dev")}catch{return!1}}async function pingServer(r){return(await fetch(r,{credentials:"include"})).ok}const emulatorStatus={};function getEmulatorSummary(){const r={prod:[],emulator:[]};for(const y of Object.keys(emulatorStatus))emulatorStatus[y]?r.emulator.push(y):r.prod.push(y);return r}function getOrCreateEl(r){let y=document.getElementById(r),x=!1;return y||(y=document.createElement("div"),y.setAttribute("id",r),x=!0),{created:x,element:y}}let previouslyDismissed=!1;function updateEmulatorBanner(r,y){if(typeof window>"u"||typeof document>"u"||!isCloudWorkstation(window.location.host)||emulatorStatus[r]===y||emulatorStatus[r]||previouslyDismissed)return;emulatorStatus[r]=y;function x(X){return`__firebase__banner__${X}`}const b="__firebase__banner",M=getEmulatorSummary().prod.length>0;function O(){const X=document.getElementById(b);X&&X.remove()}function z(X){X.style.display="flex",X.style.background="#7faaf0",X.style.position="fixed",X.style.bottom="5px",X.style.left="5px",X.style.padding=".5em",X.style.borderRadius="5px",X.style.alignItems="center"}function U(X,fe){X.setAttribute("width","24"),X.setAttribute("id",fe),X.setAttribute("height","24"),X.setAttribute("viewBox","0 0 24 24"),X.setAttribute("fill","none"),X.style.marginLeft="-6px"}function G(){const X=document.createElement("span");
187return X.style.cursor="pointer",X.style.marginLeft="16px",X.style.fontSize="24px",X.innerHTML=" &times;",X.onclick=()=>{previouslyDismissed=!0,O()},X}function q(X,fe){X.setAttribute("id",fe),X.innerText="Learn more",X.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",X.setAttribute("target","__blank"),X.style.paddingLeft="5px",X.style.textDecoration="underline"}function J(){const X=getOrCreateEl(b),fe=x("text"),te=document.getElementById(fe)||document.createElement("span"),ue=x("learnmore"),ye=document.getElementById(ue)||document.createElement("a"),oe=x("preprendIcon"),ne=document.getElementById(oe)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(X.created){const ae=X.element;z(ae),q(ye,ue);const pe=G();U(ne,oe),ae.append(ne,te,ye,pe),document.body.appendChild(ae)}M?(te.innerText="Preview backend disconnected.",ne.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
188<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
189</g>
190<defs>
191<clipPath id="clip0_6013_33858">
192<rect width="24" height="24" fill="white"/>
193</clipPath>
194</defs>`):(ne.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
195<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
196</g>
197<defs>
198<clipPath id="clip0_6083_34804">
199<rect width="24" height="24" fill="white"/>
200</clipPath>
201</defs>`,te.innerText="Preview backend running in this workspace."),te.setAttribute("id",fe)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",J):J()}function getUA(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function isMobileCordova(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())}function isCloudflareWorker(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function isBrowserExtension(){const r=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof r=="object"&&r.id!==void 0}function isReactNative$1(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function isIE(){const r=getUA();return r.indexOf("MSIE ")>=0||r.indexOf("Trident/")>=0}function isIndexedDBAvailable(){try{return typeof indexedDB=="object"}catch{return!1}}function validateIndexedDBOpenable(){return new Promise((r,y)=>{try{let x=!0;const b="validate-browser-context-for-indexeddb-analytics-module",R=self.indexedDB.open(b);R.onsuccess=()=>{R.result.close(),x||self.indexedDB.deleteDatabase(b),r(!0)},R.onupgradeneeded=()=>{x=!1},R.onerror=()=>{y(R.error?.message||"")}}catch(x){y(x)}})}function areCookiesEnabled(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const ERROR_NAME="FirebaseError";
201class FirebaseError extends Error{constructor(y,x,b){super(x),this.code=y,this.customData=b,this.name=ERROR_NAME,Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(y,x,b){this.service=y,this.serviceName=x,this.errors=b}create(y,...x){const b=x[0]||{},R=`${this.service}/${y}`,M=this.errors[y],O=M?replaceTemplate(M,b):"Error",z=`${this.serviceName}: ${O} (${R}).`;return new FirebaseError(R,z,b)}}function replaceTemplate(r,y){return r.replace(PATTERN,(x,b)=>{const R=y[b];return R!=null?String(R):`<${b}?>`})}const PATTERN=/\{\$([^}]+)}/g;function isEmpty(r){for(const y in r)if(Object.prototype.hasOwnProperty.call(r,y))return!1;return!0}function deepEqual(r,y){if(r===y)return!0;const x=Object.keys(r),b=Object.keys(y);for(const R of x){if(!b.includes(R))return!1;const M=r[R],O=y[R];if(isObject$3(M)&&isObject$3(O)){if(!deepEqual(M,O))return!1}else if(M!==O)return!1}for(const R of b)if(!x.includes(R))return!1;return!0}function isObject$3(r){return r!==null&&typeof r=="object"}function querystring(r){const y=[];for(const[x,b]of Object.entries(r))Array.isArray(b)?b.forEach(R=>{y.push(encodeURIComponent(x)+"="+encodeURIComponent(R))}):y.push(encodeURIComponent(x)+"="+encodeURIComponent(b));return y.length?"&"+y.join("&"):""}function createSubscribe(r,y){const x=new ObserverProxy(r,y);return x.subscribe.bind(x)}class ObserverProxy{constructor(y,x){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=x,this.task.then(()=>{y(this)}).catch(b=>{this.error(b)})}next(y){this.forEachObserver(x=>{x.next(y)})}error(y){this.forEachObserver(x=>{x.error(y)}),this.close(y)}complete(){this.forEachObserver(y=>{y.complete()}),this.close()}subscribe(y,x,b){let R;if(y===void 0&&x===void 0&&b===void 0)throw new Error("Missing Observer.");implementsAnyMethods(y,["next","error","complete"])?R=y:R={next:y,error:x,complete:b},R.next===void 0&&(R.next=noop$3),R.error===void 0&&(R.error=noop$3),R.complete===void 0&&(R.complete=noop$3);const M=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?R.error(this.finalError):R.complete()}catch{}}),this.observers.push(R),M}unsubscribeOne(y){this.observers===void 0||this.observers[y]===void 0||(delete this.observers[y],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(y){if(!this.finalized)for(let x=0;x<this.observers.length;x++)this.sendOne(x,y)}sendOne(y,x){this.task.then(()=>{if(this.observers!==void 0&&this.observers[y]!==void 0)try{x(this.observers[y])}catch(b){typeof console<"u"&&console.error&&console.error(b)}})}close(y){this.finalized||(this.finalized=!0,y!==void 0&&(this.finalError=y),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function implementsAnyMethods(r,y){if(typeof r!="object"||r===null)return!1;for(const x of y)if(x in r&&typeof r[x]=="function")return!0;return!1}function noop$3(){}const DEFAULT_INTERVAL_MILLIS=1e3,DEFAULT_BACKOFF_FACTOR=2,MAX_VALUE_MILLIS=14400*1e3,RANDOM_FACTOR=.5;function calculateBackoffMillis(r,y=DEFAULT_INTERVAL_MILLIS,x=DEFAULT_BACKOFF_FACTOR){const b=y*Math.pow(x,r),R=Math.round(RANDOM_FACTOR*b*(Math.random()-.5)*2);return Math.min(MAX_VALUE_MILLIS,b+R)}function getModularInstance(r){return r&&r._delegate?r._delegate:r}class Component{constructor(y,x,b){this.name=y,this.instanceFactory=x,this.type=b,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(y){return this.instantiationMode=y,this}setMultipleInstances(y){return this.multipleInstances=y,this}setServiceProps(y){return this.serviceProps=y,this}setInstanceCreatedCallback(y){return this.onInstanceCreated=y,this}}const DEFAULT_ENTRY_NAME$1="[DEFAULT]";class Provider{constructor(y,x){this.name=y,this.container=x,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(y){const x=this.normalizeInstanceIdentifier(y);if(!this.instancesDeferred.has(x)){const b=new Deferred;if(this.instancesDeferred.set(x,b),this.isInitialized(x)||this.shouldAutoInitialize())try{const R=this.getOrInitializeService({instanceIdentifier:x});R&&b.resolve(R)}catch{}}return this.instancesDeferred.get(x).promise}getImmediate(y){const x=this.normalizeInstanceIdentifier(y?.identifier),b=y?.optional??!1;if(this.isInitialized(x)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:x})}catch(R){if(b)return null;throw R}else{if(b)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(y){if(y.name!==this.name)throw Error(`Mismatching Component ${y.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=y,!!this.shouldAutoInitialize()){if(isComponentEager(y))try{this.getOrInitializeService({instanceIdentifier:DEFAULT_ENTRY_NAME$1})}catch{}for(const[x,b]of this.instancesDeferred.entries()){const R=this.normalizeInstanceIdentifier(x);try{const M=this.getOrInitializeService({instanceIdentifier:R});b.resolve(M)}catch{}}}}clearInstance(y=DEFAULT_ENTRY_NAME$1){this.instancesDeferred.delete(y),this.instancesOptions.delete(y),this.instances.delete(y)}async delete(){const y=Array.from(this.instances.values());await Promise.all([...y.filter(x=>"INTERNAL"in x).map(x=>x.INTERNAL.delete()),...y.filter(x=>"_delete"in x).map(x=>x._delete())])}isComponentSet(){return this.component!=null}isInitialized(y=DEFAULT_ENTRY_NAME$1){return this.instances.has(y)}getOptions(y=DEFAULT_ENTRY_NAME$1){return this.instancesOptions.get(y)||{}}initialize(y={}){const{options:x={}}
201=y,b=this.normalizeInstanceIdentifier(y.instanceIdentifier);if(this.isInitialized(b))throw Error(`${this.name}(${b}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const R=this.getOrInitializeService({instanceIdentifier:b,options:x});for(const[M,O]of this.instancesDeferred.entries()){const z=this.normalizeInstanceIdentifier(M);b===z&&O.resolve(R)}return R}onInit(y,x){const b=this.normalizeInstanceIdentifier(x),R=this.onInitCallbacks.get(b)??new Set;R.add(y),this.onInitCallbacks.set(b,R);const M=this.instances.get(b);return M&&y(M,b),()=>{R.delete(y)}}invokeOnInitCallbacks(y,x){const b=this.onInitCallbacks.get(x);if(b)for(const R of b)try{R(y,x)}catch{}}getOrInitializeService({instanceIdentifier:y,options:x={}}){let b=this.instances.get(y);if(!b&&this.component&&(b=this.component.instanceFactory(this.container,{instanceIdentifier:normalizeIdentifierForFactory(y),options:x}),this.instances.set(y,b),this.instancesOptions.set(y,x),this.invokeOnInitCallbacks(b,y),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,y,b)}catch{}return b||null}normalizeInstanceIdentifier(y=DEFAULT_ENTRY_NAME$1){return this.component?this.component.multipleInstances?y:DEFAULT_ENTRY_NAME$1:y}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function normalizeIdentifierForFactory(r){return r===DEFAULT_ENTRY_NAME$1?void 0:r}function isComponentEager(r){return r.instantiationMode==="EAGER"}
201class ComponentContainer{constructor(y){this.name=y,this.providers=new Map}addComponent(y){const x=this.getProvider(y.name);if(x.isComponentSet())throw new Error(`Component ${y.name} has already been registered with ${this.name}`);x.setComponent(y)}addOrOverwriteComponent(y){this.getProvider(y.name).isComponentSet()&&this.providers.delete(y.name),this.addComponent(y)}getProvider(y){if(this.providers.has(y))return this.providers.get(y);const x=new Provider(y,this);return this.providers.set(y,x),x}getProviders(){return Array.from(this.providers.values())}}var LogLevel;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(LogLevel||(LogLevel={}));const levelStringToEnum={debug:LogLevel.DEBUG,verbose:LogLevel.VERBOSE,info:LogLevel.INFO,warn:LogLevel.WARN,error:LogLevel.ERROR,silent:LogLevel.SILENT},defaultLogLevel=LogLevel.INFO,ConsoleMethod={[LogLevel.DEBUG]:"log",[LogLevel.VERBOSE]:"log",[LogLevel.INFO]:"info",[LogLevel.WARN]:"warn",[LogLevel.ERROR]:"error"},defaultLogHandler=(r,y,...x)=>{if(y<r.logLevel)return;const b=new Date().toISOString(),R=ConsoleMethod[y];if(R)console[R](`[${b}]  ${r.name}:`,...x);else throw new Error(`Attempted to log a message with an invalid logType (value: ${y})`)};class Logger{constructor(y){this.name=y,this._logLevel=defaultLogLevel,this._logHandler=defaultLogHandler,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(y){if(!(y in LogLevel))throw new TypeError(`Invalid value "${y}" assigned to \`logLevel\``);this._logLevel=y}setLogLevel(y){this._logLevel=typeof y=="string"?levelStringToEnum[y]:y}get logHandler(){return this._logHandler}set logHandler(y){if(typeof y!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=y}get userLogHandler(){return this._userLogHandler}set userLogHandler(y){this._userLogHandler=y}debug(...y){this._userLogHandler&&this._userLogHandler(this,LogLevel.DEBUG,...y),this._logHandler(this,LogLevel.DEBUG,...y)}log(...y){this._userLogHandler&&this._userLogHandler(this,LogLevel.VERBOSE,...y),this._logHandler(this,LogLevel.VERBOSE,...y)}info(...y){this._userLogHandler&&this._userLogHandler(this,LogLevel.INFO,...y),this._logHandler(this,LogLevel.INFO,...y)}warn(...y){this._userLogHandler&&this._userLogHandler(this,LogLevel.WARN,...y),this._logHandler(this,LogLevel.WARN,...y)}error(...y){this._userLogHandler&&this._userLogHandler(this,LogLevel.ERROR,...y),this._logHandler(this,LogLevel.ERROR,...y)}}const instanceOfAny=(r,y)=>y.some(x=>r instanceof x);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(r){const y=new Promise((x,b)=>{const R=()=>{r.removeEventListener("success",M),r.removeEventListener("error",O)},M=()=>{x(wrap(r.result)),R()},O=()=>{b(r.error),R()};r.addEventListener("success",M),r.addEventListener("error",O)});return y.then(x=>{x instanceof IDBCursor&&cursorRequestMap.set(x,r)}).catch(()=>{}),reverseTransformCache.set(y,r),y}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const y=new Promise((x,b)=>{const R=()=>{r.removeEventListener("complete",M),r.removeEventListener("error",O),r.removeEventListener("abort",O)},M=()=>{x(),R()},O=()=>{b(r.error||new DOMException("AbortError","AbortError")),R()};r.addEventListener("complete",M),r.addEventListener("error",O),r.addEventListener("abort",O)});transactionDoneMap.set(r,y)}let idbProxyTraps={get(r,y,x){if(r instanceof IDBTransaction){if(y==="done")return transactionDoneMap.get(r);if(y==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(y==="store")return x.objectStoreNames[1]?void 0:x.objectStore(x.objectStoreNames[0])}return wrap(r[y])},set(r,y,x){return r[y]=x,!0},has(r,y){return r instanceof IDBTransaction&&(y==="done"||y==="store")?!0:y in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(y,...x){const b=r.call(unwrap(this),y,...x);return transactionStoreNamesMap.set(b,y.sort?y.sort():[y]),wrap(b)}:getCursorAdvanceMethods().includes(r)?function(...y){return r.apply(unwrap(this),y),wrap(cursorRequestMap.get(this))}:function(...y){return wrap(r.apply(unwrap(this),y))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const y=transformCachableValue(r);return y!==r&&(transformCache.set(r,y),reverseTransformCache.set(y,r)),y}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,y,{blocked:x,upgrade:b,blocking:R,terminated:M}={}){const O=indexedDB.open(r,y),z=wrap(O);return b&&O.addEventListener("upgradeneeded",U=>{b(wrap(O.result),U.oldVersion,U.newVersion,wrap(O.transaction),U)}),x&&O.addEventListener("blocked",U=>x(U.oldVersion,U.newVersion,U)),z.then(U=>{M&&U.addEventListener("close",()=>M()),R&&U.addEventListener("versionchange",G=>R(G.oldVersion,G.newVersion,G))}).catch(()=>{}),z}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,y){if(!(r instanceof IDBDatabase&&!(y in r)&&typeof y=="string"))return;if(cachedMethods.get(y))return cachedMethods.get(y);const x=y.replace(/FromIndex$/,""),b=y!==x,R=writeMethods.includes(x);if(!(x in(b?IDBIndex:IDBObjectStore).prototype)||!(R||readMethods.includes(x)))return;const M=async function(O,...z){const U=this.transaction(O,R?"readwrite":"readonly");let G=U.store;
201return b&&(G=G.index(z.shift())),(await Promise.all([G[x](...z),R&&U.done]))[0]};return cachedMethods.set(y,M),M}replaceTraps(r=>({...r,get:(y,x,b)=>getMethod(y,x)||r.get(y,x,b),has:(y,x)=>!!getMethod(y,x)||r.has(y,x)}));class PlatformLoggerServiceImpl{constructor(y){this.container=y}getPlatformInfoString(){return this.container.getProviders().map(x=>{if(isVersionServiceProvider(x)){const b=x.getImmediate();return`${b.library}/${b.version}`}else return null}).filter(x=>x).join(" ")}}function isVersionServiceProvider(r){return r.getComponent()?.type==="VERSION"}const name$q="@firebase/app",version$1$1="0.14.6";const logger$1=new Logger("@firebase/app"),name$p="@firebase/app-compat",name$o="@firebase/analytics-compat",name$n="@firebase/analytics",name$m="@firebase/app-check-compat",name$l="@firebase/app-check",name$k="@firebase/auth",name$j="@firebase/auth-compat",name$i="@firebase/database",name$h="@firebase/data-connect",name$g="@firebase/database-compat",name$f="@firebase/functions",name$e="@firebase/functions-compat",name$d="@firebase/installations",name$c="@firebase/installations-compat",name$b="@firebase/messaging",name$a="@firebase/messaging-compat",name$9="@firebase/performance",name$8="@firebase/performance-compat",name$7="@firebase/remote-config",name$6="@firebase/remote-config-compat",name$5="@firebase/storage",name$4="@firebase/storage-compat",name$3$1="@firebase/firestore",name$2$1="@firebase/ai",name$1$1="@firebase/firestore-compat",name$r="firebase",version$4="12.6.0";const DEFAULT_ENTRY_NAME="[DEFAULT]",PLATFORM_LOG_STRING={[name$q]:"fire-core",[name$p]:"fire-core-compat",[name$n]:"fire-analytics",[name$o]:"fire-analytics-compat",[name$l]:"fire-app-check",[name$m]:"fire-app-check-compat",[name$k]:"fire-auth",[name$j]:"fire-auth-compat",[name$i]:"fire-rtdb",[name$h]:"fire-data-connect",[name$g]:"fire-rtdb-compat",[name$f]:"fire-fn",[name$e]:"fire-fn-compat",[name$d]:"fire-iid",[name$c]:"fire-iid-compat",[name$b]:"fire-fcm",[name$a]:"fire-fcm-compat",[name$9]:"fire-perf",[name$8]:"fire-perf-compat",[name$7]:"fire-rc",[name$6]:"fire-rc-compat",[name$5]:"fire-gcs",[name$4]:"fire-gcs-compat",[name$3$1]:"fire-fst",[name$1$1]:"fire-fst-compat",[name$2$1]:"fire-vertex","fire-js":"fire-js",[name$r]:"fire-js-all"};const _apps=new Map,_serverApps=new Map,_components=new Map;function _addComponent(r,y){try{r.container.addComponent(y)}catch(x){logger$1.debug(`Component ${y.name} failed to register with FirebaseApp ${r.name}`,x)}}function _registerComponent(r){const y=r.name;if(_components.has(y))return logger$1.debug(`There were multiple attempts to register component ${y}.`),!1;_components.set(y,r);for(const x of _apps.values())_addComponent(x,r);for(const x of _serverApps.values())_addComponent(x,r);return!0}function _getProvider(r,y){const x=r.container.getProvider("heartbeat").getImmediate({optional:!0});return x&&x.triggerHeartbeat(),r.container.getProvider(y)}function _isFirebaseServerApp(r){return r==null?!1:r.settings!==void 0}const ERRORS$1={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
201d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ERROR_FACTORY$2=new ErrorFactory("app","Firebase",ERRORS$1);class FirebaseAppImpl{constructor(y,x,b){this._isDeleted=!1,this._options={...y},this._config={...x},this._name=x.name,this._automaticDataCollectionEnabled=x.automaticDataCollectionEnabled,this._container=b,this.container.addComponent(new Component("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(y){this.checkDestroyed(),this._automaticDataCollectionEnabled=y}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(y){this._isDeleted=y}checkDestroyed(){if(this.isDeleted)throw ERROR_FACTORY$2.create("app-deleted",{appName:this._name})}}const SDK_VERSION=version$4;function initializeApp(r,y={}){let x=r;typeof y!="object"&&(y={name:y});const b={name:DEFAULT_ENTRY_NAME,automaticDataCollectionEnabled:!0,...y},R=b.name;if(typeof R!="string"||!R)throw ERROR_FACTORY$2.create("bad-app-name",{appName:String(R)});if(x||(x=getDefaultAppConfig()),!x)throw ERROR_FACTORY$2.create("no-options");const M=_apps.get(R);if(M){if(deepEqual(x,M.options)&&deepEqual(b,M.config))return M;throw ERROR_FACTORY$2.create("duplicate-app",{appName:R})}const O=new ComponentContainer(R);for(const U of _components.values())O.addComponent(U);const z=new FirebaseAppImpl(x,b,O);return _apps.set(R,z),z}function getApp(r=DEFAULT_ENTRY_NAME){const y=_apps.get(r);if(!y&&r===DEFAULT_ENTRY_NAME&&getDefaultAppConfig())return initializeApp();if(!y)throw ERROR_FACTORY$2.create("no-app",{appName:r});return y}function registerVersion(r,y,x){let b=PLATFORM_LOG_STRING[r]??r;x&&(b+=`-${x}`);const R=b.match(/\s|\//),M=y.match(/\s|\//);if(R||M){const O=[`Unable to register library "${b}" with version "${y}":`];R&&O.push(`library name "${b}" contains illegal characters (whitespace or "/")`),R&&M&&O.push("and"),M&&O.push(`version name "${y}" contains illegal characters (whitespace or "/")`),logger$1.warn(O.join(" "));return}_registerComponent(new Component(`${b}-version`,()=>({library:b,version:y}),"VERSION"))}const DB_NAME$1="firebase-heartbeat-database",DB_VERSION$1=1,STORE_NAME="firebase-heartbeat-store";let dbPromise$1=null;function getDbPromise$1(){return dbPromise$1||(dbPromise$1=openDB(DB_NAME$1,DB_VERSION$1,{upgrade:(r,y)=>{switch(y){case 0:try{r.createObjectStore(STORE_NAME)}catch(x){console.warn(x)}}}}).catch(r=>{throw ERROR_FACTORY$2.create("idb-open",{originalErrorMessage:r.message})})),dbPromise$1}async function readHeartbeatsFromIndexedDB(r){try{const x=(await getDbPromise$1()).transaction(STORE_NAME),b=await x.objectStore(STORE_NAME).get(computeKey(r));return await x.done,b}catch(y){if(y instanceof FirebaseError)logger$1.warn(y.message);else{const x=ERROR_FACTORY$2.create("idb-get",{originalErrorMessage:y?.message});logger$1.warn(x.message)}}}async function writeHeartbeatsToIndexedDB(r,y){try{const b=(await getDbPromise$1()).transaction(STORE_NAME,"readwrite");await b.objectStore(STORE_NAME).put(y,computeKey(r)),await b.done}catch(x){if(x instanceof FirebaseError)logger$1.warn(x.message);else{const b=ERROR_FACTORY$2.create("idb-set",{originalErrorMessage:x?.message});logger$1.warn(b.message)}}}function computeKey(r){return`${r.name}!${r.options.appId}`}const MAX_HEADER_BYTES=1024,MAX_NUM_STORED_HEARTBEATS=30;class HeartbeatServiceImpl{constructor(y){this.container=y,this._heartbeatsCache=null;const x=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(x),this._heartbeatsCachePromise=this._storage.read().then(b=>(this._heartbeatsCache=b,b))}async triggerHeartbeat(){try{const x=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),b=getUTCDateString();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===b||this._heartbeatsCache.heartbeats.some(R=>R.date===b))return;if(this._heartbeatsCache.heartbeats.push({date:b,agent:x}),this._heartbeatsCache.heartbeats.length>MAX_NUM_STORED_HEARTBEATS){const R=getEarliestHeartbeatIdx(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(R,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(y){logger$1.warn(y)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const y=getUTCDateString(),{heartbeatsToSend:x,unsentEntries:b}=extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats),R=base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:x}));return this._heartbeatsCache.lastSentHeartbeatDate=y,b.length>0?(this._heartbeatsCache.heartbeats=b,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),R}catch(y){return logger$1.warn(y),""}}}function getUTCDateString(){return new Date().toISOString().substring(0,10)}function extractHeartbeatsForHeader(r,y=MAX_HEADER_BYTES){const x=[];let b=r.slice();for(const R of r){const M=x.find(O=>O.agent===R.agent);if(M){if(M.dates.push(R.date),countBytes(x)>y){M.dates.pop();break}}else if(x.push({agent:R.agent,dates:[R.date]}),countBytes(x)>y){x.pop();break}b=b.slice(1)}return{heartbeatsToSend:x,unsentEntries:b}}class HeartbeatStorageImpl{constructor(y){this.app=y,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return isIndexedDBAvailable()?validateIndexedDBOpenable().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const x=await readHeartbeatsFromIndexedDB(this.app);return x?.heartbeats?x:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(y){if(await this._canUseIndexedDBPromise){const b=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:y.lastSentHeartbeatDate??b.lastSentHeartbeatDate,heartbeats:y.heartbeats})}else return}async add(y){if(await this._canUseIndexedDBPromise){const b=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:y.lastSentHeartbeatDate??b.lastSentHeartbeatDate,heartbeats:[...b.heartbeats,...y.heartbeats]})}else return}}function countBytes(r){return base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:r})).length}function getEarliestHeartbeatIdx(r){if(r.length===0)return-1;let y=0,x=r[0].date;for(let b=1;b<r.length;b++)r[b].date<x&&(x=r[b].date,y=b);return y}function registerCoreComponents(r){_registerComponent(new Component("platform-logger",y=>new PlatformLoggerServiceImpl(y),"PRIVATE")),_registerComponent(new Component("heartbeat",y=>new HeartbeatServiceImpl(y),"PRIVATE")),registerVersion(name$q,version$1$1,r),registerVersion(name$q,version$1$1,"esm2020"),registerVersion("fire-js","")}registerCoreComponents("");var name$3="firebase",version$3="12.7.0";registerVersion(name$3,version$3,"app");function _prodErrorMap(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const prodErrorMap=_prodErrorMap,_DEFAULT_AUTH_ERROR_FACTORY=new ErrorFactory("auth","Firebase",_prodErrorMap());const logClient=new Logger("@firebase/auth");function _logWarn(r,...y){logClient.logLevel<=LogLevel.WARN&&logClient.warn(`Auth (${SDK_VERSION}): ${r}`,...y)}function _logError(r,...y){logClient.logLevel<=LogLevel.ERROR&&logClient.error(`Auth (${SDK_VERSION}): ${r}`,...y)}function _fail(r,...y){throw createErrorInternal(r,...y)}function _createError(r,...y){return createErrorInternal(r,...y)}function _errorWithCustomMessage(r,y,x){const b={...prodErrorMap(),[y]:x};return new ErrorFactory("auth","Firebase",b).create(y,{appName:r.name})}function _serverAppCurrentUserOperationNotSupportedError(r){return _errorWithCustomMessage(r,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function _assertInstanceOf(r,y,x){const b=x;if(!(y instanceof b))throw b.name!==y.constructor.name&&_fail(r,"argument-error"),_errorWithCustomMessage(r,"argument-error",`Type of ${y.c
201onstructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function createErrorInternal(r,...y){if(typeof r!="string"){const x=y[0],b=[...y.slice(1)];return b[0]&&(b[0].appName=r.name),r._errorFactory.create(x,...b)}return _DEFAULT_AUTH_ERROR_FACTORY.create(r,...y)}function _assert(r,y,...x){if(!r)throw createErrorInternal(y,...x)}function debugFail(r){const y="INTERNAL ASSERTION FAILED: "+r;throw _logError(y),new Error(y)}function debugAssert(r,y){r||debugFail(y)}function _getCurrentUrl(){return typeof self<"u"&&self.location?.href||""}function _isHttpOrHttps(){return _getCurrentScheme()==="http:"||_getCurrentScheme()==="https:"}function _getCurrentScheme(){return typeof self<"u"&&self.location?.protocol||null}function _isOnline(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(_isHttpOrHttps()||isBrowserExtension()||"connection"in navigator)?navigator.onLine:!0}function _getUserLanguage(){if(typeof navigator>"u")return null;const r=navigator;return r.languages&&r.languages[0]||r.language||null}class Delay{constructor(y,x){this.shortDelay=y,this.longDelay=x,debugAssert(x>y,"Short delay should be less than long delay!"),this.isMobile=isMobileCordova()||isReactNative$1()}get(){return _isOnline()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function _emulatorUrl(r,y){debugAssert(r.emulator,"Emulator should always be set here");const{url:x}=r.emulator;return y?`${x}${y.startsWith("/")?y.slice(1):y}`:x}class FetchProvider{static initialize(y,x,b){this.fetchImpl=y,x&&(this.headersImpl=x),b&&(this.responseImpl=b)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;debugFail("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;debugFail("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;debugFail("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const SERVER_ERROR_MAP={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
201aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};const CookieAuthProxiedEndpoints=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],DEFAULT_API_TIMEOUT_MS=new Delay(3e4,6e4);function _addTidIfNecessary(r,y){return r.tenantId&&!y.tenantId?{...y,tenantId:r.tenantId}:y}async function _performApiRequest(r,y,x,b,R={}){return _performFetchWithErrorHandling(r,R,async()=>{let M={},O={};b&&(y==="GET"?O=b:M={body:JSON.stringify(b)});const z=querystring({key:r.config.apiKey,...O}).slice(1),U=await r._getAdditionalHeaders();U["Content-Type"]="application/json",r.languageCode&&(U["X-Firebase-Locale"]=r.languageCode);const G={method:y,headers:U,...M};return isCloudflareWorker()||(G.referrerPolicy="no-referrer"),r.emulatorConfig&&isCloudWorkstation(r.emulatorConfig.host)&&(G.credentials="include"),FetchProvider.fetch()(await _getFinalTarget(r,r.config.apiHost,x,z),G)})}async function _performFetchWithErrorHandling(r,y,x){r._canInitEmulator=!1;const b={...SERVER_ERROR_MAP,...y};try{const R=new NetworkTimeout(r),M=await Promise.race([x(),R.promise]);R.clearNetworkTimeout();const O=await M.json();if("needConfirmation"in O)throw _makeTaggedError(r,"account-exists-with-different-credential",O);if(M.ok&&!("errorMessage"in O))return O;{const z=M.ok?O.errorMessage:O.error.message,[U,G]=z.split(" : ");if(U==="FEDERATED_USER_ID_ALREADY_LINKED")throw _makeTaggedError(r,"credential-already-in-use",O);if(U==="EMAIL_EXISTS")throw _makeTaggedError(r,"email-already-in-use",O);if(U==="USER_DISABLED")throw _makeTaggedError(r,"user-disabled",O);const q=b[U]||U.toLowerCase().replace(/[_\s]+/g,"-");if(G)throw _errorWithCustomMessage(r,q,G);_fail(r,q)}}catch(R){if(R instanceof FirebaseError)throw R;_fail(r,"network-request-failed",{message:String(R)})}}async function _performSignInRequest(r,y,x,b,R={}){const M=await _performApiRequest(r,y,x,b,R);return"mfaPendingCredential"in M&&_fail(r,"multi-factor-auth-required",{_serverResponse:M}),M}async function _getFinalTarget(r,y,x,b){const R=`${y}${x}?${b}`,M=r,O=M.config.emulator?_emulatorUrl(r.config,R):`${r.config.apiScheme}://${R}`;return CookieAuthProxiedEndpoints.includes(x)&&(await M._persistenceManagerAvailable,M._getPersistenceType()==="COOKIE")?M._getPersistence()._getFinalTarget(O).toString():O}class NetworkTimeout{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(y){this.auth=y,this.timer=null,this.promise=new Promise((x,b)=>{this.timer=setTimeout(()=>b(_createError(this.auth,"network-request-failed")),DEFAULT_API_TIMEOUT_MS.get())})}}function _makeTaggedError(r,y,x){const b={appName:r.name};x.email&&(b.email=x.email),x.phoneNumber&&(b.phoneNumber=x.phoneNumber);const R=_createError(r,y,b);return R.customData._tokenResponse=x,R}async function deleteAccount(r,y){return _performApiRequest(r,"POST","/v1/accounts:delete",y)}async function getAccountInfo(r,y){return _performApiRequest(r,"POST","/v1/accounts:lookup",y)}function utcTimestampToDateString(r){if(r)try{const y=new Date(Number(r));if(!isNaN(y.getTime()))return y.toUTCString()}catch{}}async function getIdTokenResult(r,y=!1){const x=getModularInstance(r),b=await x.getIdToken(y),R=_parseToken(b);_assert(R&&R.exp&&R.auth_time&&R.iat,x.auth,"internal-error");const M=typeof R.firebase=="object"?R.firebase:void 0,O=M?.sign_in_provider;return{claims:R,token:b,authTime:utcTimestampToDateString(secondsStringToMilliseconds(R.auth_time)),issuedAtTime:utcTimestampToDateString(secondsStringToMilliseconds(R.iat)),expirationTime:utcTimestampToDateString(secondsStringToMilliseconds(R.exp)),signInProvider:O||null,signInSecondFactor:M?.sign_in_second_factor||null}}function secondsStringToMilliseconds(r){return Number(r)*1e3}function _parseToken(r){const[y,x,b]=r.split(".");if(y===void 0||x===void 0||b===void 0)return _logError("JWT malformed, contained fewer than 3 sections"),null;try{const R=base64Decode(x);return R?JSON.parse(R):(_logError("Failed to decode base64 JWT payload"),null)}catch(R){return _logError("Caught error parsing JWT payload as JSON",R?.toString()),null}}function _tokenExpiresIn(r){const y=_parseToken(r);return _assert(y,"internal-error"),_assert(typeof y.exp<"u","internal-error"),_assert(typeof y.iat<"u","internal-error"),Number(y.exp)-Number(y.iat)}async function _logoutIfInvalidated(r,y,x=!1){if(x)return y;try{return await y}catch(b){throw b instanceof FirebaseError&&isUserInvalidated(b)&&r.auth.currentUser===r&&await r.auth.signOut(),b}}function isUserInvalidated({code:r}){return r==="auth/user-disabled"||r==="auth/user-token-expired"}class ProactiveRefresh{constructor(y){this.user=y,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(y){if(y){const x=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),x}else{this.errorBackoff=3e4;const b=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,b)}}schedule(y=!1){if(!this.isRunning)return;const x=this.getInterval(y);this.timerId=setTimeout(async()=>{await this.iteration()},x)}async iteration(){try{await this.user.getIdToken(!0)}catch(y){y?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class UserMetadata{constructor(y,x){this.createdAt=y,this.lastLoginAt=x,this._initializeTime()}_initializeTime(){this.lastSignInTime=utcTimestampToDateString(this.lastLoginAt),this.creationTime=utcTimestampToDateString(this.createdAt)}_copy(y){this.createdAt=y.createdAt,this.lastLoginAt=y.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function _reloadWithoutSaving(r){const y=r.auth,x=await r.getIdToken(),b=await _logoutIfInvalidated(r,getAccountInfo(y,{idToken:x}));_assert(b?.users.length,y,"internal-error");const R=b.users[0];r._notifyReloadListener(R);const M=R.providerUserInfo?.length?extractProviderData(R.providerUserInfo):[],O=mergeProviderData(r.providerData,M),z=r.isAnonymous,U=!(r.email&&R.passwordHash)&&!O?.length,G=z?U:!1,q={uid:R.localId,displayName:R.displayName||null,photoURL:R.photoUrl||null,email:R.email||null,emailVerified:R.emailVerified||!1,phoneNumber:
201R.phoneNumber||null,tenantId:R.tenantId||null,providerData:O,metadata:new UserMetadata(R.createdAt,R.lastLoginAt),isAnonymous:G};Object.assign(r,q)}async function reload(r){const y=getModularInstance(r);await _reloadWithoutSaving(y),await y.auth._persistUserIfCurrent(y),y.auth._notifyListenersIfCurrent(y)}function mergeProviderData(r,y){return[...r.filter(b=>!y.some(R=>R.providerId===b.providerId)),...y]}function extractProviderData(r){return r.map(({providerId:y,...x})=>({providerId:y,uid:x.rawId||"",displayName:x.displayName||null,email:x.email||null,phoneNumber:x.phoneNumber||null,photoURL:x.photoUrl||null}))}async function requestStsToken(r,y){const x=await _performFetchWithErrorHandling(r,{},async()=>{const b=querystring({grant_type:"refresh_token",refresh_token:y}).slice(1),{tokenApiHost:R,apiKey:M}=r.config,O=await _getFinalTarget(r,R,"/v1/token",`key=${M}`),z=await r._getAdditionalHeaders();z["Content-Type"]="application/x-www-form-urlencoded";const U={method:"POST",headers:z,body:b};return r.emulatorConfig&&isCloudWorkstation(r.emulatorConfig.host)&&(U.credentials="include"),FetchProvider.fetch()(O,U)});return{accessToken:x.access_token,expiresIn:x.expires_in,refreshToken:x.refresh_token}}async function revokeToken(r,y){return _performApiRequest(r,"POST","/v2/accounts:revokeToken",_addTidIfNecessary(r,y))}class StsTokenManager{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(y){_assert(y.idToken,"internal-error"),_assert(typeof y.idToken<"u","internal-error"),_assert(typeof y.refreshToken<"u","internal-error");const x="expiresIn"in y&&typeof y.expiresIn<"u"?Number(y.expiresIn):_tokenExpiresIn(y.idToken);this.updateTokensAndExpiration(y.idToken,y.refreshToken,x)}updateFromIdToken(y){_assert(y.length!==0,"internal-error");const x=_tokenExpiresIn(y);this.updateTokensAndExpiration(y,null,x)}async getToken(y,x=!1){return!x&&this.accessToken&&!this.isExpired?this.accessToken:(_assert(this.refreshToken,y,"user-token-expired"),this.refreshToken?(await this.refresh(y,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(y,x){const{accessToken:b,refreshToken:R,expiresIn:M}=await requestStsToken(y,x);this.updateTokensAndExpiration(b,R,Number(M))}updateTokensAndExpiration(y,x,b){this.refreshToken=x||null,this.accessToken=y||null,this.expirationTime=Date.now()+b*1e3}static fromJSON(y,x){const{refreshToken:b,accessToken:R,expirationTime:M}=x,O=new StsTokenManager;return b&&(_assert(typeof b=="string","internal-error",{appName:y}),O.refreshToken=b),R&&(_assert(typeof R=="string","internal-error",{appName:y}),O.accessToken=R),M&&(_assert(typeof M=="number","internal-error",{appName:y}),O.expirationTime=M),O}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(y){this.accessToken=y.accessToken,this.refreshToken=y.refreshToken,this.expirationTime=y.expirationTime}_clone(){return Object.assign(new StsTokenManager,this.toJSON())}_performRefresh(){return debugFail("not implemented")}}function assertStringOrUndefined(r,y){_assert(typeof r=="string"||typeof r>"u","internal-error",{appName:y})}class UserImpl{constructor({uid:y,auth:x,stsTokenManager:b,...R}){this.providerId="firebase",this.proactiveRefresh=new ProactiveRefresh(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=y,this.auth=x,this.stsTokenManager=b,this.accessToken=b.accessToken,this.displayName=R.displayName||null,this.email=R.email||null,this.emailVerified=R.emailVerified||!1,this.phoneNumber=R.phoneNumber||null,this.photoURL=R.photoURL||null,this.isAnonymous=R.isAnonymous||!1,this.tenantId=R.tenantId||null,this.providerData=R.providerData?[...R.providerData]:[],this.metadata=new UserMetadata(R.createdAt||void 0,R.lastLoginAt||void 0)}async getIdToken(y){const x=await _logoutIfInvalidated(this,this.stsTokenManager.getToken(this.auth,y));return _assert(x,this.auth,"internal-error"),this.accessToken!==x&&(this.accessToken=x,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),x}getIdTokenResult(y){return getIdTokenResult(this,y)}reload(){return reload(this)}_assign(y){this!==y&&(_assert(this.uid===y.uid,this.auth,"internal-error"),this.displayName=y.displayName,this.photoURL=y.photoURL,this.email=y.email,this.emailVerified=y.emailVerified,this.phoneNumber=y.phoneNumber,this.isAnonymous=y.isAnonymous,this.tenantId=y.tenantId,this.providerData=y.providerData.map(x=>({...x})),this.metadata._copy(y.metadata),this.stsTokenManager._assign(y.stsTokenManager))}_clone(y){const x=new UserImpl({...this,auth:y,stsTokenManager:this.stsTokenManager._clone()});return x.metadata._copy(this.metadata),x}_onReload(y){_assert(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=y,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(y){this.reloadListener?this.reloadListener(y):this.reloadUserInfo=y}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(y,x=!1){let b=!1;y.idToken&&y.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(y),b=!0),x&&await _reloadWithoutSaving(this),await this.auth._persistUserIfCurrent(this),b&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(_isFirebaseServerApp(this.auth.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this.auth));const y=await this.getIdToken();return await _logoutIfInvalidated(this,deleteAccount(this.auth,{idToken:y})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
201nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(y=>({...y})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(y,x){const b=x.displayName??void 0,R=x.email??void 0,M=x.phoneNumber??void 0,O=x.photoURL??void 0,z=x.tenantId??void 0,U=x._redirectEventId??void 0,G=x.createdAt??void 0,q=x.lastLoginAt??void 0,{uid:J,emailVerified:X,isAnonymous:fe,providerData:te,stsTokenManager:ue}=x;_assert(J&&ue,y,"internal-error");const ye=StsTokenManager.fromJSON(this.name,ue);_assert(typeof J=="string",y,"internal-error"),assertStringOrUndefined(b,y.name),assertStringOrUndefined(R,y.name),_assert(typeof X=="boolean",y,"internal-error"),_assert(typeof fe=="boolean",y,"internal-error"),assertStringOrUndefined(M,y.name),assertStringOrUndefined(O,y.name),assertStringOrUndefined(z,y.name),assertStringOrUndefined(U,y.name),assertStringOrUndefined(G,y.name),assertStringOrUndefined(q,y.name);const oe=new UserImpl({uid:J,auth:y,email:R,emailVerified:X,displayName:b,isAnonymous:fe,photoURL:O,phoneNumber:M,tenantId:z,stsTokenManager:ye,createdAt:G,lastLoginAt:q});return te&&Array.isArray(te)&&(oe.providerData=te.map(ne=>({...ne}))),U&&(oe._redirectEventId=U),oe}static async _fromIdTokenResponse(y,x,b=!1){const R=new StsTokenManager;R.updateFromServerResponse(x);const M=new UserImpl({uid:x.localId,auth:y,stsTokenManager:R,isAnonymous:b});return await _reloadWithoutSaving(M),M}static async _fromGetAccountInfoResponse(y,x,b){const R=x.users[0];_assert(R.localId!==void 0,"internal-error");const M=R.providerUserInfo!==void 0?extractProviderData(R.providerUserInfo):[],O=!(R.email&&R.passwordHash)&&!M?.length,z=new StsTokenManager;z.updateFromIdToken(b);const U=new UserImpl({uid:R.localId,auth:y,stsTokenManager:z,isAnonymous:O}),G={uid:R.localId,displayName:R.displayName||null,photoURL:R.photoUrl||null,email:R.email||null,emailVerified:R.emailVerified||!1,phoneNumber:R.phoneNumber||null,tenantId:R.tenantId||null,providerData:M,metadata:new UserMetadata(R.createdAt,R.lastLoginAt),isAnonymous:!(R.email&&R.passwordHash)&&!M?.length};return Object.assign(U,G),U}}const instanceCache=new Map;function _getInstance(r){debugAssert(r instanceof Function,"Expected a class definition");let y=instanceCache.get(r);return y?(debugAssert(y instanceof r,"Instance stored in cache mismatched with class"),y):(y=new r,instanceCache.set(r,y),y)}class InMemoryPersistence{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(y,x){this.storage[y]=x}async _get(y){const x=this.storage[y];return x===void 0?null:x}async _remove(y){delete this.storage[y]}_addListener(y,x){}_removeListener(y,x){}}InMemoryPersistence.type="NONE";const inMemoryPersistence=InMemoryPersistence;function _persistenceKeyName(r,y,x){return`firebase:${r}:${y}:${x}`}class PersistenceUserManager{constructor(y,x,b){this.persistence=y,this.auth=x,this.userKey=b;const{config:R,name:M}=this.auth;this.fullUserKey=_persistenceKeyName(this.userKey,R.apiKey,M),this.fullPersistenceKey=_persistenceKeyName("persistence",R.apiKey,M),this.boundEventHandler=x._onStorageEvent.bind(x),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(y){return this.persistence._set(this.fullUserKey,y.toJSON())}async getCurrentUser(){const y=await this.persistence._get(this.fullUserKey);if(!y)return null;if(typeof y=="string"){const x=await getAccountInfo(this.auth,{idToken:y}).catch(()=>{});return x?UserImpl._fromGetAccountInfoResponse(this.auth,x,y):null}return UserImpl._fromJSON(this.auth,y)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(y){if(this.persistence===y)return;const x=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=y,x)return this.setCurrentUser(x)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(y,x,b="authUser"){if(!x.length)return new PersistenceUserManager(_getInstance(inMemoryPersistence),y,b);const R=(await Promise.all(x.map(async G=>{if(await G._isAvailable())return G}))).filter(G=>G);let M=R[0]||_getInstance(inMemoryPersistence);const O=_persistenceKeyName(b,y.config.apiKey,y.name);let z=null;for(const G of x)try{const q=await G._get(O);if(q){let J;if(typeof q=="string"){const X=await getAccountInfo(y,{idToken:q}).catch(()=>{});if(!X)break;J=await UserImpl._fromGetAccountInfoResponse(y,X,q)}else J=UserImpl._fromJSON(y,q);G!==M&&(z=J),M=G;break}}catch{}const U=R.filter(G=>G._shouldAllowMigration);return!M._shouldAllowMigration||!U.length?new PersistenceUserManager(M,y,b):(M=U[0],z&&await M._set(O,z.toJSON()),await Promise.all(x.map(async G=>{if(G!==M)try{await G._remove(O)}catch{}})),new PersistenceUserManager(M,y,b))}}function _getBrowserName(r){const y=r.toLowerCase();if(y.includes("opera/")||y.includes("opr/")||y.includes("opios/"))return"Opera";if(_isIEMobile(y))return"IEMobile";if(y.includes("msie")||y.includes("trident/"))return"IE";if(y.includes("edge/"))return"Edge";if(_isFirefox(y))return"Firefox";if(y.includes("silk/"))return"Silk";if(_isBlackBerry(y))return"Blackberry";if(_isWebOS(y))return"Webos";if(_isSafari(y))return"Safari";if((y.includes("chrome/")||_isChromeIOS(y))&&!y.includes("edge/"))return"Chrome";if(_isAndroid(y))return"Android";{const x=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,b=r.match(x);if(b?.length===2)return b[1]}return"Other"}function _isFirefox(r=getUA()){return/firefox\//i.test(r)}function _isSafari(r=getUA()){const y=r.toLowerCase();return y.includes("safari/")&&!y.includes("chrome/")&&!y.includes("crios/")&&!y.includes("android")}function _isChromeIOS(r=getUA()){return/crios\//i.test(r)}function _isIEMobile(r=getUA()){return/iemobile/i.test(r)}function _isAndroid(r=getUA()){return/android/i.test(r)}function _isBlackBerry(r=getUA()){return/blackberry/i.test(r)}function _isWebOS(r=getUA()){return/webos/i.test(r)}function _isIOS(r=getUA()){return/iphone|ipad|ipod/i.test(r)||/macintosh/i.test(r)&&/mobile/i.test(r)}function _isIOSStandalone(r=getUA()){return _isIOS(r)&&!!window.navigator?.standalone}function _isIE10(){return isIE()&&document.documentMode===10}function _isMobileBrowser(r=getUA()){return _isIOS(r)||_isAndroid(r)||_isWebOS(r)||_isBlackBerry(r)||/windows phone/i.test(r)||_isIEMobile(r)}function _getClientVersion(r,y=[]){let x;switch(r){case"Browser":x=_getBrowserName(getUA());break;case"Worker":x=`${_getBrowserName(getUA())}-${r}`;break;default:x=r}const b=y.length?y.join(","):"FirebaseCore-web";return`${x}/JsCore/${SDK_VERSION}/${b}`}class AuthMiddlewareQueue{constructor(y){this.auth=y,this.queue=[]}pushCallback(y,x){const b=M=>new Promise((O,z)=>{try{const U=y(M);O(U)}catch(U){z(U)}});b.onAbort=x,this.queue.push(b);const R=this.queue.length-1;return()=>{this.queue[R]=()=>Promise.resolve()}}async runMiddleware(y){if(this.auth.currentUser===y)return;const x=[];try{for(const b of this.queue)await b(y),b.onAbort&&x.push(b.onAbort)}catch(b){x.reverse();for(const R of x)try{R()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:b?.message})}}}async function _getPasswordPolicy(r,y={}
201){return _performApiRequest(r,"GET","/v2/passwordPolicy",_addTidIfNecessary(r,y))}const MINIMUM_MIN_PASSWORD_LENGTH=6;class PasswordPolicyImpl{constructor(y){const x=y.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=x.minPasswordLength??MINIMUM_MIN_PASSWORD_LENGTH,x.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=x.maxPasswordLength),x.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=x.containsLowercaseCharacter),x.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=x.containsUppercaseCharacter),x.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=x.containsNumericCharacter),x.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=x.containsNonAlphanumericCharacter),this.enforcementState=y.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=y.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=y.forceUpgradeOnSignin??!1,this.schemaVersion=y.schemaVersion}validatePassword(y){const x={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(y,x),this.validatePasswordCharacterOptions(y,x),x.isValid&&(x.isValid=x.meetsMinPasswordLength??!0),x.isValid&&(x.isValid=x.meetsMaxPasswordLength??!0),x.isValid&&(x.isValid=x.containsLowercaseLetter??!0),x.isValid&&(x.isValid=x.containsUppercaseLetter??!0),x.isValid&&(x.isValid=x.containsNumericCharacter??!0),x.isValid&&(x.isValid=x.containsNonAlphanumericCharacter??!0),x}validatePasswordLengthOptions(y,x){const b=this.customStrengthOptions.minPasswordLength,R=this.customStrengthOptions.maxPasswordLength;b&&(x.meetsMinPasswordLength=y.length>=b),R&&(x.meetsMaxPasswordLength=y.length<=R)}validatePasswordCharacterOptions(y,x){this.updatePasswordCharacterOptionsStatuses(x,!1,!1,!1,!1);let b;for(let R=0;R<y.length;R++)b=y.charAt(R),this.updatePasswordCharacterOptionsStatuses(x,b>="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(y,x,b,R,M){this.customStrengthOptions.containsLowercaseLetter&&(y.containsLowercaseLetter||(y.containsLowercaseLetter=x)),this.customStrengthOptions.containsUppercaseLetter&&(y.containsUppercaseLetter||(y.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(y.containsNumericCharacter||(y.containsNumericCharacter=R)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(y.containsNonAlphanumericCharacter||(y.containsNonAlphanumericCharacter=M))}}class AuthImpl{constructor(y,x,b,R){this.app=y,this.heartbeatServiceProvider=x,this.appCheckServiceProvider=b,this.config=R,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Subscription(this),this.idTokenSubscription=new Subscription(this),this.beforeStateQueue=new AuthMiddlewareQueue(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=_DEFAULT_AUTH_ERROR_FACTORY,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=y.name,this.clientVersion=R.sdkClientVersion,this._persistenceManagerAvailable=new Promise(M=>this._resolvePersistenceManagerAvailable=M)}_initializeWithPersistence(y,x){return x&&(this._popupRedirectResolver=_getInstance(x)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await PersistenceUserManager.create(this,y),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if
201(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(x),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const y=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!y)){if(this.currentUser&&y&&this.currentUser.uid===y.uid){this._currentUser._assign(y),await this.currentUser.getIdToken();return}await this._updateCurrentUser(y,!0)}}async initializeCurrentUserFromIdToken(y){try{const x=await getAccountInfo(this,{idToken:y}),b=await UserImpl._fromGetAccountInfoResponse(this,x,y);await this.directlySetCurrentUser(b)}catch(x){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",x),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(y){if(_isFirebaseServerApp(this.app)){const M=this.app.settings.authIdToken;return M?new Promise(O=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(M).then(O,O))}):this.directlySetCurrentUser(null)}const x=await this.assertedPersistence.getCurrentUser();let b=x,R=!1;if(y&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const M=this.redirectUser?._redirectEventId,O=b?._redirectEventId,z=await this.tryRedirectSignIn(y);(!M||M===O)&&z?.user&&(b=z.user,R=!0)}if(!b)return this.directlySetCurrentUser(null);if(!b._redirectEventId){if(R)try{await this.beforeStateQueue.runMiddleware(b)}catch(M){b=x,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(M))}return b?this.reloadAndSetCurrentUserOrClear(b):this.directlySetCurrentUser(null)}return _assert(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===b._redirectEventId?this.directlySetCurrentUser(b):this.reloadAndSetCurrentUserOrClear(b)}async tryRedirectSignIn(y){let x=null;try{x=await this._popupRedirectResolver._completeRedirectFn(this,y,!0)}catch{await this._setRedirectUser(null)}return x}async reloadAndSetCurrentUserOrClear(y){try{await _reloadWithoutSaving(y)}catch(x){if(x?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(y)}useDeviceLanguage(){this.languageCode=_getUserLanguage()}async _delete(){this._deleted=!0}async updateCurrentUser(y){if(_isFirebaseServerApp(this.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this));const x=y?getModularInstance(y):null;return x&&_assert(x.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(x&&x._clone(this))}async _updateCurrentUser(y,x=!1){if(!this._deleted)return y&&_assert(this.tenantId===y.tenantId,this,"tenant-id-mismatch"),x||await this.beforeStateQueue.runMiddleware(y),this.queue(async()=>{await this.directlySetCurrentUser(y),this.notifyAuthListeners()})}async signOut(){return _isFirebaseServerApp(this.app)?Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(y){return _isFirebaseServerApp(this.app)?Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(_getInstance(y))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(y){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const x=this._getPasswordPolicyInternal();return x.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):x.validatePassword(y)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const y=await _getPasswordPolicy(this),x=new PasswordPolicyImpl(y);this.tenantId===null?this._projectPasswordPolicy=x:this._tenantPasswordPolicies[this.tenantId]=x}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(y){this._errorFactory=new ErrorFactory("auth","Firebase",y())}onAuthStateChanged(y,x,b){return this.registerStateListener(this.authStateSubscription,y,x,b)}beforeAuthStateChanged(y,x){return this.beforeStateQueue.pushCallback(y,x)}onIdTokenChanged(y,x,b){return this.registerStateListener(this.idTokenSubscription,y,x,b)}authStateReady(){return new Promise((y,x)=>
201{if(this.currentUser)y();else{const b=this.onAuthStateChanged(()=>{b(),y()},x)}})}async revokeAccessToken(y){if(this.currentUser){const x=await this.currentUser.getIdToken(),b={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:y,idToken:x};this.tenantId!=null&&(b.tenantId=this.tenantId),await revokeToken(this,b)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(y,x){const b=await this.getOrInitRedirectPersistenceManager(x);return y===null?b.removeCurrentUser():b.setCurrentUser(y)}async getOrInitRedirectPersistenceManager(y){if(!this.redirectPersistenceManager){const x=y&&_getInstance(y)||this._popupRedirectResolver;_assert(x,this,"argument-error"),this.redirectPersistenceManager=await PersistenceUserManager.create(this,[_getInstance(x._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(y){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===y?this._currentUser:this.redirectUser?._redirectEventId===y?this.redirectUser:null}async _persistUserIfCurrent(y){if(y===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(y))}_notifyListenersIfCurrent(y){y===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const y=this.currentUser?.uid??null;this.lastNotifiedUid!==y&&(this.lastNotifiedUid=y,this.authStateSubscription.next(this.currentUser))}registerStateListener(y,x,b,R){if(this._deleted)return()=>{};const M=typeof x=="function"?x:x.next.bind(x);let O=!1;const z=this._isInitialized?Promise.resolve():this._initializationPromise;if(_assert(z,this,"internal-error"),z.then(()=>{O||M(this.currentUser)}),typeof x=="function"){const U=y.addObserver(x,b,R);return()=>{O=!0,U()}}else{const U=y.addObserver(x);return()=>{O=!0,U()}}}async directlySetCurrentUser(y){this.currentUser&&this.currentUser!==y&&this._currentUser._stopProactiveRefresh(),y&&this.isProactiveRefreshEnabled&&y._startProactiveRefresh(),this.currentUser=y,y?await this.assertedPersistence.setCurrentUser(y):await this.assertedPersistence.removeCurrentUser()}queue(y){return this.operations=this.operations.then(y,y),this.operations}get assertedPersistence(){return _assert(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(y){!y||this.frameworks.includes(y)||(this.frameworks.push(y),this.frameworks.sort(),this.clientVersion=_getClientVersion(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const y={"X-Client-Version":this.clientVersion};this.app.options.appId&&(y["X-Firebase-gmpid"]=this.app.options.appId);const x=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();x&&(y["X-Firebase-Client"]=x);const b=await this._getAppCheckToken();return b&&(y["X-Firebase-AppCheck"]=b),y}async _getAppCheckToken(){if(_isFirebaseServerApp(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const y=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return y?.error&&_logWarn(`Error while retrieving App Check token: ${y.error}`),y?.token}}function _castAuth(r){return getModularInstance(r)}class Subscription{constructor(y){this.auth=y,this.observer=null,this.addObserver=createSubscribe(x=>this.observer=x)}get next(){return _assert(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let externalJSProvider={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};
201function _setExternalJSProvider(r){externalJSProvider=r}function _loadJS(r){return externalJSProvider.loadJS(r)}function _gapiScriptUrl(){return externalJSProvider.gapiScript}function _generateCallbackName(r){return`__${r}${Math.floor(Math.random()*1e6)}`}function initializeAuth(r,y){const x=_getProvider(r,"auth");if(x.isInitialized()){const R=x.getImmediate(),M=x.getOptions();if(deepEqual(M,y??{}))return R;_fail(R,"already-initialized")}return x.initialize({options:y})}function _initializeAuthInstance(r,y){const x=y?.persistence||[],b=(Array.isArray(x)?x:[x]).map(_getInstance);y?.errorMap&&r._updateErrorMap(y.errorMap),r._initializeWithPersistence(b,y?.popupRedirectResolver)}function connectAuthEmulator(r,y,x){const b=_castAuth(r);_assert(/^https?:\/\//.test(y),b,"invalid-emulator-scheme");const R=!1,M=extractProtocol(y),{host:O,port:z}=extractHostAndPort(y),U=z===null?"":`:${z}`,G={url:`${M}//${O}${U}/`},q=Object.freeze({host:O,port:z,protocol:M.replace(":",""),options:Object.freeze({disableWarnings:R})});if(!b._canInitEmulator){_assert(b.config.emulator&&b.emulatorConfig,b,"emulator-config-failed"),_assert(deepEqual(G,b.config.emulator)&&deepEqual(q,b.emulatorConfig),b,"emulator-config-failed");return}b.config.emulator=G,b.emulatorConfig=q,b.settings.appVerificationDisabledForTesting=!0,isCloudWorkstation(O)?(pingServer(`${M}//${O}${U}`),updateEmulatorBanner("Auth",!0)):emitEmulatorWarning()}function extractProtocol(r){const y=r.indexOf(":");return y<0?"":r.substr(0,y+1)}function extractHostAndPort(r){const y=extractProtocol(r),x=/(\/\/)?([^?#/]+)/.exec(r.substr(y.length));if(!x)return{host:"",port:null};const b=x[2].split("@").pop()||"",R=/^(\[[^\]]+\])(:|$)/.exec(b);if(R){const M=R[1];return{host:M,port:parsePort(b.substr(M.length+1))}}else{const[M,O]=b.split(":");return{host:M,port:parsePort(O)}}}function parsePort(r){if(!r)return null;const y=Number(r);return isNaN(y)?null:y}function emitEmulatorWarning(){function r(){const y=document.createElement("p"),x=y.style;y.innerText="Running in emulator mode. Do not use with production credentials.",x.position="fixed",x.width="100%",x.backgroundColor="#ffffff",x.border=".1em solid #000000",x.color="#b50000",x.bottom="0px",x.left="0px",x.margin="0px",x.zIndex="10000",x.textAlign="center",y.classList.add("firebase-emulator-warning"),document.body.appendChild(y)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",r):r())}class AuthCredential{constructor(y,x){this.providerId=y,this.signInMethod=x}toJSON(){return debugFail("not implemented")}_getIdTokenResponse(y){return debugFail("not implemented")}_linkToIdToken(y,x){return debugFail("not implemented")}_getReauthenticationResolver(y){return debugFail("not implemented")}}async function signInWithIdp(r,y){return _performSignInRequest(r,"POST","/v1/accounts:signInWithIdp",_addTidIfNecessary(r,y))}const IDP_REQUEST_URI$1="http://localhost";class OAuthCredential extends AuthCredential{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(y){const x=new OAuthCredential(y.providerId,y.signInMethod);return y.idToken||y.accessToken?(y.idToken&&(x.idToken=y.idToken),y.accessToken&&(x.accessToken=y.accessToken),y.nonce&&!y.pendingToken&&(x.nonce=y.nonce),y.pendingToken&&(x.pendingToken=y.pendingToken)):y.oauthToken&&y.oauthTokenSecret?(x.accessToken=y.oauthToken,x.secret=y.oauthTokenSecret):_fail("argument-error"),x}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
201once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(y){const x=typeof y=="string"?JSON.parse(y):y,{providerId:b,signInMethod:R,...M}=x;if(!b||!R)return null;const O=new OAuthCredential(b,R);return O.idToken=M.idToken||void 0,O.accessToken=M.accessToken||void 0,O.secret=M.secret,O.nonce=M.nonce,O.pendingToken=M.pendingToken||null,O}_getIdTokenResponse(y){const x=this.buildRequest();return signInWithIdp(y,x)}_linkToIdToken(y,x){const b=this.buildRequest();return b.idToken=x,signInWithIdp(y,b)}_getReauthenticationResolver(y){const x=this.buildRequest();return x.autoCreate=!1,signInWithIdp(y,x)}buildRequest(){const y={requestUri:IDP_REQUEST_URI$1,returnSecureToken:!0};if(this.pendingToken)y.pendingToken=this.pendingToken;else{const x={};this.idToken&&(x.id_token=this.idToken),this.accessToken&&(x.access_token=this.accessToken),this.secret&&(x.oauth_token_secret=this.secret),x.providerId=this.providerId,this.nonce&&!this.pendingToken&&(x.nonce=this.nonce),y.postBody=querystring(x)}return y}}class FederatedAuthProvider{constructor(y){this.providerId=y,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(y){this.defaultLanguageCode=y}setCustomParameters(y){return this.customParameters=y,this}getCustomParameters(){return this.customParameters}}class BaseOAuthProvider extends FederatedAuthProvider{constructor(){super(...arguments),this.scopes=[]}addScope(y){return this.scopes.includes(y)||this.scopes.push(y),this}getScopes(){return[...this.scopes]}}class FacebookAuthProvider extends BaseOAuthProvider{constructor(){super("facebook.com")}static credential(y){return OAuthCredential._fromParams({providerId:FacebookAuthProvider.PROVIDER_ID,signInMethod:FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,accessToken:y})}static credentialFromResult(y){return FacebookAuthProvider.credentialFromTaggedObject(y)}static credentialFromError(y){return FacebookAuthProvider.credentialFromTaggedObject(y.customData||{})}static credentialFromTaggedObject({_tokenResponse:y}){if(!y||!("oauthAccessToken"in y)||!y.oauthAccessToken)return null;try{return FacebookAuthProvider.credential(y.oauthAccessToken)}catch{return null}}}FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD="facebook.com";FacebookAuthProvider.PROVIDER_ID="facebook.com";class GoogleAuthProvider extends BaseOAuthProvider{constructor(){super("google.com"),this.addScope("profile")}static credential(y,x){return OAuthCredential._fromParams({providerId:GoogleAuthProvider.PROVIDER_ID,signInMethod:GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,idToken:y,accessToken:x})}static credentialFromResult(y){return GoogleAuthProvider.credentialFromTaggedObject(y)}static credentialFromError(y){return GoogleAuthProvider.credentialFromTaggedObject(y.customData||{})}static credentialFromTaggedObject({_tokenResponse:y}){if(!y)return null;const{oauthIdToken:x,oauthAccessToken:b}=y;if(!x&&!b)return null;try{return GoogleAuthProvider.credential(x,b)}catch{return null}}}GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD="google.com";GoogleAuthProvider.PROVIDER_ID="google.com";class GithubAuthProvider extends BaseOAuthProvider{constructor(){super("github.com")}static credential(y){return OAuthCredential._fromParams({providerId:GithubAuthProvider.PROVIDER_ID,signInMethod:GithubAuthProvider.GITHUB_SIGN_IN_METHOD,accessToken:y})}static credentialFromResult(y){return GithubAuthProvider.credentialFromTaggedObject(y)}static credentialFromError(y){return GithubAuthProvider.credentialFromTaggedObject(y.customData||{})}static credentialFromTaggedObject({_tokenResponse:y}){if(!y||!("oauthAccessToken"in y)||!y.oauthAccessToken)return null;try{return GithubAuthProvider.credential(y.oauthAccessToken)}catch{return null}}}GithubAuthProvider.GITHUB_SIGN_IN_METHOD="github.com";GithubAuthProvider.PROVIDER_ID="github.com";class TwitterAuthProvider extends BaseOAuthProvider{constructor(){super("twitter.com")}static credential(y,x){return OAuthCredential._fromParams({providerId:TwitterAuthProvider.PROVIDER_ID,signInMethod:TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,oauthToken:y,oauthTokenSecret:x})}static credentialFromResult(y){return TwitterAuthProvider.credentialFromTaggedObject(y)}static credentialFromError(y){return TwitterAuthProvider.credentialFromTaggedObject(y.customData||{})}
201static credentialFromTaggedObject({_tokenResponse:y}){if(!y)return null;const{oauthAccessToken:x,oauthTokenSecret:b}=y;if(!x||!b)return null;try{return TwitterAuthProvider.credential(x,b)}catch{return null}}}TwitterAuthProvider.TWITTER_SIGN_IN_METHOD="twitter.com";TwitterAuthProvider.PROVIDER_ID="twitter.com";class UserCredentialImpl{constructor(y){this.user=y.user,this.providerId=y.providerId,this._tokenResponse=y._tokenResponse,this.operationType=y.operationType}static async _fromIdTokenResponse(y,x,b,R=!1){const M=await UserImpl._fromIdTokenResponse(y,b,R),O=providerIdForResponse(b);return new UserCredentialImpl({user:M,providerId:O,_tokenResponse:b,operationType:x})}static async _forOperation(y,x,b){await y._updateTokensIfNecessary(b,!0);const R=providerIdForResponse(b);return new UserCredentialImpl({user:y,providerId:R,_tokenResponse:b,operationType:x})}}function providerIdForResponse(r){return r.providerId?r.providerId:"phoneNumber"in r?"phone":null}class MultiFactorError extends FirebaseError{constructor(y,x,b,R){super(x.code,x.message),this.operationType=b,this.user=R,Object.setPrototypeOf(this,MultiFactorError.prototype),this.customData={appName:y.name,tenantId:y.tenantId??void 0,_serverResponse:x.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(y,x,b,R){return new MultiFactorError(y,x,b,R)}}function _processCredentialSavingMfaContextIfNecessary(r,y,x,b){return(y==="reauthenticate"?x._getReauthenticationResolver(r):x._getIdTokenResponse(r)).catch(M=>{throw M.code==="auth/multi-factor-auth-required"?MultiFactorError._fromErrorAndOperation(r,M,y,b):M})}async function _link$1(r,y,x=!1){const b=await _logoutIfInvalidated(r,y._linkToIdToken(r.auth,await r.getIdToken()),x);return UserCredentialImpl._forOperation(r,"link",b)}async function _reauthenticate(r,y,x=!1){const{auth:b}=r;if(_isFirebaseServerApp(b.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(b));const R="reauthenticate";try{const M=await _logoutIfInvalidated(r,_processCredentialSavingMfaContextIfNecessary(b,R,y,r),x);_assert(M.idToken,b,"internal-error");const O=_parseToken(M.idToken);_assert(O,b,"internal-error");const{sub:z}=O;return _assert(r.uid===z,b,"user-mismatch"),UserCredentialImpl._forOperation(r,R,M)}catch(M){throw M?.code==="auth/user-not-found"&&_fail(b,"user-mismatch"),M}}async function _signInWithCredential(r,y,x=!1){if(_isFirebaseServerApp(r.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(r));const b="signIn",R=await _processCredentialSavingMfaContextIfNecessary(r,b,y),M=await UserCredentialImpl._fromIdTokenResponse(r,b,R);return x||await r._updateCurrentUser(M.user),M}function onIdTokenChanged(r,y,x,b){return getModularInstance(r).onIdTokenChanged(y,x,b)}function beforeAuthStateChanged(r,y,x){return getModularInstance(r).beforeAuthStateChanged(y,x)}const STORAGE_AVAILABLE_KEY="__sak";class BrowserPersistenceClass{constructor(y,x){this.storageRetriever=y,this.type=x}_isAvailable(){try{return this.storage?(this.storage.setItem(STORAGE_AVAILABLE_KEY,"1"),this.storage.removeItem(STORAGE_AVAILABLE_KEY),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(y,x){return this.storage.setItem(y,JSON.stringify(x)),Promise.resolve()}_get(y){const x=this.storage.getItem(y);return Promise.resolve(x?JSON.parse(x):null)}_remove(y){return this.storage.removeItem(y),Promise.resolve()}get storage(){return this.storageRetriever()}}const _POLLING_INTERVAL_MS$1=1e3,IE10_LOCAL_STORAGE_SYNC_DELAY=10;class BrowserLocalPersistence extends BrowserPersistenceClass{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(y,x)=>this.onStorageEvent(y,x),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=_isMobileBrowser(),this._shouldAllowMigration=!0}forAllChangedKeys(y){for(const x of Object.keys(this.listeners)){const b=this.storage.getItem(x),R=this.localCache[x];b!==R&&y(x,R,b)}}onStorageEvent(y,x=!1){if(!y.key){this.forAllChangedKeys((O,z,U)=>{this.notifyListeners(O,U)});return}const b=y.key;x?this.detachListener():this.stopPolling();const R=()=>{const O=this.storage.getItem(b);!x&&this.localCache[b]===O||this.notifyListeners(b,O)},M=this.storage.getItem(b);_isIE10()&&M!==y.newValue&&y.newValue!==y.oldValue?setTimeout(R,IE10_LOCAL_STORAGE_SYNC_DELAY):R()}notifyListeners(y,x){this.localCache[y]=x;const b=this.listeners[y];if(b)for(const R of Array.from(b))R(x&&JSON.parse(x))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((y,x,b)=>{this.onStorageEvent(new StorageEvent("storage",{key:y,oldValue:x,newValue:b}),!0)})},_POLLING_INTERVAL_MS$1)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(y,x){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[y]||(this.listeners[y]=new Set,this.localCache[y]=this.storage.getItem(y)),this.listeners[y].add(x)}_removeListener(y,x){this.listeners[y]&&(this.listeners[y].delete(x),this.listeners[y].size===0&&delete this.listeners[y]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(y,x){await super._set(y,x),this.localCache[y]=JSON.stringify(x)}async _get(y){const x=await super._get(y);return this.localCache[y]=JSON.stringify(x),x}async _remove(y){await super._remove(y),delete this.localCache[y]}}BrowserLocalPersistence.type="LOCAL";const browserLocalPersistence=BrowserLocalPersistence;class BrowserSessionPersistence extends BrowserPersistenceClass{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(y,x){}_removeListener(y,x){}}BrowserSessionPersistence.type="SESSION";const browserSessionPersistence=BrowserSessionPersistence;function _allSettled(r){return Promise.all(r.map(async y=>{try{return{fulfilled:!0,value:await y}}catch(x){return{fulfilled:!1,reason:x}}}))}class Receiver{constructor(y){this.eventTarget=y,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(y){const x=this.receivers.find(R=>R.isListeningto(y));if(x)return x;const b=new Receiver(y);return this.receivers.push(b),b}isListeningto(y){return this.eventTarget===y}async handleEvent(y){const x=y,{eventId:b,eventType:R,data:M}=x.data,O=this.handlersMap[R];if(!O?.size)return;x.ports[0].postMessage({status:"ack",eventId:b,eventType:R});const z=Array.from(O).map(async G=>G(x.origin,M)),U=await _allSettled(z);x.ports[0].postMessage({status:"done",eventId:b,eventType:R,response:U})}_subscribe(y,x){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[y]||(this.handlersMap[y]=new Set),this.handlersMap[y].add(x)}_unsubscribe(y,x){this.handlersMap[y]&&x&&this.handlersMap[y].delete(x),(!x||this.handlersMap[y].size===0)&&delete this.handlersMap[y],Ob
201ject.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Receiver.receivers=[];function _generateEventId(r="",y=10){let x="";for(let b=0;b<y;b++)x+=Math.floor(Math.random()*10);return r+x}class Sender{constructor(y){this.target=y,this.handlers=new Set}removeMessageHandler(y){y.messageChannel&&(y.messageChannel.port1.removeEventListener("message",y.onMessage),y.messageChannel.port1.close()),this.handlers.delete(y)}async _send(y,x,b=50){const R=typeof MessageChannel<"u"?new MessageChannel:null;if(!R)throw new Error("connection_unavailable");let M,O;return new Promise((z,U)=>{const G=_generateEventId("",20);R.port1.start();const q=setTimeout(()=>{U(new Error("unsupported_event"))},b);O={messageChannel:R,onMessage(J){const X=J;if(X.data.eventId===G)switch(X.data.status){case"ack":clearTimeout(q),M=setTimeout(()=>{U(new Error("timeout"))},3e3);break;case"done":clearTimeout(M),z(X.data.response);break;default:clearTimeout(q),clearTimeout(M),U(new Error("invalid_response"));break}}},this.handlers.add(O),R.port1.addEventListener("message",O.onMessage),this.target.postMessage({eventType:y,eventId:G,data:x},[R.port2])}).finally(()=>{O&&this.removeMessageHandler(O)})}}function _window(){return window}function _setWindowLocation(r){_window().location.href=r}function _isWorker(){return typeof _window().WorkerGlobalScope<"u"&&typeof _window().importScripts=="function"}async function _getActiveServiceWorker(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function _getServiceWorkerController(){return navigator?.serviceWorker?.controller||null}function _getWorkerGlobalScope(){return _isWorker()?self:null}const DB_NAME="firebaseLocalStorageDb",DB_VERSION=1,DB_OBJECTSTORE_NAME="firebaseLocalStorage",DB_DATA_KEYPATH="fbase_key";class DBPromise{constructor(y){this.request=y}toPromise(){return new Promise((y,x)=>{this.request.addEventListener("success",()=>{y(this.request.result)}),this.request.addEventListener("error",()=>{x(this.request.error)})})}}function getObjectStore(r,y){return r.transaction([DB_OBJECTSTORE_NAME],y?"readwrite":"readonly").objectStore(DB_OBJECTSTORE_NAME)}function _deleteDatabase(){const r=indexedDB.deleteDatabase(DB_NAME);return new DBPromise(r).toPromise()}function _openDatabase(){const r=indexedDB.open(DB_NAME,DB_VERSION);return new Promise((y,x)=>{r.addEventListener("error",()=>{x(r.error)}),r.addEventListener("upgradeneeded",()=>{const b=r.result;try{b.createObjectStore(DB_OBJECTSTORE_NAME,{keyPath:DB_DATA_KEYPATH})}catch(R){x(R)}}),r.addEventListener("success",async()=>{const b=r.result;b.objectStoreNames.contains(DB_OBJECTSTORE_NAME)?y(b):(b.close(),await _deleteDatabase(),y(await _openDatabase()))})})}async function _putObject(r,y,x){const b=getObjectStore(r,!0).put({[DB_DATA_KEYPATH]:y,value:x});return new DBPromise(b).toPromise()}async function getObject(r,y){const x=getObjectStore(r,!1).get(y),b=await new DBPromise(x).toPromise();return b===void 0?null:b.value}function _deleteObject(r,y){const x=getObjectStore(r,!0).delete(y);return new DBPromise(x).toPromise()}const _POLLING_INTERVAL_MS=800,_TRANSACTION_RETRY_COUNT=3;class IndexedDBLocalPersistence{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await _openDatabase(),this.db)}async _withRetries(y){let x=0;for(;;)try{const b=await this._openDb();return await y(b)}catch(b){if(x++>_TRANSACTION_RETRY_COUNT)throw b;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return _isWorker()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Receiver._getInstance(_getWorkerGlobalScope()),this.receiver._subscribe("keyChanged",async(y,x)=>({keyProcessed:(await this._poll()).includes(x.key)})),this.receiver._subscribe("ping",async(y,x)=>["keyChanged"])}
201async initializeSender(){if(this.activeServiceWorker=await _getActiveServiceWorker(),!this.activeServiceWorker)return;this.sender=new Sender(this.activeServiceWorker);const y=await this.sender._send("ping",{},800);y&&y[0]?.fulfilled&&y[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(y){if(!(!this.sender||!this.activeServiceWorker||_getServiceWorkerController()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:y},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const y=await _openDatabase();return await _putObject(y,STORAGE_AVAILABLE_KEY,"1"),await _deleteObject(y,STORAGE_AVAILABLE_KEY),!0}catch{}return!1}async _withPendingWrite(y){this.pendingWrites++;try{await y()}finally{this.pendingWrites--}}async _set(y,x){return this._withPendingWrite(async()=>(await this._withRetries(b=>_putObject(b,y,x)),this.localCache[y]=x,this.notifyServiceWorker(y)))}async _get(y){const x=await this._withRetries(b=>getObject(b,y));return this.localCache[y]=x,x}async _remove(y){return this._withPendingWrite(async()=>(await this._withRetries(x=>_deleteObject(x,y)),delete this.localCache[y],this.notifyServiceWorker(y)))}async _poll(){const y=await this._withRetries(R=>{const M=getObjectStore(R,!1).getAll();return new DBPromise(M).toPromise()});if(!y)return[];if(this.pendingWrites!==0)return[];const x=[],b=new Set;if(y.length!==0)for(const{fbase_key:R,value:M}of y)b.add(R),JSON.stringify(this.localCache[R])!==JSON.stringify(M)&&(this.notifyListeners(R,M),x.push(R));for(const R of Object.keys(this.localCache))this.localCache[R]&&!b.has(R)&&(this.notifyListeners(R,null),x.push(R));return x}notifyListeners(y,x){this.localCache[y]=x;const b=this.listeners[y];if(b)for(const R of Array.from(b))R(x)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),_POLLING_INTERVAL_MS)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(y,x){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[y]||(this.listeners[y]=new Set,this._get(y)),this.listeners[y].add(x)}_removeListener(y,x){this.listeners[y]&&(this.listeners[y].delete(x),this.listeners[y].size===0&&delete this.listeners[y]),Object.keys(this.listeners).length===0&&this.stopPolling()}}IndexedDBLocalPersistence.type="LOCAL";const indexedDBLocalPersistence=IndexedDBLocalPersistence;new Delay(3e4,6e4);function _withDefaultResolver(r,y){return y?_getInstance(y):(_assert(r._popupRedirectResolver,r,"argument-error"),r._popupRedirectResolver)}class IdpCredential extends AuthCredential{constructor(y){super("custom","custom"),this.params=y}_getIdTokenResponse(y){return signInWithIdp(y,this._buildIdpRequest())}_linkToIdToken(y,x){return signInWithIdp(y,this._buildIdpRequest(x))}_getReauthenticationResolver(y){return signInWithIdp(y,this._buildIdpRequest())}_buildIdpRequest(y){const x={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return y&&(x.idToken=y),x}}function _signIn(r){return _signInWithCredential(r.auth,new IdpCredential(r),r.bypassAuthState)}function _reauth(r){const{auth:y,user:x}=r;return _assert(x,y,"internal-error"),_reauthenticate(x,new IdpCredential(r),r.bypassAuthState)}async function _link(r){const{auth:y,user:x}=r;return _assert(x,y,"internal-error"),_link$1(x,new IdpCredential(r),r.bypassAuthState)}class AbstractPopupRedirectOperation{constructor(y,x,b,R,M=!1){this.auth=y,this.resolver=b,this.user=R,this.bypassAuthState=M,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(x)?x:[x]}execute(){return new Promise(async(y,x)=>{this.pendingPromise={resolve:y,reject:x};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(b){this.reject(b)}})}async onAuthEvent(y){const{urlResponse:x,sessionId:b,postBody:R,tenantId:M,error:O,type:z}=y;if(O){this.reject(O);return}const U={auth:this.auth,requestUri:x,sessionId:b,tenantId:M||void 0,postBody:R||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(z)(U))}catch(G){this.reject(G)}}onError(y){this.reject(y)}getIdpTask(y){switch(y){case"signInViaPopup":case"signInViaRedirect":return _signIn;case"linkViaPopup":case"linkViaRedirect":return _link;case"reauthViaPopup":case"reauthViaRedirect":return _reauth;default:_fail(this.auth,"internal-error")}}resolve(y){debugAssert(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(y),this.unregisterAndCleanUp()}reject(y){debugAssert(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(y),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const _POLL_WINDOW_CLOSE_TIMEOUT=new Delay(2e3,1e4);async function signInWithPopup(r,y,x){if(_isFirebaseServerApp(r.app))return Promise.reject(_createError(r,"operation-not-supported-in-this-environment"));const b=_castAuth(r);_assertInstanceOf(r,y,FederatedAuthProvider);const R=_withDefaultResolver(b,x);return new PopupOperation(b,"signInViaPopup",y,R).executeNotNull()}class PopupOperation extends AbstractPopupRedirectOperation{constructor(y,x,b,R,M){super(y,x,R,M),this.provider=b,this.authWindow=null,this.pollId=null,PopupOperation.currentPopupAction&&PopupOperation.currentPopupAction.cancel(),PopupOperation.currentPopupAction=this}async executeNotNull(){const y=await this.execute();return _assert(y,this.auth,"internal-error"),y}async onExecution(){debugAssert(this.filter.length===1,"Popup operations only handle one event");const y=_generateEventId();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],y),this.authWindow.associatedEvent=y,this.resolver._originValidation(this.auth).catch(x=>{this.reject(x)}),this.resolver._isIframeWebStorageSupported(this.auth,x=>{x||this.reject(_createError(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(_createError(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,PopupOperation.currentPopupAction=null}pollUserCancellation(){const y=()=>
201{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(_createError(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(y,_POLL_WINDOW_CLOSE_TIMEOUT.get())};y()}}PopupOperation.currentPopupAction=null;const PENDING_REDIRECT_KEY="pendingRedirect",redirectOutcomeMap=new Map;class RedirectAction extends AbstractPopupRedirectOperation{constructor(y,x,b=!1){super(y,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],x,void 0,b),this.eventId=null}async execute(){let y=redirectOutcomeMap.get(this.auth._key());if(!y){try{const b=await _getAndClearPendingRedirectStatus(this.resolver,this.auth)?await super.execute():null;y=()=>Promise.resolve(b)}catch(x){y=()=>Promise.reject(x)}redirectOutcomeMap.set(this.auth._key(),y)}return this.bypassAuthState||redirectOutcomeMap.set(this.auth._key(),()=>Promise.resolve(null)),y()}async onAuthEvent(y){if(y.type==="signInViaRedirect")return super.onAuthEvent(y);if(y.type==="unknown"){this.resolve(null);return}if(y.eventId){const x=await this.auth._redirectUserForId(y.eventId);if(x)return this.user=x,super.onAuthEvent(y);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function _getAndClearPendingRedirectStatus(r,y){const x=pendingRedirectKey(y),b=resolverPersistence(r);if(!await b._isAvailable())return!1;const R=await b._get(x)==="true";return await b._remove(x),R}function _overrideRedirectResult(r,y){redirectOutcomeMap.set(r._key(),y)}function resolverPersistence(r){return _getInstance(r._redirectPersistence)}function pendingRedirectKey(r){return _persistenceKeyName(PENDING_REDIRECT_KEY,r.config.apiKey,r.name)}async function _getRedirectResult(r,y,x=!1){if(_isFirebaseServerApp(r.app))return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(r));const b=_castAuth(r),R=_withDefaultResolver(b,y),O=await new RedirectAction(b,R,x).execute();return O&&!x&&(delete O.user._redirectEventId,await b._persistUserIfCurrent(O.user),await b._setRedirectUser(null,y)),O}const EVENT_DUPLICATION_CACHE_DURATION_MS=600*1e3;class AuthEventManager{constructor(y){this.auth=y,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(y){this.consumers.add(y),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,y)&&(this.sendToConsumer(this.queuedRedirectEvent,y),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(y){this.consumers.delete(y)}onEvent(y){if(this.hasEventBeenHandled(y))return!1;let x=!1;return this.consumers.forEach(b=>{this.isEventForConsumer(y,b)&&(x=!0,this.sendToConsumer(y,b),this.saveEventToCache(y))}),this.hasHandledPotentialRedirect||!isRedirectEvent(y)||(this.hasHandledPotentialRedirect=!0,x||(this.queuedRedirectEvent=y,x=!0)),x}sendToConsumer(y,x){if(y.error&&!isNullRedirectEvent(y)){const b=y.error.code?.split("auth/")[1]||"internal-error";x.onError(_createError(this.auth,b))}else x.onAuthEvent(y)}isEventForConsumer(y,x){const b=x.eventId===null||!!y.eventId&&y.eventId===x.eventId;return x.filter.includes(y.type)&&b}hasEventBeenHandled(y){return Date.now()-this.lastProcessedEventTime>=EVENT_DUPLICATION_CACHE_DURATION_MS&&this.cachedEventUids.clear(),this.cachedEventUids.has(eventUid(y))}saveEventToCache(y){this.cachedEventUids.add(eventUid(y)),this.lastProcessedEventTime=Date.now()}}function eventUid(r){return[r.type,r.eventId,r.sessionId,r.tenantId].filter(y=>y).join("-")}function isNullRedirectEvent({type:r,error:y}){return r==="unknown"&&y?.code==="auth/no-auth-event"}function isRedirectEvent(r){switch(r.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return isNullRedirectEvent(r);default:return!1}}async function _getProjectConfig(r,y={}){return _performApiRequest(r,"GET","/v1/projects",y)}const IP_ADDRESS_REGEX=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,HTTP_REGEX=/^https?/;async function _validateOrigin(r){if(r.config.emulator)return;const{authorizedDomains:y}=await _getProjectConfig(r);
201for(const x of y)try{if(matchDomain(x))return}catch{}_fail(r,"unauthorized-domain")}function matchDomain(r){const y=_getCurrentUrl(),{protocol:x,hostname:b}=new URL(y);if(r.startsWith("chrome-extension://")){const O=new URL(r);return O.hostname===""&&b===""?x==="chrome-extension:"&&r.replace("chrome-extension://","")===y.replace("chrome-extension://",""):x==="chrome-extension:"&&O.hostname===b}if(!HTTP_REGEX.test(x))return!1;if(IP_ADDRESS_REGEX.test(r))return b===r;const R=r.replace(/\./g,"\\.");return new RegExp("^(.+\\."+R+"|"+R+")$","i").test(b)}const NETWORK_TIMEOUT=new Delay(3e4,6e4);function resetUnloadedGapiModules(){const r=_window().___jsl;if(r?.H){for(const y of Object.keys(r.H))if(r.H[y].r=r.H[y].r||[],r.H[y].L=r.H[y].L||[],r.H[y].r=[...r.H[y].L],r.CP)for(let x=0;x<r.CP.length;x++)r.CP[x]=null}}function loadGapi(r){return new Promise((y,x)=>{function b(){resetUnloadedGapiModules(),gapi.load("gapi.iframes",{callback:()=>{y(gapi.iframes.getContext())},ontimeout:()=>{resetUnloadedGapiModules(),x(_createError(r,"network-request-failed"))},timeout:NETWORK_TIMEOUT.get()})}if(_window().gapi?.iframes?.Iframe)y(gapi.iframes.getContext());else if(_window().gapi?.load)b();else{const R=_generateCallbackName("iframefcb");return _window()[R]=()=>{gapi.load?b():x(_createError(r,"network-request-failed"))},_loadJS(`${_gapiScriptUrl()}?onload=${R}`).catch(M=>x(M))}}).catch(y=>{throw cachedGApiLoader=null,y})}let cachedGApiLoader=null;function _loadGapi(r){return cachedGApiLoader=cachedGApiLoader||loadGapi(r),cachedGApiLoader}const PING_TIMEOUT=new Delay(5e3,15e3),IFRAME_PATH="__/auth/iframe",EMULATED_IFRAME_PATH="emulator/auth/iframe",IFRAME_ATTRIBUTES={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},EID_FROM_APIHOST=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function getIframeUrl(r){const y=r.config;_assert(y.authDomain,r,"auth-domain-config-required");const x=y.emulator?_emulatorUrl(y,EMULATED_IFRAME_PATH):`https://${r.config.authDomain}/${IFRAME_PATH}`,b={apiKey:y.apiKey,appName:r.name,v:SDK_VERSION},R=EID_FROM_APIHOST.get(r.config.apiHost);R&&(b.eid=R);const M=r._getFrameworks();return M.length&&(b.fw=M.join(",")),`${x}?${querystring(b).slice(1)}`}async function _openIframe(r){const y=await _loadGapi(r),x=_window().gapi;return _assert(x,r,"internal-error"),y.open({where:document.body,url:getIframeUrl(r),messageHandlersFilter:x.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:IFRAME_ATTRIBUTES,dontclear:!0},b=>new Promise(async(R,M)=>{await b.restyle({setHideOnLeave:!1});const O=_createError(r,"network-request-failed"),z=_window().setTimeout(()=>{M(O)},PING_TIMEOUT.get());function U(){_window().clearTimeout(z),R(b)}b.ping(U).then(U,()=>{M(O)})}))}const BASE_POPUP_OPTIONS={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},DEFAULT_WIDTH=500,DEFAULT_HEIGHT=600,TARGET_BLANK="_blank",FIREFOX_EMPTY_URL="http://localhost";class AuthPopup{constructor(y){this.window=y,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function _open(r,y,x,b=DEFAULT_WIDTH,R=DEFAULT_HEIGHT){const M=Math.max((window.screen.availHeight-R)/2,0).toString(),O=Math.max((window.screen.availWidth-b)/2,0).toString();let z="";const U={...BASE_POPUP_OPTIONS,width:b.toString(),height:R.toString(),top:M,left:O},G=getUA().toLowerCase();x&&(z=_isChromeIOS(G)?TARGET_BLANK:x),_isFirefox(G)&&(y=y||FIREFOX_EMPTY_URL,U.scrollbars="yes");const q=Object.entries(U).reduce((X,[fe,te])=>`${X}${fe}=${te},`,"");if(_isIOSStandalone(G)&&z!=="_self")return openAsNewWindowIOS(y||"",z),new AuthPopup(null);const J=window.open(y||"",z,q);_assert(J,r,"popup-blocked");try{J.focus()}catch{}return new AuthPopup(J)}function openAsNewWindowIOS(r,y){const x=document.createElement("a");x.href=r,x.target=y;const b=document.createEvent("MouseEvent");b.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),x.dispatchEvent(b)}const WIDGET_PATH="__/auth/handler",EMULATOR_WIDGET_PATH="emulator/auth/handler",FIREBASE_APP_CHECK_FRAGMENT_ID=encodeURIComponent("fac");async function _getRedirectUrl(r,y,x,b,R,M){_assert(r.config.authDomain,r,"auth-domain-config-required"),_assert(r.config.apiKey,r,"invali
201d-api-key");const O={apiKey:r.config.apiKey,appName:r.name,authType:x,redirectUrl:b,v:SDK_VERSION,eventId:R};if(y instanceof FederatedAuthProvider){y.setDefaultLanguage(r.languageCode),O.providerId=y.providerId||"",isEmpty(y.getCustomParameters())||(O.customParameters=JSON.stringify(y.getCustomParameters()));for(const[q,J]of Object.entries({}))O[q]=J}if(y instanceof BaseOAuthProvider){const q=y.getScopes().filter(J=>J!=="");q.length>0&&(O.scopes=q.join(","))}r.tenantId&&(O.tid=r.tenantId);const z=O;for(const q of Object.keys(z))z[q]===void 0&&delete z[q];const U=await r._getAppCheckToken(),G=U?`#${FIREBASE_APP_CHECK_FRAGMENT_ID}=${encodeURIComponent(U)}`:"";return`${getHandlerBase(r)}?${querystring(z).slice(1)}${G}`}function getHandlerBase({config:r}){return r.emulator?_emulatorUrl(r,EMULATOR_WIDGET_PATH):`https://${r.authDomain}/${WIDGET_PATH}`}const WEB_STORAGE_SUPPORT_KEY="webStorageSupport";class BrowserPopupRedirectResolver{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=browserSessionPersistence,this._completeRedirectFn=_getRedirectResult,this._overrideRedirectResult=_overrideRedirectResult}async _openPopup(y,x,b,R){debugAssert(this.eventManagers[y._key()]?.manager,"_initialize() not called before _openPopup()");const M=await _getRedirectUrl(y,x,b,_getCurrentUrl(),R);return _open(y,M,_generateEventId())}async _openRedirect(y,x,b,R){await this._originValidation(y);const M=await _getRedirectUrl(y,x,b,_getCurrentUrl(),R);return _setWindowLocation(M),new Promise(()=>{})}_initialize(y){const x=y._key();if(this.eventManagers[x]){const{manager:R,promise:M}=this.eventManagers[x];return R?Promise.resolve(R):(debugAssert(M,"If manager is not set, promise should be"),M)}const b=this.initAndGetManager(y);return this.eventManagers[x]={promise:b},b.catch(()=>{delete this.eventManagers[x]}),b}async initAndGetManager(y){const x=await _openIframe(y),b=new AuthEventManager(y);return x.register("authEvent",R=>(_assert(R?.authEvent,y,"invalid-auth-event"),{status:b.onEvent(R.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[y._key()]={manager:b},this.iframes[y._key()]=x,b}_isIframeWebStorageSupported(y,x){this.iframes[y._key()].send(WEB_STORAGE_SUPPORT_KEY,{type:WEB_STORAGE_SUPPORT_KEY},R=>{const M=R?.[0]?.[WEB_STORAGE_SUPPORT_KEY];M!==void 0&&x(!!M),_fail(y,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(y){const x=y._key();return this.originValidationPromises[x]||(this.originValidationPromises[x]=_validateOrigin(y)),this.originValidationPromises[x]}get _shouldInitProactively(){return _isMobileBrowser()||_isSafari()||_isIOS()}}const browserPopupRedirectResolver=BrowserPopupRedirectResolver;var name$2="@firebase/auth",version$2="1.12.0";class AuthInterop{constructor(y){this.auth=y,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(y){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(y)}:null}addAuthTokenListener(y){if(this.assertAuthConfigured(),this.internalListeners.has(y))return;const x=this.auth.onIdTokenChanged(b=>{y(b?.stsTokenManager.accessToken||null)});this.internalListeners.set(y,x),this.updateProactiveRefresh()}removeAuthTokenListener(y){this.assertAuthConfigured();const x=this.internalListeners.get(y);x&&(this.internalListeners.delete(y),x(),this.updateProactiveRefresh())}assertAuthConfigured(){_assert(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function getVersionForPlatform(r){switch(r){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function registerAuth(r){_registerComponent(new Component("auth",(y,{options:x})=>{const b=y.getProvider("app").getImmediate(),R=y.getProvider("heartbeat"),M=y.getProvider("app-check-internal"),{apiKey:O,authDomain:z}
201=b.options;_assert(O&&!O.includes(":"),"invalid-api-key",{appName:b.name});const U={apiKey:O,authDomain:z,clientPlatform:r,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:_getClientVersion(r)},G=new AuthImpl(b,R,M,U);return _initializeAuthInstance(G,x),G},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((y,x,b)=>{y.getProvider("auth-internal").initialize()})),_registerComponent(new Component("auth-internal",y=>{const x=_castAuth(y.getProvider("auth").getImmediate());return(b=>new AuthInterop(b))(x)},"PRIVATE").setInstantiationMode("EXPLICIT")),registerVersion(name$2,version$2,getVersionForPlatform(r)),registerVersion(name$2,version$2,"esm2020")}const DEFAULT_ID_TOKEN_MAX_AGE=300,authIdTokenMaxAge=getExperimentalSetting("authIdTokenMaxAge")||DEFAULT_ID_TOKEN_MAX_AGE;let lastPostedIdToken=null;const mintCookieFactory=r=>async y=>{const x=y&&await y.getIdTokenResult(),b=x&&(new Date().getTime()-Date.parse(x.issuedAtTime))/1e3;if(b&&b>authIdTokenMaxAge)return;const R=x?.token;lastPostedIdToken!==R&&(lastPostedIdToken=R,await fetch(r,{method:R?"POST":"DELETE",headers:R?{Authorization:`Bearer ${R}`}:{}}))};function getAuth(r=getApp()){const y=_getProvider(r,"auth");if(y.isInitialized())return y.getImmediate();const x=initializeAuth(r,{popupRedirectResolver:browserPopupRedirectResolver,persistence:[indexedDBLocalPersistence,browserLocalPersistence,browserSessionPersistence]}),b=getExperimentalSetting("authTokenSyncURL");if(b&&typeof isSecureContext=="boolean"&&isSecureContext){const M=new URL(b,location.origin);if(location.origin===M.origin){const O=mintCookieFactory(M.toString());beforeAuthStateChanged(x,O,()=>O(x.currentUser)),onIdTokenChanged(x,z=>O(z))}}const R=getDefaultEmulatorHost("auth");return R&&connectAuthEmulator(x,`http://${R}`),x}function getScriptParentElement(){return document.getElementsByTagName("head")?.[0]??document}_setExternalJSProvider({loadJS(r){return new Promise((y,x)=>{const b=document.createElement("script");b.setAttribute("src",r),b.onload=y,b.onerror=R=>{const M=_createError("internal-error");M.customData=R,x(M)},b.type="text/javascript",b.charset="UTF-8",getScriptParentElement().appendChild(b)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});registerAuth("Browser");const name$1="@firebase/installations",version$1="0.6.19";const PENDING_TIMEOUT_MS=1e4,PACKAGE_VERSION=`w:${version$1}`,INTERNAL_AUTH_VERSION="FIS_v2",INSTALLATIONS_API_URL="https://firebaseinstallations.googleapis.com/v1",TOKEN_EXPIRATION_BUFFER=3600*1e3,SERVICE="installations",SERVICE_NAME="Installations";const ERROR_DESCRIPTION_MAP={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ERROR_FACTORY$1=new ErrorFactory(SERVICE,SERVICE_NAME,ERROR_DESCRIPTION_MAP);function isServerError(r){return r instanceof FirebaseError&&r.code.includes("request-failed")}function getInstallationsEndpoint({projectId:r}){return`${INSTALLATIONS_API_URL}/projects/${r}/installations`}
201function extractAuthTokenInfoFromResponse(r){return{token:r.token,requestStatus:2,expiresIn:getExpiresInFromResponseExpiresIn(r.expiresIn),creationTime:Date.now()}}async function getErrorFromResponse(r,y){const b=(await y.json()).error;return ERROR_FACTORY$1.create("request-failed",{requestName:r,serverCode:b.code,serverMessage:b.message,serverStatus:b.status})}function getHeaders$1({apiKey:r}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r})}function getHeadersWithAuth(r,{refreshToken:y}){const x=getHeaders$1(r);return x.append("Authorization",getAuthorizationHeader(y)),x}async function retryIfServerError(r){const y=await r();return y.status>=500&&y.status<600?r():y}function getExpiresInFromResponseExpiresIn(r){return Number(r.replace("s","000"))}function getAuthorizationHeader(r){return`${INTERNAL_AUTH_VERSION} ${r}`}async function createInstallationRequest({appConfig:r,heartbeatServiceProvider:y},{fid:x}){const b=getInstallationsEndpoint(r),R=getHeaders$1(r),M=y.getImmediate({optional:!0});if(M){const G=await M.getHeartbeatsHeader();G&&R.append("x-firebase-client",G)}const O={fid:x,authVersion:INTERNAL_AUTH_VERSION,appId:r.appId,sdkVersion:PACKAGE_VERSION},z={method:"POST",headers:R,body:JSON.stringify(O)},U=await retryIfServerError(()=>fetch(b,z));if(U.ok){const G=await U.json();return{fid:G.fid||x,registrationStatus:2,refreshToken:G.refreshToken,authToken:extractAuthTokenInfoFromRe
201sponse(G.authToken)}}else throw await getErrorFromResponse("Create Installation",U)}function sleep$1(r){return new Promise(y=>{setTimeout(y,r)})}function bufferToBase64UrlSafe(r){return btoa(String.fromCharCode(...r)).replace(/\+/g,"-").replace(/\//g,"_")}const VALID_FID_PATTERN=/^[cdef][\w-]{21}$/,INVALID_FID="";function generateFid(){try{const r=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(r),r[0]=112+r[0]%16;const x=encode$3(r);return VALID_FID_PATTERN.test(x)?x:INVALID_FID}catch{return INVALID_FID}}function encode$3(r){return bufferToBase64UrlSafe(r).substr(0,22)}function getKey(r){return`${r.appName}!${r.appId}`}const fidChangeCallbacks=new Map;function fidChanged(r,y){const x=getKey(r);callFidChangeCallbacks(x,y),broadcastFidChange(x,y)}function callFidChangeCallbacks(r,y){const x=fidChangeCallbacks.get(r);if(x)for(const b of x)b(y)}function broadcastFidChange(r,y){const x=getBroadcastChannel();x&&x.postMessage({key:r,fid:y}),closeBroadcastChannel()}let broadcastChannel=null;function getBroadcastChannel(){return!broadcastChannel&&"BroadcastChannel"in self&&(broadcastChannel=new BroadcastChannel("[Firebase] FID Change"),broadcastChannel.onmessage=r=>{callFidChangeCallbacks(r.data.key,r.data.fid)}),broadcastChannel}function closeBroadcastChannel(){fidChangeCallbacks.size===0&&broadcastChannel&&(broadcastChannel.close(),broadcastChannel=null)}const DATABASE_NAME="firebase-installations-database",DATABASE_VERSION=1,OBJECT_STORE_NAME="firebase-installations-store";let dbPromise=null;function getDbPromise(){return dbPromise||(dbPromise=openDB(DATABASE_NAME,DATABASE_VERSION,{upgrade:(r,y)=>{y===0&&r.createObjectStore(OBJECT_STORE_NAME)}})),dbPromise}async function set(r,y){const x=getKey(r),R=(await getDbPromise()).transaction(OBJECT_STORE_NAME,"readwrite"),M=R.objectStore(OBJECT_STORE_NAME),O=await M.get(x);return await M.put(y,x),await R.done,(!O||O.fid!==y.fid)&&fidChanged(r,y.fid),y}async function remove(r){const y=getKey(r),b=(await getDbPromise()).transaction(OBJECT_STORE_NAME,"readwrite");await b.objectStore(OBJECT_STORE_NAME).delete(y),await b.done}async function update(r,y){const x=getKey(r),R=(await getDbPromise()).transaction(OBJECT_STORE_NAME,"readwrite"),M=R.objectStore(OBJECT_STORE_NAME),O=await M.get(x),z=y(O);return z===void 0?await M.delete(x):await M.put(z,x),await R.done,z&&(!O||O.fid!==z.fid)&&fidChanged(r,z.fid),z}async function getInstallationEntry(r){let y;const x=await update(r.appConfig,b=>{const R=updateOrCreateInstallationEntry(b),M=triggerRegistrationIfNecessary(r,R);return y=M.registrationPromise,M.installationEntry});return x.fid===INVALID_FID?{installationEntry:await y}:{installationEntry:x,registrationPromise:y}}function updateOrCreateInstallationEntry(r){const y=r||{fid:generateFid(),registrationStatus:0};return clearTimedOutRequest(y)}function triggerRegistrationIfNecessary(r,y){if(y.registrationStatus===0){if(!navigator.onLine){const R=Promise.reject(ERROR_FACTORY$1.create("app-offline"));return{installationEntry:y,registrationPromise:R}}const x={fid:y.fid,registrationStatus:1,registrationTime:Date.now()},b=registerInstallation(r,x);return{installationEntry:x,registrationPromise:b}}else return y.registrationStatus===1?{installationEntry:y,registrationPromise:waitUntilFidRegistration(r)}:{installationEntry:y}}async function registerInstallation(r,y){try{const x=await createInstallationRequest(r,y);return set(r.appConfig,x)}catch(x){throw isServerError(x)&&x.customData.serverCode===409?await remove(r.appConfig):await set(r.appConfig,{fid:y.fid,registrationStatus:0}),x}}async function waitUntilFidRegistration(r){let y=await updateInstallationRequest(r.appConfig);for(;y.registrationStatus===1;)await sleep$1(100),y=await updateInstallationRequest(r.appConfig);if(y.registrationStatus===0){const{installationEntry:x,registrationPromise:b}=await getInstallationEntry(r);return b||x}return y}function updateInstallationRequest(r){return update(r,y=>{if(!y)throw ERROR_FACTORY$1.create("installation-not-found");return clearTimedOutRequest(y)})}function clearTimedOutRequest(r){return hasInstallationRequestTimedOut(r)?{fid:r.fid,registrationStatus:0}:r}function hasInstallationRequestTimedOut(r){return r.registrationStatus===1&&r.registrationTime+PENDING_TIMEOUT_MS<Date.now()}async function generateAuthTokenRequest({appConfig:r,heartbeatServiceProvider:y},x){const b=getGenerateAuthTokenEndpoint(r,x),R=getHeadersWithAuth(r,x),M=y.getImmediate({optional:!0});if(M){const G=await M.getHeartbeatsHeader();G&&R.append("x-firebase-client",G)}const O={installation:{sdkVersion:PACKAGE_VERSION,appId:r.appId}},z={method:"POST",headers:R,body:JSON.stringify(O)},U=await retryIfServerError(()=>fetch(b,z));if(U.ok){const G=await U.json();
201return extractAuthTokenInfoFromResponse(G)}else throw await getErrorFromResponse("Generate Auth Token",U)}function getGenerateAuthTokenEndpoint(r,{fid:y}){return`${getInstallationsEndpoint(r)}/${y}/authTokens:generate`}async function refreshAuthToken(r,y=!1){let x;const b=await update(r.appConfig,M=>{if(!isEntryRegistered(M))throw ERROR_FACTORY$1.create("not-registered");const O=M.authToken;if(!y&&isAuthTokenValid(O))return M;if(O.requestStatus===1)return x=waitUntilAuthTokenRequest(r,y),M;{if(!navigator.onLine)throw ERROR_FACTORY$1.create("app-offline");const z=makeAuthTokenRequestInProgressEntry(M);return x=fetchAuthTokenFromServer(r,z),z}});return x?await x:b.authToken}async function waitUntilAuthTokenRequest(r,y){let x=await updateAuthTokenRequest(r.appConfig);for(;x.authToken.requestStatus===1;)await sleep$1(100),x=await updateAuthTokenRequest(r.appConfig);const b=x.authToken;return b.requestStatus===0?refreshAuthToken(r,y):b}function updateAuthTokenRequest(r){return update(r,y=>{if(!isEntryRegistered(y))throw ERROR_FACTORY$1.create("not-registered");const x=y.authToken;return hasAuthTokenRequestTimedOut(x)?{...y,authToken:{requestStatus:0}}:y})}async function fetchAuthTokenFromServer(r,y){try{const x=await generateAuthTokenRequest(r,y),b={...y,authToken:x};return await set(r.appConfig,b),x}catch(x){if(isServerError(x)&&(x.customData.serverCode===401||x.customData.serverCode===404))await remove(r.appConfig);else{const b={...y,authToken:{requestStatus:0}};await set(r.appConfig,b)}throw x}}function isEntryRegistered(r){return r!==void 0&&r.registrationStatus===2}function isAuthTokenValid(r){return r.requestStatus===2&&!isAuthTokenExpired(r)}function isAuthTokenExpired(r){const y=Date.now();return y<r.creationTime||r.creationTime+r.expiresIn<y+TOKEN_EXPIRATION_BUFFER}function makeAuthTokenRequestInProgressEntry(r){const y={requestStatus:1,requestTime:Date.now()};return{...r,authToken:y}}function hasAuthTokenRequestTimedOut(r){return r.requestStatus===1&&r.requestTime+PENDING_TIMEOUT_MS<Date.now()}async function getId(r){const y=r,{installationEntry:x,registrationPromise:b}=await getInstallationEntry(y);return b?b.catch(console.error):refreshAuthToken(y).catch(console.error),x.fid}async function getToken(r,y=!1){const x=r;return await completeInstallationRegistration(x),(await refreshAuthToken(x,y)).token}async function completeInstallationRegistration(r){const{registrationPromise:y}=await getInstallationEntry(r);y&&await y}function extractAppConfig(r){if(!r||!r.options)throw getMissingValueError("App Configuration");if(!r.name)throw getMissingValueError("App Name");const y=["projectId","apiKey","appId"];for(const x of y)if(!r.options[x])throw getMissingValueError(x);return{appName:r.name,projectId:r.options.projectId,apiKey:r.options.apiKey,appId:r.options.appId}}function getMissingValueError(r){return ERROR_FACTORY$1.create("missing-app-config-values",{valueName:r})}const INSTALLATIONS_NAME="installations",INSTALLATIONS_NAME_INTERNAL="installations-internal",publicFactory=r=>{const y=r.getProvider("app").getImmediate(),x=extractAppConfig(y),b=_getProvider(y,"heartbeat");return{app:y,appConfig:x,heartbeatServiceProvider:b,_delete:()=>Promise.resolve()}},internalFactory=r=>{const y=r.getProvider("app").getImmediate(),x=_getProvider(y,INSTALLATIONS_NAME).getImmediate();return{getId:()=>getId(x),getToken:R=>getToken(x,R)}};function registerInstallations(){_registerComponent(new Component(INSTALLATIONS_NAME,publicFactory,"PUBLIC")),_registerComponent(new Component(INSTALLATIONS_NAME_INTERNAL,internalFactory,"PRIVATE"))}registerInstallations();registerVersion(name$1,version$1);registerVersion(name$1,version$1,"esm2020");const ANALYTICS_TYPE="analytics",GA_FID_KEY="firebase_id",ORIGIN_KEY="origin",FETCH_TIMEOUT_MILLIS=60*1e3,DYNAMIC_CONFIG_URL="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",GTAG_URL="https://www.googletagmanager.com/gtag/js";const logger=new Logger("@firebase/analytics");const ERRORS={"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}
201","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},ERROR_FACTORY=new ErrorFactory("analytics","Analytics",ERRORS);function createGtagTrustedTypesScriptURL(r){if(!r.startsWith(GTAG_URL)){const y=ERROR_FACTORY.create("invalid-gtag-resource",{gtagURL:r});return logger.warn(y.message),""}return r}function promiseAllSettled(r){return Promise.all(r.map(y=>y.catch(x=>x)))}function createTrustedTypesPolicy(r,y){let x;return window.trustedTypes&&(x=window.trustedTypes.createPolicy(r,y)),x}function insertScriptTag(r,y){const x=createTrustedTypesPolicy("firebase-js-sdk-policy",{createScriptURL:createGtagTrustedTypesScriptURL}),b=document.createElement("script"),R=`${GTAG_URL}?l=${r}&id=${y}`;b.src=x?x?.createScriptURL(R):R,b.async=!0,document.head.appendChild(b)}function getOrCreateDataLayer(r){let y=[];return Array.isArray(window[r])?y=window[r]:window[r]=y,y}async function gtagOnConfig(r,y,x,b,R,M){const O=b[R];try{if(O)await y[O];else{const U=(await promiseAllSettled(x)).find(G=>G.measurementId===R);U&&await y[U.appId]}}catch(z){logger.error(z)}r("config",R,M)}async function gtagOnEvent(r,y,x,b,R){try{let M=[];if(R&&R.send_to){let O=R.send_to;Array.isArray(O)||(O=[O]);const z=await promiseAllSettled(x);for(const U of O){const G=z.find(J=>J.measurementId===U),q=G&&y[G.appId];if(q)M.push(q);else{M=[];break}}}M.length===0&&(M=Object.values(y)),await Promise.all(M),r("event",b,R||{})}catch(M){logger.error(M)}}function wrapGtag(r,y,x,b){async function R(M,...O){try{if(M==="event"){const[z,U]=O;await gtagOnEvent(r,y,x,z,U)}else if(M==="config"){const[z,U]=O;await gtagOnConfig(r,y,x,b,z,U)}else if(M==="consent"){const[z,U]=O;r("consent",z,U)}else if(M==="get"){const[z,U,G]=O;r("get",z,U,G)}else if(M==="set"){const[z]=O;r("set",z)}else r(M,...O)}catch(z){logger.error(z)}}return R}function wrapOrCreateGtag(r,y,x,b,R){let M=function(...O){window[b].push(arguments)};return window[R]&&typeof window[R]=="function"&&(M=window[R]),window[R]=wrapGtag(M,r,y,x),{gtagCore:M,wrappedGtag:window[R]}}function findGtagScriptOnPage(r){const y=window.document.getElementsByTagName("script");for(const x of Object.values(y))if(x.src&&x.src.includes(GTAG_URL)&&x.src.includes(r))return x;return null}const LONG_RETRY_FACTOR=30,BASE_INTERVAL_MILLIS=1e3;class RetryData{constructor(y={},x=BASE_INTERVAL_MILLIS){this.throttleMetadata=y,this.intervalMillis=x}getThrottleMetadata(y){return this.throttleMetadata[y]}setThrottleMetadata(y,x){this.throttleMetadata[y]=x}deleteThrottleMetadata(y){delete this.throttleMetadata[y]}}const defaultRetryData=new RetryData;function getHeaders(r){return new Headers({Accept:"application/json","x-goog-api-key":r})}async function fetchDynamicConfig(r){const{appId:y,apiKey:x}=r,b={method:"GET",headers:getHeaders(x)},R=DYNAMIC_CONFIG_URL.replace("{app-id}",y),M=await fetch(R,b);if(M.status!==200&&M.status!==304){let O="";try{const z=await M.json();z.error?.message&&(O=z.error.message)}catch{}throw ERROR_FACTORY.create("config-fetch-failed",{httpStatus:M.status,responseMessage:O})}return M.json()}async function fetchDynamicConfigWithRetry(r,y=defaultRetryData,x){const{appId:b,apiKey:R,measurementId:M}=r.options;if(!b)throw ERROR_FACTORY.create("no-app-id");if(!R){if(M)return{measurementId:M,appId:b};throw ERROR_FACTORY.create("no-api-key")}const O=y.getThrottleMetadata(b)||{backoffCount:0,throttleEndTimeMillis:Date.now()},z=new AnalyticsAbortSignal;return setTimeout(async()=>{z.abort()},FETCH_TIMEOUT_MILLIS),attemptFetchDynamicConfigWithRetry({appId:b,apiKey:R,measurementId:M},O,z,y)}async function attemptFetchDynamicConfigWithRetry(r,{throttleEndTimeMillis:y,backoffCount:x},b,R=defaultRetryData){const{appId:M,measurementId:O}=r;try{await setAbortableTimeout(b,y)}catch(z){if(O)return logger.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${O} provided in the "measurementId" field in the local Firebase config. [${z?.message}
201]`),{appId:M,measurementId:O};throw z}try{const z=await fetchDynamicConfig(r);return R.deleteThrottleMetadata(M),z}catch(z){const U=z;if(!isRetriableError(U)){if(R.deleteThrottleMetadata(M),O)return logger.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${O} provided in the "measurementId" field in the local Firebase config. [${U?.message}]`),{appId:M,measurementId:O};throw z}const G=Number(U?.customData?.httpStatus)===503?calculateBackoffMillis(x,R.intervalMillis,LONG_RETRY_FACTOR):calculateBackoffMillis(x,R.intervalMillis),q={throttleEndTimeMillis:Date.now()+G,backoffCount:x+1};return R.setThrottleMetadata(M,q),logger.debug(`Calling attemptFetch again in ${G} millis`),attemptFetchDynamicConfigWithRetry(r,q,b,R)}}function setAbortableTimeout(r,y){return new Promise((x,b)=>{const R=Math.max(y-Date.now(),0),M=setTimeout(x,R);r.addEventListener(()=>{clearTimeout(M),b(ERROR_FACTORY.create("fetch-throttle",{throttleEndTimeMillis:y}))})})}function isRetriableError(r){if(!(r instanceof FirebaseError)||!r.customData)return!1;const y=Number(r.customData.httpStatus);return y===429||y===500||y===503||y===504}class AnalyticsAbortSignal{constructor(){this.listeners=[]}addEventListener(y){this.listeners.push(y)}abort(){this.listeners.forEach(y=>y())}}async function logEvent$1(r,y,x,b,R){if(R&&R.global){r("event",x,b);return}else{const M=await y,O={...b,send_to:M};r("event",x,O)}}async function setUserProperties$1(r,y,x,b){if(b&&b.global){const R={};for(const M of Object.keys(x))R[`user_properties.${M}`]=x[M];return r("set",R),Promise.resolve()}else{const R=await y;r("config",R,{update:!0,user_properties:x})}}async function validateIndexedDB(){if(isIndexedDBAvailable())try{await validateIndexedDBOpenable()}catch(r){return logger.warn(ERROR_FACTORY.create("indexeddb-unavailable",{errorInfo:r?.toString()}).message),!1}else return logger.warn(ERROR_FACTORY.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function _initializeAnalytics(r,y,x,b,R,M,O){const z=fetchDynamicConfigWithRetry(r);z.then(X=>{x[X.measurementId]=X.appId,r.options.measurementId&&X.measurementId!==r.options.measurementId&&logger.warn(`The measurement ID in the local Firebase config (${r.options.measurementId}) does not match the measurement ID fetched from the server (${X.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(X=>logger.error(X)),y.push(z);const U=validateIndexedDB().then(X=>{if(X)return b.getId()}),[G,q]=await Promise.all([z,U]);findGtagScriptOnPage(M)||insertScriptTag(M,G.measurementId),R("js",new Date);const J=O?.config??{};return J[ORIGIN_KEY]="firebase",J.update=!0,q!=null&&(J[GA_FID_KEY]=q),R("config",G.measurementId,J),G.measurementId}class AnalyticsService{constructor(y){this.app=y}_delete(){return delete initializationPromisesMap[this.app.options.appId],Promise.resolve()}}let initializationPromisesMap={},dynamicConfigPromisesList=[];const measurementIdToAppId={};let dataLayerName="dataLayer",gtagName="gtag",gtagCoreFunction,wrappedGtagFunction,globalInitDone=!1;function warnOnBrowserContextMismatch(){const r=[];if(isBrowserExtension()&&r.push("This is a browser extension environment."),areCookiesEnabled()||r.push("Cookies are not available."),r.length>0){const y=r.map((b,R)=>`(${R+1}) ${b}`).join(" "),x=ERROR_FACTORY.create("invalid-analytics-context",{errorInfo:y});logger.warn(x.message)}}function factory$1(r,y,x){warnOnBrowserContextMismatch();const b=r.options.appId;if(!b)throw ERROR_FACTORY.create("no-app-id");if(!r.options.apiKey)if(r.options.measurementId)logger.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${r.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw ERROR_FACTORY.create("no-api-key");if(initializationPromisesMap[b]!=null)throw ERROR_FACTORY.create("already-exists",{id:b});if(!globalInitDone){getOrCreateDataLayer(dataLayerName);const{wrappedGtag:M,gtagCore:O}=wrapOrCreateGtag(initializationPromisesMap,dynamicConfigPromisesList,measurementIdToAppId,dataLayerName,gtagName);wrappedGtagFunction=M,gtagCoreFunction=O,globalInitDone=!0}return initializationPromisesMap[b]=_initializeAnalytics(r,dynamicConfigPromisesList,measurementIdToAppId,y,gtagCoreFunction,dataLayerName,x),new AnalyticsService(r)}function getAnalytics(r=getApp()){r=getModularInstance(r);const y=_getProvider(r,ANALYTICS_TYPE);return y.isInitialized()?y.getImmediate():initializeAnalytics(r)}function initializeAnalytics(r,y={}){const x=_getProvider(r,ANALYTICS_TYPE);if(x.isInitialized()){const R=x.getImmediate();if(deepEqual(y,x.getOptions()))return R;throw ERROR_FACTORY.create("already-initialized")}return x.initialize({options:y})}function setUserProperties(r,y,x){r=getModularInstance(r),setUserProperties$1(wrappedGtagFunction,initializationPromisesMap[r.app.options.appId],y,x).catch(b=>logger.error(b))}function logEvent(r,y,x,b){r=getModularInstance(r),logEvent$1(wrappedGtagFunction,initializationPromisesMap[r.app.options.appId],y,x,b).catch(R=>logger.error(R))}const name="@firebase/analytics",version="0.10.19";function registerAnalytics(){_registerComponent(new Component(ANALYTICS_TYPE,(y,{options:x})=>{const b=y.getProvider("app").getImmediate(),R=y.getProvider("installations-internal").getImmediate();return factory$1(b,R,x)},"PUBLIC")),_registerComponent(new Component("analytics-internal",r,"PRIVATE")),registerVersion(name,version),registerVersion(name,version,"esm2020");function r(y){try{const x=y.getProvider(ANALYTICS_TYPE).getImmediate();return{logEvent:(b,R,M)=>logEvent(x,b,R,M),setUserProperties:(b,R)=>setUserProperties(x,b,R)}}catch(x){throw ERROR_FACTORY.create("interop-component-reg-failed",{reason:x})}}}registerAnalytics();const firebaseConfig={apiKey:"AIzaSyAr8Jh64XsRlvwk8IsSyaKMxCZOl3l9FiY",authDomain:"westx-web.firebaseapp.com",projectId:"westx-web",storageBucket:"westx-web.appspot.com",messagingSenderId:"714488118103",appId:"1:714488118103:web:23ddf70a606a9b5dbf1c12",measurementId:"G-00HFE793PW"},app=initializeApp(firebaseConfig),auth=getAuth(app);getAnalytics(app);const googleProvider=new GoogleAuthProvider;function bind(r,y){return function(){return r.apply(y,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(r=>y=>{const x=toString$1.call(y);return r[x]||(r[x]=x.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=r=>(r=r.toLowerCase(),y=>kindOf(y)===r),typeOfTest=r=>y=>typeof y===r,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(r){return r!==null&&!isUndefined(r)&&r.constructor!==null&&!isUndefined(r.constructor)&&isFunction$1(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(r){let y;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?y=ArrayBuffer.isView(r):y=r&&r.buffer&&isArrayBuffer(r.buffer),y}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$2=r=>r!==null&&typeof r=="object",isBoolean=r=>r===!0||r===!1,isPlainObject$1=r=>{if(kindOf(r)!=="object")return!1;const y=getPrototypeOf(r);
vendor: 5,405 bytes, line 201
201return(y===null||y===Object.prototype||Object.getPrototypeOf(y)===null)&&!(toStringTag in r)&&!(iterator in r)},isEmptyObject=r=>{if(!isObject$2(r)||isBuffer(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=r=>isObject$2(r)&&isFunction$1(r.pipe),isFormData=r=>{let y;return r&&(typeof FormData=="function"&&r instanceof FormData||isFunction$1(r.append)&&((y=kindOf(r))==="formdata"||y==="object"&&isFunction$1(r.toString)&&r.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(r,y,{allOwnKeys:x=!1}={}){if(r===null||typeof r>"u")return;let b,R;if(typeof r!="object"&&(r=[r]),isArray(r))for(b=0,R=r.length;b<R;b++)y.call(null,r[b],b,r);else{if(isBuffer(r))return;const M=x?Object.getOwnPropertyNames(r):Object.keys(r),O=M.length;let z;for(b=0;b<O;b++)z=M[b],y.call(null,r[z],z,r)}}function findKey(r,y){if(isBuffer(r))return null;y=y.toLowerCase();const x=Object.keys(r);let b=x.length,R;for(;b-- >0;)if(R=x[b],y===R.toLowerCase())return R;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=r=>!isUndefined(r)&&r!==_global;function merge(){const{caseless:r,skipUndefined:y}=isContextDefined(this)&&this||{},x={},b=(R,M)=>{const O=r&&findKey(x,M)||M;isPlainObject$1(x[O])&&isPlainObject$1(R)?x[O]=merge(x[O],R):isPlainObject$1(R)?x[O]=merge({},R):isArray(R)?x[O]=R.slice():(!y||!isUndefined(R))&&(x[O]=R)};for(let R=0,M=arguments.length;R<M;R++)arguments[R]&&forEach(arguments[R],b);return x}const extend=(r,y,x,{allOwnKeys:b}={})=>(forEach(y,(R,M)=>{x&&isFunction$1(R)?r[M]=bind(R,x):r[M]=R},{allOwnKeys:b}),r),stripBOM=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),inherits=(r,y,x,b)=>{r.prototype=Object.create(y.prototype,b),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:y.prototype}),x&&Object.assign(r.prototype,x)},toFlatObject=(r,y,x,b)=>{let R,M,O;const z={};if(y=y||{},r==null)return y;do{for(R=Object.getOwnPropertyNames(r),M=R.length;M-- >0;)O=R[M],(!b||b(O,r,y))&&!z[O]&&(y[O]=r[O],z[O]=!0);r=x!==!1&&getPrototypeOf(r)}while(r&&(!x||x(r,y))&&r!==Object.prototype);return y},endsWith=(r,y,x)=>{r=String(r),(x===void 0||x>r.length)&&(x=r.length),x-=y.length;const b=r.indexOf(y,x);return b!==-1&&b===x},toArray$1=r=>{if(!r)return null;if(isArray(r))return r;let y=r.length;if(!isNumber(y))return null;const x=new Array(y);for(;y-- >0;)x[y]=r[y];return x},isTypedArray=(r=>y=>r&&y instanceof r)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(r,y)=>{const b=(r&&r[iterator]).call(r);let R;for(;(R=b.next())&&!R.done;){const M=R.value;y.call(r,M[0],M[1])}},matchAll=(r,y)=>{let x;const b=[];for(;(x=r.exec(y))!==null;)b.push(x);return b},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(x,b,R){return b.toUpperCase()+R}),hasOwnProperty=(({hasOwnProperty:r})=>(y,x)=>r.call(y,x))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(r,y)=>{const x=Object.getOwnPropertyDescriptors(r),b={};forEach(x,(R,M)=>{let O;(O=y(R,M,r))!==!1&&(b[M]=O||R)}),Object.defineProperties(r,b)},freezeMethods=r=>{reduceDescriptors(r,(y,x)=>{if(isFunction$1(r)&&["arguments","caller","callee"].indexOf(x)!==-1)return!1;const b=r[x];if(isFunction$1(b)){if(y.enumerable=!1,"writable"in y){y.writable=!1;return}y.set||(y.set=()=>{throw Error("Can not rewrite read-only method '"+x+"'")})}})},toObjectSet=(r,y)=>{const x={},b=R=>{R.forEach(M=>{x[M]=!0})};return isArray(r)?b(r):b(String(r).split(y)),x},noop$2=()=>{},toFiniteNumber=(r,y)=>r!=null&&Number.isFinite(r=+r)?r:y;function isSpecCompliantForm(r){return!!(r&&isFunction$1(r.append)&&r[toStringTag]==="FormData"&&r[iterator])}const toJSONObject=r=>{const y=new Array(10),x=(b,R)=>{if(isObject$2(b)){if(y.indexOf(b)>=0)return;if(isBuffer(b))return b;if(!("toJSON"in b)){y[R]=b;const M=isArray(b)?[]:{};return forEach(b,(O,z)=>{const U=x(O,R+1);!isUndefined(U)&&(M[z]=U)}),y[R]=void 0,M}}return b};return x(r,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=r=>r&&(isObject$2(r)||isFunction$1(r))&&isFunction$1(r.then)&&isFunction$1(r.catch),_setImmediate=((r,y)=>r?setImmediate:y?((x,b)=>(_global.addEventListener("message",({source:R,data:M})=>{R===_global&&M===x&&b.length&&b.shift()()},!1),R=>{b.push(R),_global.postMessage(x,"*")}))(`axios@${Math.random()}`,[]):x=>setTimeout(x))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=r=>r!=null&&isFunction$1(r[iterator]),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$2,isPlainObject:isPlainObject$1,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEac
vendor: 4,306 bytes, line 201
201hEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$2,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError$1(r,y,x,b,R){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",y&&(this.code=y),x&&(this.config=x),b&&(this.request=b),R&&(this.response=R,this.status=R.status?R.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{descriptors[r]={value:r}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(r,y,x,b,R,M)=>{const O=Object.create(prototype$1);utils$1.toFlatObject(r,O,function(q){return q!==Error.prototype},G=>G!=="isAxiosError");const z=r&&r.message?r.message:"Error",U=y==null&&r?r.code:y;return AxiosError$1.call(O,z,U,x,b,R),r&&O.cause==null&&Object.defineProperty(O,"cause",{value:r,configurable:!0}),O.name=r&&r.name||"Error",M&&Object.assign(O,M),O};const httpAdapter=null;function isVisitable(r){return utils$1.isPlainObject(r)||utils$1.isArray(r)}function removeBrackets(r){return utils$1.endsWith(r,"[]")?r.slice(0,-2):r}function renderKey(r,y,x){return r?r.concat(y).map(function(R,M){return R=removeBrackets(R),!x&&M?"["+R+"]":R}).join(x?".":""):y}function isFlatArray(r){return utils$1.isArray(r)&&!r.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(y){return/^is[A-Z]/.test(y)});function toFormData$1(r,y,x){if(!utils$1.isObject(r))throw new TypeError("target must be an object");y=y||new FormData,x=utils$1.toFlatObject(x,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ue,ye){return!utils$1.isUndefined(ye[ue])});const b=x.metaTokens,R=x.visitor||q,M=x.dots,O=x.indexes,U=(x.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(y);if(!utils$1.isFunction(R))throw new TypeError("visitor must be a function");function G(te){if(te===null)return"";if(utils$1.isDate(te))return te.toISOString();if(utils$1.isBoolean(te))return te.toString();if(!U&&utils$1.isBlob(te))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(te)||utils$1.isTypedArray(te)?U&&typeof Blob=="function"?new Blob([te]):Buffer.from(te):te}function q(te,ue,ye){let oe=te;if(te&&!ye&&typeof te=="object"){if(utils$1.endsWith(ue,"{}"))ue=b?ue:ue.slice(0,-2),te=JSON.stringify(te);else if(utils$1.isArray(te)&&isFlatArray(te)||(utils$1.isFileList(te)||utils$1.endsWith(ue,"[]"))&&(oe=utils$1.toArray(te)))return ue=removeBrackets(ue),oe.forEach(function(ae,pe){!(utils$1.isUndefined(ae)||ae===null)&&y.append(O===!0?renderKey([ue],pe,M):O===null?ue:ue+"[]",G(ae))}),!1}return isVisitable(te)?!0:(y.append(renderKey(ye,ue,M),G(te)),!1)}const J=[],X=Object.assign(predicates,{defaultVisitor:q,convertValue:G,isVisitable});function fe(te,ue){if(!utils$1.isUndefined(te)){if(J.indexOf(te)!==-1)throw Error("Circular reference detected in "+ue.join("."));J.push(te),utils$1.forEach(te,function(oe,ne){(!(utils$1.isUndefined(oe)||oe===null)&&R.call(y,oe,utils$1.isString(ne)?ne.trim():ne,ue,X))===!0&&fe(oe,ue?ue.concat(ne):[ne])}),J.pop()}}if(!utils$1.isObject(r))throw new TypeError("data must be an object");return fe(r),y}function encode$2(r){const y={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(b){return y[b]})}function AxiosURLSearchParams(r,y){this._pairs=[],r&&toFormData$1(r,this,y)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(y,x){this._pairs.push([y,x])};
vendor: 4,093 bytes, line 201
201prototype.toString=function(y){const x=y?function(b){return y.call(this,b,encode$2)}:encode$2;return this._pairs.map(function(R){return x(R[0])+"="+x(R[1])},"").join("&")};function encode$1(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(r,y,x){if(!y)return r;const b=x&&x.encode||encode$1;utils$1.isFunction(x)&&(x={serialize:x});const R=x&&x.serialize;let M;if(R?M=R(y,x):M=utils$1.isURLSearchParams(y)?y.toString():new AxiosURLSearchParams(y,x).toString(b),M){const O=r.indexOf("#");O!==-1&&(r=r.slice(0,O)),r+=(r.indexOf("?")===-1?"?":"&")+M}return r}class InterceptorManager{constructor(){this.handlers=[]}use(y,x,b){return this.handlers.push({fulfilled:y,rejected:x,synchronous:b?b.synchronous:!1,runWhen:b?b.runWhen:null}),this.handlers.length-1}eject(y){this.handlers[y]&&(this.handlers[y]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(y){utils$1.forEach(this.handlers,function(b){b!==null&&y(b)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(r,y){return toFormData$1(r,new platform.classes.URLSearchParams,{visitor:function(x,b,R,M){return platform.isNode&&utils$1.isBuffer(x)?(this.append(b,x.toString("base64")),!1):M.defaultVisitor.apply(this,arguments)},...y})}function parsePropPath(r){return utils$1.matchAll(/\w+|\[(\w*)]/g,r).map(y=>y[0]==="[]"?"":y[1]||y[0])}function arrayToObject(r){const y={},x=Object.keys(r);let b;const R=x.length;let M;for(b=0;b<R;b++)M=x[b],y[M]=r[M];return y}function formDataToJSON(r){function y(x,b,R,M){let O=x[M++];if(O==="__proto__")return!0;const z=Number.isFinite(+O),U=M>=x.length;return O=!O&&utils$1.isArray(R)?R.length:O,U?(utils$1.hasOwnProp(R,O)?R[O]=[R[O],b]:R[O]=b,!z):((!R[O]||!utils$1.isObject(R[O]))&&(R[O]=[]),y(x,b,R[O],M)&&utils$1.isArray(R[O])&&(R[O]=arrayToObject(R[O])),!z)}if(utils$1.isFormData(r)&&utils$1.isFunction(r.entries)){const x={};return utils$1.forEachEntry(r,(b,R)=>{y(parsePropPath(b),R,x,0)}),x}return null}function stringifySafely(r,y,x){if(utils$1.isString(r))try{return(y||JSON.parse)(r),utils$1.trim(r)}catch(b){if(b.name!=="SyntaxError")throw b}return(x||JSON.stringify)(r)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(y,x){const b=x.getContentType()||"",R=b.indexOf("application/json")>-1,M=utils$1.isObject(y);if(M&&utils$1.isHTMLForm(y)&&(y=new FormData(y)),utils$1.isFormData(y))return R?JSON.stringify(formDataToJSON(y)):y;if(utils$1.isArrayBuffer(y)||utils$1.isBuffer(y)||utils$1.isStream(y)||utils$1.isFile(y)||utils$1.isBlob(y)||utils$1.isReadableStream(y))return y;if(utils$1.isArrayBufferView(y))return y.buffer;if(utils$1.isURLSearchParams(y))return x.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),y.toString();let z;if(M){if(b.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(y,this.formSerializer).toString();if((z=utils$1.isFileList(y))||b.indexOf("multipart/form-data")>-1){const U=this.env&&this.env.FormData;return toFormData$1(z?{"files[]":y}
vendor: 4,370 bytes, lines 201-202
201:y,U&&new U,this.formSerializer)}}return M||R?(x.setContentType("application/json",!1),stringifySafely(y)):y}],transformResponse:[function(y){const x=this.transitional||defaults.transitional,b=x&&x.forcedJSONParsing,R=this.responseType==="json";if(utils$1.isResponse(y)||utils$1.isReadableStream(y))return y;if(y&&utils$1.isString(y)&&(b&&!this.responseType||R)){const O=!(x&&x.silentJSONParsing)&&R;try{return JSON.parse(y,this.parseReviver)}catch(z){if(O)throw z.name==="SyntaxError"?AxiosError$1.from(z,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):z}}return y}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(y){return y>=200&&y<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],r=>{defaults.headers[r]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=r=>{const y={};let x,b,R;return r&&r.split(`
202`).forEach(function(O){R=O.indexOf(":"),x=O.substring(0,R).trim().toLowerCase(),b=O.substring(R+1).trim(),!(!x||y[x]&&ignoreDuplicateOf[x])&&(x==="set-cookie"?y[x]?y[x].push(b):y[x]=[b]:y[x]=y[x]?y[x]+", "+b:b)}),y},$internals=Symbol("internals");function normalizeHeader(r){return r&&String(r).trim().toLowerCase()}function normalizeValue(r){return r===!1||r==null?r:utils$1.isArray(r)?r.map(normalizeValue):String(r)}function parseTokens(r){const y=Object.create(null),x=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let b;for(;b=x.exec(r);)y[b[1]]=b[2];return y}const isValidHeaderName=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function matchHeaderValue(r,y,x,b,R){if(utils$1.isFunction(b))return b.call(this,y,x);if(R&&(y=x),!!utils$1.isString(y)){if(utils$1.isString(b))return y.indexOf(b)!==-1;if(utils$1.isRegExp(b))return b.test(y)}}function formatHeader(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(y,x,b)=>x.toUpperCase()+b)}function buildAccessors(r,y){const x=utils$1.toCamelCase(" "+y);["get","set","has"].forEach(b=>{Object.defineProperty(r,b+x,{value:function(R,M,O){return this[b].call(this,y,R,M,O)},configurable:!0})})}let AxiosHeaders$1=class{constructor(y){y&&this.set(y)}set(y,x,b){const R=this;function M(z,U,G){const q=normalizeHeader(U);if(!q)throw new Error("header name must be a non-empty string");const J=utils$1.findKey(R,q);(!J||R[J]===void 0||G===!0||G===void 0&&R[J]!==!1)&&(R[J||U]=normalizeValue(z))}const O=(z,U)=>utils$1.forEach(z,(G,q)=>M(G,q,U));if(utils$1.isPlainObject(y)||y instanceof this.constructor)O(y,x);else if(utils$1.isString(y)&&(y=y.trim())&&!isValidHeaderName(y))O(parseHeaders(y),x);else if(utils$1.isObject(y)&&utils$1.isIterable(y)){let z={},U,G;for(const q of y){if(!utils$1.isArray(q))throw TypeError("Object iterator must return a key-value pair");z[G=q[0]]=(U=z[G])?utils$1.isArray(U)?[...U,q[1]]:[U,q[1]]:q[1]}O(z,x)}else y!=null&&M(x,y,b);return this}get(y,x){if(y=normalizeHeader(y),y){const b=utils$1.findKey(this,y);if(b){const R=this[b];if(!x)return R;if(x===!0)return parseTokens(R);if(utils$1.isFunction(x))return x.call(this,R,b);if(utils$1.isRegExp(x))return x.exec(R);throw new TypeError("parser must be boolean|regexp|function")}}}has(y,x){if(y=normalizeHeader(y),y){const b=utils$1.findKey(this,y);return!!(b&&this[b]!==void 0&&(!x||matchHeaderValue(this,this[b],b,x)))}return!1}delete(y,x){const b=this;let R=!1;function M(O){if(O=normalizeHeader(O),O){const z=utils$1.findKey(b,O);z&&(!x||matchHeaderValue(b,b[z],z,x))&&(delete b[z],R=!0)}}return utils$1.isArray(y)?y.forEach(M):M(y),R}clear(y){const x=Object.keys(this);let b=x.length,R=!1;for(;b--;){const M=x[b];(!y||matchHeaderValue(this,this[M],M,y,!0))&&(delete this[M],R=!0)}return R}normalize(y){const x=this,b={};return utils$1.forEach(this,(R,M)=>{const O=utils$1.findKey(b,M);if(O){x[O]=normalizeValue(R),delete x[M];return}const z=y?formatHeader(M):String(M).trim();z!==M&&delete x[M],x[z]=normalizeValue(R),b[z]=!0}),this}concat(...y){return this.constructor.concat(this,...y)}toJSON(y){const x=Object.create(null);
vendor: 5,143 bytes, lines 202-203
202return utils$1.forEach(this,(b,R)=>{b!=null&&b!==!1&&(x[R]=y&&utils$1.isArray(b)?b.join(", "):b)}),x}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([y,x])=>y+": "+x).join(`
203`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(y){return y instanceof this?y:new this(y)}static concat(y,...x){const b=new this(y);return x.forEach(R=>b.set(R)),b}static accessor(y){const b=(this[$internals]=this[$internals]={accessors:{}}).accessors,R=this.prototype;function M(O){const z=normalizeHeader(O);b[z]||(buildAccessors(R,O),b[z]=!0)}return utils$1.isArray(y)?y.forEach(M):M(y),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:r},y)=>{let x=y[0].toUpperCase()+y.slice(1);return{get:()=>r,set(b){this[x]=b}}});utils$1.freezeMethods(AxiosHeaders$1);function transformData(r,y){const x=this||defaults,b=y||x,R=AxiosHeaders$1.from(b.headers);let M=b.data;return utils$1.forEach(r,function(z){M=z.call(x,M,R.normalize(),y?y.status:void 0)}),R.normalize(),M}function isCancel$1(r){return!!(r&&r.__CANCEL__)}function CanceledError$1(r,y,x){AxiosError$1.call(this,r??"canceled",AxiosError$1.ERR_CANCELED,y,x),this.name="CanceledError"}utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(r,y,x){const b=x.config.validateStatus;!x.status||!b||b(x.status)?r(x):y(new AxiosError$1("Request failed with status code "+x.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(x.status/100)-4],x.config,x.request,x))}function parseProtocol(r){const y=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return y&&y[1]||""}function speedometer(r,y){r=r||10;const x=new Array(r),b=new Array(r);let R=0,M=0,O;return y=y!==void 0?y:1e3,function(U){const G=Date.now(),q=b[M];O||(O=G),x[R]=U,b[R]=G;let J=M,X=0;for(;J!==R;)X+=x[J++],J=J%r;if(R=(R+1)%r,R===M&&(M=(M+1)%r),G-O<y)return;const fe=q&&G-q;return fe?Math.round(X*1e3/fe):void 0}}function throttle(r,y){let x=0,b=1e3/y,R,M;const O=(G,q=Date.now())=>{x=q,R=null,M&&(clearTimeout(M),M=null),r(...G)};return[(...G)=>{const q=Date.now(),J=q-x;J>=b?O(G,q):(R=G,M||(M=setTimeout(()=>{M=null,O(R)},b-J)))},()=>R&&O(R)]}const progressEventReducer=(r,y,x=3)=>{let b=0;const R=speedometer(50,250);return throttle(M=>{const O=M.loaded,z=M.lengthComputable?M.total:void 0,U=O-b,G=R(U),q=O<=z;b=O;const J={loaded:O,total:z,progress:z?O/z:void 0,bytes:U,rate:G||void 0,estimated:G&&z&&q?(z-O)/G:void 0,event:M,lengthComputable:z!=null,[y?"download":"upload"]:!0};r(J)},x)},progressEventDecorator=(r,y)=>{const x=r!=null;return[b=>y[0]({lengthComputable:x,total:r,loaded:b}),y[1]]},asyncDecorator=r=>(...y)=>utils$1.asap(()=>r(...y)),isURLSameOrigin=platform.hasStandardBrowserEnv?((r,y)=>x=>(x=new URL(x,platform.origin),r.protocol===x.protocol&&r.host===x.host&&(y||r.port===x.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(r,y,x,b,R,M,O){if(typeof document>"u")return;const z=[`${r}=${encodeURIComponent(y)}`];utils$1.isNumber(x)&&z.push(`expires=${new Date(x).toUTCString()}`),utils$1.isString(b)&&z.push(`path=${b}`),utils$1.isString(R)&&z.push(`domain=${R}`),M===!0&&z.push("secure"),utils$1.isString(O)&&z.push(`SameSite=${O}`),document.cookie=z.join("; ")},read(r){if(typeof document>"u")return null;const y=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return y?decodeURIComponent(y[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function combineURLs(r,y){return y?r.replace(/\/?\/$/,"")+"/"+y.replace(/^\/+/,""):r}function buildFullPath(r,y,x){let b=!isAbsoluteURL(y);return r&&(b||x==!1)?combineURLs(r,y):y}const headersToObject=r=>r instanceof AxiosHeaders$1?{...r}:r;function mergeConfig$1(r,y){y=y||{};const x={};function b(G,q,J,X){return utils$1.isPlainObject(G)&&utils$1.isPlainObject(q)?utils$1.merge.call({caseless:X},G,q):utils$1.isPlainObject(q)?utils$1.merge({},q):utils$1.isArray(q)?q.slice():q}function R(G,q,J,X){if(utils$1.isUndefined(q)){if(!utils$1.isUndefined(G))return b(void 0,G,J,X)}else return b(G,q,J,X)}function M(G,q){if(!utils$1.isUndefined(q))return b(void 0,q)}function O(G,q){if(utils$1.isUndefined(q)){if(!utils$1.isUndefined(G))return b(void 0,G)}else return b(void 0,q)}function z(G,q,J){if(J in y)return b(G,q);if(J in r)return b(void 0,G)}const U={url:M,method:M,data:M,baseURL:O,transformRequest:O,transformResponse:O,paramsSerializer:O,timeout:O,timeoutMessage:O,withCredentials:O,withXSRFToken:O,adapter:O,responseType:O,xsrfCookieName:O,xsrfHeaderName:O,onUploadProgress:O,onDownloadProgress:O,decompress:O,maxContentLength:O,maxBodyLength:O,beforeRedirect:O,transport:O,httpAgent:O,httpsAgent:O,cancelToken:O,socketPath:O,responseEncoding:O,validateStatus:z,headers:(G,q,J)=>R(headersToObject(G),headersToObject(q),J,!0)};
vendor: 15,020 bytes, lines 203-206
203return utils$1.forEach(Object.keys({...r,...y}),function(q){const J=U[q]||R,X=J(r[q],y[q],q);utils$1.isUndefined(X)&&J!==z||(x[q]=X)}),x}const resolveConfig=r=>{const y=mergeConfig$1({},r);let{data:x,withXSRFToken:b,xsrfHeaderName:R,xsrfCookieName:M,headers:O,auth:z}=y;if(y.headers=O=AxiosHeaders$1.from(O),y.url=buildURL(buildFullPath(y.baseURL,y.url,y.allowAbsoluteUrls),r.params,r.paramsSerializer),z&&O.set("Authorization","Basic "+btoa((z.username||"")+":"+(z.password?unescape(encodeURIComponent(z.password)):""))),utils$1.isFormData(x)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)O.setContentType(void 0);else if(utils$1.isFunction(x.getHeaders)){const U=x.getHeaders(),G=["content-type","content-length"];Object.entries(U).forEach(([q,J])=>{G.includes(q.toLowerCase())&&O.set(q,J)})}}if(platform.hasStandardBrowserEnv&&(b&&utils$1.isFunction(b)&&(b=b(y)),b||b!==!1&&isURLSameOrigin(y.url))){const U=R&&M&&cookies.read(M);U&&O.set(R,U)}return y},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(r){return new Promise(function(x,b){const R=resolveConfig(r);let M=R.data;const O=AxiosHeaders$1.from(R.headers).normalize();let{responseType:z,onUploadProgress:U,onDownloadProgress:G}=R,q,J,X,fe,te;function ue(){fe&&fe(),te&&te(),R.cancelToken&&R.cancelToken.unsubscribe(q),R.signal&&R.signal.removeEventListener("abort",q)}let ye=new XMLHttpRequest;ye.open(R.method.toUpperCase(),R.url,!0),ye.timeout=R.timeout;function oe(){if(!ye)return;const ae=AxiosHeaders$1.from("getAllResponseHeaders"in ye&&ye.getAllResponseHeaders()),je={data:!z||z==="text"||z==="json"?ye.responseText:ye.response,status:ye.status,statusText:ye.statusText,headers:ae,config:r,request:ye};settle(function(Ue){x(Ue),ue()},function(Ue){b(Ue),ue()},je),ye=null}"onloadend"in ye?ye.onloadend=oe:ye.onreadystatechange=function(){!ye||ye.readyState!==4||ye.status===0&&!(ye.responseURL&&ye.responseURL.indexOf("file:")===0)||setTimeout(oe)},ye.onabort=function(){ye&&(b(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,r,ye)),ye=null)},ye.onerror=function(pe){const je=pe&&pe.message?pe.message:"Network Error",Ve=new AxiosError$1(je,AxiosError$1.ERR_NETWORK,r,ye);Ve.event=pe||null,b(Ve),ye=null},ye.ontimeout=function(){let pe=R.timeout?"timeout of "+R.timeout+"ms exceeded":"timeout exceeded";const je=R.transitional||transitionalDefaults;R.timeoutErrorMessage&&(pe=R.timeoutErrorMessage),b(new AxiosError$1(pe,je.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,r,ye)),ye=null},M===void 0&&O.setContentType(null),"setRequestHeader"in ye&&utils$1.forEach(O.toJSON(),function(pe,je){ye.setRequestHeader(je,pe)}),utils$1.isUndefined(R.withCredentials)||(ye.withCredentials=!!R.withCredentials),z&&z!=="json"&&(ye.responseType=R.responseType),G&&([X,te]=progressEventReducer(G,!0),ye.addEventListener("progress",X)),U&&ye.upload&&([J,fe]=progressEventReducer(U),ye.upload.addEventListener("progress",J),ye.upload.addEventListener("loadend",fe)),(R.cancelToken||R.signal)&&(q=ae=>{ye&&(b(!ae||ae.type?new CanceledError$1(null,r,ye):ae),ye.abort(),ye=null)},R.cancelToken&&R.cancelToken.subscribe(q),R.signal&&(R.signal.aborted?q():R.signal.addEventListener("abort",q)));const ne=parseProtocol(R.url);if(ne&&platform.protocols.indexOf(ne)===-1){b(new AxiosError$1("Unsupported protocol "+ne+":",AxiosError$1.ERR_BAD_REQUEST,r));return}ye.send(M||null)})},composeSignals=(r,y)=>{const{length:x}=r=r?r.filter(Boolean):[];if(y||x){let b=new AbortController,R;const M=function(G){if(!R){R=!0,z();const q=G instanceof Error?G:this.reason;b.abort(q instanceof AxiosError$1?q:new CanceledError$1(q instanceof Error?q.message:q))}};let O=y&&setTimeout(()=>{O=null,M(new AxiosError$1(`timeout ${y} of ms exceeded`,AxiosError$1.ETIMEDOUT))},y);const z=()=>{r&&(O&&clearTimeout(O),O=null,r.forEach(G=>{G.unsubscribe?G.unsubscribe(M):G.removeEventListener("abort",M)}),r=null)};r.forEach(G=>G.addEventListener("abort",M));const{signal:U}=b;return U.unsubscribe=()=>utils$1.asap(z),U}},streamChunk=function*(r,y){let x=r.byteLength;if(x<y){yield r;return}let b=0,R;for(;b<x;)R=b+y,yield r.slice(b,R),b=R},readBytes=async function*(r,y){for await(const x of readStream(r))yield*streamChunk(x,y)},readStream=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const y=r.getReader();try{for(;;){const{done:x,value:b}=await y.read();if(x)break;yield b}}finally{await y.cancel()}},trackStream=(r,y,x,b)=>{const R=readBytes(r,y);let M=0,O,z=U=>{O||(O=!0,b&&b(U))};return new ReadableStream({async pull(U){try{const{done:G,value:q}=await R.next();if(G){z(),U.close();return}let J=q.byteLength;if(x){let X=M+=J;x(X)}U.enqueue(new Uint8Array(q))}catch(G){throw z(G),G}},cancel(U){return z(U),R.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$1,globalFetchAPI=(({Request:r,Response:y})=>({Request:r,Response:y}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test$1=(r,...y)=>{try{return!!r(...y)}catch{return!1}},factory=r=>{r=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,r);const{fetch:y,Request:x,Response:b}=r,R=y?isFunction(y):typeof fetch=="function",M=isFunction(x),O=isFunction(b);if(!R)return!1;const z=R&&isFunction(ReadableStream$1),U=R&&(typeof TextEncoder$1=="function"?(te=>ue=>te.encode(ue))(new TextEncoder$1):async te=>new Uint8Array(await new x(te).arrayBuffer())),G=M&&z&&test$1(()=>{let te=!1;const ue=new x(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return te=!0,"half"}}).headers.has("Content-Type");return te&&!ue}),q=O&&z&&test$1(()=>utils$1.isReadableStream(new b("").body)),J={stream:q&&(te=>te.body)};R&&["text","arrayBuffer","blob","formData","stream"].forEach(te=>{!J[te]&&(J[te]=(ue,ye)=>{let oe=ue&&ue[te];if(oe)return oe.call(ue);throw new AxiosError$1(`Response type '${te}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,ye)})});const X=async te=>{if(te==null)return 0;if(utils$1.isBlob(te))return te.size;if(utils$1.isSpecCompliantForm(te))return(await new x(platform.origin,{method:"POST",body:te}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(te)||utils$1.isArrayBuffer(te))return te.byteLength;if(utils$1.isURLSearchParams(te)&&(te=te+""),utils$1.isString(te))return(await U(te)).byteLength},fe=async(te,ue)=>{const ye=utils$1.toFiniteNumber(te.getContentLength());return ye??X(ue)};return async te=>{let{url:ue,method:ye,data:oe,signal:ne,cancelToken:ae,timeout:pe,onDownloadProgress:je,onUploadProgress:Ve,responseType:Ue,headers:$e,withCredentials:We="same-origin",fetchOptions:ot}=resolveConfig(te),ct=y||fetch;Ue=Ue?(Ue+"").toLowerCase():"text";let it=composeSignals([ne,ae&&ae.toAbortSignal()],pe),ft=null;const dt=it&&it.unsubscribe&&(()=>{it.unsubscribe()});let nt;try{if(Ve&&G&&ye!=="get"&&ye!=="head"&&(nt=await fe($e,oe))!==0){let Le=new x(ue,{method:"POST",body:oe,duplex:"half"}),Ge;if(utils$1.isFormData(oe)&&(Ge=Le.headers.get("content-type"))&&$e.setContentType(Ge),Le.body){const[Ke,Ze]=progressEventDecorator(nt,progressEventReducer(asyncDecorator(Ve)));oe=trackStream(Le.body,DEFAULT_CHUNK_SIZE,Ke,Ze)}}utils$1.isString(We)||(We=We?"include":"omit");const Ne=M&&"credentials"in x.prototype,He={...ot,signal:it,method:ye.toUpperCase(),headers:$e.normalize().toJSON(),body:oe,duplex:"half",credentials:Ne?We:void 0};ft=M&&new x(ue,He);let _e=await(M?ct(ft,ot):ct(ue,He));const Be=q&&(Ue==="stream"||Ue==="response");if(q&&(je||Be&&dt)){const Le={};["status","statusText","headers"].forEach(ut=>{Le[ut]=_e[ut]});const Ge=utils$1.toFiniteNumber(_e.headers.get("content-length")),[Ke,Ze]=je&&progressEventDecorator(Ge,progressEventReducer(asyncDecorator(je),!0))||[];_e=new b(trackStream(_e.body,DEFAULT_CHUNK_SIZE,Ke,()=>{Ze&&Ze(),dt&&dt()}),Le)}Ue=Ue||"text";let Ye=await J[utils$1.findKey(J,Ue)||"text"](_e,te);return!Be&&dt&&dt(),await new Promise((Le,Ge)=>{settle(Le,Ge,{data:Ye,headers:AxiosHeaders$1.from(_e.headers),status:_e.status,statusText:_e.statusText,config:te,request:ft})})}catch(Ne){throw dt&&dt(),Ne&&Ne.name==="TypeError"&&/Load failed|fetch/i.test(Ne.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,te,ft),{cause:Ne.cause||Ne}):AxiosError$1.from(Ne,Ne&&Ne.code,te,ft)}}},seedCache=new Map,getFetch=r=>{let y=r&&r.env||{};const{fetch:x,Request:b,Response:R}=y,M=[b,R,x];let O=M.length,z=O,U,G,q=seedCache;for(;z--;)U=M[z],G=q.get(U),G===void 0&&q.set(U,G=z?new Map:factory(y)),q=G;return G};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(r,y)=>{if(r){try{Object.defineProperty(r,"name",{value:y})}catch{}Object.defineProperty(r,"adapterName",{value:y})}});const renderReason=r=>`- ${r}`,isResolvedHandle=r=>utils$1.isFunction(r)||r===null||r===!1;function getAdapter$1(r,y){r=utils$1.isArray(r)?r:[r];const{length:x}=r;let b,R;const M={};for(let O=0;O<x;O++){b=r[O];let z;if(R=b,!isResolvedHandle(b)&&(R=knownAdapters[(z=String(b)).toLowerCase()],R===void 0))throw new AxiosError$1(`Unknown adapter '${z}'`);if(R&&(utils$1.isFunction(R)||(R=R.get(y))))break;M[z||"#"+O]=R}if(!R){const O=Object.entries(M).map(([U,G])=>`adapter ${U} `+(G===!1?"is not supported by the environment":"is not available in the build"));let z=x?O.length>1?`since :
204`+O.map(renderReason).join(`
205`):" "+renderReason(O[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+z,"ERR_NOT_SUPPORT")}return R}const adapters={getAdapter:getAdapter$1,adapters:knownAdapters};function throwIfCancellationRequested(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new CanceledError$1(null,r)}function dispatchRequest(r){return throwIfCancellationRequested(r),r.headers=AxiosHeaders$1.from(r.headers),r.data=transformData.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(r.adapter||defaults.adapter,r)(r).then(function(b){return throwIfCancellationRequested(r),b.data=transformData.call(r,r.transformResponse,b),b.headers=AxiosHeaders$1.from(b.headers),b},function(b){return isCancel$1(b)||(throwIfCancellationRequested(r),b&&b.response&&(b.response.data=transformData.call(r,r.transformResponse,b.response),b.response.headers=AxiosHeaders$1.from(b.response.headers))),Promise.reject(b)})}const VERSION$1="1.13.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((r,y)=>{validators$1[r]=function(b){return typeof b===r||"a"+(y<1?"n ":" ")+r}});const deprecatedWarnings={};validators$1.transitional=function(y,x,b){function R(M,O){return"[Axios v"+VERSION$1+"] Transitional option '"+M+"'"+O+(b?". "+b:"")}return(M,O,z)=>{if(y===!1)throw new AxiosError$1(R(O," has been removed"+(x?" in "+x:"")),AxiosError$1.ERR_DEPRECATED);return x&&!deprecatedWarnings[O]&&(deprecatedWarnings[O]=!0,console.warn(R(O," has been deprecated since v"+x+" and will be removed in the near future"))),y?y(M,O,z):!0}};validators$1.spelling=function(y){return(x,b)=>(console.warn(`${b} is likely a misspelling of ${y}`),!0)};function assertOptions(r,y,x){if(typeof r!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const b=Object.keys(r);let R=b.length;for(;R-- >0;){const M=b[R],O=y[M];if(O){const z=r[M],U=z===void 0||O(z,M,r);if(U!==!0)throw new AxiosError$1("option "+M+" must be "+U,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(x!==!0)throw new AxiosError$1("Unknown option "+M,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(y){this.defaults=y||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(y,x){try{return await this._request(y,x)}catch(b){if(b instanceof Error){let R={};Error.captureStackTrace?Error.captureStackTrace(R):R=new Error;const M=R.stack?R.stack.replace(/^.+\n/,""):"";try{b.stack?M&&!String(b.stack).endsWith(M.replace(/^.+\n.+\n/,""))&&(b.stack+=`
206`+M):b.stack=M}catch{}}throw b}}_request(y,x){typeof y=="string"?(x=x||{},x.url=y):x=y||{},x=mergeConfig$1(this.defaults,x);const{transitional:b,paramsSerializer:R,headers:M}=x;b!==void 0&&validator.assertOptions(b,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),R!=null&&(utils$1.isFunction(R)?x.paramsSerializer={serialize:R}:validator.assertOptions(R,{encode:validators.function,serialize:validators.function},!0)),x.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?x.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:x.allowAbsoluteUrls=!0),validator.assertOptions(x,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),x.method=(x.method||this.defaults.method||"get").toLowerCase();let O=M&&utils$1.merge(M.common,M[x.method]);M&&utils$1.forEach(["delete","get","head","post","put","patch","common"],te=>{delete M[te]}),x.headers=AxiosHeaders$1.concat(O,M);const z=[];let U=!0;this.interceptors.request.forEach(function(ue){typeof ue.runWhen=="function"&&ue.runWhen(x)===!1||(U=U&&ue.synchronous,z.unshift(ue.fulfilled,ue.rejected))});const G=[];this.interceptors.response.forEach(function(ue){G.push(ue.fulfilled,ue.rejected)});let q,J=0,X;if(!U){const te=[dispatchRequest.bind(this),void 0];for(te.unshift(...z),te.push(...G),X=te.length,q=Promise.resolve(x);J<X;)q=q.then(te[J++],te[J++]);return q}X=z.length;let fe=x;for(;J<X;){const te=z[J++],ue=z[J++];try{fe=te(fe)}catch(ye){ue.call(this,ye);break}}try{q=dispatchRequest.call(this,fe)}catch(te){return Promise.reject(te)}for(J=0,X=G.length;J<X;)q=q.then(G[J++],G[J++]);return q}getUri(y){y=mergeConfig$1(this.defaults,y);const x=buildFullPath(y.baseURL,y.url,y.allowAbsoluteUrls);return buildURL(x,y.params,y.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function(y){Axios$1.prototype[y]=function(x,b){return this.request(mergeConfig$1(b||{},{method:y,url:x,data:(b||{}).data}))}});utils$1.forEach(["post","put","patch"],function(y){function x(b){return function(M,O,z){return this.request(mergeConfig$1(z||{},{method:y,headers:b?{"Content-Type":"multipart/form-data"}:{},url:M,data:O}))}}Axios$1.prototype[y]=x(),Axios$1.prototype[y+"Form"]=x(!0)});let CancelToken$1=class bd{constructor(y){if(typeof y!="function")throw new TypeError("executor must be a function.");let x;this.promise=new Promise(function(M){x=M});const b=this;this.promise.then(R=>{if(!b._listeners)return;let M=b._listeners.length;for(;M-- >0;)b._listeners[M](R);b._listeners=null}),this.promise.then=R=>{let M;const O=new Promise(z=>{b.subscribe(z),M=z}).then(R);return O.cancel=function(){b.unsubscribe(M)},O},y(function(M,O,z){b.reason||(b.reason=new CanceledError$1(M,O,z),x(b.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
206subscribe(y){if(this.reason){y(this.reason);return}this._listeners?this._listeners.push(y):this._listeners=[y]}unsubscribe(y){if(!this._listeners)return;const x=this._listeners.indexOf(y);x!==-1&&this._listeners.splice(x,1)}toAbortSignal(){const y=new AbortController,x=b=>{y.abort(b)};return this.subscribe(x),y.signal.unsubscribe=()=>this.unsubscribe(x),y.signal}static source(){let y;return{token:new bd(function(R){y=R}),cancel:y}}};function spread$1(r){return function(x){return r.apply(null,x)}}function isAxiosError$1(r){return utils$1.isObject(r)&&r.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode$1).forEach(([r,y])=>{HttpStatusCode$1[y]=r});function createInstance(r){const y=new Axios$1(r),x=bind(Axios$1.prototype.request,y);return utils$1.extend(x,Axios$1.prototype,y,{allOwnKeys:!0}),utils$1.extend(x,y,null,{allOwnKeys:!0}),x.create=function(R){return createInstance(mergeConfig$1(r,R))},x}const axios=createInstance(defaults);axios.Axios=Axios$1;axios.CanceledError=CanceledError$1;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel$1;axios.VERSION=VERSION$1;axios.toFormData=toFormData$1;axios.AxiosError=AxiosError$1;axios.Cancel=axios.CanceledError;axios.all=function(y){return Promise.all(y)};axios.spread=spread$1;axios.isAxiosError=isAxiosError$1;axios.mergeConfig=mergeConfig$1;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=r=>formDataToJSON(utils$1.isHTMLForm(r)?new FormData(r):r);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios,authorizedAxios=axios.create({baseURL:"https://api.westx.ai",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("WESTX_AUTH_TOKEN")}`}});async function loginwithgoogle(r,y,x,b){return(await axios.post("https://api.westx.ai/api/auth/login/google",{email:r,idToken:y,name:x,photoURL:b})).data}async function addlinkedin(r){return(await axios.post("https://api.westx.ai/api/auth/login/linkedin",{code:r})).data}async function completeprofilegoogle(r,y,x,b){const R=axios.create({baseURL:"https://api.westx.ai",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("WESTX_AUTH_TOKEN")}`}}),{data:M}=await R.post("/api/auth/login/complete/google",{country:r,location:y,outcome:x,intention:b});return M.success}async function completeprofilelinkedin(r,y){const x=axios.create({baseURL:"https://api.westx.ai",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("WESTX_AUTH_TOKEN")}`}}),{data:b}=await x.post("/api/auth/login/complete/linkedin",{intention:y,outcome:r});return b.success}async function getuserprofile(){const{data:r}=await authorizedAxios.get("/api/user/me");return r}async function getsimilaruser(){const{data:r}=await authorizedAxios.get("/api/user/getsimilaruser");return r.success?r.data:null}async function getAllcountries(){const{data:r}=await axios.get("https://api.westx.ai/allcountries");return r.countries}async function getcitybycountr(r){const{data:y}=await axios.post("https://api.westx.ai/city-by-country",{code:r});return y.city}async function Updatelinkedin(r){const{data:y}=await authorizedAxios.post("/api/auth/add/linkedin",{code:r});return y}async function Getnearbyusers(){const{data:r}=await authorizedAxios.get("/api/user/getnearbyusers");return r.success?r.data:null}async function Gettalks(){const{data:r}=await authorizedAxios.get("/api/talk/me");return r}async function interacting(){const{data:r}=await authorizedAxios.get("/api/user/interacting");return r}async function Getquestions(){const{data:r}=await authorizedAxios.get("/api/user/questions");return r}async function Answerquestion(r,y){const{data:x}=await authorizedAxios.post("/api/user/updateanswerable",{questionid:r,answer:y});return x}async function updateanswerable(r){const{data:y}=await authorizedAxios.post("/api/user/updateanswer",{questionid:r});return y}async function GetHomies(){const{data:r}=await authorizedAxios.get("/api/user/gethomies");return r.data}async function getrandomsimilaruser(){const{data:r}=await authorizedAxios.get("/api/user/similaruserandom");return r.data}async function getuserbyquery(r){const{data:y}=await authorizedAxios.get(`/api/user/discover/${r}`);return y.data}async function getuserbyusername(r){const{data:y}=await authorizedAxios.get(`/api/user/getuser/${r}`);return y.data}async function gettalkbyid(r){const{data:y}=await authorizedAxios.get(`/api/talk/gettalk/${r}`);return y.talk}function i(r){var y=r.redirectUri,x=r.clientId,b=r.onSuccess,R=r.onError,M=r.scope,O=M===void 0?"r_emailaddress":M,z=r.state,U=z===void 0?"":z,G=r.closePopupMessage,q=G===void 0?"User 
206closed the popup":G,J=reactExports.useRef(null),X=reactExports.useRef(null),fe=reactExports.useCallback((function(ue){var ye=localStorage.getItem("linkedin_oauth2_state");if(ue.origin===window.location.origin){if(ue.data.errorMessage&&ue.data.from==="Linked In"){if(ue.data.state!==ye)return void(J.current&&J.current.close());R&&R(ue.data),J.current&&J.current.close()}else if(ue.data.code&&ue.data.from==="Linked In"){if(ue.data.state!==ye)return void(J.current&&J.current.close());b&&b(ue.data.code),J.current&&J.current.close()}}}),[R,b]);reactExports.useEffect((function(){return function(){window.removeEventListener("message",fe,!1),J.current&&(J.current.close(),J.current=null),X.current&&(window.clearInterval(X.current),X.current=null)}}),[fe]),reactExports.useEffect((function(){return window.addEventListener("message",fe,!1),function(){window.removeEventListener("message",fe,!1)}}),[fe]);var te=function(){var ue="&scope="+encodeURI(O),ye=U||(function(oe){oe===void 0&&(oe=20);for(var ne="",ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",pe=ae.length,je=0;je<oe;je++)ne+=ae.charAt(Math.floor(Math.random()*pe));return ne})();return localStorage.setItem("linkedin_oauth2_state",ye),"https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id="+x+"&redirect_uri="+y+ue+"&state="+ye};return{linkedInLogin:function(){var ue;(ue=J.current)===null||ue===void 0||ue.close(),J.current=window.open(te(),"_blank",(function(ye){var oe=ye.width,ne=oe,ae=ye.height,pe=ae;return"left="+(screen.width/2-ne/2)+",top="+(screen.height/2-pe/2)+",width="+ne+",height="+pe})({width:600,height:600})),X.current&&(window.clearInterval(X.current),X.current=null),X.current=window.setInterval((function(){try{J.current&&J.current.closed&&(window.clearInterval(X.current),X.current=null,R&&R({error:"user_closed_popup",errorMessage:q}))}catch{window.clearInterval(X.current),X.current=null}}),1e3)}}}function a(){var r=reactExports.useState(""),y=r[0],x=r[1];return reactExports.useEffect((function(){var b=(function(M){for(var O=M.substring(1).split("&"),z={},U=0;U<O.length;U++){var G=O[U].split("=");G.length>1&&(z[decodeURIComponent(G[0])]=decodeURIComponent(G[1]))}return z})(window.location.search);if(b.state!==localStorage.getItem("linkedin_oauth2_state"))x("State does not match");else if(b.error){var R=b.error_description||"Login failed. Please try again.";window.opener&&window.opener.postMessage({error:b.error,state:b.state,errorMessage:R,from:"Linked In"},window.location.origin),b.error==="user_cancelled_login"&&window.close()}b.code&&window.opener&&window.opener.postMessage({code:b.code,state:b.state,from:"Linked In"},window.location.origin)}),[]),jsxRuntimeExports.jsx("div",{children:y},void 0)}const middleImage="/assets/middle-C4o89YRM.png",logo="/assets/logo-BphRXxzm.png",Login=()=>{const r=useNavigate(),y=reactExports.useRef(!1),[x,b]=reactExports.useState(!1),[R,M]=reactExports.useState(!1),[O,z]=reactExports.useState(!1);reactExports.useEffect(()=>{z(!0)},[]);const U=async J=>{if(!y.current){y.current=!0,M(!0);try{const X=await addlinkedin(J);X.success?(localStorage.setItem("WESTX_AUTH_TOKEN",X.token),localStorage.setItem("WESTX_IS_GOOGLE",String(X.isGoogle)),zt.success("LinkedIn login successful",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),X.isCompleted?(r("/home"),window.location.reload()):r("/complete-profile")):zt.error("Something went wrong Not able to login",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch{zt.error("Failed to login with LinkedIn",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{y.current=!1,M(!1)}}},{linkedInLogin:G}=i({clientId:"86p8wa69vyiype",redirectUri:`${window.location.origin}/linkedin`,scope:"openid profile email w_member_social r_basicprofile",onSuccess:U,onError:J=>{zt.error("LinkedIn login failed",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),M(!1)}}),q=async()=>{if(!(x||R)){b(!0);try{const J=await signInWithPopup(auth,googleProvider),X=GoogleAuthProvider.credentialFromResult(J),fe=J?.user,te=await loginwithgoogle(fe.email||"",X?.idToken||"",fe.displayName||"",fe.photoURL||"");te.success?(localStorage.setItem("WESTX_AUTH_TOKEN",te.token),localStorage.setItem("WESTX_IS_GOOGLE",String(te.isGoogle)),zt.success("Google login successful",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),te.isCompleted?(r("/home"),window.location.reload()):r("/complete-profile")):zt.error("Something went wrong Not able to login",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch{zt.error("Failed to login with Google",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{b(!1)}}};return jsxRuntimeExports.jsxs("div",{className:"min-h-dvh flex flex-col items-center justify-center p-4 sm:p-6 md:p-8 lg:p-10 relative overflow-hidden font-roboto box-border",style:{backgroundColor:"#0C0E12"},children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":!0,style:{backgroundImage:`url(${middleImage})`,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":!0,style:{background:"linear-gradient(to bottom, rgba(12, 14, 18, 0.2) 0%, transparent 35%, transparent 55%, rgba(12, 14, 18, 0.85) 100%)"}}),jsxRuntimeExports.jsxs("div",{className:`relative z-10 w-full max-w-md transition-all duration-700 flex flex-col items-center ${O?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,style:{marginTop:"clamp(2rem, 8vh, 4rem)",paddingBottom:"clamp(2rem, 6vh, 4rem)"},children:[jsxRuntimeExports.jsxs("div",{className:"text-center w-full",style:{marginBottom:"clamp(2.5rem, 8vh, 4rem)"},children:[jsxRuntimeExports.jsx("img",{src:logo,alt:"WestX",className:"w-full max-w-[200px] sm:max-w-[240px] md:max-w-[260px] h-auto object-contain mx-auto",style:{height:"clamp(4rem, 12vw, 6rem)",maxHeight:"6rem",filter:"drop-shadow(0 4px 20px rgba(153, 21, 235, 0.25))"}}),jsxRuntimeExports.jsx("p",{className:"text-sm sm:text-base text-gray-400 max-w-sm mx-auto mt-3 sm:mt-4 px-1",children:"Sign in to start intention-based conversations that save you time."})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-3 sm:space-y-4 w-full",style:{marginTop:"clamp(1rem, 4vh, 2rem)"},children:[jsxRuntimeExports.jsx("button",{type:"button",onClick:q,disabled:x||R,className:"relative cursor-pointer w-full px-6 py-3.5 bg-[#1a1a1a] text-white font-medium text-sm sm:text-base rounded-xl transition-all duration-200 hover:bg-[#252525] disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-3 border border-gray-700/50",children:x?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent roun
206ded-full animate-spin"}),jsxRuntimeExports.jsx("span",{children:"Connecting..."})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("svg",{className:"w-5 h-5 shrink-0",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),jsxRuntimeExports.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),jsxRuntimeExports.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),jsxRuntimeExports.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),jsxRuntimeExports.jsx("span",{children:"Continue with Google"})]})}),jsxRuntimeExports.jsxs("div",{className:"relative flex items-center py-2",children:[jsxRuntimeExports.jsx("div",{className:"grow border-t border-gray-600"}),jsxRuntimeExports.jsx("span",{className:"shrink mx-4 text-xs text-gray-500 font-medium",children:"or"}),jsxRuntimeExports.jsx("div",{className:"grow border-t border-gray-600"})]}),jsxRuntimeExports.jsx("button",{type:"button",onClick:G,disabled:x||R,className:"relative cursor-pointer w-full px-6 py-3.5 bg-[#1a1a1a] text-white font-medium text-sm sm:text-base rounded-xl transition-all duration-200 hover:bg-[#252525] disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-3 border border-gray-700/50",children:R?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),jsxRuntimeExports.jsx("span",{children:"Connecting..."})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("svg",{className:"w-5 h-5 shrink-0 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),jsxRuntimeExports.jsx("span",{children:"Continue with LinkedIn"})]})})]})]})]})};async function updateUserprofileoutcome(r,y,x,b,R){const{data:M}=await authorizedAxios.post("/api/user/edit/outcome",{outcome:r,interestlist:y,country:x,city:b,tone:R});return M.success}async function updateUserprofileintention(r){const{data:y}=await authorizedAxios.post("/api/user/edit/intention",{intention:r});return y.success}async function updateUserprofileimage(r){const{data:y}=await authorizedAxios.post("/api/user/edit/image",{imageurl:r});return y.success}const uploadinfile=async r=>{if(r){const y=await authorizedAxios.post("/api/user/generatesignedurl",{imageName:r?.name,imagetype:r?.type});await axios.put(y.data.url,r);let x=new URL(y.data.url);return`${x.origin}${x.pathname}`}else return null},updateUserlocation=async(r,y)=>{const{data:x}=await authorizedAxios.post("/api/user/edit/location",{latitude:r,longitude:y});return x.success},AuthContextProvider=reactExports.createContext(null);function AuthContext({children:r}){const[y,x]=reactExports.useState(!1),[b,R]=reactExports.useState(!0),[M,O]=reactExports.useState(null);return reactExports.useEffect(()=>{(async()=>{if(R(!0),localStorage.getItem("WESTX_AUTH_TOKEN"))try{const G=await getuserprofile();G.success?(O(G.data),x(!0),(G.data.latitude===null||G.data.longitude===null)&&navigator.geolocation.getCurrentPosition(async q=>{const J=q.coords.latitude,X=q.coords.longitude;await updateUserlocation(J.toString(),X.toString())},q=>{console.log(q)})):x(!1)}catch(G){console.log(G)}finally{R(!1)}else console.log("user is not authenticated"),R(!1)})()},[]),b?jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center h-screen",style:{backgroundColor:"#0C0E12"},children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-purple-500"})}):jsxRuntimeExports.jsx(AuthContextProvider.Provider,{value:{isauthenticated:y,user:M,setIsAuthenticated:x},children:r})}const useAuth=()=>
206reactExports.useContext(AuthContextProvider),INTENTION_SUGGESTIONS=["I want to connect with experienced founders and learn from their journey. I'm looking to expand my network and find potential mentors in the startup space.","I'm a student interested in UX design and I want to understand how designers from IIT built their careers and how I can prepare for a similar path.","I'm exploring the startup ecosystem and hoping to meet people who can share insights on building products, raising funding, and scaling teams."],OUTCOME_SUGGESTIONS=["I'm seeking meaningful conversations that could lead to mentorship, potential collaborations, and a deeper understanding of how to build and scale products.","I'd like to learn from others' experiences and hopefully find a mentor or collaborator who can help me grow as a designer and entrepreneur.","My goal is to build a strong network of like-minded people, get feedback on my ideas, and discover opportunities to contribute to early-stage startups."],ProfileCompletion=()=>{const r=useNavigate(),[y,x]=reactExports.useState(1),[b,R]=reactExports.useState(!1),[M,O]=reactExports.useState(!1),[z,U]=reactExports.useState([]),[G,q]=reactExports.useState([]),[J,X]=reactExports.useState(""),[fe,te]=reactExports.useState(!1),[ue,ye]=reactExports.useState(!1),[oe,ne]=reactExports.useState(""),[ae,pe]=reactExports.useState(!1),[je,Ve]=reactExports.useState(""),[Ue,$e]=reactExports.useState(!1),[We,ot]=reactExports.useState({country:"",location:"",intention:"",outcome:""});reactExports.useEffect(()=>{if(!localStorage.getItem("WESTX_AUTH_TOKEN")){r("/login");return}const Ze=localStorage.getItem("WESTX_IS_GOOGLE")==="true";O(Ze),Ze||x(1),Ze&&(async()=>{te(!0);try{const pt=await getAllcountries();U(pt)}catch(pt){console.error("Failed to fetch countries:",pt),zt.error("Failed to load countries. Please refresh the page.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{te(!1)}})()},[r]),reactExports.useEffect(()=>{const Ke=Ze=>{const ut=Ze.target;ut.closest(".country-dropdown-container")||pe(!1),ut.closest(".city-dropdown-container")||$e(!1)};if(ae||Ue)return document.addEventListener("mousedown",Ke),()=>{document.removeEventListener("mousedown",Ke)}},[ae,Ue]);const ct=M?3:2,it=()=>{const Ke=INTENTION_SUGGESTIONS[Math.floor(Math.random()*INTENTION_SUGGESTIONS.length)];ot(Ze=>({...Ze,intention:Ke})),zt.success("Suggestion added feel free to edit!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})},ft=()=>{const Ke=OUTCOME_SUGGESTIONS[Math.floor(Math.random()*OUTCOME_SUGGESTIONS.length)];ot(Ze=>({...Ze,outcome:Ke})),zt.success("Suggestion added feel free to edit!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})},dt=z.filter(Ke=>Ke.name.toLowerCase().includes(oe.toLowerCase())||Ke.isoCode.toLowerCase().includes(oe.toLowerCase())),nt=G.filter(Ke=>Ke.name.toLowerCase().includes(je.toLowerCase())),Ne=()=>{if(M)switch(y){case 1:return!!(We.country&&We.location);case 2:return!!We.intention.trim();case 3:return!!We.outcome.trim();default:return!1}else switch(y){case 1:return!!We.intention.trim();case 2:return!!We.outcome.trim();default:return!1}},He=Ke=>{const{name:Ze,value:ut}=Ke.target;ot(pt=>({...pt,[Ze]:ut}))},_e=async Ke=>{const Ze=z.find(ut=>ut.isoCode===Ke);if(X(Ke),ot(ut=>({...ut,country:Ze?.name||"",location:""})),q([]),Ve(""),$e(!1),ne(Ze?.name||""),pe(!1),Ke){ye(!0);try{const ut=await getcitybycountr(Ke);q(ut)}catch(ut){console.error("Failed to fetch cities:",ut),zt.error("Failed to load cities for this country.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{ye(!1)}}},Be=()=>{if(M){if(y===1&&(!We.country||!We.location)){zt.error("Please fill in both country and location",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}if(y===2&&!We.intention){zt.error("Please fill in your intention",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}}else if(y===1&&!We.intention){zt.error("Please fill in your intention",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}y<ct&&x(Ke=>Ke+1)},Ye=()=>{y>1&&x(Ke=>Ke-1)},Le=async()=>
206{if(!We.outcome){zt.error("Please fill in your outcome",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}R(!0);try{let Ke=!1;M?Ke=await completeprofilegoogle(We.country,We.location,We.outcome,We.intention):Ke=await completeprofilelinkedin(We.outcome,We.intention),Ke?(zt.success("Profile completed successfully!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),r("/home"),window.location.reload()):zt.error("Failed to complete profile. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch(Ke){zt.error("An error occurred. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),console.error(Ke)}finally{R(!1)}},Ge=()=>{if(M)switch(y){case 1:return jsxRuntimeExports.jsxs("div",{className:"space-y-6 animate-fadeIn",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white font-montserrat   mb-2",children:"Where are you based?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm mb-6 font-montserrat",children:"This helps us find the most relevant conversations for you."}),jsxRuntimeExports.jsxs("div",{className:"space-y-5",children:[jsxRuntimeExports.jsxs("div",{className:"country-dropdown-container relative",children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-white/90 mb-2",children:"Select your country"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:"text",value:ae?oe:J&&z.find(Ke=>Ke.isoCode===J)?.name||"",onChange:Ke=>{ne(Ke.target.value),pe(!0),Ke.target.value===""&&(X(""),ot(Ze=>({...Ze,country:"",location:""})),q([]))},onFocus:()=>{pe(!0),ne(J&&z.find(Ke=>Ke.isoCode===J)?.name||"")},placeholder:fe?"Loading countries...":"Search or select your country",disabled:fe,className:"profile-input w-full px-4 py-3.5 rounded-xl text-white placeholder-gray-400/80 focus:outline-none focus:ring-2 focus:ring-territary/40 focus:ring-offset-0 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:"rgba(26, 12, 43, 0.4)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.08)"}}),jsxRuntimeExports.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none",children:jsxRuntimeExports.jsx("svg",{className:"w-5 h-5 text-white/70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})}),ae&&!fe&&jsxRuntimeExports.jsx("div",{className:"absolute z-50 w-full mt-2 rounded-xl max-h-60 overflow-auto",style:{backgroundColor:"rgba(26, 12, 43, 0.85)",backdropFilter:"blur(12px)",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.4)",border:"1px solid rgba(255,255,255,0.06)"},children:dt.length>0?dt.map(Ke=>jsxRuntimeExports.jsx("div",{onClick:()=>_e(Ke.isoCode),className:`px-4 py-3 cursor-pointer hover:bg-white/10 transition-colors ${J===Ke.isoCode?"bg-territary/30":""}`,children:jsxRuntimeExports.jsxs("span",{className:"text-white",children:[Ke.flag," ",Ke.name]})},Ke.isoCode)):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 text-gray-400 text-center text-sm",children:"No countries found"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"city-dropdown-container relative",children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-white/90 mb-2",children:"Select your state or region"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:"text",value:Ue?je:We.location||"",onChange:Ke=>{Ve(Ke.target.value),$e(!0),Ke.target.value===""&&ot(Ze=>({...Ze,location:""}))},onFocus:()=>{!J||ue||($e(!0),Ve(We.location||""))},placeholder:J?ue?"Loading states...":"Search or select your state or region":"Select a country first",disabled:!J||ue,className:"profile-input w-full px-4 py-3.5 rounded-xl text-white placeholder-gray-400/80 focus:outline-none focus:ring-2 focus:ring-territary/40 focus:ring-offset-0 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:"rgba(26, 12, 43, 0.4)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.08)"}}),jsxRuntimeExports.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none",children:jsxRuntimeExports.jsx("svg",{className:"w-5 h-5 text-white/70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})}),Ue&&!ue&&J&&jsxRuntimeExports.jsx("div",{className:"absolute z-50 w-full mt-2 rounded-xl max-h-60 overflow-auto",style:{backgroundColor:"rgba(26, 12, 43, 0.85)",backdropFilter:"blur(12px)",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.4)",border:"1px solid rgba(255,255,255,0.06)"},children:nt.length>0?nt.map((Ke,Ze)=>jsxRuntimeExports.jsx("div",{onClick:()=>{ot(ut=>({...ut,location:Ke.name})),Ve(Ke.name),$e(!1)},className:`px-4 py-3 cursor-pointer hover:bg-white/10 transition-colors ${We.location===Ke.name?"bg-territary/30":""}`,children:jsxRuntimeExports.jsx("span",{className:"text-white",children:Ke.name})},`${Ke.countryCode}-${Ke.name}-${Ze}`)):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 text-gray-400 text-center text-sm",children:"No states found"})})]})]})]})]});case 2:return jsxRuntimeExports.jsxs("div",{className:"space-y-6 animate-fadeIn",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white font-montserrat  mb-2",children:"What's your intention ?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"Tell us what you're looking to achieve"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium text-gray-300",children:"Intention"}),jsxRuntimeExports.jsxs("button",{type:"button",onClick:it,className:"inline-flex items-center gap-2 rounded-lg border border-territary/60 bg-territary/10 px-4 py-2 text-sm font-medium text-territary transition hover:bg-territary/20 hover:border-territary/80 active:scale-[0.98]",children:[jsxRuntimeExports.jsx("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Generate suggestion"]})]}),jsxRuntimeExports.jsx("textarea",{name:"intention",value:We.intention,onChange:He,required:!0,rows:5,className:"w-full px-4 py-3.5 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-territary/40 focu
206s:ring-offset-0 transition-all duration-200 resize-none",placeholder:"Describe your goals and intentions...",style:{backgroundColor:"rgba(26, 12, 43, 0.4)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.08)"}})]})]});case 3:return jsxRuntimeExports.jsxs("div",{className:"space-y-6 animate-fadeIn",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white font-montserrat  mb-2",children:"What outcome are you seeking?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"What success looks like for you"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium text-gray-300",children:"Desired Outcome"}),jsxRuntimeExports.jsxs("button",{type:"button",onClick:ft,className:"inline-flex items-center gap-2 rounded-lg border border-territary/60 bg-territary/10 px-4 py-2 text-sm font-medium text-territary transition hover:bg-territary/20 hover:border-territary/80 active:scale-[0.98]",children:[jsxRuntimeExports.jsx("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Generate suggestion"]})]}),jsxRuntimeExports.jsx("textarea",{name:"outcome",value:We.outcome,onChange:He,required:!0,rows:5,className:"w-full px-4 py-3.5 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-territary/40 focus:ring-offset-0 transition-all duration-200 resize-none",placeholder:"Describe your desired outcomes...",style:{backgroundColor:"rgba(26, 12, 43, 0.4)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.08)"}})]})]});default:return null}else switch(y){case 1:return jsxRuntimeExports.jsxs("div",{className:"space-y-6 animate-fadeIn",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white font-montserrat  mb-2",children:"What's your intention?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"Tell us what you're looking to achieve"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium text-gray-300",children:"Intention"}),jsxRuntimeExports.jsxs("button",{type:"button",onClick:it,className:"inline-flex items-center gap-2 rounded-lg border border-territary/60 bg-territary/10 px-4 py-2 text-sm font-medium text-territary transition hover:bg-territary/20 hover:border-territary/80 active:scale-[0.98]",children:[jsxRuntimeExports.jsx("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Generate suggestion"]})]}),jsxRuntimeExports.jsx("textarea",{name:"intention",value:We.intention,onChange:He,required:!0,rows:5,className:"w-full px-4 py-3.5 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-territary/40 focus:ring-offset-0 transition-all duration-200 resize-none",placeholder:"Describe your goals and intentions...",style:{backgroundColor:"rgba(26, 12, 43, 0.4)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.08)"}})]})]});case 2:return jsxRuntimeExports.jsxs("div",{className:"space-y-6 animate-fadeIn",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white font-montserrat  mb-2",children:"What outcome are you seeking?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"What success looks like for you"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-2",children:[jsxRuntimeExports.jsx("label",{className:"text-sm font-medium text-gray-300",children:"Desired Outcome"}),jsxRuntimeExports.jsxs("button",{type:"button",onClick:ft,className:"inline-flex items-center gap-2 rounded-lg border border-territary/60 bg-territary/10 px-4 py-2 text-sm font-medium text-territary transition hover:bg-territary/20 hover:border-territary/80 active:scale-[0.98]",children:[jsxRuntimeExports.jsx("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Generate suggestion"]})]}),jsxRuntimeExports.jsx("textarea",{name:"outcome",value:We.outcome,onChange:He,required:!0,rows:5,className:"w-full px-4 py-3.5 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-territary/40 focu
206s:ring-offset-0 transition-all duration-200 resize-none",placeholder:"Describe your desired outcomes...",style:{backgroundColor:"rgba(26, 12, 43, 0.4)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.08)"}})]})]});default:return null}};return jsxRuntimeExports.jsxs("div",{className:"min-h-screen flex flex-col p-4 sm:p-6 md:p-8 relative overflow-hidden font-roboto",style:{backgroundColor:"#0C0E12"},children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":!0,style:{backgroundImage:`url(${middleImage})`,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":!0,style:{background:"linear-gradient(to bottom, rgba(12, 14, 18, 0.2) 0%, transparent 35%, transparent 55%, rgba(12, 14, 18, 0.85) 100%)"}}),jsxRuntimeExports.jsxs("header",{className:"relative z-10 flex items-center justify-between w-full mb-4 sm:mb-6 pl-0 pr-0",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center",children:jsxRuntimeExports.jsx("img",{src:logo,alt:"WestX",className:"h-9 sm:h-10 md:h-11 w-auto object-contain",style:{filter:"drop-shadow(0 2px 8px rgba(153, 21, 235, 0.2))"}})}),jsxRuntimeExports.jsxs("span",{className:"text-white text-sm font-medium opacity-90",children:["Step ",y," of ",ct]})]}),jsxRuntimeExports.jsx("div",{className:"relative z-10 flex-1 flex items-center justify-center w-full max-w-2xl mx-auto",children:jsxRuntimeExports.jsx("div",{className:"w-full",children:jsxRuntimeExports.jsxs("div",{className:"rounded-lg p-6 sm:p-8",children:[Ge(),jsxRuntimeExports.jsxs("div",{className:"flex justify-end items-center gap-4 mt-12 sm:mt-14",children:[y>1&&jsxRuntimeExports.jsx("button",{onClick:Ye,disabled:b,className:"profile-nav-btn profile-nav-btn-back px-6 py-3.5 bg-transparent text-white font-montserrat font-semibold rounded-xl border-2 border-white/80 hover:bg-white/10 transition-all duration-200 disabled:opacity-50",children:"Back"}),y<ct?jsxRuntimeExports.jsx("button",{onClick:Be,disabled:b||!Ne(),className:"profile-nav-btn profile-nav-btn-next px-10 py-3.5 text-white font-montserrat font-semibold rounded-xl transition-all duration-200 hover:brightness-110 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:brightness-100",children:"Next"}):jsxRuntimeExports.jsx("button",{onClick:Le,disabled:b||!Ne(),className:"profile-nav-btn profile-nav-btn-next px-10 py-3.5 text-white font-montserrat font-semibold rounded-xl transition-all duration-200 hover:brightness-110 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:brightness-100",children:b?"Completing...":"Complete Profile"})]})]})})}),jsxRuntimeExports.jsx("style",{children:`
207        @keyframes fadeIn {
208          from {
209            opacity: 0;
210            transform: translateY(10px);
211          }
212          to {
213            opacity: 1;
214            transform: translateY(0);
215          }
216        }
217        .animate-fadeIn {
218          animation: fadeIn 0.3s ease-out;
219        }
220        .profile-nav-btn {
221          letter-spacing: 0.02em;
222        }
223        .profile-nav-btn-next {
224          background: #7c12c7;
225          box-shadow: 0 4px 0 #5a0d94, 0 8px 24px rgba(124, 18, 199, 0.45);
226          border: none;
227        }
228        .profile-nav-btn-next:hover:not(:disabled) {
229          background: #8f18e0;
230          box-shadow: 0 4px 0 #5a0d94, 0 10px 28px rgba(124, 18, 199, 0.5);
231          transform: translateY(-1px);
232        }
233        .profile-nav-btn-next:active:not(:disabled) {
234          transform: translateY(2px);
235          box-shadow: 0 2px 0 #5a0d94, 0 4px 16px rgba(124, 18, 199, 0.4);
236        }
237        .profile-select,
238        select.profile-select {
239          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
240          background-repeat: no-repeat;
241          background-position: right 1rem center;
242          background-size: 14px;
243          padding-right: 2.75rem;
244          border: none;
245        }
246        .profile-select:focus,
247        select.profile-select:focus {
248          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239915eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
249        }
250        .profile-select:disabled,
251        select.profile-select:disabled {
252          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
253        }
254      `})]})},LayoutGroupContext=reactExports.createContext({});function useConstant(r){const y=reactExports.useRef(null);return y.current===null&&(y.current=r()),y.current}const isBrowser=typeof window<"u",useIsomorphicLayoutEffect=isBrowser?reactExports.useLayoutEffect:reactExports.useEffect,PresenceContext=reactExports.createContext(null);function addUniqueItem(r,y){r.indexOf(y)===-1&&r.push(y)}function removeItem(r,y){const x=r.indexOf(y);x>-1&&r.splice(x,1)}const clamp=(r,y,x)=>x>
vendor: 55,068 bytes, lines 254-262
254y?y:x<r?r:x;let invariant$1=()=>{};const MotionGlobalConfig={},isNumericalString=r=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r);function isObject$1(r){return typeof r=="object"&&r!==null}const isZeroValueString=r=>/^0[^.\s]+$/u.test(r);function memo(r){let y;return()=>(y===void 0&&(y=r()),y)}const noop$1=r=>r,combineFunctions=(r,y)=>x=>y(r(x)),pipe=(...r)=>r.reduce(combineFunctions),progress=(r,y,x)=>{const b=y-r;return b===0?1:(x-r)/b};class SubscriptionManager{constructor(){this.subscriptions=[]}add(y){return addUniqueItem(this.subscriptions,y),()=>removeItem(this.subscriptions,y)}notify(y,x,b){const R=this.subscriptions.length;if(R)if(R===1)this.subscriptions[0](y,x,b);else for(let M=0;M<R;M++){const O=this.subscriptions[M];O&&O(y,x,b)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const secondsToMilliseconds=r=>r*1e3,millisecondsToSeconds=r=>r/1e3;function velocityPerSecond(r,y){return y?r*(1e3/y):0}const calcBezier=(r,y,x)=>(((1-3*x+3*y)*r+(3*x-6*y))*r+3*y)*r,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(r,y,x,b,R){let M,O,z=0;do O=y+(x-y)/2,M=calcBezier(O,b,R)-r,M>0?x=O:y=O;while(Math.abs(M)>subdivisionPrecision&&++z<subdivisionMaxIterations);return O}function cubicBezier(r,y,x,b){if(r===y&&x===b)return noop$1;const R=M=>binarySubdivide(M,0,1,r,x);return M=>M===0||M===1?M:calcBezier(R(M),y,b)}const mirrorEasing=r=>y=>y<=.5?r(2*y)/2:(2-r(2*(1-y)))/2,reverseEasing=r=>y=>1-r(1-y),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=r=>(r*=2)<1?.5*backIn(r):.5*(2-Math.pow(2,-10*(r-1))),circIn=r=>1-Math.sin(Math.acos(r)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=r=>Array.isArray(r)&&typeof r[0]!="number",isBezierDefinition=r=>Array.isArray(r)&&typeof r[0]=="number",easingLookup={linear:noop$1,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},isValidEasing=r=>typeof r=="string",easingDefinitionToFunction=r=>{if(isBezierDefinition(r)){invariant$1(r.length===4);const[y,x,b,R]=r;return cubicBezier(y,x,b,R)}else if(isValidEasing(r))return easingLookup[r];return r},stepsOrder=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderStep(r,y){let x=new Set,b=new Set,R=!1,M=!1;const O=new WeakSet;let z={delta:0,timestamp:0,isProcessing:!1};function U(q){O.has(q)&&(G.schedule(q),r()),q(z)}const G={schedule:(q,J=!1,X=!1)=>{const te=X&&R?x:b;return J&&O.add(q),te.has(q)||te.add(q),q},cancel:q=>{b.delete(q),O.delete(q)},process:q=>{if(z=q,R){M=!0;return}R=!0,[x,b]=[b,x],x.forEach(U),x.clear(),R=!1,M&&(M=!1,G.process(q))}};return G}const maxElapsed=40;function createRenderBatcher(r,y){let x=!1,b=!0;const R={delta:0,timestamp:0,isProcessing:!1},M=()=>x=!0,O=stepsOrder.reduce((ae,pe)=>(ae[pe]=createRenderStep(M),ae),{}),{setup:z,read:U,resolveKeyframes:G,preUpdate:q,update:J,preRender:X,render:fe,postRender:te}=O,ue=()=>{const ae=MotionGlobalConfig.useManualTiming?R.timestamp:performance.now();x=!1,MotionGlobalConfig.useManualTiming||(R.delta=b?1e3/60:Math.max(Math.min(ae-R.timestamp,maxElapsed),1)),R.timestamp=ae,R.isProcessing=!0,z.process(R),U.process(R),G.process(R),q.process(R),J.process(R),X.process(R),fe.process(R),te.process(R),R.isProcessing=!1,x&&y&&(b=!1,r(ue))},ye=()=>{x=!0,b=!0,R.isProcessing||r(ue)};return{schedule:stepsOrder.reduce((ae,pe)=>{const je=O[pe];return ae[pe]=(Ve,Ue=!1,$e=!1)=>(x||ye(),je.schedule(Ve,Ue,$e)),ae},{}),cancel:ae=>{for(let pe=0;pe<stepsOrder.length;pe++)O[stepsOrder[pe]].cancel(ae)},state:R,steps:O}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps:frameSteps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop$1,!0);let now;function clearTime(){now=void 0}const time={now:()=>(now===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now),set:r=>{now=r,queueMicrotask(clearTime)}},checkStringStartsWith=r=>y=>typeof y=="string"&&y.startsWith(r),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=r=>startsAsVariableToken(r)?singleCssVariableRegex.test(r.split("/*")[0].trim()):!1,singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(r){return typeof r!="string"?!1:r.split("/*")[0].includes("var(--")}const number={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},alpha={...number,transform:r=>clamp(0,1,r)},scale={...number,default:1},sanitize=r=>Math.round(r*1e5)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(r){return r==null}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(r,y)=>x=>!!(typeof x=="string"&&singleColorRegex.test(x)&&x.startsWith(r)||y&&!isNullish(x)&&Object.prototype.hasOwnProperty.call(x,y)),splitColor=(r,y,x)=>b=>{if(typeof b!="string")return b;const[R,M,O,z]=b.match(floatRegex);return{[r]:parseFloat(R),[y]:parseFloat(M),[x]:parseFloat(O),alpha:z!==void 0?parseFloat(z):1}},clampRgbUnit=r=>clamp(0,255,r),rgbUnit={...number,transform:r=>Math.round(clampRgbUnit(r))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:r,green:y,blue:x,alpha:b=1})=>"rgba("+rgbUnit.transform(r)+", "+rgbUnit.transform(y)+", "+rgbUnit.transform(x)+", "+sanitize(alpha.transform(b))+")"};function parseHex(r){let y="",x="",b="",R="";return r.length>5?(y=r.substring(1,3),x=r.substring(3,5),b=r.substring(5,7),R=r.substring(7,9)):(y=r.substring(1,2),x=r.substring(2,3),b=r.substring(3,4),R=r.substring(4,5),y+=y,x+=x,b+=b,R+=R),{red:parseInt(y,16),green:parseInt(x,16),blue:parseInt(b,16),alpha:R?parseInt(R,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},createUnitType=r=>({test:y=>typeof y=="string"&&y.endsWith(r)&&y.split(" ").length===1,parse:parseFloat,transform:y=>`${y}${r}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:r=>percent.parse(r)/100,transform:r=>percent.transform(r*100)},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:r,saturation:y,lightness:x,alpha:b=1})=>"hsla("+Math.round(r)+", "+percent.transform(sanitize(y))+", "+percent.transform(sanitize(x))+", "+sanitize(alpha.transform(b))+")"},color={test:r=>rgba.test(r)||hex.test(r)||hsla.test(r),parse:r=>rgba.test(r)?rgba.parse(r):hsla.test(r)?hsla.parse(r):hex.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?rgba.transform(r):hsla.transform(r),getAnimatableNone:r=>{const y=color.parse(r);return y.alpha=0,color.transform(y)}},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(r){return isNaN(r)&&typeof r=="string"&&(r.match(floatRegex)?.length||0)+(r.match(colorRegex)?.length||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}",complexRegex=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(r){const y=r.toString(),x=[],b={color:[],number:[],var:[]},R=[];let M=0;const z=y.replace(complexRegex,U=>(color.test(U)?(b.color.push(M),R.push(COLOR_TOKEN),x.push(color.parse(U))):U.startsWith(VAR_FUNCTION_TOKEN)?(b.var.push(M),R.push(VAR_TOKEN),x.push(U)):(b.number.push(M),R.push(NUMBER_TOKEN),x.push(parseFloat(U))),++M,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:x,split:z,indexes:b,types:R}}function parseComplexValue(r){return analyseComplexValue(r).values}function createTransformer(r){const{split:y,types:x}=analyseComplexValue(r),b=y.length;return R=>{let M="";for(let O=0;O<b;O++)if(M+=y[O],R[O]!==void 0){const z=x[O];z===NUMBER_TOKEN?M+=sanitize(R[O]):z===COLOR_TOKEN?M+=color.transform(R[O]):M+=R[O]}return M}}const convertNumbersToZero=r=>typeof r=="number"?0:color.test(r)?color.getAnimatableNone(r):r;function getAnimatableNone$1(r){const y=parseComplexValue(r);return createTransformer(r)(y.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function hueToRgb(r,y,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?r+(y-r)*6*x:x<1/2?y:x<2/3?r+(y-r)*(2/3-x)*6:r}function hslaToRgba({hue:r,saturation:y,lightness:x,alpha:b}){r/=360,y/=100,x/=100;let R=0,M=0,O=0;if(!y)R=M=O=x;else{const z=x<.5?x*(1+y):x+y-x*y,U=2*x-z;R=hueToRgb(U,z,r+1/3),M=hueToRgb(U,z,r),O=hueToRgb(U,z,r-1/3)}return{red:Math.round(R*255),green:Math.round(M*255),blue:Math.round(O*255),alpha:b}}function mixImmediate(r,y){return x=>x>0?y:r}const mixNumber$1=(r,y,x)=>r+(y-r)*x,mixLinearColor=(r,y,x)=>{const b=r*r,R=x*(y*y-b)+b;return R<0?0:Math.sqrt(R)},colorTypes=[hex,rgba,hsla],getColorType=r=>colorTypes.find(y=>y.test(r));function asRGBA(r){const y=getColorType(r);if(!y)return!1;let x=y.parse(r);return y===hsla&&(x=hslaToRgba(x)),x}const mixColor=(r,y)=>{const x=asRGBA(r),b=asRGBA(y);if(!x||!b)return mixImmediate(r,y);const R={...x};return M=>(R.red=mixLinearColor(x.red,b.red,M),R.green=mixLinearColor(x.green,b.green,M),R.blue=mixLinearColor(x.blue,b.blue,M),R.alpha=mixNumber$1(x.alpha,b.alpha,M),rgba.transform(R))},invisibleValues=new Set(["none","hidden"]);function mixVisibility(r,y){return invisibleValues.has(r)?x=>x<=0?r:y:x=>x>=1?y:r}function mixNumber(r,y){return x=>mixNumber$1(r,y,x)}function getMixer(r){return typeof r=="number"?mixNumber:typeof r=="string"?isCSSVariableToken(r)?mixImmediate:color.test(r)?mixColor:mixComplex:Array.isArray(r)?mixArray:typeof r=="object"?color.test(r)?mixColor:mixObject:mixImmediate}function mixArray(r,y){const x=[...r],b=x.length,R=r.map((M,O)=>getMixer(M)(M,y[O]));return M=>{for(let O=0;O<b;O++)x[O]=R[O](M);return x}}function mixObject(r,y){const x={...r,...y},b={};for(const R in x)r[R]!==void 0&&y[R]!==void 0&&(b[R]=getMixer(r[R])(r[R],y[R]));return R=>{for(const M in b)x[M]=b[M](R);return x}}function matchOrder(r,y){const x=[],b={color:0,var:0,number:0};for(let R=0;R<y.values.length;R++){const M=y.types[R],O=r.indexes[M][b[M]],z=r.values[O]??0;x[R]=z,b[M]++}return x}const mixComplex=(r,y)=>{const x=complex.createTransformer(y),b=analyseComplexValue(r),R=analyseComplexValue(y);return b.indexes.var.length===R.indexes.var.length&&b.indexes.color.length===R.indexes.color.length&&b.indexes.number.length>=R.indexes.number.length?invisibleValues.has(r)&&!R.values.length||invisibleValues.has(y)&&!b.values.length?mixVisibility(r,y):pipe(mixArray(matchOrder(b,R),R.values),x):mixImmediate(r,y)};function mix(r,y,x){return typeof r=="number"&&typeof y=="number"&&typeof x=="number"?mixNumber$1(r,y,x):getMixer(r)(r,y)}const frameloopDriver=r=>{const y=({timestamp:x})=>r(x);return{start:(x=!0)=>frame.update(y,x),stop:()=>cancelFrame(y),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generateLinearEasing=(r,y,x=10)=>{let b="";const R=Math.max(Math.round(y/x),2);for(let M=0;M<R;M++)b+=Math.round(r(M/(R-1))*1e4)/1e4+", ";return`linear(${b.substring(0,b.length-2)})`},maxGeneratorDuration=2e4;function calcGeneratorDuration(r){let y=0;const x=50;let b=r.next(y);for(;!b.done&&y<maxGeneratorDuration;)y+=x,b=r.next(y);return y>=maxGeneratorDuration?1/0:y}function createGeneratorEasing(r,y=100,x){const b=x({...r,keyframes:[0,y]}),R=Math.min(calcGeneratorDuration(b),maxGeneratorDuration);return{type:"keyframes",ease:M=>b.next(R*M).value/y,duration:millisecondsToSeconds(R)}}const velocitySampleDuration=5;function calcGeneratorVelocity(r,y,x){const b=Math.max(y-velocitySampleDuration,0);return velocityPerSecond(x-r(b),y-b)}const springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},safeMin=.001;function findSpring({duration:r=springDefaults.duration,bounce:y=springDefaults.bounce,velocity:x=springDefaults.velocity,mass:b=springDefaults.mass}){let R,M,O=1-y;O=clamp(springDefaults.minDamping,springDefaults.maxDamping,O),r=clamp(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(r)),O<1?(R=G=>{const q=G*O,J=q*r,X=q-x,fe=calcAngularFreq(G,O),te=Math.exp(-J);return safeMin-X/fe*te},M=G=>{const J=G*O*r,X=J*x+x,fe=Math.pow(O,2)*Math.pow(G,2)*r,te=Math.exp(-J),ue=calcAngularFreq(Math.pow(G,2),O);return(-R(G)+safeMin>0?-1:1)*((X-fe)*te)/ue}):(R=G=>{const q=Math.exp(-G*r),J=(G-x)*r+1;return-safeMin+q*J},M=G=>{const q=Math.exp(-G*r),J=(x-G)*(r*r);return q*J});const z=5/r,U=approximateRoot(R,M,z);if(r=secondsToMilliseconds(r),isNaN(U))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:r};{const G=Math.pow(U,2)*b;return{stiffness:G,damping:O*2*Math.sqrt(b*G),duration:r}}}const rootIterations=12;function approximateRoot(r,y,x){let b=x;for(let R=1;R<rootIterations;R++)b=b-r(b)/y(b);return b}function calcAngularFreq(r,y){return r*Math.sqrt(1-y*y)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(r,y){return y.some(x=>r[x]!==void 0)}function getSpringOptions(r){let y={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...r};if(!isSpringType(r,physicsKeys)&&isSpringType(r,durationKeys))if(r.visualDuration){const x=r.visualDuration,b=2*Math.PI/(x*1.2),R=b*b,M=2*clamp(.05,1,1-(r.bounce||0))*Math.sqrt(R);y={...y,mass:springDefaults.mass,stiffness:R,damping:M}}else{const x=findSpring(r);y={...y,...x,mass:springDefaults.mass},y.isResolvedFromDuration=!0}return y}function spring(r=springDefaults.visualDuration,y=springDefaults.bounce){const x=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:y}:r;let{restSpeed:b,restDelta:R}=x;const M=x.keyframes[0],O=x.keyframes[x.keyframes.length-1],z={done:!1,value:M},{stiffness:U,damping:G,mass:q,duration:J,velocity:X,isResolvedFromDuration:fe}=getSpringOptions({...x,velocity:-millisecondsToSeconds(x.velocity||0)}),te=X||0,ue=G/(2*Math.sqrt(U*q)),ye=O-M,oe=millisecondsToSeconds(Math.sqrt(U/q)),ne=Math.abs(ye)<5;b||(b=ne?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),R||(R=ne?springDefaults.restDelta.granular:springDefaults.restDelta.default);let ae;if(ue<1){const je=calcAngularFreq(oe,ue);ae=Ve=>{const Ue=Math.exp(-ue*oe*Ve);return O-Ue*((te+ue*oe*ye)/je*Math.sin(je*Ve)+ye*Math.cos(je*Ve))}}else if(ue===1)ae=je=>O-Math.exp(-oe*je)*(ye+(te+oe*ye)*je);else{const je=oe*Math.sqrt(ue*ue-1);ae=Ve=>{const Ue=Math.exp(-ue*oe*Ve),$e=Math.min(je*Ve,300);return O-Ue*((te+ue*oe*ye)*Math.sinh($e)+je*ye*Math.cosh($e))/je}}const pe={calculatedDuration:fe&&J||null,next:je=>{const Ve=ae(je);if(fe)z.done=je>=J;else{let Ue=je===0?te:0;ue<1&&(Ue=je===0?secondsToMilliseconds(te):calcGeneratorVelocity(ae,je,Ve));const $e=Math.abs(Ue)<=b,We=Math.abs(O-Ve)<=R;z.done=$e&&We}return z.value=z.done?O:Ve,z},toString:()=>{const je=Math.min(calcGeneratorDuration(pe),maxGeneratorDuration),Ve=generateLinearEasing(Ue=>pe.next(je*Ue).value,je,30);return je+"ms "+Ve},toTransition:()=>{}};return pe}spring.applyToOptions=r=>{const y=createGeneratorEasing(r,100,spring);return r.ease=y.ease,r.duration=secondsToMilliseconds(y.duration),r.type="keyframes",r};function inertia({keyframes:r,velocity:y=0,power:x=.8,timeConstant:b=325,bounceDamping:R=10,bounceStiffness:M=500,modifyTarget:O,min:z,max:U,restDelta:G=.5,restSpeed:q}){const J=r[0],X={done:!1,value:J},fe=$e=>z!==void 0&&$e<z||U!==void 0&&$e>U,te=$e=>z===void 0?U:U===void 0||Math.abs(z-$e)<Math.abs(U-$e)?z:U;let ue=x*y;const ye=J+ue,oe=O===void 0?ye:O(ye);oe!==ye&&(ue=oe-J);const ne=$e=>-ue*Math.exp(-$e/b),ae=$e=>oe+ne($e),pe=$e=>{const We=ne($e),ot=ae($e);X.done=Math.abs(We)<=G,X.value=X.done?oe:ot};let je,Ve;const Ue=$e=>{fe(X.value)&&(je=$e,Ve=spring({keyframes:[X.value,te(X.value)],velocity:calcGeneratorVelocity(ae,$e,X.value),damping:R,stiffness:M,restDelta:G,restSpeed:q}))};return Ue(0),{calculatedDuration:null,next:$e=>{let We=!1;return!Ve&&je===void 0&&(We=!0,pe($e),Ue($e)),je!==void 0&&$e>=je?Ve.next($e-je):(!We&&pe($e),X)}}}function createMixers(r,y,x){const b=[],R=x||MotionGlobalConfig.mix||mix,M=r.length-1;for(let O=0;O<M;O++){let z=R(r[O],r[O+1]);if(y){const U=Array.isArray(y)?y[O]||noop$1:y;z=pipe(U,z)}b.push(z)}return b}function interpolate(r,y,{clamp:x=!0,ease:b,mixer:R}={}){const M=r.length;if(invariant$1(M===y.length),M===1)return()=>y[0];if(M===2&&y[0]===y[1])return()=>y[1];const O=r[0]===r[1];r[0]>r[M-1]&&(r=[...r].reverse(),y=[...y].reverse());const z=createMixers(y,b,R),U=z.length,G=q=>{if(O&&q<r[0])return y[0];let J=0;if(U>1)for(;J<r.length-2&&!(q<r[J+1]);J++);const X=progress(r[J],r[J+1],q);return z[J](X)};return x?q=>G(clamp(r[0],r[M-1],q)):G}function fillOffset(r,y){const x=r[r.length-1];for(let b=1;b<=y;b++){const R=progress(0,y,b);r.push(mixNumber$1(x,1,R))}}function defaultOffset(r){const y=[0];return fillOffset(y,r.length-1),y}function convertOffsetToTimes(r,y){return r.map(x=>x*y)}function defaultEasing(r,y){return r.map(()=>y||easeInOut).splice(0,r.length-1)}function keyframes({duration:r=300,keyframes:y,times:x,ease:b="easeInOut"}){const R=isEasingArray(b)?b.map(easingDefinitionToFunction):easingDefinitionToFunction(b),M={done:!1,value:y[0]},O=convertOffsetToTimes(x&&x.length===y.length?x:defaultOffset(y),r),z=interpolate(O,y,{ease:Array.isArray(R)?R:defaultEasing(y,R)});return{calculatedDuration:r,next:U=>(M.value=z(U),M.done=U>=r,M)}}const isNotNull$1=r=>r!==null;function getFinalKeyframe$1(r,{repeat:y,repeatType:x="loop"},b,R=1){const M=r.filter(isNotNull$1),z=R<0||y&&x!=="loop"&&y%2===1?0:M.length-1;return!z||b===void 0?M[z]:b}const transitionTypeMap={decay:inertia,inertia,tween:keyframes,keyframes,spring};function replaceTransitionType(r){typeof r.type=="string"&&(r.type=transitionTypeMap[r.type])}class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(y=>{this.resolve=y})}notifyFinished(){this.resolve()}then(y,x){return this.finished.then(y,x)}}const percentToProgress=r=>r/100;class JSAnimation extends WithPromise{constructor(y){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:x}=this.options;x&&x.updatedAt!==time.now()&&this.tick(time.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=y,this.initAnimation(),this.play(),y.autoplay===!1&&this.pause()}initAnimation(){const{options:y}=this;replaceTransitionType(y);const{type:x=keyframes,repeat:b=0,repeatDelay:R=0,repeatType:M,velocity:O=0}=y;let{keyframes:z}=y;const U=x||keyframes;U!==keyframes&&typeof z[0]!="number"&&(this.mixKeyframes=pipe(percentToProgress,mix(z[0],z[1])),z=[0,100]);const G=U({...y,keyframes:z});M==="mirror"&&(this.mirroredGenerator=U({...y,keyframes:[...z].reverse(),velocity:-O})),G.calculatedDuration===null&&(G.calculatedDuration=calcGeneratorDuration(G));const{calculatedDuration:q}=G;this.calculatedDuration=q,this.resolvedDuration=q+R,this.totalDuration=this.resolvedDuration*(b+1)-R,this.generator=G}updateTime(y){const x=Math.round(y-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=x}tick(y,x=!1){const{generator:b,totalDuration:R,mixKeyframes:M,mirroredGenerator:O,resolvedDuration:z,calculatedDuration:U}=this;if(this.startTime===null)return b.next(0);const{delay:G=0,keyframes:q,repeat:J,repeatType:X,repeatDelay:fe,type:te,onUpdate:ue,finalKeyframe:ye}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,y):this.speed<0&&(this.startTime=Math.min(y-R/this.speed,this.startTime)),x?this.currentTime=y:this.updateTime(y);const oe=this.currentTime-G*(this.playbackSpeed>=0?1:-1),ne=this.playbackSpeed>=0?oe<0:oe>R;this.currentTime=Math.max(oe,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=R);let ae=this.currentTime,pe=b;if(J){const $e=Math.min(this.currentTime,R)/z;let We=Math.floor($e),ot=$e%1;!ot&&$e>=1&&(ot=1),ot===1&&We--,We=Math.min(We,J+1),We%2&&(X==="reverse"?(ot=1-ot,fe&&(ot-=fe/z)):X==="mirror"&&(pe=O)),ae=clamp(0,1,ot)*z}const je=ne?{done:!1,value:q[0]}:pe.next(ae);M&&(je.value=M(je.value));let{done:Ve}=je;!ne&&U!==null&&(Ve=this.playbackSpeed>=0?this.currentTime>=R:this.currentTime<=0);const Ue=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Ve);return Ue&&te!==inertia&&(je.value=getFinalKeyframe$1(q,this.options,ye,this.speed)),ue&&ue(je.value),Ue&&this.finish(),je}then(y,x){return this.finished.then(y,x)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:y=0}=this.options||{};return this.duration+millisecondsToSeconds(y)}get time(){return millisecondsToSeconds(this.currentTime)}set time(y){y=secondsToMilliseconds(y),this.currentTime=y,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=y:this.driver&&(this.startTime=this.driver.now()-y/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(y){this.updateTime(time.now());const x=this.playbackSpeed!==y;this.playbackSpeed=y,x&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;const{driver:y=frameloopDriver,startTime:x}=this.options;this.driver||(this.driver=y(R=>this.tick(R))),this.options.onPlay?.();const b=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=b):this.holdTime!==null?this.startTime=b-this.holdTime:this.startTime||(this.startTime=x??b),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(time.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(y){return this.startTime=0,this.tick(y,!0)}attachTimeline(y){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),y.observe(this)}}function fillWildcards(r){for(let y=1;y<r.length;y++)r[y]??(r[y]=r[y-1])}const radToDeg=r=>r*180/Math.PI,rotate=r=>{const y=radToDeg(Math.atan2(r[1],r[0]));return rebaseAngle(y)},matrix2dParsers={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:r=>(Math.abs(r[0])+Math.abs(r[3]))/2,rotate,rotateZ:rotate,skewX:r=>radToDeg(Math.atan(r[1])),skewY:r=>radToDeg(Math.atan(r[2])),skew:r=>(Math.abs(r[1])+Math.abs(r[2]))/2},rebaseAngle=r=>(r=r%360,r<0&&(r+=360),r),rotateZ=rotate,scaleX=r=>Math.sqrt(r[0]*r[0]+r[1]*r[1]),scaleY=r=>Math.sqrt(r[4]*r[4]+r[5]*r[5]),matrix3dParsers={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:r=>(scaleX(r)+scaleY(r))/2,rotateX:r=>rebaseAngle(radToDeg(Math.atan2(r[6],r[5]))),rotateY:r=>rebaseAngle(radToDeg(Math.atan2(-r[2],r[0]))),rotateZ,rotate:rotateZ,skewX:r=>radToDeg(Math.atan(r[4])),skewY:r=>radToDeg(Math.atan(r[1])),skew:r=>(Math.abs(r[1])+Math.abs(r[4]))/2};function defaultTransformValue(r){return r.includes("scale")?1:0}function parseValueFromTransform(r,y){if(!r||r==="none")return defaultTransformValue(y);const x=r.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let b,R;if(x)b=matrix3dParsers,R=x;else{const z=r.match(/^matrix\(([-\d.e\s,]+)\)$/u);b=matrix2dParsers,R=z}if(!R)return defaultTransformValue(y);const M=b[y],O=R[1].split(",").map(convertTransformToNumber);return typeof M=="function"?M(O):O[M]}const readTransformValue=(r,y)=>{const{transform:x="none"}=getComputedStyle(r);return parseValueFromTransform(x,y)};function convertTransformToNumber(r){return parseFloat(r.trim())}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder),isNumOrPxType=r=>r===number||r===px,transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(r=>!transformKeys.has(r));function removeNonTranslationalTransform(r){const y=[];return nonTranslationalTransformKeys.forEach(x=>{const b=r.getValue(x);b!==void 0&&(y.push([x,b.get()]),b.set(x.startsWith("scale")?1:0))}),y}const positionalValues={width:({x:r},{paddingLeft:y="0",paddingRight:x="0"})=>r.max-r.min-parseFloat(y)-parseFloat(x),height:({y:r},{paddingTop:y="0",paddingBottom:x="0"})=>r.max-r.min-parseFloat(y)-parseFloat(x),top:(r,{top:y})=>parseFloat(y),left:(r,{left:y})=>parseFloat(y),bottom:({y:r},{top:y})=>parseFloat(y)+(r.max-r.min),right:({x:r},{left:y})=>parseFloat(y)+(r.max-r.min),x:(r,{transform:y})=>parseValueFromTransform(y,"x"),y:(r,{transform:y})=>parseValueFromTransform(y,"y")};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const toResolve=new Set;let isScheduled=!1,anyNeedsMeasurement=!1,isForced=!1;function measureAllKeyframes(){if(anyNeedsMeasurement){const r=Array.from(toResolve).filter(b=>b.needsMeasurement),y=new Set(r.map(b=>b.element)),x=new Map;y.forEach(b=>{const R=removeNonTranslationalTransform(b);R.length&&(x.set(b,R),b.render())}),r.forEach(b=>b.measureInitialState()),y.forEach(b=>{b.render();const R=x.get(b);R&&R.forEach(([M,O])=>{b.getValue(M)?.set(O)})}),r.forEach(b=>b.measureEndState()),r.forEach(b=>{b.suspendedScrollY!==void 0&&window.scrollTo(0,b.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(r=>r.complete(isForced)),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){isForced=!0,readAllKeyframes(),measureAllKeyframes(),isForced=!1}class KeyframeResolver{constructor(y,x,b,R,M,O=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...y],this.onComplete=x,this.name=b,this.motionValue=R,this.element=M,this.isAsync=O}scheduleResolve(){this.state="scheduled",this.isAsync?(toResolve.add(this),isScheduled||(isScheduled=!0,frame.read(readAllKeyframes),frame.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:y,name:x,element:b,motionValue:R}=this;if(y[0]===null){const M=R?.get(),O=y[y.length-1];if(M!==void 0)y[0]=M;else if(b&&x){const z=b.readValue(x,O);z!=null&&(y[0]=z)}y[0]===void 0&&(y[0]=O),R&&M===void 0&&R.set(y[0])}fillWildcards(y)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(y=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,y),toResolve.delete(this)}cancel(){this.state==="scheduled"&&(toResolve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const isCSSVar=r=>r.startsWith("--");function setStyle(r,y,x){isCSSVar(y)?r.style.setProperty(y,x):r.style[y]=x}const supportsScrollTimeline=memo(()=>window.ScrollTimeline!==void 0),supportsFlags={};function memoSupports(r,y){const x=memo(r);return()=>supportsFlags[y]??x()}const supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cubicBezierAsString=([r,y,x,b])=>`cubic-bezier(${r}, ${y}, ${x}, ${b})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(r,y){if(r)return typeof r=="function"?supportsLinearEasing()?generateLinearEasing(r,y):"ease-out":isBezierDefinition(r)?cubicBezierAsString(r):Array.isArray(r)?r.map(x=>mapEasingToNativeEasing(x,y)||supportedWaapiEasing.easeOut):supportedWaapiEasing[r]}function startWaapiAnimation(r,y,x,{delay:b=0,duration:R=300,repeat:M=0,repeatType:O="loop",ease:z="easeOut",times:U}={},G=void 0){const q={[y]:x};U&&(q.offset=U);const J=mapEasingToNativeEasing(z,R);Array.isArray(J)&&(q.easing=J);const X={delay:b,duration:R,easing:Array.isArray(J)?"linear":J,fill:"both",iterations:M+1,direction:O==="reverse"?"alternate":"normal"};return G&&(X.pseudoElement=G),r.animate(q,X)}function isGenerator(r){return typeof r=="function"&&"applyToOptions"in r}function applyGeneratorOptions({type:r,...y}){return isGenerator(r)&&supportsLinearEasing()?r.applyToOptions(y):(y.duration??(y.duration=300),y.ease??(y.ease="easeOut"),y)}class NativeAnimation extends WithPromise{constructor(y){if(super(),this.finishedTime=null,this.isStopped=!1,!y)return;const{element:x,name:b,keyframes:R,pseudoElement:M,allowFlatten:O=!1,finalKeyframe:z,onComplete:U}=y;this.isPseudoElement=!!M,this.allowFlatten=O,this.options=y,invariant$1(typeof y.type!="string");const G=applyGeneratorOptions(y);this.animation=startWaapiAnimation(x,b,R,G,M),G.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!M){const q=getFinalKeyframe$1(R,this.options,z,this.speed);this.updateMotionValue?this.updateMotionValue(q):setStyle(x,b,q),this.animation.cancel()}U?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:y}=this;y==="idle"||y==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const y=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(y))}get iterationDuration(){const{delay:y=0}=this.options||{};return this.duration+millisecondsToSeconds(y)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(y){this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(y)}get speed(){return this.animation.playbackRate}set speed(y){y<0&&(this.finishedTime=null),this.animation.playbackRate=y}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(y){this.animation.startTime=y}attachTimeline({timeline:y,observe:x}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,y&&supportsScrollTimeline()?(this.animation.timeline=y,noop$1):x(this)}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(r){return r in unsupportedEasingFunctions}function replaceStringEasing(r){typeof r.ease=="string"&&isUnsupportedEase(r.ease)&&(r.ease=unsupportedEasingFunctions[r.ease])}const sampleDelta=10;class NativeAnimationExtended extends NativeAnimation{constructor(y){replaceStringEasing(y),replaceTransitionType(y),super(y),y.startTime&&(this.startTime=y.startTime),this.options=y}updateMotionValue(y){const{motionValue:x,onUpdate:b,onComplete:R,element:M,...O}=this.options;if(!x)return;if(y!==void 0){x.set(y);return}const z=new JSAnimation({...O,autoplay:!1}),U=secondsToMilliseconds(this.finishedTime??this.time);x.setWithVelocity(z.sample(U-sampleDelta).value,z.sample(U).value,sampleDelta),z.stop()}}const isAnimatable=(r,y)=>y==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(complex.test(r)||r==="0")&&!r.startsWith("url("));function hasKeyframesChanged(r){const y=r[0];if(r.length===1)return!0;for(let x=0;x<r.length;x++)if(r[x]!==y)return!0}function canAnimate(r,y,x,b){const R=r[0];if(R===null)return!1;if(y==="display"||y==="visibility")return!0;const M=r[r.length-1],O=isAnimatable(R,y),z=isAnimatable(M,y);return!O||!z?!1:hasKeyframesChanged(r)||(x==="spring"||isGenerator(x))&&b}function makeAnimationInstant(r){r.duration=0,r.type="keyframes"}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]),supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function supportsBrowserAnimation(r){const{motionValue:y,name:x,repeatDelay:b,repeatType:R,damping:M,type:O}=r;if(!(y?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:U,transformTemplate:G}=y.owner.getProps();return supportsWaapi()&&x&&acceleratedValues.has(x)&&(x!=="transform"||!G)&&!U&&!b&&R!=="mirror"&&M!==0&&O!=="inertia"}const MAX_RESOLVE_DELAY=40;class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:y=!0,delay:x=0,type:b="keyframes",repeat:R=0,repeatDelay:M=0,repeatType:O="loop",keyframes:z,name:U,motionValue:G,element:q,...J}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=time.now();const X={autoplay:y,delay:x,type:b,repeat:R,repeatDelay:M,repeatType:O,name:U,motionValue:G,element:q,...J},fe=q?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new fe(z,(te,ue,ye)=>this.onKeyframesResolved(te,ue,X,!ye),U,G,q),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(y,x,b,R){this.keyframeResolver=void 0;const{name:M,type:O,velocity:z,delay:U,isHandoff:G,onUpdate:q}=b;this.resolvedAt=time.now(),canAnimate(y,M,O,z)||((MotionGlobalConfig.instantAnimations||!U)&&q?.(getFinalKeyframe$1(y,b,x)),y[0]=y[y.length-1],makeAnimationInstant(b),b.repeat=0);const X={startTime:R?this.resolvedAt?this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:x,...b,keyframes:y},fe=!G&&supportsBrowserAnimation(X)?new NativeAnimationExtended({...X,element:X.motionValue.owner.current}):new JSAnimation(X);fe.finished.then(()=>this.notifyFinished()).catch(noop$1),this.pendingTimeline&&(this.stopTimeline=fe.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=fe}get finished(){return this._animation?this.animation.finished:this._finished}then(y,x){return this.finished.finally(y).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),flushKeyframeResolvers()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(y){this.animation.time=y}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(y){this.animation.speed=y}get startTime(){return this.animation.startTime}attachTimeline(y){return this._animation?this.stopTimeline=this.animation.attachTimeline(y):this.pendingTimeline=y,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(r){const y=splitCSSVariableRegex.exec(r);if(!y)return[,];const[,x,b,R]=y;return[`--${x??b}`,R]}function getVariableValue(r,y,x=1){const[b,R]=parseCSSVariable(r);if(!b)return;const M=window.getComputedStyle(y).getPropertyValue(b);if(M){const O=M.trim();return isNumericalString(O)?parseFloat(O):O}return isCSSVariableToken(R)?getVariableValue(R,y,x+1):R}function getValueTransition(r,y){return r?.[y]??r?.default??r}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]),auto={test:r=>r==="auto",parse:r=>r},testValueType=r=>y=>y.test(r),dimensionValueTypes=[number,px,percent,degrees,vw,vh,auto],findDimensionValueType=r=>dimensionValueTypes.find(testValueType(r));function isNone(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||isZeroValueString(r):!0}const maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(r){const[y,x]=r.slice(0,-1).split("(");if(y==="drop-shadow")return r;const[b]=x.match(floatRegex)||[];if(!b)return r;const R=x.replace(b,"");let M=maxDefaults.has(y)?1:0;return b!==x&&(M*=100),y+"("+M+R+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter={...complex,getAnimatableNone:r=>{const y=r.match(functionRegex);return y?y.map(applyDefaultFilter).join(" "):r}},int={...number,transform:Math.round},transformValueTypes={rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px},numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,backgroundPositionX:px,backgroundPositionY:px,...transformValueTypes,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter},getDefaultValueType=r=>defaultValueTypes[r];function getAnimatableNone(r,y){let x=getDefaultValueType(r);return x!==filter&&(x=complex),x.getAnimatableNone?x.getAnimatableNone(y):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(r,y,x){let b=0,R;for(;b<r.length&&!R;){const M=r[b];typeof M=="string"&&!invalidTemplates.has(M)&&analyseComplexValue(M).values.length&&(R=r[b]),b++}if(R&&x)for(const M of y)r[M]=getAnimatableNone(x,R)}class DOMKeyframesResolver extends KeyframeResolver{constructor(y,x,b,R,M){super(y,x,b,R,M,!0)}readKeyframes(){const{unresolvedKeyframes:y,element:x,name:b}=this;if(!x||!x.current)return;super.readKeyframes();for(let q=0;q<y.length;q++){let J=y[q];if(typeof J=="string"&&(J=J.trim(),isCSSVariableToken(J))){const X=getVariableValue(J,x.current);X!==void 0&&(y[q]=X),q===y.length-1&&(this.finalKeyframe=J)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(b)||y.length!==2)return;const[R,M]=y,O=findDimensionValueType(R),z=findDimensionValueType(M),U=containsCSSVariable(R),G=containsCSSVariable(M);if(U!==G&&positionalValues[b]){this.needsMeasurement=!0;return}if(O!==z)if(isNumOrPxType(O)&&isNumOrPxType(z))for(let q=0;q<y.length;q++){const J=y[q];typeof J=="string"&&(y[q]=parseFloat(J))}else positionalValues[b]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:y,name:x}=this,b=[];for(let R=0;R<y.length;R++)(y[R]===null||isNone(y[R]))&&b.push(R);b.length&&makeNoneKeyframesAnimatable(y,b,x)}measureInitialState(){const{element:y,unresolvedKeyframes:x,name:b}=this;if(!y||!y.current)return;b==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[b](y.measureViewportBox(),window.getComputedStyle(y.current)),x[0]=this.measuredOrigin;const R=x[x.length-1];R!==void 0&&y.getValue(b,R).jump(R,!1)}measureEndState(){const{element:y,name:x,unresolvedKeyframes:b}=this;if(!y||!y.current)return;const R=y.getValue(x);R&&R.jump(this.measuredOrigin,!1);const M=b.length-1,O=b[M];b[M]=positionalValues[x](y.measureViewportBox(),window.getComputedStyle(y.current)),O!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=O),this.removedTransforms?.length&&this.removedTransforms.forEach(([z,U])=>{y.getValue(z).set(U)}),this.resolveNoneKeyframes()}}function resolveElements(r,y,x){if(r instanceof EventTarget)return[r];if(typeof r=="string"){let b=document;const R=x?.[r]??b.querySelectorAll(r);return R?Array.from(R):[]}return Array.from(r)}const getValueAsType=(r,y)=>y&&typeof r=="number"?y.transform(r):r;function isHTMLElement(r){return isObject$1(r)&&"offsetHeight"in r}const MAX_VELOCITY_DELTA=30,isFloat=r=>!isNaN(parseFloat(r));class MotionValue{constructor(y,x={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=b=>{const R=time.now();if(this.updatedAt!==R&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(b),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const M of this.dependents)M.dirty()},this.hasAnimated=!1,this.setCurrent(y),this.owner=x.owner}setCurrent(y){this.current=y,this.updatedAt=time.now(),this.canTrackVelocity===null&&y!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(y=this.current){this.prevFrameValue=y,this.prevUpdatedAt=this.updatedAt}onChange(y){return this.on("change",y)}on(y,x){this.events[y]||(this.events[y]=new SubscriptionManager);const b=this.events[y].add(x);return y==="change"?()=>{b(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:b}clearListeners(){for(const y in this.events)this.events[y].clear()}attach(y,x){this.passiveEffect=y,this.stopPassiveEffect=x}set(y){this.passiveEffect?this.passiveEffect(y,this.updateAndNotify):this.updateAndNotify(y)}setWithVelocity(y,x,b){this.set(x),this.prev=void 0,this.prevFrameValue=y,this.prevUpdatedAt=this.updatedAt-b}jump(y,x=!0){this.updateAndNotify(y),this.prev=y,this.prevUpdatedAt=this.prevFrameValue=void 0,x&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(y){this.dependents||(this.dependents=new Set),this.dependents.add(y)}removeDependent(y){this.dependents&&this.dependents.delete(y)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const y=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||y-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const x=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),x)}start(y){return this.stop(),new Promise(x=>{this.hasAnimated=!0,this.animation=y(x),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(r,y){return new MotionValue(r,y)}const{schedule:microtask}=createRenderBatcher(queueMicrotask,!1),isDragging={x:!1,y:!1};function isDragActive(){return isDragging.x||isDragging.y}function setDragLock(r){return r==="x"||r==="y"?isDragging[r]?null:(isDragging[r]=!0,()=>{isDragging[r]=!1}):isDragging.x||isDragging.y?null:(isDragging.x=isDragging.y=!0,()=>{isDragging.x=isDragging.y=!1})}function setupGesture(r,y){const x=resolveElements(r),b=new AbortController,R={passive:!0,...y,signal:b.signal};return[x,R,()=>b.abort()]}function isValidHover(r){return!(r.pointerType==="touch"||isDragActive())}function hover(r,y,x={}){const[b,R,M]=setupGesture(r,x),O=z=>{if(!isValidHover(z))return;const{target:U}=z,G=y(U,z);if(typeof G!="function"||!U)return;const q=J=>{isValidHover(J)&&(G(J),U.removeEventListener("pointerleave",q))};U.addEventListener("pointerleave",q,R)};return b.forEach(z=>{z.addEventListener("pointerenter",O,R)}),M}const isNodeOrChild=(r,y)=>y?r===y?!0:isNodeOrChild(r,y.parentElement):!1,isPrimaryPointer=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1,focusableElements=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(r){return focusableElements.has(r.tagName)||r.tabIndex!==-1}const isPressing=new WeakSet;function filterEvents(r){return y=>{y.key==="Enter"&&r(y)}}function firePointerEvent(r,y){r.dispatchEvent(new PointerEvent("pointer"+y,{isPrimary:!0,bubbles:!0}))}const enableKeyboardPress=(r,y)=>{const x=r.currentTarget;if(!x)return;const b=filterEvents(()=>{if(isPressing.has(x))return;firePointerEvent(x,"down");const R=filterEvents(()=>{firePointerEvent(x,"up")}),M=()=>firePointerEvent(x,"cancel");x.addEventListener("keyup",R,y),x.addEventListener("blur",M,y)});x.addEventListener("keydown",b,y),x.addEventListener("blur",()=>x.removeEventListener("keydown",b),y)};function isValidPressEvent(r){return isPrimaryPointer(r)&&!isDragActive()}function press(r,y,x={}){const[b,R,M]=setupGesture(r,x),O=z=>{const U=z.currentTarget;if(!isValidPressEvent(z))return;isPressing.add(U);const G=y(U,z),q=(fe,te)=>{window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",X),isPressing.has(U)&&isPressing.delete(U),isValidPressEvent(fe)&&typeof G=="function"&&G(fe,{success:te})},J=fe=>{q(fe,U===window||U===document||x.useGlobalTarget||isNodeOrChild(U,fe.target))},X=fe=>{q(fe,!1)};window.addEventListener("pointerup",J,R),window.addEventListener("pointercancel",X,R)};return b.forEach(z=>{(x.useGlobalTarget?window:z).addEventListener("pointerdown",O,R),isHTMLElement(z)&&(z.addEventListener("focus",G=>enableKeyboardPress(G,R)),!isElementKeyboardAccessible(z)&&!z.hasAttribute("tabindex")&&(z.tabIndex=0))}),M}function isSVGElement(r){return isObject$1(r)&&"ownerSVGElement"in r}function isSVGSVGElement(r){return isSVGElement(r)&&r.tagName==="svg"}const isMotionValue=r=>!!(r&&r.getVelocity),valueTypes=[...dimensionValueTypes,color,complex],findValueType=r=>valueTypes.find(testValueType(r)),MotionConfigContext=reactExports.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"});function setRef(r,y){if(typeof r=="function")return r(y);r!=null&&(r.current=y)}function composeRefs(...r){return y=>{let x=!1;const b=r.map(R=>{const M=setRef(R,y);return!x&&typeof M=="function"&&(x=!0),M});if(x)return()=>{for(let R=0;R<b.length;R++){const M=b[R];typeof M=="function"?M():setRef(r[R],null)}}}}function useComposedRefs(...r){return reactExports.useCallback(composeRefs(...r),r)}class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(y){const x=this.props.childRef.current;if(x&&y.isPresent&&!this.props.isPresent){const b=x.offsetParent,R=isHTMLElement(b)&&b.offsetWidth||0,M=this.props.sizeRef.current;M.height=x.offsetHeight||0,M.width=x.offsetWidth||0,M.top=x.offsetTop,M.left=x.offsetLeft,M.right=R-M.width-M.left}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:r,isPresent:y,anchorX:x,root:b}){const R=reactExports.useId(),M=reactExports.useRef(null),O=reactExports.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:z}=reactExports.useContext(MotionConfigContext),U=useComposedRefs(M,r?.ref);return reactExports.useInsertionEffect(()=>{const{width:G,height:q,top:J,left:X,right:fe}=O.current;if(y||!M.current||!G||!q)return;const te=x==="left"?`left: ${X}`:`right: ${fe}`;M.current.dataset.motionPopId=R;const ue=document.createElement("style");z&&(ue.nonce=z);const ye=b??document.head;return ye.appendChild(ue),ue.sheet&&ue.sheet.insertRule(`
255          [data-motion-pop-id="${R}"] {
256            position: absolute !important;
257            width: ${G}px !important;
258            height: ${q}px !important;
259            ${te}px !important;
260            top: ${J}px !important;
261          }
262        `),()=>{ye.contains(ue)&&ye.removeChild(ue)}},[y]),jsxRuntimeExports.jsx(PopChildMeasure,{isPresent:y,childRef:M,sizeRef:O,children:reactExports.cloneElement(r,{ref:U})})}const PresenceChild=({children:r,initial:y,isPresent:x,onExitComplete:b,custom:R,presenceAffectsLayout:M,mode:O,anchorX:z,root:U})=>{const G=useConstant(newChildrenMap),q=reactExports.useId();let J=!0,X=reactExports.useMemo(()=>(J=!1,{id:q,initial:y,isPresent:x,custom:R,onExitComplete:fe=>{G.set(fe,!0);for(const te of G.values())if(!te)return;b&&b()},register:fe=>(G.set(fe,!1),()=>G.delete(fe))}),[x,G,b]);return M&&J&&(X={...X}),reactExports.useMemo(()=>{G.forEach((fe,te)=>G.set(te,!1))},[x]),reactExports.useEffect(()=>{!x&&!G.size&&b&&b()},[x]),O==="popLayout"&&(r=jsxRuntimeExports.jsx(PopChild,{isPresent:x,anchorX:z,root:U,children:r})),jsxRuntimeExports.jsx(PresenceContext.Provider,{value:X,children:r})};function newChildrenMap(){return new Map}function usePresence(r=!0){const y=reactExports.useContext(PresenceContext);if(y===null)return[!0,null];const{isPresent:x,onExitComplete:b,register:R}=y,M=reactExports.useId();reactExports.useEffect(()=>{if(r)return R(M)},[r]);const O=reactExports.useCallback(()=>r&&b&&b(M),[M,b,r]);return!x&&b?[!1,O]:[!0]}const getChildKey=r=>r.key||"";function onlyElements(r){const y=[];return reactExports.Children.forEach(r,x=>{reactExports.isValidElement(x)&&y.push(x)}),y}const AnimatePresence=({children:r,custom:y,initial:x=!0,onExitComplete:b,presenceAffectsLayout:R=!0,mode:M="sync",propagate:O=!1,anchorX:z="left",root:U})=>{const[G,q]=usePresence(O),J=reactExports.useMemo(()=>onlyElements(r),[r]),X=O&&!G?[]:J.map(getChildKey),fe=reactExports.useRef(!0),te=reactExports.useRef(J),ue=useConstant(()=>new Map),[ye,oe]=reactExports.useState(J),[ne,ae]=reactExports.useState(J);useIsomorphicLayoutEffect(()=>{fe.current=!1,te.current=J;for(let Ve=0;Ve<ne.length;Ve++){const Ue=getChildKey(ne[Ve]);X.includes(Ue)?ue.delete(Ue):ue.get(Ue)!==!0&&ue.set(Ue,!1)}},[ne,X.length,X.join("-")]);const pe=[];if(J!==ye){let Ve=[...J];for(let Ue=0;Ue<ne.length;Ue++){const $e=ne[Ue],We=getChildKey($e);X.includes(We)||(Ve.splice(Ue,0,$e),pe.push($e))}return M==="wait"&&pe.length&&(Ve=pe),ae(onlyElements(Ve)),oe(J),null}const{forceRender:je}=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ne.map(Ve=>{const Ue=getChildKey(Ve),$e=O&&!G?!1:J===ne||X.includes(Ue),We=()=>{if(ue.has(Ue))ue.set(Ue,!0);else return;let ot=!0;ue.forEach(ct=>{ct||(ot=!1)}),ot&&(je?.(),ae(te.current),O&&q?.(),b&&b())};return jsxRuntimeExports.jsx(PresenceChild,{isPresent:$e,initial:!fe.current||x?void 0:!1,custom:y,presenceAffectsLayout:R,mode:M,root:U,onExitComplete:$e?void 0:We,anchorX:z,children:Ve},Ue)})})},LazyContext=reactExports.createContext({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const r in featureProps)featureDefinitions[r]={isEnabled:y=>featureProps[r].some(x=>!!y[x])};function loadFeatures(r){for(const y in r)featureDefinitions[y]={...featureDefinitions[y],...r[y]}}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||validMotionProps.has(r)}let shouldForward=r=>!isValidMotionProp(r);function loadExternalIsValidProp(r){typeof r=="function"&&(shouldForward=y=>y.startsWith("on")?!isValidMotionProp(y):r(y))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(r,y,x){const b={};for(const R in r)R==="values"&&typeof r.values=="object"||(shouldForward(R)||x===!0&&isValidMotionProp(R)||!y&&!isValidMotionProp(R)||r.draggable&&R.startsWith("onDrag"))&&(b[R]=r[R]);return b}const MotionContext=reactExports.createContext({});function isAnimationControls(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}function isVariantLabel(r){return typeof r=="string"||Array.isArray(r)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(r){return isAnimationControls(r.animate)||variantProps.some(y=>isVariantLabel(r[y]))}function isVariantNode(r){return!!(isControllingVariants(r)||r.variants)}function getCurrentTreeVariants(r,y){if(isControllingVariants(r)){const{initial:x,animate:b}=r;return{initial:x===!1||isVariantLabel(x)?x:void 0,animate:isVariantLabel(b)?b:void 0}}return r.inherit!==!1?y:{}}function useCreateMotionContext(r){const{initial:y,animate:x}=getCurrentTreeVariants(r,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:y,animate:x}),[variantLabelsAsDependency(y),variantLabelsAsDependency(x)])}function variantLabelsAsDependency(r){return Array.isArray(r)?r.join(" "):r}function pixelsToPercent(r,y){return y.max===y.min?0:r/(y.max-y.min)*100}const correctBorderRadius={correct:(r,y)=>{if(!y.target)return r;if(typeof r=="string")if(px.test(r))r=parseFloat(r);else return r;const x=pixelsToPercent(r,y.target.x),b=pixelsToPercent(r,y.target.y);return`${x}% ${b}%`}},correctBoxShadow={correct:(r,{treeScale:y,projectionDelta:x})=>{const b=r,R=complex.parse(r);if(R.length>5)return b;const M=complex.createTransformer(r),O=typeof R[0]!="number"?1:0,z=x.x.scale*y.x,U=x.y.scale*y.y;R[0+O]/=z,R[1+O]/=U;const G=mixNumber$1(z,U,.5);return typeof R[2+O]=="number"&&(R[2+O]/=G),typeof R[3+O]=="number"&&(R[3+O]/=G),M(R)}},scaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxSh
vendor: 4,102 bytes, line 262
262adow:correctBoxShadow};function isForcedMotionValue(r,{layout:y,layoutId:x}){return transformProps.has(r)||r.startsWith("origin")||(y||x!==void 0)&&(!!scaleCorrectors[r]||r==="opacity")}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(r,y,x){let b="",R=!0;for(let M=0;M<numTransforms;M++){const O=transformPropOrder[M],z=r[O];if(z===void 0)continue;let U=!0;if(typeof z=="number"?U=z===(O.startsWith("scale")?1:0):U=parseFloat(z)===0,!U||x){const G=getValueAsType(z,numberValueTypes[O]);if(!U){R=!1;const q=translateAlias[O]||O;b+=`${q}(${G}) `}x&&(y[O]=G)}}return b=b.trim(),x?b=x(y,R?"":b):R&&(b="none"),b}function buildHTMLStyles(r,y,x){const{style:b,vars:R,transformOrigin:M}=r;let O=!1,z=!1;for(const U in y){const G=y[U];if(transformProps.has(U)){O=!0;continue}else if(isCSSVariableName(U)){R[U]=G;continue}else{const q=getValueAsType(G,numberValueTypes[U]);U.startsWith("origin")?(z=!0,M[U]=q):b[U]=q}}if(y.transform||(O||x?b.transform=buildTransform(y,r.transform,x):b.transform&&(b.transform="none")),z){const{originX:U="50%",originY:G="50%",originZ:q=0}=M;b.transformOrigin=`${U} ${G} ${q}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(r,y,x){for(const b in y)!isMotionValue(y[b])&&!isForcedMotionValue(b,x)&&(r[b]=y[b])}function useInitialMotionValues({transformTemplate:r},y){return reactExports.useMemo(()=>{const x=createHtmlRenderState();return buildHTMLStyles(x,y,r),Object.assign({},x.vars,x.style)},[y])}function useStyle(r,y){const x=r.style||{},b={};return copyRawValuesOnly(b,x,r),Object.assign(b,useInitialMotionValues(r,y)),b}function useHTMLProps(r,y){const x={},b=useStyle(r,y);return r.drag&&r.dragListener!==!1&&(x.draggable=!1,b.userSelect=b.WebkitUserSelect=b.WebkitTouchCallout="none",b.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(x.tabIndex=0),x.style=b,x}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(r,y,x=1,b=0,R=!0){r.pathLength=1;const M=R?dashKeys:camelKeys;r[M.offset]=px.transform(-b);const O=px.transform(y),z=px.transform(x);r[M.array]=`${O} ${z}`}function buildSVGAttrs(r,{attrX:y,attrY:x,attrScale:b,pathLength:R,pathSpacing:M=1,pathOffset:O=0,...z},U,G,q){if(buildHTMLStyles(r,z,G),U){r.style.viewBox&&(r.attrs.viewBox=r.style.viewBox);return}r.attrs=r.style,r.style={};const{attrs:J,style:X}=r;J.transform&&(X.transform=J.transform,delete J.transform),(X.transform||J.transformOrigin)&&(X.transformOrigin=J.transformOrigin??"50% 50%",delete J.transformOrigin),X.transform&&(X.transformBox=q?.transformBox??"fill-box",delete J.transformBox),y!==void 0&&(J.x=y),x!==void 0&&(J.y=x),b!==void 0&&(J.scale=b),R!==void 0&&buildSVGPath(J,R,M,O,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=r=>typeof r=="string"&&r.toLowerCase()==="svg";function useSVGProps(r,y,x,b){const R=reactExports.useMemo(()=>{const M=createSvgRenderState();return buildSVGAttrs(M,y,isSVGTag(b),r.transformTemplate,r.style),{...M.attrs,style:{...M.style}}},[y]);if(r.style){const M={};copyRawValuesOnly(M,r.style,r),R.style={...M,...R.style}}return R}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(r){return typeof r!="string"||r.includes("-")?!1:!!(lowercaseSVGElements.indexOf(r)>-1||/[A-Z]/u.test(r))}function useRender(r,y,x,{latestValues:b},R,M=!1){const z=(isSVGComponent(r)?useSVGProps:useHTMLProps)(y,b,R,r),U=filterProps(y,typeof r=="string",M),G=r!==reactExports.Fragment?{...U,...z,ref:x}:{},{children:q}=y,J=reactExports.useMemo(()=>isMotionValue(q)?q.get():q,[q]);return reactExports.createElement(r,{...G,children:J})}function getValueState(r){const y=[{},{}];
vendor: 4,391 bytes, line 262
262return r?.values.forEach((x,b)=>{y[0][b]=x.get(),y[1][b]=x.getVelocity()}),y}function resolveVariantFromProps(r,y,x,b){if(typeof y=="function"){const[R,M]=getValueState(b);y=y(x!==void 0?x:r.custom,R,M)}if(typeof y=="string"&&(y=r.variants&&r.variants[y]),typeof y=="function"){const[R,M]=getValueState(b);y=y(x!==void 0?x:r.custom,R,M)}return y}function resolveMotionValue(r){return isMotionValue(r)?r.get():r}function makeState({scrapeMotionValuesFromProps:r,createRenderState:y},x,b,R){return{latestValues:makeLatestValues(x,b,R,r),renderState:y()}}function makeLatestValues(r,y,x,b){const R={},M=b(r,{});for(const X in M)R[X]=resolveMotionValue(M[X]);let{initial:O,animate:z}=r;const U=isControllingVariants(r),G=isVariantNode(r);y&&G&&!U&&r.inherit!==!1&&(O===void 0&&(O=y.initial),z===void 0&&(z=y.animate));let q=x?x.initial===!1:!1;q=q||O===!1;const J=q?z:O;if(J&&typeof J!="boolean"&&!isAnimationControls(J)){const X=Array.isArray(J)?J:[J];for(let fe=0;fe<X.length;fe++){const te=resolveVariantFromProps(r,X[fe]);if(te){const{transitionEnd:ue,transition:ye,...oe}=te;for(const ne in oe){let ae=oe[ne];if(Array.isArray(ae)){const pe=q?ae.length-1:0;ae=ae[pe]}ae!==null&&(R[ne]=ae)}for(const ne in ue)R[ne]=ue[ne]}}}return R}const makeUseVisualState=r=>(y,x)=>{const b=reactExports.useContext(MotionContext),R=reactExports.useContext(PresenceContext),M=()=>makeState(r,y,b,R);return x?M():useConstant(M)};function scrapeMotionValuesFromProps$1(r,y,x){const{style:b}=r,R={};for(const M in b)(isMotionValue(b[M])||y.style&&isMotionValue(y.style[M])||isForcedMotionValue(M,r)||x?.getValue(M)?.liveStyle!==void 0)&&(R[M]=b[M]);return R}const useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState});function scrapeMotionValuesFromProps(r,y,x){const b=scrapeMotionValuesFromProps$1(r,y,x);for(const R in r)if(isMotionValue(r[R])||isMotionValue(y[R])){const M=transformPropOrder.indexOf(R)!==-1?"attr"+R.charAt(0).toUpperCase()+R.substring(1):R;b[M]=r[R]}return b}const useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function isRefObject(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function useMotionRef(r,y,x){return reactExports.useCallback(b=>{b&&r.onMount&&r.onMount(b),y&&(b?y.mount(b):y.unmount()),x&&(typeof x=="function"?x(b):isRefObject(x)&&(x.current=b))},[y])}const camelToDash=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),SwitchLayoutGroupContext=reactExports.createContext({});function useVisualElement(r,y,x,b,R){const{visualElement:M}=reactExports.useContext(MotionContext),O=reactExports.useContext(LazyContext),z=reactExports.useContext(PresenceContext),U=reactExports.useContext(MotionConfigContext).reducedMotion,G=reactExports.useRef(null);b=b||O.renderer,!G.current&&b&&(G.current=b(r,{visualState:y,parent:M,props:x,presenceContext:z,blockInitialAnimation:z?z.initial===!1:!1,reducedMotionConfig:U}));const q=G.current,J=reactExports.useContext(SwitchLayoutGroupContext);q&&!q.projection&&R&&(q.type==="html"||q.type==="svg")&&createProjectionNode$1(G.current,x,R,J);const X=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{q&&X.current&&q.update(x,z)});const fe=x[optimizedAppearDataAttribute],te=reactExports.useRef(!!fe&&!window.MotionHandoffIsComplete?.(fe)&&window.MotionHasOptimisedAnimation?.(fe));return useIsomorphicLayoutEffect(()=>{q&&(X.current=!0,window.MotionIsMounted=!0,q.updateFeatures(),q.scheduleRenderMicrotask(),te.current&&q.animationState&&q.animationState.animateChanges())}),reactExports.useEffect(()=>{q&&(!te.current&&q.animationState&&q.animationState.animateChanges(),te.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(fe)}),te.current=!1),q.enteringChildren=void 0)}),q}function createProjectionNode$1(r,y,x,b){const{layoutId:R,layout:M,drag:O,dragConstraints:z,layoutScroll:U,layoutRoot:G,layoutCrossfade:q}=y;r.projection=new x(r.latestValues,y["data-framer-portal-id"]?void 0:getClosestProjectingNode(r.parent)),r.projection.setOptions({layoutId:R,layout:M,alwaysMeasureLayout:!!O||z&&isRefObject(z),visualElement:r,animationType:typeof M=="str
262ing"?M:"both",initialPromotionConfig:b,crossfade:q,layoutScroll:U,layoutRoot:G})}function getClosestProjectingNode(r){if(r)return r.options.allowProjection!==!1?r.projection:getClosestProjectingNode(r.parent)}function createMotionComponent(r,{forwardMotionProps:y=!1}={},x,b){x&&loadFeatures(x);const R=isSVGComponent(r)?useSVGVisualState:useHTMLVisualState;function M(z,U){let G;const q={...reactExports.useContext(MotionConfigContext),...z,layoutId:useLayoutId(z)},{isStatic:J}=q,X=useCreateMotionContext(z),fe=R(z,J);if(!J&&isBrowser){useStrictMode();const te=getProjectionFunctionality(q);G=te.MeasureLayout,X.visualElement=useVisualElement(r,fe,q,b,te.ProjectionNode)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:X,children:[G&&X.visualElement?jsxRuntimeExports.jsx(G,{visualElement:X.visualElement,...q}):null,useRender(r,z,useMotionRef(fe,X.visualElement,U),fe,J,y)]})}M.displayName=`motion.${typeof r=="string"?r:`create(${r.displayName??r.name??""})`}`;const O=reactExports.forwardRef(M);return O[motionComponentSymbol]=r,O}function useLayoutId({layoutId:r}){const y=reactExports.useContext(LayoutGroupContext).id;return y&&r!==void 0?y+"-"+r:r}function useStrictMode(r,y){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(r){const{drag:y,layout:x}=featureDefinitions;if(!y&&!x)return{};const b={...y,...x};return{MeasureLayout:y?.isEnabled(r)||x?.isEnabled(r)?b.MeasureLayout:void 0,ProjectionNode:b.ProjectionNode}}function createMotionProxy(r,y){if(typeof Proxy>"u")return createMotionComponent;const x=new Map,b=(M,O)=>createMotionComponent(M,O,r,y),R=(M,O)=>b(M,O);return new Proxy(R,{get:(M,O)=>O==="create"?b:(x.has(O)||x.set(O,createMotionComponent(O,void 0,r,y)),x.get(O))})}function convertBoundingBoxToBox({top:r,left:y,right:x,bottom:b}){return{x:{min:y,max:x},y:{min:r,max:b}}}function convertBoxToBoundingBox({x:r,y}){return{top:y.min,right:r.max,bottom:y.max,left:r.min}}function transformBoxPoints(r,y){if(!y)return r;const x=y({x:r.left,y:r.top}),b=y({x:r.right,y:r.bottom});return{top:x.y,left:x.x,bottom:b.y,right:b.x}}function isIdentityScale(r){return r===void 0||r===1}function hasScale({scale:r,scaleX:y,scaleY:x}){return!isIdentityScale(r)||!isIdentityScale(y)||!isIdentityScale(x)}function hasTransform(r){return hasScale(r)||has2DTranslate(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function has2DTranslate(r){return is2DTranslate(r.x)||is2DTranslate(r.y)}function is2DTranslate(r){return r&&r!=="0%"}function scalePoint(r,y,x){const b=r-x,R=y*b;return x+R}function applyPointDelta(r,y,x,b,R){return R!==void 0&&(r=scalePoint(r,R,b)),scalePoint(r,x,b)+y}function applyAxisDelta(r,y=0,x=1,b,R){r.min=applyPointDelta(r.min,y,x,b,R),r.max=applyPointDelta(r.max,y,x,b,R)}function applyBoxDelta(r,{x:y,y:x}){applyAxisDelta(r.x,y.translate,y.scale,y.originPoint),applyAxisDelta(r.y,x.translate,x.scale,x.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(r,y,x,b=!1){const R=x.length;if(!R)return;y.x=y.y=1;let M,O;for(let z=0;z<R;z++){M=x[z],O=M.projectionDelta;const{visualElement:U}=M.options;U&&U.props.style&&U.props.style.display==="contents"||(b&&M.options.layoutScroll&&M.scroll&&M!==M.root&&transformBox(r,{x:-M.scroll.offset.x,y:-M.scroll.offset.y}),O&&(y.x*=O.x.scale,y.y*=O.y.scale,applyBoxDelta(r,O)),b&&hasTransform(M.latestValues)&&transformBox(r,M.latestValues))}y.x<TREE_SCALE_SNAP_MAX&&y.x>TREE_SCALE_SNAP_MIN&&(y.x=1),y.y<TREE_SCALE_SNAP_MAX&&y.y>TREE_SCALE_SNAP_MIN&&(y.y=1)}function translateAxis(r,y){r.min=r.min+y,r.max=r.max+y}function transformAxis(r,y,x,b,R=.5){const M=mixNumber$1(r.min,r.max,R);applyAxisDelta(r,y,x,M,b)}function transformBox(r,y){transformAxis(r.x,y.x,y.scaleX,y.scale,y.originX),transformAxis(r.y,y.y,y.scaleY,y.scale,y.originY)}function measureViewportBox(r,y){return convertBoundingBoxToBox(transformBoxPoints(r.getBoundingClientRect(),y))}function measurePageBox(r,y,x){const b=measureViewportBox(r,x),{scroll:R}=y;return R&&(translateAxis(b.x,R.offset.x),translateAxis(b.y,R.offset.y)),b}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),y=()=>prefersReducedMotion.current=r.matches;r.addEventListener("change",y),y()}else prefersReducedMotion.current=!1}const visualElementStore=new WeakMap;function updateMotionValuesFromProps(r,y,x){for(const b in y){const R=y[b],M=x[b];if(isMotionValue(R))r.addValue(b,R);else if(isMotionValue(M))r.addValue(b,motionValue(R,{owner:r}));else if(M!==R)if(r.hasValue(b)){const O=r.getValue(b);O.liveStyle===!0?O.jump(R):O.hasAnimated||O.set(R)}else{const O=r.getStaticValue(b);r.addValue(b,motionValue(O!==void 0?O:R,{owner:r}))}}for(const b in x)y[b]===void 0&&r.removeValue(b);return y}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VisualElement{scrapeMotionValuesFromProps(y,x,b){return{}}constructor({parent:y,props:x,presenceContext:b,reducedMotionConfig:R,blockInitialAnimation:M,visualState:O},z={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const X=time.now();this.renderScheduledAt<X&&(this.renderScheduledAt=X,frame.render(this.render,!1,!0))};const{latestValues:U,renderState:G}=O;this.latestValues=U,this.baseTarget={...U},this.initialValues=x.initial?{...U}:{},this.renderState=G,this.parent=y,this.props=x,this.presenceContext=b,this.depth=y?y.depth+1:0,this.reducedMotionConfig=R,this.options=z,this.blockInitialAnimation=!!M,this.isControllingVariants=isControllingVariants(x),this.isVariantNode=isVariantNode(x),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(y&&y.current);const{willChange:q,...J}=this.scrapeMotionValuesFromProps(x,{},this);for(const X in J){const fe=J[X];
vendor: 4,693 bytes, line 262
262U[X]!==void 0&&isMotionValue(fe)&&fe.set(U[X])}}mount(y){this.current=y,visualElementStore.set(y,this),this.projection&&!this.projection.instance&&this.projection.mount(y),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((x,b)=>this.bindToMotionValue(b,x)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(y=>y()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const y in this.events)this.events[y].clear();for(const y in this.features){const x=this.features[y];x&&(x.unmount(),x.isMounted=!1)}this.current=null}addChild(y){this.children.add(y),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(y)}removeChild(y){this.children.delete(y),this.enteringChildren&&this.enteringChildren.delete(y)}bindToMotionValue(y,x){this.valueSubscriptions.has(y)&&this.valueSubscriptions.get(y)();const b=transformProps.has(y);b&&this.onBindTransform&&this.onBindTransform();const R=x.on("change",O=>{this.latestValues[y]=O,this.props.onUpdate&&frame.preRender(this.notifyUpdate),b&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let M;window.MotionCheckAppearSync&&(M=window.MotionCheckAppearSync(this,y,x)),this.valueSubscriptions.set(y,()=>{R(),M&&M(),x.owner&&x.stop()})}sortNodePosition(y){return!this.current||!this.sortInstanceNodePosition||this.type!==y.type?0:this.sortInstanceNodePosition(this.current,y.current)}updateFeatures(){let y="animation";for(y in featureDefinitions){const x=featureDefinitions[y];if(!x)continue;const{isEnabled:b,Feature:R}=x;if(!this.features[y]&&R&&b(this.props)&&(this.features[y]=new R(this)),this.features[y]){const M=this.features[y];M.isMounted?M.update():(M.mount(),M.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(y){return this.latestValues[y]}setStaticValue(y,x){this.latestValues[y]=x}update(y,x){(y.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=y,this.prevPresenceContext=this.presenceContext,this.presenceContext=x;for(let b=0;b<propEventHandlers.length;b++){const R=propEventHandlers[b];this.propEventSubscriptions[R]&&(this.propEventSubscriptions[R](),delete this.propEventSubscriptions[R]);const M="on"+R,O=y[M];O&&(this.propEventSubscriptions[R]=this.on(R,O))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(y,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(y){return this.props.variants?this.props.variants[y]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(y){const x=this.getClosestVariantNode();if(x)return x.variantChildren&&x.variantChildren.add(y),()=>x.variantChildren.delete(y)}addValue(y,x){const b=this.values.get(y);x!==b&&(b&&this.removeValue(y),this.bindToMotionValue(y,x),this.values.set(y,x),this.latestValues[y]=x.get())}removeValue(y){this.values.delete(y);const x=this.valueSubscriptions.get(y);x&&(x(),this.valueSubscriptions.delete(y)),delete this.latestValues[y],this.removeValueFromRenderState(y,this.renderState)}hasValue(y){return this.values.has(y)}getValue(y,x){if(this.props.values&&this.props.values[y])return this.props.values[y];let b=this.values.get(y);return b===void 0&&x!==void 0&&(b=motionValue(x===null?void 0:x,{owner:this}),this.addValue(y,b)),b}readValue(y,x){let b=this.latestValues[y]!==void 0||!this.current?this.latestValues[y]:this.getBaseTargetFromProps(this.props,y)??this.readValueFromInstance(this.current,y,this.options);return b!=null&&(typeof b=="string"&&(isNumericalString(b)||isZeroValueString(b))?b=parseFloat(b):!findValueType(b)&&complex.test(x)&&(b=getAnimatableNone(y,x)),this.setBaseTarget(y,isMotionValue(b)?b.get():b)),isMotionValue(b)?b.get():b}setBaseTarget(y,x){this.baseTarget[y]=x}getBaseTarget(y){const{initial:x}=this.props;let b;
vendor: 2,302 bytes, line 262
262if(typeof x=="string"||typeof x=="object"){const M=resolveVariantFromProps(this.props,x,this.presenceContext?.custom);M&&(b=M[y])}if(x&&b!==void 0)return b;const R=this.getBaseTargetFromProps(this.props,y);return R!==void 0&&!isMotionValue(R)?R:this.initialValues[y]!==void 0&&b===void 0?void 0:this.baseTarget[y]}on(y,x){return this.events[y]||(this.events[y]=new SubscriptionManager),this.events[y].add(x)}notify(y,...x){this.events[y]&&this.events[y].notify(...x)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(y,x){return y.compareDocumentPosition(x)&2?1:-1}getBaseTargetFromProps(y,x){return y.style?y.style[x]:void 0}removeValueFromRenderState(y,{vars:x,style:b}){delete x[y],delete b[y]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:y}=this.props;isMotionValue(y)&&(this.childSubscription=y.on("change",x=>{this.current&&(this.current.textContent=`${x}`)}))}}function renderHTML(r,{style:y,vars:x},b,R){const M=r.style;let O;for(O in y)M[O]=y[O];R?.applyProjectionStyles(M,b);for(O in x)M.setProperty(O,x[O])}function getComputedStyle$1(r){return window.getComputedStyle(r)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(y,x){if(transformProps.has(x))return this.projection?.isProjecting?defaultTransformValue(x):readTransformValue(y,x);{const b=getComputedStyle$1(y),R=(isCSSVariableName(x)?b.getPropertyValue(x):b[x])||0;return typeof R=="string"?R.trim():R}}measureInstanceViewportBox(y,{transformPagePoint:x}){return measureViewportBox(y,x)}build(y,x,b){buildHTMLStyles(y,x,b.transformTemplate)}scrapeMotionValuesFromProps(y,x,b){return scrapeMotionValuesFromProps$1(y,x,b)}}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);
vendor: 27,919 bytes, line 262
262function renderSVG(r,y,x,b){renderHTML(r,y,void 0,b);for(const R in y.attrs)r.setAttribute(camelCaseAttributes.has(R)?R:camelToDash(R),y.attrs[R])}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(y,x){return y[x]}readValueFromInstance(y,x){if(transformProps.has(x)){const b=getDefaultValueType(x);return b&&b.default||0}return x=camelCaseAttributes.has(x)?x:camelToDash(x),y.getAttribute(x)}scrapeMotionValuesFromProps(y,x,b){return scrapeMotionValuesFromProps(y,x,b)}build(y,x,b){buildSVGAttrs(y,x,this.isSVGTag,b.transformTemplate,b.style)}renderInstance(y,x,b,R){renderSVG(y,x,b,R)}mount(y){this.isSVGTag=isSVGTag(y.tagName),super.mount(y)}}const createDomVisualElement=(r,y)=>isSVGComponent(r)?new SVGVisualElement(y):new HTMLVisualElement(y,{allowProjection:r!==reactExports.Fragment});function resolveVariant(r,y,x){const b=r.getProps();return resolveVariantFromProps(b,y,x!==void 0?x:b.custom,r)}const isKeyframesTarget=r=>Array.isArray(r);function setMotionValue(r,y,x){r.hasValue(y)?r.getValue(y).set(x):r.addValue(y,motionValue(x))}function resolveFinalValueInKeyframes(r){return isKeyframesTarget(r)?r[r.length-1]||0:r}function setTarget(r,y){const x=resolveVariant(r,y);let{transitionEnd:b={},transition:R={},...M}=x||{};M={...M,...b};for(const O in M){const z=resolveFinalValueInKeyframes(M[O]);setMotionValue(r,O,z)}}function isWillChangeMotionValue(r){return!!(isMotionValue(r)&&r.add)}function addValueToWillChange(r,y){const x=r.getValue("willChange");if(isWillChangeMotionValue(x))return x.add(y);if(!x&&MotionGlobalConfig.WillChange){const b=new MotionGlobalConfig.WillChange("auto");r.addValue("willChange",b),b.add(y)}}function getOptimisedAppearId(r){return r.props[optimizedAppearDataAttribute]}const isNotNull=r=>r!==null;function getFinalKeyframe(r,{repeat:y,repeatType:x="loop"},b){const R=r.filter(isNotNull),M=y&&x!=="loop"&&y%2===1?0:R.length-1;return R[M]}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(r,{keyframes:y})=>y.length>2?keyframesTransition:transformProps.has(r)?r.startsWith("scale")?criticallyDampedSpring(y[1]):underDampedSpring:ease;function isTransitionDefined({when:r,delay:y,delayChildren:x,staggerChildren:b,staggerDirection:R,repeat:M,repeatType:O,repeatDelay:z,from:U,elapsed:G,...q}){return!!Object.keys(q).length}const animateMotionValue=(r,y,x,b={},R,M)=>O=>{const z=getValueTransition(b,r)||{},U=z.delay||b.delay||0;let{elapsed:G=0}=b;G=G-secondsToMilliseconds(U);const q={keyframes:Array.isArray(x)?x:[null,x],ease:"easeOut",velocity:y.getVelocity(),...z,delay:-G,onUpdate:X=>{y.set(X),z.onUpdate&&z.onUpdate(X)},onComplete:()=>{O(),z.onComplete&&z.onComplete()},name:r,motionValue:y,element:M?void 0:R};isTransitionDefined(z)||Object.assign(q,getDefaultTransition(r,q)),q.duration&&(q.duration=secondsToMilliseconds(q.duration)),q.repeatDelay&&(q.repeatDelay=secondsToMilliseconds(q.repeatDelay)),q.from!==void 0&&(q.keyframes[0]=q.from);let J=!1;if((q.type===!1||q.duration===0&&!q.repeatDelay)&&(makeAnimationInstant(q),q.delay===0&&(J=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations)&&(J=!0,makeAnimationInstant(q),q.delay=0),q.allowFlatten=!z.type&&!z.ease,J&&!M&&y.get()!==void 0){const X=getFinalKeyframe(q.keyframes,z);if(X!==void 0){frame.update(()=>{q.onUpdate(X),q.onComplete()});return}}return z.isSync?new JSAnimation(q):new AsyncMotionValueAnimation(q)};function shouldBlockAnimation({protectedKeys:r,needsAnimating:y},x){const b=r.hasOwnProperty(x)&&y[x]!==!0;return y[x]=!1,b}function animateTarget(r,y,{delay:x=0,transitionOverride:b,type:R}={}){let{transition:M=r.getDefaultTransition(),transitionEnd:O,...z}=y;b&&(M=b);const U=[],G=R&&r.animationState&&r.animationState.getState()[R];for(const q in z){const J=r.getValue(q,r.latestValues[q]??null),X=z[q];if(X===void 0||G&&shouldBlockAnimation(G,q))continue;const fe={delay:x,...getValueTransition(M||{},q)},te=J.get();if(te!==void 0&&!J.isAnimating&&!Array.isArray(X)&&X===te&&!fe.velocity)continue;let ue=!1;if(window.MotionHandoffAnimation){const oe=getOptimisedAppearId(r);if(oe){const ne=window.MotionHandoffAnimation(oe,q,frame);ne!==null&&(fe.startTime=ne,ue=!0)}}addValueToWillChange(r,q),J.start(animateMotionValue(q,J,X,r.shouldReduceMotion&&positionalKeys.has(q)?{type:!1}:fe,r,ue));const ye=J.animation;ye&&U.push(ye)}return O&&Promise.all(U).then(()=>{frame.update(()=>{O&&setTarget(r,O)})}),U}function calcChildStagger(r,y,x,b=0,R=1){const M=Array.from(r).sort((G,q)=>G.sortNodePosition(q)).indexOf(y),O=r.size,z=(O-1)*b;return typeof x=="function"?x(M,O):R===1?M*b:z-M*b}function animateVariant(r,y,x={}){const b=resolveVariant(r,y,x.type==="exit"?r.presenceContext?.custom:void 0);let{transition:R=r.getDefaultTransition()||{}}=b||{};x.transitionOverride&&(R=x.transitionOverride);const M=b?()=>Promise.all(animateTarget(r,b,x)):()=>Promise.resolve(),O=r.variantChildren&&r.variantChildren.size?(U=0)=>{const{delayChildren:G=0,staggerChildren:q,staggerDirection:J}=R;return animateChildren(r,y,U,G,q,J,x)}:()=>Promise.resolve(),{when:z}=R;if(z){const[U,G]=z==="beforeChildren"?[M,O]:[O,M];return U().then(()=>G())}else return Promise.all([M(),O(x.delay)])}function animateChildren(r,y,x=0,b=0,R=0,M=1,O){const z=[];for(const U of r.variantChildren)U.notify("AnimationStart",y),z.push(animateVariant(U,y,{...O,delay:x+(typeof b=="function"?0:b)+calcChildStagger(r.variantChildren,U,b,R,M)}).then(()=>U.notify("AnimationComplete",y)));return Promise.all(z)}function animateVisualElement(r,y,x={}){r.notify("AnimationStart",y);let b;if(Array.isArray(y)){const R=y.map(M=>animateVariant(r,M,x));b=Promise.all(R)}else if(typeof y=="string")b=animateVariant(r,y,x);else{const R=typeof y=="function"?resolveVariant(r,y,x.custom):y;b=Promise.all(animateTarget(r,R,x))}return b.then(()=>{r.notify("AnimationComplete",y)})}function shallowCompare(r,y){if(!Array.isArray(y))return!1;const x=y.length;if(x!==r.length)return!1;for(let b=0;b<x;b++)if(y[b]!==r[b])return!1;return!0}const numVariantProps=variantProps.length;function getVariantContext(r){if(!r)return;if(!r.isControllingVariants){const x=r.parent?getVariantContext(r.parent)||{}:{};return r.props.initial!==void 0&&(x.initial=r.props.initial),x}const y={};for(let x=0;x<numVariantProps;x++){const b=variantProps[x],R=r.props[b];(isVariantLabel(R)||R===!1)&&(y[b]=R)}return y}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(r){return y=>Promise.all(y.map(({animation:x,options:b})=>animateVisualElement(r,x,b)))}function createAnimationState(r){let y=animateList(r),x=createState(),b=!0;const R=U=>(G,q)=>{const J=resolveVariant(r,q,U==="exit"?r.presenceContext?.custom:void 0);if(J){const{transition:X,transitionEnd:fe,...te}=J;G={...G,...te,...fe}}return G};function M(U){y=U(r)}function O(U){const{props:G}=r,q=getVariantContext(r.parent)||{},J=[],X=new Set;let fe={},te=1/0;for(let ye=0;ye<numAnimationTypes;ye++){const oe=reversePriorityOrder[ye],ne=x[oe],ae=G[oe]!==void 0?G[oe]:q[oe],pe=isVariantLabel(ae),je=oe===U?ne.isActive:null;je===!1&&(te=ye);let Ve=ae===q[oe]&&ae!==G[oe]&&pe;if(Ve&&b&&r.manuallyAnimateOnMount&&(Ve=!1),ne.protectedKeys={...fe},!ne.isActive&&je===null||!ae&&!ne.prevProp||isAnimationControls(ae)||typeof ae=="boolean")continue;const Ue=checkVariantsDidChange(ne.prevProp,ae);let $e=Ue||oe===U&&ne.isActive&&!Ve&&pe||ye>te&&pe,We=!1;const ot=Array.isArray(ae)?ae:[ae];let ct=ot.reduce(R(oe),{});je===!1&&(ct={});const{prevResolvedValues:it={}}=ne,ft={...it,...ct},dt=He=>{$e=!0,X.has(He)&&(We=!0,X.delete(He)),ne.needsAnimating[He]=!0;const _e=r.getValue(He);_e&&(_e.liveStyle=!1)};for(const He in ft){const _e=ct[He],Be=it[He];if(fe.hasOwnProperty(He))continue;let Ye=!1;isKeyframesTarget(_e)&&isKeyframesTarget(Be)?Ye=!shallowCompare(_e,Be):Ye=_e!==Be,Ye?_e!=null?dt(He):X.add(He):_e!==void 0&&X.has(He)?dt(He):ne.protectedKeys[He]=!0}ne.prevProp=ae,ne.prevResolvedValues=ct,ne.isActive&&(fe={...fe,...ct}),b&&r.blockInitialAnimation&&($e=!1);const nt=Ve&&Ue;$e&&(!nt||We)&&J.push(...ot.map(He=>{const _e={type:oe};if(typeof He=="string"&&b&&!nt&&r.manuallyAnimateOnMount&&r.parent){const{parent:Be}=r,Ye=resolveVariant(Be,He);if(Be.enteringChildren&&Ye){const{delayChildren:Le}=Ye.transition||{};_e.delay=calcChildStagger(Be.enteringChildren,r,Le)}}return{animation:He,options:_e}}))}if(X.size){const ye={};if(typeof G.initial!="boolean"){const oe=resolveVariant(r,Array.isArray(G.initial)?G.initial[0]:G.initial);oe&&oe.transition&&(ye.transition=oe.transition)}X.forEach(oe=>{const ne=r.getBaseTarget(oe),ae=r.getValue(oe);ae&&(ae.liveStyle=!0),ye[oe]=ne??null}),J.push({animation:ye})}let ue=!!J.length;return b&&(G.initial===!1||G.initial===G.animate)&&!r.manuallyAnimateOnMount&&(ue=!1),b=!1,ue?y(J):Promise.resolve()}function z(U,G){if(x[U].isActive===G)return Promise.resolve();r.variantChildren?.forEach(J=>J.animationState?.setActive(U,G)),x[U].isActive=G;const q=O(U);for(const J in x)x[J].protectedKeys={};return q}return{animateChanges:O,setActive:z,setAnimateFunction:M,getState:()=>x,reset:()=>{x=createState()}}}function checkVariantsDidChange(r,y){return typeof y=="string"?y!==r:Array.isArray(y)?!shallowCompare(y,r):!1}function createTypeState(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class Feature{constructor(y){this.isMounted=!1,this.node=y}update(){}}class AnimationFeature extends Feature{constructor(y){super(y),y.animationState||(y.animationState=createAnimationState(y))}updateAnimationControlsSubscription(){const{animate:y}=this.node.getProps();isAnimationControls(y)&&(this.unmountControls=y.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:y}=this.node.getProps(),{animate:x}=this.node.prevProps||{};y!==x&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:y,onExitComplete:x}=this.node.presenceContext,{isPresent:b}=this.node.prevPresenceContext||{};if(!this.node.animationState||y===b)return;const R=this.node.animationState.setActive("exit",!y);x&&!y&&R.then(()=>{x(this.id)})}mount(){const{register:y,onExitComplete:x}=this.node.presenceContext||{};x&&x(this.id),y&&(this.unmount=y(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function addDomEvent(r,y,x,b={passive:!0}){return r.addEventListener(y,x,b),()=>r.removeEventListener(y,x)}function extractEventInfo(r){return{point:{x:r.pageX,y:r.pageY}}}const addPointerInfo=r=>y=>isPrimaryPointer(y)&&r(y,extractEventInfo(y));function addPointerEvent(r,y,x,b){return addDomEvent(r,y,addPointerInfo(x),b)}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(r){return r.max-r.min}function isNear(r,y,x){return Math.abs(r-y)<=x}function calcAxisDelta(r,y,x,b=.5){r.origin=b,r.originPoint=mixNumber$1(y.min,y.max,r.origin),r.scale=calcLength(x)/calcLength(y),r.translate=mixNumber$1(x.min,x.max,r.origin)-r.originPoint,(r.scale>=SCALE_MIN&&r.scale<=SCALE_MAX||isNaN(r.scale))&&(r.scale=1),(r.translate>=TRANSLATE_MIN&&r.translate<=TRANSLATE_MAX||isNaN(r.translate))&&(r.translate=0)}function calcBoxDelta(r,y,x,b){calcAxisDelta(r.x,y.x,x.x,b?b.originX:void 0),calcAxisDelta(r.y,y.y,x.y,b?b.originY:void 0)}function calcRelativeAxis(r,y,x){r.min=x.min+y.min,r.max=r.min+calcLength(y)}function calcRelativeBox(r,y,x){calcRelativeAxis(r.x,y.x,x.x),calcRelativeAxis(r.y,y.y,x.y)}function calcRelativeAxisPosition(r,y,x){r.min=y.min-x.min,r.max=r.min+calcLength(y)}function calcRelativePosition(r,y,x){calcRelativeAxisPosition(r.x,y.x,x.x),calcRelativeAxisPosition(r.y,y.y,x.y)}function eachAxis(r){return[r("x"),r("y")]}const getContextWindow=({current:r})=>r?r.ownerDocument.defaultView:null,distance=(r,y)=>Math.abs(r-y);function distance2D(r,y){const x=distance(r.x,y.x),b=distance(r.y,y.y);return Math.sqrt(x**2+b**2)}class PanSession{constructor(y,x,{transformPagePoint:b,contextWindow:R=window,dragSnapToOrigin:M=!1,distanceThreshold:O=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const X=getPanInfo(this.lastMoveEventInfo,this.history),fe=this.startEvent!==null,te=distance2D(X.offset,{x:0,y:0})>=this.distanceThreshold;if(!fe&&!te)return;const{point:ue}=X,{timestamp:ye}=frameData;this.history.push({...ue,timestamp:ye});const{onStart:oe,onMove:ne}=this.handlers;fe||(oe&&oe(this.lastMoveEvent,X),this.startEvent=this.lastMoveEvent),ne&&ne(this.lastMoveEvent,X)},this.handlePointerMove=(X,fe)=>{this.lastMoveEvent=X,this.lastMoveEventInfo=transformPoint(fe,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(X,fe)=>{this.end();const{onEnd:te,onSessionEnd:ue,resumeAnimation:ye}=this.handlers;if(this.dragSnapToOrigin&&ye&&ye(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const oe=getPanInfo(X.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(fe,this.transformPagePoint),this.history);this.startEvent&&te&&te(X,oe),ue&&ue(X,oe)},!isPrimaryPointer(y))return;this.dragSnapToOrigin=M,this.handlers=x,this.transformPagePoint=b,this.distanceThreshold=O,this.contextWindow=R||window;const z=extractEventInfo(y),U=transformPoint(z,this.transformPagePoint),{point:G}=U,{timestamp:q}=frameData;this.history=[{...G,timestamp:q}];const{onSessionStart:J}=x;J&&J(y,getPanInfo(U,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(y){this.handlers=y}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(r,y){return y?{point:y(r.point)}:r}function subtractPoint(r,y){return{x:r.x-y.x,y:r.y-y.y}}function getPanInfo({point:r},y){return{point:r,delta:subtractPoint(r,lastDevicePoint(y)),offset:subtractPoint(r,startDevicePoint(y)),velocity:getVelocity(y,.1)}}function startDevicePoint(r){return r[0]}function lastDevicePoint(r){return r[r.length-1]}function getVelocity(r,y){if(r.length<2)return{x:0,y:0};let x=r.length-1,b=null;const R=lastDevicePoint(r);for(;x>=0&&(b=r[x],!(R.timestamp-b.timestamp>secondsToMilliseconds(y)));)x--;if(!b)return{x:0,y:0};const M=millisecondsToSeconds(R.timestamp-b.timestamp);if(M===0)return{x:0,y:0};const O={x:(R.x-b.x)/M,y:(R.y-b.y)/M};return O.x===1/0&&(O.x=0),O.y===1/0&&(O.y=0),O}function applyConstraints(r,{min:y,max:x},b){return y!==void 0&&r<y?r=b?mixNumber$1(y,r,b.min):Math.max(r,y):x!==void 0&&r>x&&(r=b?mixNumber$1(x,r,b.max):Math.min(r,x)),r}function calcRelativeAxisConstraints(r,y,x){return{min:y!==void 0?r.min+y:void 0,max:x!==void 0?r.max+x-(r.max-r.min):void 0}}function calcRelativeConstraints(r,{top:y,left:x,bottom:b,right:R}){return{x:calcRelativeAxisConstraints(r.x,x,R),y:calcRelativeAxisConstraints(r.y,y,b)}}function calcViewportAxisConstraints(r,y){let x=y.min-r.min,b=y.max-r.max;return y.max-y.min<r.max-r.min&&([x,b]=[b,x]),{min:x,max:b}}function calcViewportConstraints(r,y){return{x:calcViewportAxisConstraints(r.x,y.x),y:calcViewportAxisConstraints(r.y,y.y)}}function calcOrigin(r,y){let x=.5;const b=calcLength(r),R=calcLength(y);return R>b?x=progress(y.min,y.max-b,r.min):b>R&&(x=progress(r.min,r.max-R,y.min)),clamp(0,1,x)}function rebaseAxisConstraints(r,y){const x={};return y.min!==void 0&&(x.min=y.min-r.min),y.max!==void 0&&(x.max=y.max-r.min),x}const defaultElastic=.35;function resolveDragElastic(r=defaultElastic){return r===!1?r=0:r===!0&&(r=defaultElastic),{x:resolveAxisElastic(r,"left","right"),y:resolveAxisElastic(r,"top","bottom")}}function resolveAxisElastic(r,y,x){return{min:resolvePointElastic(r,y),max:resolvePointElastic(r,x)}}function resolvePointElastic(r,y){return typeof r=="number"?r:r[y]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(y){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=y}start(y,{snapToCursor:x=!1,distanceThreshold:b}={}){const{presenceContext:R}=this.visualElement;if(R&&R.isPresent===!1)return;const M=J=>{const{dragSnapToOrigin:X}=this.getProps();X?this.pauseAnimation():this.stopAnimation(),x&&this.snapToCursor(extractEventInfo(J).point)},O=(J,X)=>{const{drag:fe,dragPropagation:te,onDragStart:ue}=this.getProps();if(fe&&!te&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(fe),!this.openDragLock))return;this.latestPointerEvent=J,this.latestPanInfo=X,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(oe=>{let ne=this.getAxisMotionValue(oe).get()||0;if(percent.test(ne)){const{projection:ae}=this.visualElement;if(ae&&ae.layout){const pe=ae.layout.layoutBox[oe];pe&&(ne=calcLength(pe)*(parseFloat(ne)/100))}}this.originPoint[oe]=ne}),ue&&frame.postRender(()=>ue(J,X)),addValueToWillChange(this.visualElement,"transform");const{animationState:ye}=this.visualElement;ye&&ye.setActive("whileDrag",!0)},z=(J,X)=>{this.latestPointerEvent=J,this.latestPanInfo=X;const{dragPropagation:fe,dragDirectionLock:te,onDirectionLock:ue,onDrag:ye}=this.getProps();if(!fe&&!this.openDragLock)return;const{offset:oe}=X;if(te&&this.currentDirection===null){this.currentDirection=getCurrentDirection(oe),this.currentDirection!==null&&ue&&ue(this.currentDirection);return}this.updateAxis("x",X.point,oe),this.updateAxis("y",X.point,oe),this.visualElement.render(),ye&&ye(J,X)},U=(J,X)=>{this.latestPointerEvent=J,this.latestPanInfo=X,this.stop(J,X),this.latestPointerEvent=null,this.latestPanInfo=null},G=()=>eachAxis(J=>this.getAnimationState(J)==="paused"&&this.getAxisMotionValue(J).animation?.play()),{dragSnapToOrigin:q}=this.getProps();this.panSession=new PanSession(y,{onSessionStart:M,onStart:O,onMove:z,onSessionEnd:U,resumeAnimation:G},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:q,distanceThreshold:b,contextWindow:getContextWindow(this.visualElement)})}stop(y,x){const b=y||this.latestPointerEvent,R=x||this.latestPanInfo,M=this.isDragging;if(this.cancel(),!M||!R||!b)return;const{velocity:O}=R;this.startAnimation(O);const{onDragEnd:z}=this.getProps();z&&frame.postRender(()=>z(b,R))}cancel(){this.isDragging=!1;const{projection:y,animationState:x}=this.visualElement;y&&(y.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:b}=this.getProps();!b&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),x&&x.setActive("whileDrag",!1)}updateAxis(y,x,b){const{drag:R}=this.getProps();if(!b||!shouldDrag(y,R,this.currentDirection))return;const M=this.getAxisMotionValue(y);let O=this.originPoint[y]+b[y];this.constraints&&this.constraints[y]&&(O=applyConstraints(O,this.constraints[y],this.elastic[y])),M.set(O)}resolveConstraints(){const{dragConstraints:y,dragElastic:x}=this.getProps(),b=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,R=this.constraints;y&&isRefObject(y)?this.constraints||(this.constraints=this.resolveRefConstraints()):y&&b?this.constraints=calcRelativeConstraints(b.layoutBox,y):this.constraints=!1,this.elastic=resolveDragElastic(x),R!==this.constraints&&b&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(M=>{this.constraints!==!1&&this.getAxisMotionValue(M)&&(this.constraints[M]=rebaseAxisConstraints(b.layoutBox[M],this.constraints[M]))})}resolveRefConstraints(){const{dragConstraints:y,onMeasureDragConstraints:x}=this.getProps();if(!y||!isRefObject(y))return!1;const b=y.current,{projection:R}=this.visualElement;if(!R||!R.layout)return!1;const M=measurePageBox(b,R.root,this.visualElement.getTransformPagePoint());let O=calcViewportConstraints(R.layout.layoutBox,M);if(x){const z=x(convertBoxToBoundingBox(O));this.hasMutatedConstraints=!!z,z&&(O=convertBoundingBoxToBox(z))}return O}startAnimation(y){const{drag:x,dragMomentum:b,dragElastic:R,dragTransition:M,dragSnapToOrigin:O,onDragTransitionEnd:z}=this.getProps(),U=this.constraints||{},G=eachAxis(q=>{if(!shouldDrag(q,x,this.currentDirection))return;let J=U&&U[q]||{};O&&(J={min:0,max:0});const X=R?200:1e6,fe=R?40:1e7,te={type:"inertia",velocity:b?y[q]:0,bounceStiffness:X,bounceDamping:fe,timeConstant:750,restDelta:1,restSpeed:10,...M,...J};return this.startAxisValueAnimation(q,te)});return Promise.all(G).then(z)}startAxisValueAnimation(y,x){const b=this.getAxisMotionValue(y);return addValueToWillChange(this.visualElement,y),b.start(animateMotionValue(y,b,0,x,this.visualElement,!1))}stopAnimation(){eachAxis(y=>this.getAxisMotionValue(y).stop())}pauseAnimation(){eachAxis(y=>this.getAxisMotionValue(y).animation?.pause())}getAnimationState(y){return this.getAxisMotionValue(y).animation?.state}getAxisMotionValue(y){const x=`_drag${y.toUpperCase()}`,b=this.visualElement.getProps(),R=b[x];return R||this.visualElement.getValue(y,(b.initial?b.initial[y]:void 0)||0)}snapToCursor(y){eachAxis(x=>{const{drag:b}=this.getProps();if(!shouldDrag(x,b,this.currentDirection))return;const{projection:R}=this.visualElement,M=this.getAxisMotionValue(x);if(R&&R.layout){const{min:O,max:z}=R.layout.layoutBox[x];M.set(y[x]-mixNumber$1(O,z,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:y,dragConstraints:x}=this.getProps(),{projection:b}=this.visualElement;if(!isRefObject(x)||!b||!this.constraints)return;this.stopAnimation();const R={x:0,y:0};eachAxis(O=>{const z=this.getAxisMotionValue(O);if(z&&this.constraints!==!1){const U=z.get();R[O]=calcOrigin({min:U,max:U},this.constraints[O])}});const{transformTemplate:M}=this.visualElement.getProps();this.visualElement.current.style.transform=M?M({},""):"none",b.root&&b.root.updateScroll(),b.updateLayout(),this.resolveConstraints(),eachAxis(O=>{if(!shouldDrag(O,y,null))return;const z=this.getAxisMotionValue(O),{min:U,max:G}=this.constraints[O];z.set(mixNumber$1(U,G,R[O]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const y=this.visualElement.current,x=addPointerEvent(y,"pointerdown",U=>{const{drag:G,dragListener:q=!0}=this.getProps();G&&q&&this.start(U)}),b=()=>{const{dragConstraints:U}=this.getProps();isRefObject(U)&&U.current&&(this.constraints=this.resolveRefConstraints())},{projection:R}=this.visualElement,M=R.addEventListener("measure",b);R&&!R.layout&&(R.root&&R.root.updateScroll(),R.updateLayout()),frame.read(b);const O=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),z=R.addEventListener("didUpdate",(({delta:U,hasLayoutChanged:G})=>{this.isDragging&&G&&(eachAxis(q=>{const J=this.getAxisMotionValue(q);J&&(this.originPoint[q]+=U[q].translate,J.set(J.get()+U[q].translate))}),this.visualElement.render())}));return()=>{O(),x(),M(),z&&z()}}getProps(){const y=this.visualElement.getProps(),{drag:x=!1,dragDirectionLock:b=!1,dragPropagation:R=!1,dragConstraints:M=!1,dragElastic:O=defaultElastic,dragMomentum:z=!0}=y;return{...y,drag:x,dragDirectionLock:b,dragPropagation:R,dragConstraints:M,dragElastic:O,dragMomentum:z}}}function shouldDrag(r,y,x){return(y===!0||y===r)&&(x===null||x===r)}function getCurrentDirection(r,y=10){let x=null;return Math.abs(r.y)>y?x="y":Math.abs(r.x)>y&&(x="x"),x}class DragGesture extends Feature{constructor(y){super(y),this.removeGroupControls=noop$1,this.removeListeners=noop$1,this.controls=new VisualElementDragControls(y)}mount(){const{dragControls:y}=this.node.getProps();y&&(this.removeGroupControls=y.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop$1}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=r=>(y,x)=>{r&&frame.postRender(()=>r(y,x))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop$1}onPointerDown(y){this.session=new PanSession(y,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:y,onPanStart:x,onPan:b,onPanEnd:R}=this.node.getProps();return{onSessionStart:asyncHandler(y),onStart:asyncHandler(x),onMove:b,onEnd:(M,O)=>{delete this.session,R&&frame.postRender(()=>R(M,O))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",y=>this.onPointerDown(y))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:y,layoutGroup:x,switchLayoutGroup:b,layoutId:R}=this.props,{projection:M}=y;M&&(x.group&&x.group.add(M),b&&b.register&&R&&b.register(M),hasTakenAnySnapshot&&M.root.didUpdate(),M.addEventListener("animationComplete",()=>{this.safeToRemove()}),M.setOptions({...M.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(y){const{layoutDependency:x,visualElement:b,drag:R,isPresent:M}=this.props,{projection:O}=b;return O&&(O.isPresent=M,hasTakenAnySnapshot=!0,R||y.layoutDependency!==x||x===void 0||y.isPresent!==M?O.willUpdate():this.safeToRemove(),y.isPresent!==M&&(M?O.promote():O.relegate()||frame.postRender(()=>{const z=O.getStack();(!z||!z.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:y}=this.props.visualElement;y&&(y.root.didUpdate(),microtask.postRender(()=>{!y.currentAnimation&&y.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:y,layoutGroup:x,switchLayoutGroup:b}=this.props,{projection:R}=y;hasTakenAnySnapshot=!0,R&&(R.scheduleCheckAfterUnmount(),x&&x.group&&x.group.remove(R),b&&b.deregister&&b.deregister(R))}safeToRemove(){const{safeToRemove:y}=this.props;y&&y()}render(){return null}}function MeasureLayout(r){const[y,x]=usePresence(),b=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...r,layoutGroup:b,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:y,safeToRemove:x})}function animateSingleValue(r,y,x){const b=isMotionValue(r)?r:motionValue(r);return b.start(animateMotionValue("",b,y,x)),b.animation}const compareByDepth=(r,y)=>r.depth-y.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(y){addUniqueItem(this.children,y),this.isDirty=!0}remove(y){removeItem(this.children,y),this.isDirty=!0}forEach(y){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEac
vendor: 5,976 bytes, line 262
262h(y)}}function delay(r,y){const x=time.now(),b=({timestamp:R})=>{const M=R-x;M>=y&&(cancelFrame(b),r(M-y))};return frame.setup(b,!0),()=>cancelFrame(b)}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=r=>typeof r=="string"?parseFloat(r):r,isPx=r=>typeof r=="number"||px.test(r);function mixValues(r,y,x,b,R,M){R?(r.opacity=mixNumber$1(0,x.opacity??1,easeCrossfadeIn(b)),r.opacityExit=mixNumber$1(y.opacity??1,0,easeCrossfadeOut(b))):M&&(r.opacity=mixNumber$1(y.opacity??1,x.opacity??1,b));for(let O=0;O<numBorders;O++){const z=`border${borders[O]}Radius`;let U=getRadius(y,z),G=getRadius(x,z);if(U===void 0&&G===void 0)continue;U||(U=0),G||(G=0),U===0||G===0||isPx(U)===isPx(G)?(r[z]=Math.max(mixNumber$1(asNumber(U),asNumber(G),b),0),(percent.test(G)||percent.test(U))&&(r[z]+="%")):r[z]=G}(y.rotate||x.rotate)&&(r.rotate=mixNumber$1(y.rotate||0,x.rotate||0,b))}function getRadius(r,y){return r[y]!==void 0?r[y]:r.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop$1);function compress(r,y,x){return b=>b<r?0:b>y?1:x(progress(r,y,b))}function copyAxisInto(r,y){r.min=y.min,r.max=y.max}function copyBoxInto(r,y){copyAxisInto(r.x,y.x),copyAxisInto(r.y,y.y)}function copyAxisDeltaInto(r,y){r.translate=y.translate,r.scale=y.scale,r.originPoint=y.originPoint,r.origin=y.origin}function removePointDelta(r,y,x,b,R){return r-=y,r=scalePoint(r,1/x,b),R!==void 0&&(r=scalePoint(r,1/R,b)),r}function removeAxisDelta(r,y=0,x=1,b=.5,R,M=r,O=r){if(percent.test(y)&&(y=parseFloat(y),y=mixNumber$1(O.min,O.max,y/100)-O.min),typeof y!="number")return;let z=mixNumber$1(M.min,M.max,b);r===M&&(z-=y),r.min=removePointDelta(r.min,y,x,z,R),r.max=removePointDelta(r.max,y,x,z,R)}function removeAxisTransforms(r,y,[x,b,R],M,O){removeAxisDelta(r,y[x],y[b],y[R],y.scale,M,O)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(r,y,x,b){removeAxisTransforms(r.x,y,xKeys,x?x.x:void 0,b?b.x:void 0),removeAxisTransforms(r.y,y,yKeys,x?x.y:void 0,b?b.y:void 0)}function isAxisDeltaZero(r){return r.translate===0&&r.scale===1}function isDeltaZero(r){return isAxisDeltaZero(r.x)&&isAxisDeltaZero(r.y)}function axisEquals(r,y){return r.min===y.min&&r.max===y.max}function boxEquals(r,y){return axisEquals(r.x,y.x)&&axisEquals(r.y,y.y)}function axisEqualsRounded(r,y){return Math.round(r.min)===Math.round(y.min)&&Math.round(r.max)===Math.round(y.max)}function boxEqualsRounded(r,y){return axisEqualsRounded(r.x,y.x)&&axisEqualsRounded(r.y,y.y)}function aspectRatio(r){return calcLength(r.x)/calcLength(r.y)}function axisDeltaEquals(r,y){return r.translate===y.translate&&r.scale===y.scale&&r.originPoint===y.originPoint}class NodeStack{constructor(){this.members=[]}add(y){addUniqueItem(this.members,y),y.scheduleRender()}remove(y){if(removeItem(this.members,y),y===this.prevLead&&(this.prevLead=void 0),y===this.lead){const x=this.members[this.members.length-1];x&&this.promote(x)}}relegate(y){const x=this.members.findIndex(R=>y===R);if(x===0)return!1;let b;for(let R=x;R>=0;R--){const M=this.members[R];if(M.isPresent!==!1){b=M;break}}return b?(this.promote(b),!0):!1}promote(y,x){const b=this.lead;if(y!==b&&(this.prevLead=b,this.lead=y,y.show(),b)){b.instance&&b.scheduleRender(),y.scheduleRender(),y.resumeFrom=b,x&&(y.resumeFrom.preserveOpacity=!0),b.snapshot&&(y.snapshot=b.snapshot,y.snapshot.latestValues=b.animationValues||b.latestValues),y.root&&y.root.isUpdating&&(y.isLayoutDirty=!0);const{crossfade:R}=y.options;R===!1&&b.hide()}}exitAnimationComplete(){this.members.forEach(y=>{const{options:x,resumingFrom:b}=y;x.onExitComplete&&x.onExitComplete(),b&&b.options.onExitComplete&&b.options.onExitComplete()})}scheduleRender(){this.members.forEach(y=>{y.instance&&y.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(r,y,x){let b="";const R=r.x.translate/y.x,M=r.y.translate/y.y,O=x?.z||0;if((R||M||O)&&(b=`translate3d(${R}px, ${M}px, ${O}px) `),(y.x!==1||y.y!==1)&&(b+=`scale(${1/y.x}, ${1/y.y}) `),x){const{transformPerspective:G,rotate:q,rotateX:J,rotateY:X,skewX:fe,skewY:te}=x;G&&(b=`perspective(${G}px) ${b}`),q&&(b+=`rotate(${q}deg) `),J&&(b+=`rotateX(${J}deg) `),X&&(b+=`rotateY(${X}deg) `),fe&&(b+=`skewX(${fe}deg) `),te&&(b+=`skewY(${te}deg) `)}const z=r.x.scale*y.x,U=r.y.scale*y.y;return(z!==1||U!==1)&&(b+=`scale(${z}, ${U})`),b||"none"}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;function resetDistortingTransform(r,y,x,b){const{latestValues:R}=y;R[r]&&(x[r]=R[r],y.setStaticValue(r,0),b&&(b[r]=0))}function cancelTreeOptimisedTransformAnimations(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:y}=r.options;if(!y)return;const x=getOptimisedAppearId(y);if(window.MotionHasOptimisedAnimation(x,"transform")){const{layout:R,layoutId:M}=r.options;window.MotionCancelOptimisedAnimation(x,"transform",frame,!(R||M))}const{parent:b}=r;b&&!b.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(b)}function createProjectionNode({attachResizeListener:r,defaultParent:y,measureScroll:x,checkIsScrollRoot:b,resetTransform:R}){return class{constructor(O={},z=y?.()){this.id=id++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 25,598 bytes, line 262
262{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=O,this.root=z?z.root||z:this,this.path=z?[...z.path,z]:[],this.parent=z,this.depth=z?z.depth+1:0;for(let U=0;U<this.path.length;U++)this.path[U].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(O,z){return this.eventHandlers.has(O)||this.eventHandlers.set(O,new SubscriptionManager),this.eventHandlers.get(O).add(z)}notifyListeners(O,...z){const U=this.eventHandlers.get(O);U&&U.notify(...z)}hasListeners(O){return this.eventHandlers.has(O)}mount(O){if(this.instance)return;this.isSVG=isSVGElement(O)&&!isSVGSVGElement(O),this.instance=O;const{layoutId:z,layout:U,visualElement:G}=this.options;if(G&&!G.current&&G.mount(O),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(U||z)&&(this.isLayoutDirty=!0),r){let q,J=0;const X=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{J=window.innerWidth}),r(O,()=>{const fe=window.innerWidth;fe!==J&&(J=fe,this.root.updateBlockedByResize=!0,q&&q(),q=delay(X,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}z&&this.root.registerSharedNode(z,this),this.options.animate!==!1&&G&&(z||U)&&this.addEventListener("didUpdate",({delta:q,hasLayoutChanged:J,hasRelativeLayoutChanged:X,layout:fe})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const te=this.options.transition||G.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:ue,onLayoutAnimationComplete:ye}=G.getProps(),oe=!this.targetLayout||!boxEqualsRounded(this.targetLayout,fe),ne=!J&&X;if(this.options.layoutRoot||this.resumeFrom||ne||J&&(oe||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const ae={...getValueTransition(te,"layout"),onPlay:ue,onComplete:ye};(G.shouldReduceMotion||this.options.layoutRoot)&&(ae.delay=0,ae.type=!1),this.startAnimation(ae),this.setAnimationOrigin(q,ne)}else J||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=fe})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const O=this.getStack();O&&O.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:O}=this.options;return O&&O.getProps().transformTemplate}willUpdate(O=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let q=0;q<this.path.length;q++){const J=this.path[q];J.shouldResetTransform=!0,J.updateScroll("snapshot"),J.options.layoutRoot&&J.willUpdate(!1)}const{layoutId:z,layout:U}=this.options;if(z===void 0&&!U)return;const G=this.getTransformTemplate();this.prevTransformTemplateValue=G?G(this.latestValues,""):void 0,this.updateSnapshot(),O&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();const z=time.now();frameData.delta=clamp(0,1e3/60,z-frameData.timestamp),frameData.timestamp=z,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!calcLength(this.snapshot.measuredBox.x)&&!calcLength(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let U=0;U<this.path.length;U++)this.path[U].updateScroll();const O=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:z}=this.options;z&&z.notify("LayoutMeasure",this.layout.layoutBox,O?O.layoutBox:void 0)}updateScroll(O="measure"){let z=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===O&&(z=!1),z&&this.instance){const U=b(this.instance);this.scroll={animationId:this.root.animationId,phase:O,isRoot:U,offset:x(this.instance),wasRoot:this.scroll?this.scroll.isRoot:U}}}resetTransform(){if(!R)return;const O=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,z=this.projectionDelta&&!isDeltaZero(this.projectionDelta),U=this.getTransformTemplate(),G=U?U(this.latestValues,""):void 0,q=G!==this.prevTransformTemplateValue;O&&this.instance&&(z||hasTransform(this.latestValues)||q)&&(R(this.instance,G),this.shouldResetTransform=!1,this.scheduleRender())}measure(O=!0){const z=this.measurePageBox();let U=this.removeElementScroll(z);return O&&(U=this.removeTransform(U)),roundBox(U),{animationId:this.root.animationId,measuredBox:z,layoutBox:U,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:O}=this.options;if(!O)return createBox();const z=O.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot))){const{scroll:G}=this.root;G&&(translateAxis(z.x,G.offset.x),translateAxis(z.y,G.offset.y))}return z}removeElementScroll(O){const z=createBox();if(copyBoxInto(z,O),this.scroll?.wasRoot)return z;for(let U=0;U<this.path.length;U++){const G=this.path[U],{scroll:q,options:J}=G;G!==this.root&&q&&J.layoutScroll&&(q.wasRoot&&copyBoxInto(z,O),translateAxis(z.x,q.offset.x),translateAxis(z.y,q.offset.y))}return z}applyTransform(O,z=!1){const U=createBox();copyBoxInto(U,O);for(let G=0;G<this.path.length;G++){const q=this.path[G];!z&&q.options.layoutScroll&&q.scroll&&q!==q.root&&transformBox(U,{x:-q.scroll.offset.x,y:-q.scroll.offset.y}),hasTransform(q.latestValues)&&transformBox(U,q.latestValues)}return hasTransform(this.latestValues)&&transformBox(U,this.latestValues),U}removeTransform(O){const z=createBox();copyBoxInto(z,O);for(let U=0;U<this.path.length;U++){const G=this.path[U];if(!G.instance||!hasTransform(G.latestValues))continue;hasScale(G.latestValues)&&G.updateSnapshot();const q=createBox(),J=G.measurePageBox();copyBoxInto(q,J),removeBoxTransforms(z,G.latestValues,G.snapshot?G.snapshot.layoutBox:void 0,q)}return hasTransform(this.latestValues)&&removeBoxTransforms(z,this.latestValues),z}setTargetDelta(O){this.targetDelta=O,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(O){this.options={...this.options,...O,crossfade:O.crossfade!==void 0?O.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(O=!1){const z=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=z.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=z.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=z.isSharedProjectionDirty);const U=!!this.resumingFrom||this!==z;if(!(O||U&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:q,layoutId:J}=this.options;if(!this.layout||!(q||J))return;this.resolvedRelativeTargetAt=frameData.timestamp;const X=this.getClosestProjectingParent();X&&this.linkedParentVersion!==X.layoutVersion&&!X.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(X&&X.layout?this.createRelativeTarget(X,this.layout.layoutBox,X.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,X&&!!X.resumingFrom==!!this.resumingFrom&&!X.options.layoutScroll&&X.target&&this.animationProgress!==1?this.createRelativeTarget(X,this.target,X.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(O,z,U){this.relativeParent=O,this.linkedParentVersion=O.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,z,U),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const O=this.getLead(),z=!!this.resumingFrom||this!==O;let U=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(U=!1),z&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(U=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(U=!1),U)return;const{layout:G,layoutId:q}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(G||q))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const J=this.treeScale.x,X=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,z),O.layout&&!O.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(O.target=O.layout.layoutBox,O.targetWithTransforms=createBox());const{target:fe}=O;if(!fe){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)),calcBoxDelta(this.projectionDelta,this.layoutCorrected,fe,this.latestValues),(this.treeScale.x!==J||this.treeScale.y!==X||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",fe))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(O=!0){if(this.options.visualElement?.scheduleRender(),O){const z=this.getStack();z&&z.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(O,z=!1){const U=this.snapshot,G=U?U.latestValues:{},q={...this.latestValues},J=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!z;const X=createBox(),fe=U?U.source:void 0,te=this.layout?this.layout.source:void 0,ue=fe!==te,ye=this.getStack(),oe=!ye||ye.members.length<=1,ne=!!(ue&&!oe&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let ae;this.mixTargetDelta=pe=>{const je=pe/1e3;mixAxisDelta(J.x,O.x,je),mixAxisDelta(J.y,O.y,je),this.setTargetDelta(J),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(X,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,X,je),ae&&boxEquals(this.relativeTarget,ae)&&(this.isProjectionDirty=!1),ae||(ae=createBox()),copyBoxInto(ae,this.relativeTarget)),ue&&(this.animationValues=q,mixValues(q,G,this.latestValues,je,ne,oe)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=je},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(O){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=animateSingleValue(this.motionValue,[0,1e3],{...O,velocity:0,isSync:!0,onUpdate:z=>{this.mixTargetDelta(z),O.onUpdate&&O.onUpdate(z)},onStop:()=>{},onComplete:()=>{O.onComplete&&O.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const O=this.getStack();O&&O.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const O=this.getLead();let{targetWithTransforms:z,target:U,layout:G,latestValues:q}=O;if(!(!z||!U||!G)){if(this!==O&&this.layout&&G&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,G.layoutBox)){U=this.target||createBox();const J=calcLength(this.layout.layoutBox.x);U.x.min=O.target.x.min,U.x.max=U.x.min+J;const X=calcLength(this.layout.layoutBox.y);U.y.min=O.target.y.min,U.y.max=U.y.min+X}copyBoxInto(z,U),transformBox(z,q),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,z,q)}}registerSharedNode(O,z){this.sharedNodes.has(O)||this.sharedNodes.set(O,new NodeStack),this.sharedNodes.get(O).add(z);const G=z.options.initialPromotionConfig;z.promote({transition:G?G.transition:void 0,preserveFollowOpacity:G&&G.shouldPreserveFollowOpacity?G.shouldPreserveFollowOpacity(z):void 0})}isLead(){const O=this.getStack();return O?O.lead===this:!0}getLead(){const{layoutId:O}=this.options;return O?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:O}=this.options;return O?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:O}=this.options;if(O)return this.root.sharedNodes.get(O)}promote({needsReset:O,transition:z,preserveFollowOpacity:U}={}){const G=this.getStack();G&&G.promote(this,U),O&&(this.projectionDelta=void 0,this.needsReset=!0),z&&this.setOptions({transition:z})}relegate(){const O=this.getStack();return O?O.relegate(this):!1}resetSkewAndRotation(){const{visualElement:O}=this.options;if(!O)return;let z=!1;const{latestValues:U}=O;if((U.z||U.rotate||U.rotateX||U.rotateY||U.rotateZ||U.skewX||U.skewY)&&(z=!0),!z)return;const G={};U.z&&resetDistortingTransform("z",O,G,this.animationValues);for(let q=0;q<transformAxes.length;q++)resetDistortingTransform(`rotate${transformAxes[q]}`,O,G,this.animationValues),resetDistortingTransform(`skew${transformAxes[q]}`,O,G,this.animationValues);O.render();for(const q in G)O.setStaticValue(q,G[q]),this.animationValues&&(this.animationValues[q]=G[q]);O.scheduleRender()}applyProjectionStyles(O,z){if(!this.instance||this.isSVG)return;if(!this.isVisible){O.visibility="hidden";return}const U=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,O.visibility="",O.opacity="",O.pointerEvents=resolveMotionValue(z?.pointerEvents)||"",O.transform=U?U(this.latestValues,""):"none";return}const G=this.getLead();if(!this.projectionDelta||!this.layout||!G.target){this.options.layoutId&&(O.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,O.pointerEvents=resolveMotionValue(z?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(O.transform=U?U({},""):"none",this.hasProjected=!1);return}O.visibility="";const q=G.animationValues||G.latestValues;this.applyTransformsToTarget();let J=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,q);U&&(J=U(q,J)),O.transform=J;const{x:X,y:fe}=this.projectionDelta;O.transformOrigin=`${X.origin*100}% ${fe.origin*100}% 0`,G.animationValues?O.opacity=G===this?q.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:q.opacityExit:O.opacity=G===this?q.opacity!==void 0?q.opacity:"":q.opacityExit!==void 0?q.opacityExit:0;for(const te in scaleCorrectors){if(q[te]===void 0)continue;const{correct:ue,applyTo:ye,isCSSVariable:oe}=scaleCorrectors[te],ne=J==="none"?q[te]:ue(q[te],G);if(ye){const ae=ye.length;for(let pe=0;pe<ae;pe++)O[ye[pe]]=ne}else oe?this.options.visualElement.renderState.vars[te]=ne:O[te]=ne}this.options.layoutId&&(O.pointerEvents=G===this?resolveMotionValue(z?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(O=>O.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(r){r.updateLayout()}function notifyLayoutUpdate(r){const y=r.resumeFrom?.snapshot||r.snapshot;if(r.isLead()&&r.layout&&y&&r.hasListeners("didUpdate")){const{layoutBox:x,measuredBox:b}=r.layout,{animationType:R}=r.options,M=y.source!==r.layout.source;R==="size"?eachAxis(q=>{const J=M?y.measuredBox[q]:y.layoutBox[q],X=calcLength(J);J.min=x[q].min,J.max=J.min+X}):shouldAnimatePositionOnly(R,y.layoutBox,x)&&eachAxis(q=>{const J=M?y.measuredBox[q]:y.layoutBox[q],X=calcLength(x[q]);J.max=J.min+X,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[q].max=r.relativeTarget[q].min+X)});const O=createDelta();calcBoxDelta(O,x,y.layoutBox);const z=createDelta();M?calcBoxDelta(z,r.applyTransform(b,!0),y.measuredBox):calcBoxDelta(z,x,y.layoutBox);const U=!isDeltaZero(O);let G=!1;if(!r.resumeFrom){const q=r.getClosestProjectingParent();if(q&&!q.resumeFrom){const{snapshot:J,layout:X}=q;if(J&&X){const fe=createBox();calcRelativePosition(fe,y.layoutBox,J.layoutBox);const te=createBox();calcRelativePosition(te,x,X.layoutBox),boxEqualsRounded(fe,te)||(G=!0),q.options.layoutRoot&&(r.relativeTarget=te,r.relativeTargetOrigin=fe,r.relativeParent=q)}}}r.notifyListeners("didUpdate",{layout:x,snapshot:y,delta:z,layoutDelta:O,hasLayoutChanged:U,hasRelativeLayoutChanged:G})}else if(r.isLead()){const{onExitComplete:x}=r.options;x&&x()}r.options.transition=void 0}function propagateDirtyNodes(r){r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function cleanDirtyNodes(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function clearSnapshot(r){r.clearSnapshot()}function clearMeasurements(r){r.clearMeasurements()}function clearIsLayoutDirty(r){r.isLayoutDirty=!1}function resetTransformStyle(r){const{visualElement:y}=r.options;y&&y.getProps().onBeforeLayoutMeasure&&y.notify("BeforeLayoutMeasure"),r.resetTransform()}function finishAnimation(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function resolveTargetDelta(r){r.resolveTargetDelta()}function calcProjection(r){r.calcProjection()}function resetSkewAndRotation(r){r.resetSkewAndRotation()}function removeLeadSnapshots(r){r.removeLeadSnapshot()}function mixAxisDelta(r,y,x){r.translate=mixNumber$1(y.translate,0,x),r.scale=mixNumber$1(y.scale,1,x),r.origin=y.origin,r.originPoint=y.originPoint}function mixAxis(r,y,x,b){r.min=mixNumber$1(y.min,x.min,b),r.max=mixNumber$1(y.max,x.max,b)}function mixBox(r,y,x,b){mixAxis(r.x,y.x,x.x,b),mixAxis(r.y,y.y,x.y,b)}function hasOpacityCrossfade(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop$1;function roundAxis(r){r.min=roundPoint(r.min),r.max=roundPoint(r.max)}function roundBox(r){roundAxis(r.x),roundAxis(r.y)}function shouldAnimatePositionOnly(r,y,x){return r==="position"||r==="preserve-aspect"&&!isNear(aspectRatio(y),aspectRatio(x),.2)}function checkNodeWasScrollRoot(r){return r!==r.root&&r.scroll?.wasRoot}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(r,y)=>addDomEvent(r,"resize",y),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const r=new DocumentProjectionNode({});r.mount(window),r.setOptions({layoutScroll:!0}),rootProjectionNode.current=r}return rootProjectionNode.current},resetTransform:(r,y)=>{r.style.transform=y!==void 0?y:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(r,y,x){const{props:b}=r;r.animationState&&b.whileHover&&r.animationState.setActive("whileHover",x==="Start");const R="onHover"+x,M=b[R];M&&frame.postRender(()=>M(y,extractEventInfo(y)))}class HoverGesture extends Feature{mount(){const{current:y}=this.node;y&&(this.unmount=hover(y,(x,b)=>(handleHoverEvent(this.node,b,"Start"),R=>handleHoverEvent(this.node,R,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let y=!1;try{y=this.node.current.matches(":focus-visible")}catch{y=!0}!y||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(r,y,x){const{props:b}=r;if(r.current instanceof HTMLButtonElement&&r.current.disabled)return;r.animationState&&b.whileTap&&r.animationState.setActive("whileTap",x==="Start");const R="onTap"+(x==="End"?"":x),M=b[R];M&&frame.postRender(()=>M(y,extractEventInfo(y)))}class PressGesture extends Feature{mount(){const{current:y}=this.node;y&&(this.unmount=press(y,(x,b)=>(handlePressEvent(this.node,b,"Start"),(R,{success:M})=>handlePressEvent(this.node,R,M?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=r=>{const y=observerCallbacks.get(r.target);y&&y(r)},fireAllObserverCallbacks=r=>{r.forEach(fireObserverCallback)};function initIntersectionObserver({root:r,...y}){const x=r||document;observers.has(x)||observers.set(x,{});const b=observers.get(x),R=JSON.stringify(y);return b[R]||(b[R]=new IntersectionObserver(fireAllObserverCallbacks,{root:r,...y}
262)),b[R]}function observeIntersection(r,y,x){const b=initIntersectionObserver(y);return observerCallbacks.set(r,x),b.observe(r),()=>{observerCallbacks.delete(r),b.unobserve(r)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:y={}}=this.node.getProps(),{root:x,margin:b,amount:R="some",once:M}=y,O={root:x?x.current:void 0,rootMargin:b,threshold:typeof R=="number"?R:thresholdNames[R]},z=U=>{const{isIntersecting:G}=U;if(this.isInView===G||(this.isInView=G,M&&!G&&this.hasEnteredView))return;G&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",G);const{onViewportEnter:q,onViewportLeave:J}=this.node.getProps(),X=G?q:J;X&&X(U)};return observeIntersection(this.node.current,O,z)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:y,prevProps:x}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(y,x))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:r={}},{viewport:y={}}={}){return x=>r[x]!==y[x]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},featureBundle={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(featureBundle,createDomVisualElement);var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React3.createContext&&React3.createContext(DefaultContext),_excluded$2=["attr","size","title"];function _objectWithoutProperties$1(r,y){if(r==null)return{};var x=_objectWithoutPropertiesLoose$1(r,y),b,R;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(r);for(R=0;R<M.length;R++)b=M[R],!(y.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(r,b)&&(x[b]=r[b])}return x}function _objectWithoutPropertiesLoose$1(r,y){if(r==null)return{};var x={};for(var b in r)if(Object.prototype.hasOwnProperty.call(r,b)){if(y.indexOf(b)>=0)continue;x[b]=r[b]}return x}function _extends(){return _extends=Object.assign?Object.assign.bind():function(r){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(r[b]=x[b])}return r},_extends.apply(this,arguments)}function ownKeys$1(r,y){var x=Object.keys(r);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(r);y&&(b=b.filter(function(R){return Object.getOwnPropertyDescriptor(r,R).enumerable})),x.push.apply(x,b)}return x}function _objectSpread(r){for(var y=1;y<arguments.length;y++){var x=arguments[y]!=null?arguments[y]:{};y%2?ownKeys$1(Object(x),!0).forEach(function(b){_defineProperty$1(r,b,x[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(x)):ownKeys$1(Object(x)).forEach(function(b){Object.defineProperty(r,b,Object.getOwnPropertyDescriptor(x,b))})}return r}function _defineProperty$1(r,y,x){return y=_toPropertyKey$1(y),y in r?Object.defineProperty(r,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):r[y]=x,r}function _toPropertyKey$1(r){var y=_toPrimitive$1(r,"string");return typeof y=="symbol"?y:y+""}function _toPrimitive$1(r,y){if(typeof r!="object"||!r)return r;var x=r[Symbol.toPrimitive];if(x!==void 0){var b=x.call(r,y);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(r)}function Tree2Element(r){return r&&r.map((y,x)=>React3.createElement(y.tag,_objectSpread({key:x},y.attr),Tree2Element(y.child)))}function GenIcon(r){return y=>React3.createElement(IconBase,_extends({attr:_objectSpread({},r.attr)},y),Tree2Element(r.child))}function IconBase(r){var y=x=>{var{attr:b,size:R,title:M}=r,O=_objectWithoutProperties$1(r,_excluded$2),z=R||x.size||"1em",U;return x.className&&(U=x.className),r.className&&(U=(U?U+" ":"")+r.className),React3.createElement("svg",_extends({stroke:"currentColor",fill:"
262currentColor",strokeWidth:"0"},x.attr,b,O,{className:U,style:_objectSpread(_objectSpread({color:r.color||x.color},x.style),r.style),height:z,width:z,xmlns:"http://www.w3.org/2000/svg"}),M&&React3.createElement("title",null,M),r.children)};return IconContext!==void 0?React3.createElement(IconContext.Consumer,null,x=>y(x)):y(DefaultContext)}function FaLinkedin(r){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(r)}function FaArrowLeft(r){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(r)}function FaBriefcase(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},child:[]}]})(r)}function FaBullseye(r){return GenIcon({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"},child:[]}]})(r)}function FaCheck(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(r)}function FaEnvelope(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(r)}function FaExclamationCircle(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(r)}function FaHome(r){return GenIcon({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(r)}function FaLock(r){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(r)}function FaMapMarkerAlt(r){return GenIcon({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(r)}function FaMicrophone(r){return GenIcon({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"},child:[]}]})(r)}function FaPen(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.7
2625-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"},child:[]}]})(r)}function FaPlus(r){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(r)}function FaQuestionCircle(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},child:[]}]})(r)}function FaRocket(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"},child:[]}]})(r)}function FaSearch(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(r)}function FaTimes(r){return GenIcon({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(r)}function FaUser(r){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(r)}function FaUsers(r){return GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(r)}function IoLocationSharp(r){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C167.67 32 96 96.51 96 176c0 128 160 304 160 304s160-176 160-304c0-79.49-71.67-144-160-144zm0 224a64 64 0 1 1 64-64 64.07 64.07 0 0 1-64 64z"},child:[]}]})(r)}const MotionDiv$5=motion.div,MotionButton$1=motion.button,MotionSpan=motion.span,Userprofile=({user:r})=>{const y=useNavigate(),[x,b]=reactExports.useState(!1),[R,M]=reactExports.useState(!1),O=r.interestList||r.interestlist||[],z=r.isCompleted===!1,U={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.4,ease:"easeOut",staggerChildren:.1}}},G={hidden:{opacity:0,y:15},visible:{opacity:1,y:0,transition:{duration:.3,ease:"easeOut"}}},q=["Kind","Polite","Professional","Casual","Sarcastic","Empathetic","Authoritative","Humorous","Aggressive"],[J,X]=reactExports.useState({intention:r.intention||"",outcome:r.outcome||"",interestList:Array.isArray(O)?O:[],city:r.city||"",country:r.country||"",image:r.image||"",tone:r.tone||""}),[fe,te]=reactExports.useState(""),[ue,ye]=reactExports.useState(null),oe=reactExports.useRef(null),[ne,ae]=reactExports.useState(!1),[pe,je]=reactExports.useState(!!(r.latitude&&r.longitude)),[Ve,Ue]=reactExports.useState(!1),$e=reactExports.useRef(!1),[We,ot]=reactExports.useState([]),[ct,it]=reactExports.useState([]),[ft,dt]=reactExports.useState(""),[nt,Ne]=reactExports.useState(!1),[He,_e]=reactExports.useState(!1),[Be,Ye]=reactExports.useState(""),[Le,Ge]=reactExports.useState(""),[Ke,Ze]=reactExports.useState(!1),[ut,pt]=reactExports.useState(!1);reactExports.useEffect(()=>{x&&(async()=>{Ne(!0);try{const Et=await getAllcountries();ot(Et);const Tt=r.country||J.country;if(Tt){const At=Et.find(sr=>sr.name===Tt);if(At){dt(At.isoCode);try{const sr=await getcitybycountr(At.isoCode);it(sr)}catch(sr){console.error("Failed to fetch cities:",sr)}}}}catch(Et){console.error("Failed to fetch countries:",Et),zt.error("Failed to load countries. Please refresh the page.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{Ne(!1)}})()},[x]),reactExports.useEffect(()=>{const ht=Et=>{const Tt=Et.target;Tt.closest(".country-dropdown-container")||Ze(!1),Tt.closest(".city-dropdown-container")||pt(!1)};if(Ke||ut)return document.addEventListener("mousedown",ht),()=>{document.removeEventListener("mousedown",ht)}},[Ke,ut]);const xt=We.filter(ht=>ht.name.toLowerCase().includes(Be.toLowerCase())||ht.isoCode.toLowerCase().includes(Be.toLowerCase())),Nt=ct.filter(ht=>ht.name.toLowerCase().includes(Le.toLowerCase())),kt=()=>{if(!navigator.geolocation){zt.error("Geolocation is not supported by your browser.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}ae(!0),navigator.geolocation.getCurrentPosition(async ht=>{try{const Et=ht.coords.latitude.toString(),Tt=ht.coords.longitude.toString();await updateUserlocation(Et,Tt)?(zt.success("Location saved successfully!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),je(!0)):zt.error("Failed to save location. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch(Et){console.error("Error updating location:",Et),zt.error("An error occurred while saving your location.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{ae(!1)}},ht=>{console.error("Geolocation error:",ht),ht.code===ht.PERMISSION_DENIED?zt.error("Location permission denied. Please allow access in your browser.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}):zt.error("Unable to fetch your location. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),ae(!1)},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})},Yt=async ht=>{if(localStorage.getItem("WESTX_LINKING_LINKEDIN")==="true"&&(localStorage.removeItem("WESTX_LINKING_LINKEDIN"),!$e.current)){$e.current=!0,Ue(!0);try{(await Updatelinkedin(ht)).success?(zt.success("LinkedIn account connected successfully!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),window.location.reload()):zt.error("Failed to connect LinkedIn account. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch(Tt){console.error("Error adding LinkedIn:",Tt),zt.error("An error occurred while connecting LinkedIn. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{$e.current=!1,Ue(!1)}}},qt=()=>{localStorage.setItem("WESTX_LINKING_LINKEDIN","true"),ir()},{linkedInLogin:ir}=i({clientId:"86p8wa69vyiype",redirectUri:`${window.location.origin}/linkedin`,scope:"openid profile email w_member_social r_basicprofile",onSuccess:Yt,onError:ht=>{localStorage.removeItem("WESTX_LINKING_LINKEDIN"),zt.error("LinkedIn connection failed. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"#fff",border:"1px solid rgba(239, 68, 68, 0.3)"}}),Ue(!1),$e.current=!1}}),jt=ht=>{const{name:Et,value:Tt}=ht.target;X(At=>({...At,[Et]:Tt}))},mt=async ht=>{const Et=We.find(Tt=>Tt.isoCode===ht);if(dt(ht),X(Tt=>({...Tt,country:Et?.name||"",city:""})),it([]),Ge(""),Ye(Et?.name||""),Ze(!1),ht){_e(!0);try{const Tt=await getcitybycountr(ht);it(Tt)}catch(Tt){console.error("Failed to fetch cities:",Tt),zt.error("Failed to load cities for this country.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{_e(!1)}}},mr=ht=>{X(Et=>({...Et,city:ht})),Ge(ht),pt(!1)},br=ht=>{const Et=ht.target.files?.[0];if(Et){if(Et.size>5*1024*1024){zt.error("Image size should be less than 5MB",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),oe.current&&(oe.current.value="");return}ye(Et);const Tt=new FileReader;Tt.onloadend=()=>{X(At=>({...At,image:Tt.result}))},Tt.onerror=()=>{zt.error("Failed to read image file",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),oe.current&&(oe.current.value="")}
262,Tt.readAsDataURL(Et)}oe.current&&(oe.current.value="")},Er=()=>{fe.trim()&&!J.interestList.includes(fe.toLowerCase().trim())&&(X(ht=>({...ht,interestList:[...ht.interestList,fe.toLowerCase().trim()]})),te(""))},gr=ht=>{X(Et=>({...Et,interestList:Et.interestList.filter(Tt=>Tt!==ht)}))},yr=async()=>{M(!0);try{const ht=r.interestList||r.interestlist||[],Et=J.intention!==(r.intention||""),Tt=J.outcome!==(r.outcome||""),At=JSON.stringify(J.interestList.sort())!==JSON.stringify((Array.isArray(ht)?ht:[]).sort()),sr=J.country!==(r.country||""),pr=J.city!==(r.city||""),Br=ue!==null,Qr=J.tone!==(r.tone||""),Pr=[];if(Et&&Pr.push(updateUserprofileintention(J.intention).catch(Vr=>(console.error("Error updating intention:",Vr),zt.error("Failed to update intention",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),!1))),(Tt||At||sr||pr||Qr)&&Pr.push(updateUserprofileoutcome(J.outcome,J.interestList,J.country,J.city,J.tone).catch(Vr=>(console.error("Error updating outcome:",Vr),zt.error("Failed to update profile details",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),!1))),Br&&ue)try{const Vr=await uploadinfile(ue);Vr?Pr.push(updateUserprofileimage(Vr).catch(Wi=>(console.error("Error updating image:",Wi),zt.error("Failed to update profile image",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),!1))):zt.error("Failed to upload image",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch(Vr){console.error("Error uploading image:",Vr),zt.error("Failed to upload image",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}(await Promise.all(Pr)).every(Vr=>Vr===!0)&&Pr.length>0?(zt.success("Profile updated successfully!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),b(!1),ye(null),window.location.reload()):Pr.length===0&&(zt("No changes to save",{icon:"ℹ️"}),b(!1))}catch(ht){console.error("Error saving profile:",ht),zt.error("An error occurred while saving your profile",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{M(!1)}},vr=()=>{const ht=r.interestList||r.interestlist||[];X({intention:r.intention||"",outcome:r.outcome||"",interestList:Array.isArray(ht)?ht:[],city:r.city||"",country:r.country||"",image:r.image||"",tone:r.tone||""}),ye(null),Ye(""),Ge(""),Ze(!1),pt(!1),dt(""),it([]),b(!1)};return jsxRuntimeExports.jsxs(MotionDiv$5,{className:"min-h-screen font-montserrat pt-20 p-3 sm:pt-6 sm:p-4 md:p-6 lg:p-8 relative overflow-x-hidden min-w-0",style:{backgroundColor:"#0C0E12"},variants:U,initial:"hidden",animate:"visible",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:jsxRuntimeExports.jsx("div",{className:"absolute inset-0"})}),jsxRuntimeExports.jsxs("div",{className:"relative z-10 max-w-6xl w-full min-w-0 mx-auto",children:[jsxRuntimeExports.jsx(MotionDiv$5,{variants:G,className:"mb-3 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"}),z&&jsxRuntimeExports.jsx(MotionDiv$5,{variants:G,className:"mb-4 sm:mb-6 rounded-lg sm:rounded-xl border border-territary/50 bg-territary/10 p-4 sm:p-5 md:p-6",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 sm:gap-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-2 sm:gap-3",children:[jsxRuntimeExports.jsx("div",{className:"flex h-9 w-9 sm:h-10 sm:w-10 shrink-0 items-center justify-center rounded-full bg-territary/20",children:jsxRuntimeExports.jsx(FaExclamationCircle,{className:"h-4 w-4 sm:h-5 sm:w-5 text-territary"})}),jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-base sm:text-lg font-semibold text-white font-poppins",children:"Complete your profile"}),jsxRuntimeExports.jsx("p",{className:"mt-0.5 sm:mt-1 text-xs sm:text-sm text-gray-400",children:"Add your country, outcome, intention and preferences so we can match you with the right people and opportunities."})]})]}),jsxRuntimeExports.jsx(MotionButton$1,{onClick:()=>y("/complete-profile"),whileHover:{scale:1.05},whileTap:{scale:.95},className:"shrink-0 rounded-lg bg-territary px-4 py-2.5 text-xs sm:text-sm font-medium text-white transition hover:opacity-90 w-full sm:w-auto",style:{boxShadow:"0 4px 14px rgba(153, 21, 235, 0.4)"},children:"Complete profile"})]})}),jsxRuntimeExports.jsxs(MotionDiv$5,{variants:G,whileHover:{y:-2},transition:{type:"spring",stiffness:300,damping:30},className:"bg-primaryColor p-4 sm:p-6 md:p-8 mb-4 sm:mb-6",children:[jsxRuntimeExports.jsxs(MotionDiv$5,{variants:G,className:"flex flex-col sm:flex-row items-center sm:items-start gap-4 sm:gap-6 mb-6 pb-6 sm:mb-8 sm:pb-8",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-2 sm:gap-3",children:[jsxRuntimeExports.jsxs(MotionDiv$5,{className:"relative group",whileHover:{scale:1.05},transition:{type:"spring",stiffness:300,damping:20},children:[jsxRuntimeExports.jsx("div",{className:"w-24 h-24 sm:w-32 sm:h-32 rounded-full overflow-hidden border-2 border-borderColor bg-primary flex items-center justify-center shadow-lg",children:J.image?jsxRuntimeExports.jsx("img",{src:J.image,alt:"Profile",className:"w-full h-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"w-full h-full bg-territary/20 flex items-center justify-center",children:jsxRuntimeExports.jsx("span",{className:"text-3xl sm:text-4xl font-bold text-territary",children:r.name.charAt(0).toUpperCase()})})}),x&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{type:"button",onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),oe.current?.click()},className:"absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity rounded-full flex items-center justify-center cursor-pointer z-10","aria-label":"Change profile picture",children:jsxRuntimeExports.jsx("span",{className:"text-white text-xs sm:text-sm font-medium",children:"Change"})}),jsxRuntimeExports.jsx("input",{ref:oe,type:"file",accept:"image/*",onChange:br,className:"hidden",id:"profile-image-input"})]})]}),x&&jsxRuntimeExports.jsx("button",{type:"button",onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),oe.current?.click()},className:"px-3 py-1.5 sm:px-4 sm:py-2 bg-territary/20 text-territary border border-territary/30 rounded-lg text-xs sm:text-sm font-medium hover:bg-territary/30 transition-all duration-200",children:"Change Photo"})]}),jsxRuntimeExports.jsxs(MotionDiv$5,{className:"flex-1 min-w-0 text-center sm:text-left",initial:{opacity:0,x:-20}
262,animate:{opacity:1,x:0},transition:{delay:.2},children:[jsxRuntimeExports.jsx("h2",{className:"text-xl sm:text-2xl md:text-3xl font-bold text-white font-poppins mb-1 sm:mb-2 truncate",children:r.name}),jsxRuntimeExports.jsxs("p",{className:"text-gray-400 text-sm sm:text-base mb-1 sm:mb-2 truncate",children:["@",r.username]}),jsxRuntimeExports.jsxs("div",{className:"flex text-white/80 text-xs sm:text-sm space-x-1 sm:space-x-2 mt-2 sm:mt-4 font-poppins items-center justify-center sm:justify-start flex-wrap",children:[jsxRuntimeExports.jsx(IoLocationSharp,{className:"text-xl sm:text-2xl md:text-3xl text-white shrink-0"}),jsxRuntimeExports.jsxs("span",{className:"truncate",children:[r.city,r.city&&r.country?", ":""]}),jsxRuntimeExports.jsx("span",{className:"truncate",children:r.country})]})]}),!x&&jsxRuntimeExports.jsx(MotionButton$1,{onClick:()=>b(!0),whileHover:{scale:1.05},whileTap:{scale:.95},className:"px-4 py-2.5 sm:px-6 sm:py-3 cursor-pointer font-montserrat text-sm sm:text-base bg-territary text-white font-bold rounded-lg hover:opacity-90 transition-all duration-300 shrink-0 w-full sm:w-auto",children:"Edit Profile"})]}),jsxRuntimeExports.jsx("div",{className:"w-full border border-b border-borderColor mb-6 sm:mb-8"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6 mb-6 sm:mb-8",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-400 mb-1.5 sm:mb-2",children:"Email Address"}),jsxRuntimeExports.jsx("div",{className:"px-3 py-2.5 sm:px-4 sm:py-3 bg-[#16181c] border border-borderColor rounded-lg text-white text-sm truncate",children:r.email})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-400 mb-1.5 sm:mb-2",children:"Login Type"}),jsxRuntimeExports.jsx("div",{className:"px-3 py-2.5 sm:px-4 sm:py-3 bg-[#16181c] border border-borderColor rounded-lg text-white text-sm",children:r.logintype})]})]}),!r.islinkedin&&jsxRuntimeExports.jsxs(MotionDiv$5,{variants:G,className:"mb-6 sm:mb-8 relative overflow-hidden group font-montserrat",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 rounded-lg sm:rounded-xl opacity-20 group-hover:opacity-30 transition-opacity duration-300",style:{background:"linear-gradient(135deg, rgba(0, 119, 181, 0.3) 0%, rgba(0, 119, 181, 0.1) 100%)",filter:"blur(20px)"}}),jsxRuntimeExports.jsx("div",{className:"relative p-4 sm:p-6 bg-gradient-to-br from-primary/80 via-primary/60 to-primary/80 border border-[#0077B5]/30 rounded-lg sm:rounded-xl backdrop-blur-sm",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 sm:gap-6",children:[jsxRuntimeExports.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 mb-2",children:[jsxRuntimeExports.jsx("div",{className:"p-1.5 sm:p-2 bg-[#0077B5]/20 rounded-lg border border-[#0077B5]/30 shrink-0",children:jsxRuntimeExports.jsx("svg",{className:"w-5 h-5 sm:w-6 sm:h-6 text-[#0077B5]",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}),jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("h3",{className:"text-sm sm:text-base font-semibold text-white font-montserrat mb-0.5 sm:mb-1",children:"Connect LinkedIn Account"}),jsxRuntimeExports.jsx("p",{className:"text-[11px] sm:text-xs text-gray-400 leading-relaxed",children:"Link your LinkedIn account to enhance your profile and discoverability"})]})]})}),jsxRuntimeExports.jsxs("button",{onClick:qt,disabled:Ve,className:"relative cursor-pointer px-4 py-3 sm:px-8 sm:py-4 bg-gradient-to-r from-[#0077B5] via-[#006399] to-[#0077B5] text-white font-poppins font-bold text-sm sm:text-base rounded-lg sm:rounded-xl hover:scale-105 active:scale-95 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 flex items-center justify-center gap-2 sm:gap-3 shrink-0 overflow-hidden group/btn w-full sm:w-auto",style:{backgroundSize:"200% 200%",boxShadow:"0 8px 32px rgba(0, 119, 181, 0.4), 0 0 0 1px rgba(0, 119, 181, 0.2)",animation:"gradientShift 3s ease infinite"},children:[jsxRuntimeExports.jsx("div",{className:"absolute  inset-0 -translate-x-full group-hover/btn:translate-x-full transition-transform duration-1000 bg-gradient-to-r from-transparent via-white/20 to-transparent"}),Ve?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"relative z-10 w-5 h-5 border-[3px] border-white border-t-transparent roun
262ded-full animate-spin"}),jsxRuntimeExports.jsx("span",{className:"relative z-10",children:"Connecting..."})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("svg",{className:"relative z-10 w-6 h-6 transition-transform group-hover/btn:scale-110",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),jsxRuntimeExports.jsx("span",{className:"relative z-10 text-sm sm:text-base",children:"Connect LinkedIn"}),jsxRuntimeExports.jsx("svg",{className:"relative z-10 w-5 h-5 transition-transform group-hover/btn:translate-x-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"country-dropdown-container relative",children:[jsxRuntimeExports.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-1.5 sm:mb-2",children:"Country"}),x?jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:"text",value:Ke?Be:ft&&We.find(ht=>ht.isoCode===ft)?.name||J.country,onChange:ht=>{Ye(ht.target.value),Ze(!0),ht.target.value===""&&(dt(""),X(Et=>({...Et,country:"",city:""})),it([]),Ge(""))},onFocus:()=>{Ze(!0),Ye(ft&&We.find(ht=>ht.isoCode===ft)?.name||J.country)},placeholder:nt?"Loading countries...":"Search or select your country",disabled:nt,className:"w-full px-3 py-2.5 sm:px-4 sm:py-3 bg-primary border border-borderColor rounded-lg text-white text-sm placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-territary focus:border-transparent transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:"#0C0E12"}}),jsxRuntimeExports.jsx("div",{className:"absolute right-2.5 sm:right-3 top-1/2 transform -translate-y-1/2 pointer-events-none",children:jsxRuntimeExports.jsx("svg",{className:"w-4 h-4 sm:w-5 sm:h-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),Ke&&!nt&&jsxRuntimeExports.jsx("div",{className:"absolute z-50 w-full mt-1 bg-primary border border-borderColor rounded-lg shadow-2xl max-h-48 sm:max-h-60 overflow-auto",style:{backgroundColor:"#0C0E12"},children:xt.length>0?xt.map(ht=>jsxRuntimeExports.jsx("div",{onClick:()=>mt(ht.isoCode),className:`px-3 py-2.5 sm:px-4 sm:py-3 cursor-pointer hover:bg-territary/20 transition-colors text-sm ${ft===ht.isoCode?"bg-territary/30":""}`,children:jsxRuntimeExports.jsxs("span",{className:"text-white",children:[ht.flag," ",ht.name]})},ht.isoCode)):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 text-gray-400 text-center",children:"No countries found"})})]}):jsxRuntimeExports.jsx("div",{className:"px-3 py-2.5 sm:px-4 sm:py-3 bg-[#16181c] border border-borderColor rounded-lg text-white text-sm",children:J.country||jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Not set"})})]}),jsxRuntimeExports.jsxs("div",{className:"city-dropdown-container relative",children:[jsxRuntimeExports.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-1.5 sm:mb-2",children:"City"}),x?jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:"text",value:ut?Le:J.city,onChange:ht=>{Ge(ht.target.value),pt(!0),ht.target.value===""&&X(Et=>({...Et,city:""}))},onFocus:()=>{ft&&(pt(!0),Ge(J.city))},placeholder:ft?He?"Loading cities...":"Search or select your city":"Select a country first",disabled:!ft||He,className:"w-full px-4 py-3 bg-primary border border-borderColor roun
262ded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-territary focus:border-transparent transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:"#0C0E12"}}),jsxRuntimeExports.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none",children:jsxRuntimeExports.jsx("svg",{className:"w-5 h-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),ut&&!He&&ft&&jsxRuntimeExports.jsx("div",{className:"absolute z-50 w-full mt-1 bg-primary border border-borderColor rounded-lg shadow-2xl max-h-60 overflow-auto",style:{backgroundColor:"#0C0E12"},children:Nt.length>0?Nt.map((ht,Et)=>jsxRuntimeExports.jsx("div",{onClick:()=>mr(ht.name),className:`px-4 py-3 cursor-pointer hover:bg-territary/20 transition-colors ${J.city===ht.name?"bg-territary/30":""}`,children:jsxRuntimeExports.jsx("span",{className:"text-white",children:ht.name})},`${ht.countryCode}-${ht.name}-${Et}`)):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 text-gray-400 text-center",children:"No cities found"})})]}):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 bg-[#16181c] border border-borderColor rounded-lg text-white",children:J.city||jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Not set"})})]})]}),!pe&&jsxRuntimeExports.jsxs(MotionDiv$5,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"mt-2",children:[jsxRuntimeExports.jsx(MotionButton$1,{type:"button",onClick:kt,disabled:ne,whileHover:{scale:ne?1:1.05},whileTap:{scale:ne?1:.95},className:"px-6 py-3 bg-territary text-white font-poppins font-medium rounded-lg hover:opacity-90 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed",style:{boxShadow:"0 10px 30px rgba(153, 21, 235, 0.3)",background:"linear-gradient(135deg, #9915eb 0%, #7c3aed 50%, #9915eb 100%)"},children:ne?jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntimeExports.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Getting your location..."]}):"Use My Current Location"}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"We only store your latitude and longitude to improve matching. Your exact location is not shared publicly."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Intention"}),x?jsxRuntimeExports.jsx("textarea",{name:"intention",value:J.intention,onChange:jt,rows:4,className:"w-full px-4 py-3 border border-borderColor rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-territary focus:border-transparent transition-all duration-200 resize-none",placeholder:"Describe your goals and intentions...",style:{backgroundColor:"#0C0E12"}}):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 bg-[#16181c] border border-borderColor rounded-lg text-white min-h-[100px]",children:J.intention||jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Not set"})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Desired Outcome"}),x?jsxRuntimeExports.jsx("textarea",{name:"outcome",value:J.outcome,onChange:jt,rows:4,className:"w-full px-4 py-3 bg-primary border border-borderColor rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-territary focus:border-transparent transition-all duration-200 resize-none",placeholder:"Describe your desired outcomes...",style:{backgroundColor:"#0C0E12"}}):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 bg-[#16181c]  border border-borderColor roun
262ded-lg text-white min-h-[100px]",children:J.outcome||jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Not set"})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Tone"}),x?jsxRuntimeExports.jsxs("select",{name:"tone",value:J.tone,onChange:jt,className:"w-full px-4 py-3 bg-primary border border-borderColor rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-territary focus:border-transparent transition-all duration-200",style:{backgroundColor:"#0C0E12"},children:[jsxRuntimeExports.jsx("option",{value:"",className:"bg-primary text-white",children:"Select a tone"}),q.map(ht=>jsxRuntimeExports.jsx("option",{value:ht,className:"bg-primary text-white",children:ht},ht))]}):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 bg-[#16181c]  border border-borderColor rounded-lg text-white",children:J.tone||jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Not set"})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Interests"}),x?jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex gap-2",children:[jsxRuntimeExports.jsx("input",{type:"text",value:fe,onChange:ht=>te(ht.target.value),onKeyPress:ht=>{ht.key==="Enter"&&(ht.preventDefault(),Er())},className:"flex-1 px-4 py-2  border border-borderColor rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-territary focus:border-transparent transition-all duration-200",placeholder:"Add an interest and press Enter"}),jsxRuntimeExports.jsx(MotionButton$1,{onClick:Er,whileHover:{scale:1.05},whileTap:{scale:.95},className:"px-4 py-2 bg-westxpurple text-white font-medium rounded-lg hover:opacity-90 transition-all duration-200",children:"Add"})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-2",children:[J.interestList.map((ht,Et)=>jsxRuntimeExports.jsxs(MotionSpan,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileHover:{scale:1.05},className:"px-3 py-1 bg-westxpurple text-white border border-territary/30 rounded-full text-sm flex items-center gap-2 shadow-sm",children:[ht,jsxRuntimeExports.jsx("button",{onClick:()=>gr(ht),className:"hover:text-red-400 transition-colors ml-1",children:"×"})]},Et)),J.interestList.length===0&&jsxRuntimeExports.jsx("span",{className:"text-gray-500 text-sm",children:"No interests added yet"})]})]}):jsxRuntimeExports.jsx("div",{className:"px-4 py-3 bg-primary border border-borderColor rounded-lg min-h-[60px]",children:J.interestList.length>0?jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:J.interestList.map((ht,Et)=>jsxRuntimeExports.jsx(MotionSpan,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:Et*.05},className:"px-3 py-1 bg-westxpurple text-white border border-territary/30 rounded-full text-sm shadow-sm",children:ht},Et))}):jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"No interests added yet"})})]})]}),x&&jsxRuntimeExports.jsxs(MotionDiv$5,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex justify-end gap-4 mt-8 pt-6 border-t border-borderColor",children:[jsxRuntimeExports.jsx(MotionButton$1,{onClick:vr,whileHover:{scale:1.02},whileTap:{scale:.98},className:"px-6 py-3 bg-borderColor text-white font-poppins font-medium rounded-lg hover:opacity-90 transition-all duration-300",children:"Cancel"}),jsxRuntimeExports.jsx(MotionButton$1,{onClick:yr,disabled:R,whileHover:{scale:R?1:1.05},whileTap:{scale:R?1:.95},className:"px-8 py-3 bg-westxpurple text-white font-poppins font-bold rounded-lg hover:opacity-90 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed",children:R?jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntimeExports.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Saving..."]}):"Save Changes"})]})]})]}),jsxRuntimeExports.jsx("style",{children:`
263        @keyframes gradientShift {
264          0%, 100% {
265            background-position: 0% 50%;
266          }
267          50% {
268            background-position: 100% 50%;
269          }
270        }
271      `})]})},LockedPage=({icon:r=jsxRuntimeExports.jsx(FaLock,{className:"text-3xl sm:text-4xl md:text-5xl text-territary"}),title:y="Profile Locked",subtitle:x="Authentication Required",description:b="You need to be logged in to view this page. Please sign in to access this content.",buttonText:R="Go to Login",buttonPath:M="/login",onButtonClick:O})=>{const z=useNavigate(),U=()=>{O?O():z(M)};return jsxRuntimeExports.jsxs("div",{className:"min-h-screen  font-montserrat w-full bg-primary flex items-center justify-center p-3 sm:p-4 md:p-6 lg:p-8 relative overflow-hidden ",children:[jsxRuntimeExports.jsxs("div",{className:"relative z-10 text-center w-full max-w-2xl mx-auto px-4 sm:px-6 md:px-8",children:[jsxRuntimeExports.jsx("div",{className:"mb-6 sm:mb-8 flex justify-center",children:jsxRuntimeExports.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 md:w-24 md:h-24 rounded-full flex items-center justify-center",style:{background:"linear-gradient(135deg, rgba(153, 21, 235, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%)",boxShadow:"0 20px 60px rgba(153, 21, 235, 0.3)"},children:r})}),jsxRuntimeExports.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-5xl font-bold font-montserrat   text-white  mb-3 sm:mb-4 leading-tight",children:y}),jsxRuntimeExports.jsx("h2",{className:"text-xl sm:text-2xl md:text-3xl font-semibold text-gray-300 font-montserrat mb-4 sm:mb-5 md:mb-6 leading-tight",children:x}),jsxRuntimeExports.jsx("p",{className:"text-sm sm:text-base md:text-lg text-gray-400 mb-6 sm:mb-8 max-w-md mx-auto font-montserrat leading-relaxed px-2",children:b}),jsxRuntimeExports.jsx("button",{onClick:U,className:"px-6 py-2.5 sm:px-8 sm:py-3 bg-westxpurple/80 hover:bg-westxpurple/60  cursor-pointer text-white font-montserrat  rounded-lg hover:opacity-90 transition-all duration-300  text-sm sm:text-base w-full sm:w-auto",children:R}),jsxRuntimeExports.jsxs("div",{className:"flex justify-center gap-2 mt-8 sm:mt-10 md:mt-12",children:[jsxRuntimeExports.jsx("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full bg-territary animate-pulse",style:{animationDelay:"0s"}}),jsxRuntimeExports.jsx("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full bg-territary animate-pulse",style:{animationDelay:"0.2s"}}),jsxRuntimeExports.jsx("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full bg-territary animate-pulse",style:{animationDelay:"0.4s"}})]})]}),jsxRuntimeExports.jsx("style",{children:`
272        @keyframes float {
273          0%, 100% {
274            transform: translateY(0px) translateX(0px);
275          }
276          50% {
277            transform: translateY(-20px) translateX(10px);
278          }
279        }
280      `})]})},ProfilePage=()=>{const r=useAuth();return jsxRuntimeExports.jsx("div",{children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Userprofile,{user:r.user})}):jsxRuntimeExports.jsx(LockedPage,{title:"Profile Locked",subtitle:"Authentication Required",description:"You need to be logged in to view your profile. Please sign in to access your profile information and settings.",buttonText:"Go to Login",buttonPath:"/login"})})};function FiChevronsRight(r){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"13 17 18 12 13 7"},child:[]},{tag:"polyline",attr:{points:"6 17 11 12 6 7"},child:[]}]})(r)}function FiLogOut(r){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(r)}function FiMenu(r){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"},child:[]}]})(r)}function FiX(r){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(r)}const smalllogo="/assets/image-COJcp6Ed.png";function GoHomeFill(r){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.97 2.59a1.5 1.5 0 0 0-1.94 0l-7.5 6.363A1.5 1.5 0 0 0 3 10.097V19.5A1.5 1.5 0 0 0 4.5 21h4.75a.75.75 0 0 0 .75-.75V14h4v6.25c0 .414.336.75.75.75h4.75a1.5 1.5 0 0 0 1.5-1.5v-9.403a1.5 1.5 0 0 0-.53-1.144l-7.5-6.363Z"},child:[]}]})(r)}const Sidebar=({collapsedOnly:r=!1,onClose:y})=>{const[x,b]=reactExports.useState(!1),R=useLocation(),M=r?!1:x,O=U=>R.pathname===U||U==="/home"&&R.pathname==="/",z=[{path:"/home",icon:jsxRuntimeExports.jsx(GoHomeFill,{className:"text-2xl"}),label:"Home"},{path:"/messages",icon:jsxRuntimeExports.jsx(FaEnvelope,{className:"text-2xl"}),label:"Messages"},{path:"/similar-users",icon:jsxRuntimeExports.jsx(FaUsers,{className:"text-2xl"}),label:"Similar Users"},{path:"/questions",icon:jsxRuntimeExports.jsx(FaQuestionCircle,{className:"text-2xl"}),label:"Questions"},{path:"/profile",icon:jsxRuntimeExports.jsx(FaUser,{className:"text-2xl"}),label:"Profile"}];return jsxRuntimeExports.jsxs(motion.nav,{className:"sticky top-0 h-screen shrink-0 border-r border-borderColor bg-primary p-2",style:{width:M?"300px":"fit-content"},children:[jsxRuntimeExports.jsx(TitleSection,{open:M,collapsedOnly:r,onClose:y}),jsxRuntimeExports.jsx("div",{className:"space-y-3",children:z.map(U=>jsxRuntimeExports.jsx(Option,{path:U.path,icon:U.icon,label:U.label,isActive:O(U.path),open:M,onClick:r?y:void 0},U.path))}),!r&&jsxRuntimeExports.jsx(ToggleClose,{open:x,setOpen:b})]})}
280,Option=({path:r,icon:y,label:x,isActive:b,open:R,notifs:M,onClick:O})=>jsxRuntimeExports.jsxs(NavLink,{to:r,onClick:O,className:`relative flex cursor-pointer h-12 w-full items-center rounded-md transition-colors ${b?"text-gray-100 bg-westxpurple/70":"text-gray-400 hover:text-westxpurple"}`,children:[jsxRuntimeExports.jsx(motion.div,{className:"grid h-full w-12 place-content-center text-xl shrink-0",children:y}),R&&jsxRuntimeExports.jsx("span",{className:"text-md  font-montserrat animate-in fade-in slide-in-from-top-3 duration-300",children:x}),M&&R&&jsxRuntimeExports.jsx("span",{style:{transform:"translateY(-50%)"},className:"absolute right-2 top-1/2 size-4 rounded bg-indigo-500 text-xs text-white flex items-center justify-center animate-in zoom-in duration-500 delay-500",children:M})]}),TitleSection=({open:r,collapsedOnly:y,onClose:x})=>jsxRuntimeExports.jsxs("div",{className:"mb-3 border-b border-borderColor pb-3 mt-5 pl-1 relative",children:[jsxRuntimeExports.jsx("div",{className:"flex cursor-pointer items-center rounded-md transition-colors",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[r&&!y&&jsxRuntimeExports.jsx(Logo,{}),(!r||y)&&jsxRuntimeExports.jsx("img",{src:smalllogo,alt:"logo",className:"w-10 h-10 object-contain p-1"})]})}),y&&x&&jsxRuntimeExports.jsx("button",{type:"button",onClick:x,"aria-label":"Close menu",className:"absolute -top-1 right-0 p-2 rounded-lg text-gray-400 hover:text-white hover:bg-white/10 transition-colors",children:jsxRuntimeExports.jsx(FiX,{className:"text-xl"})})]}),Logo=()=>jsxRuntimeExports.jsx(motion.div,{className:"grid w-[200px] shrink-0 place-content-center rounded-md ",children:jsxRuntimeExports.jsx("img",{src:logo,alt:"logo",className:"w-full h-full object-contain"})}),ToggleClose=({open:r,setOpen:y})=>jsxRuntimeExports.jsx(motion.button,{onClick:()=>y(!r),className:"absolute bottom-0 left-0 right-0 border-t text-gray-300 cursor-pointer border-borderColor transition-colors hover:bg-westxpurple/70",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center p-2",children:[jsxRuntimeExports.jsx(motion.div,{className:"grid size-10 place-content-center text-lg",children:jsxRuntimeExports.jsx(FiChevronsRight,{className:`transition-transform ${r?"rotate-180":""}`})}),r&&jsxRuntimeExports.jsx("span",{className:"text-xs font-montserrat  font-medium animate-in fade-in slide-in-from-top-3 duration-300 delay-125",children:"Hide"})]})}),Layout=()=>{const[r,y]=reactExports.useState(!1);return jsxRuntimeExports.jsxs("div",{className:"flex flex-row overflow-hidden h-screen bg-primary",children:[jsxRuntimeExports.jsx("div",{className:"flex-none hidden md:block",children:jsxRuntimeExports.jsx(Sidebar,{})}),jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>y(!0),"aria-label":"Open menu",className:"md:hidden fixed top-5 left-4 z-40 p-2.5 rounded-lg text-gray-400 hover:text-white hover:bg-white/10 transition-colors border border-borderColor bg-primary/95",children:jsxRuntimeExports.jsx(FiMenu,{className:"text-xl"})}),jsxRuntimeExports.jsx(AnimatePresence,{children:r&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(motion.div,{initial:{opacity:0}
280,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 bg-black/50 z-40 md:hidden",onClick:()=>y(!1),"aria-hidden":!0}),jsxRuntimeExports.jsx(motion.div,{initial:{x:-20},animate:{x:0},exit:{x:-20},transition:{type:"tween",duration:.2},className:"fixed left-0 top-0 bottom-0 z-50 md:hidden",children:jsxRuntimeExports.jsx(Sidebar,{collapsedOnly:!0,onClose:()=>y(!1)})})]})}),jsxRuntimeExports.jsxs("div",{className:"flex-1 relative overflow-auto flex flex-col min-h-0",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-6 right-6 z-30",children:jsxRuntimeExports.jsx(UserProfile,{})}),jsxRuntimeExports.jsx("div",{className:"flex-1 min-h-0 flex flex-col",children:jsxRuntimeExports.jsx(Outlet,{})})]})]})},UserProfile=()=>{const r=useAuth(),y=r?.user,x=r?.setIsAuthenticated,[b,R]=reactExports.useState(!1),M=useNavigate(),O=reactExports.useRef(null);reactExports.useEffect(()=>{const U=G=>{O.current&&!O.current.contains(G.target)&&R(!1)};if(b)return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[b]);const z=()=>{localStorage.removeItem("WESTX_AUTH_TOKEN"),x&&x(!1),M("/login")};return jsxRuntimeExports.jsxs("div",{className:"relative",ref:O,children:[jsxRuntimeExports.jsx(motion.div,{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-full overflow-hidden border-2 border-[#2e2e2d] cursor-pointer shadow-lg relative z-50",whileHover:{scale:1.05,borderColor:"#9333ea"},whileTap:{scale:.95},onClick:()=>R(!b),children:y?.image?jsxRuntimeExports.jsx("img",{src:y.image,alt:y.name,className:"w-full h-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"w-full h-full bg-gradient-to-br from-gray-700 to-gray-900 flex items-center justify-center text-white font-bold text-xl",children:y?.name?y.name.charAt(0).toUpperCase():"U"})}),jsxRuntimeExports.jsx(AnimatePresence,{children:b&&jsxRuntimeExports.jsxs(motion.div,{initial:{opacity:0,y:-10,scale:.95,filter:"blur(10px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-10,scale:.95,filter:"blur(10px)"},transition:{duration:.2,ease:"circOut"},className:"absolute right-0 top-full mt-3 w-64 bg-[#0E1014]/95 backdrop-blur-xl border border-[#2e2e2d] rounded-2xl shadow-2xl overflow-hidden z-50 origin-top-right",children:[jsxRuntimeExports.jsxs("div",{className:"p-5 border-b border-white/5 bg-gradient-to-b from-white/5 to-transparent",children:[jsxRuntimeExports.jsx("p",{className:"text-base font-semibold text-white truncate",children:y?.name||"User"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-400 truncate mt-1",children:y?.email})]}),jsxRuntimeExports.jsx("div",{className:"p-2",children:jsxRuntimeExports.jsxs(motion.div,{whileHover:{backgroundColor:"rgba(248, 113, 113, 0.1)",x:5},className:"flex items-center gap-3 px-4 py-3 text-sm text-red-400 cursor-pointer transition-colors rounded-xl",onClick:z,children:[jsxRuntimeExports.jsx("div",{className:"p-1.5 bg-red-500/10 rounded-full",children:jsxRuntimeExports.jsx(FiLogOut,{className:"text-base"})}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Sign Out"})]})}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-territary/5 blur-3xl pointer-events-none -z-10 rounded-full"})]})})]})};function BsStars(r){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.829 1.828l1.936.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.829l-.645 1.936
280a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.73 1.73 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69A1.73 1.73 0 0 0 2.31 4.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.73 1.73 0 0 0 3.407 2.31zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.16 1.16 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.16 1.16 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732z"},child:[]}]})(r)}const Home=()=>{const y=useAuth()?.user,x=useNavigate(),b=oe=>oe?oe.split(" ").map(ne=>ne.charAt(0).toUpperCase()+ne.slice(1).toLowerCase()).join(" "):"User",[R,M]=reactExports.useState("Good morning"),[O,z]=reactExports.useState(!1),[U,G]=reactExports.useState(""),[q,J]=reactExports.useState(!1),[X,fe]=reactExports.useState(!1);reactExports.useEffect(()=>{const oe=()=>{const ae=new Date().getHours();ae<12?M("Good morning"):ae<18?M("Good afternoon"):M("Good evening")};oe();const ne=setInterval(oe,6e4);return()=>clearInterval(ne)},[]),reactExports.useEffect(()=>{y?.intention?G(y.intention):G("I'm a student interested in UX design and I want to understand how designers from IIT built their careers and how I can prepare for a similar path.")},[y]);const te=async()=>{if(y?.isCompleted==!1){n.error("Please complete your profile to set your intention",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),x("/complete-profile");return}if(U.trim()){J(!0);try{await updateUserprofileintention(U)?(z(!1),n.success("Intention updated successfully",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})):n.error("Failed to update intention",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch(oe){console.error(oe),n.error("Something went wrong",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{J(!1)}}},ue=()=>{y?.intention?G(y.intention):G("I'm a student interested in UX design and I want to understand how designers from IIT built their careers and how I can prepare for a similar path."),z(!1)},ye=async()=>{if(y?.isCompleted==!1){n.error("Please complete your profile to start interacting with users",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),x("/complete-profile");return}fe(!0);try{const{success:oe}=await interacting();oe?(n.success("You can discover user While you ai twin is building network for you ",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),x("/similar-users")):n.error("Could not start conversation",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}catch(oe){console.error(oe),n.error("Something went wrong",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{fe(!1)}};return jsxRuntimeExports.jsxs("div",{className:"min-h-dvh font-montserrat w-full bg-primary flex flex-col p-4 sm:p-6 md:p-8 lg:p-12 relative overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center max-w-4xl mx-auto w-full z-10 px-0 sm:px-2",children:[jsxRuntimeExports.jsxs("div",{className:"text-center mb-8 sm:mb-10 md:mb-14 fade-in-up w-full max-w-2xl",children:[jsxRuntimeExports.jsxs("h1",{className:"text-lg sm:text-2xl md:text-3xl lg:text-4xl font-semibold text-white font-poppins mb-3 sm:mb-4 tracking-tight leading-tight",children:[R,", ",jsxRuntimeExports.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-white to-gray-400",children:b(y?.name)})]}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm sm:text-base md:text-lg lg:text-xl font-light",children:"What would you like to explore today?"})]}),jsxRuntimeExports.jsxs(motion.div,{layout:!0,className:`w-full max-w-2xl rounded-xl sm:rounded-2xl p-[1px] transition-all duration-300 relative group ${O?"bg-gradient-to-r from-territary to-purple-900 shadow-[0_0_20px_rgba(153,21,235,0.15)]":"bg-gradient-to-b from-[#2e2e2d] to-transparent hover:from-gray-700"}`,initial:{opacity:0,y:20}
280,animate:{opacity:1,y:0},transition:{delay:.2,layout:{duration:.3}},children:[jsxRuntimeExports.jsxs(motion.div,{layout:!0,className:`rounded-[11px] sm:rounded-[15px] h-full p-4 sm:p-5 md:p-6 flex flex-col relative z-10 transition-colors duration-300 ${O?"bg-[#0E1014]":"bg-[#16181c]"}`,children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center gap-2 mb-2 sm:mb-3",children:[jsxRuntimeExports.jsx("span",{className:`text-[10px] sm:text-xs md:text-sm font-semibold tracking-wider uppercase shrink-0 ${O?"text-territary":"text-gray-500"}`,children:"your intention"}),jsxRuntimeExports.jsx(AnimatePresence,{mode:"wait",children:O?jsxRuntimeExports.jsxs(motion.div,{layout:!0,initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:10},className:"flex gap-1.5 sm:gap-2",children:[jsxRuntimeExports.jsx("button",{onClick:ue,className:"px-2.5 py-2 sm:py-1.5 rounded-full text-xs sm:text-sm font-medium text-gray-400 hover:text-white hover:bg-white/10 transition-colors min-h-[40px] sm:min-h-0",disabled:q,children:"Cancel"}),jsxRuntimeExports.jsxs("button",{onClick:te,className:"flex items-center gap-1.5 px-3 py-2 sm:py-1.5 rounded-full text-xs sm:text-sm font-medium text-white bg-territary hover:bg-[#8512cc] shadow-[0_0_10px_rgba(153,21,235,0.4)] transition-all transform active:scale-95 min-h-[40px] sm:min-h-0",disabled:q,children:[q?jsxRuntimeExports.jsx("span",{className:"w-3.5 h-3.5 sm:w-3 sm:h-3 border-2 border-white/30 border-t-white rounded-full animate-spin"}):jsxRuntimeExports.jsx(FaCheck,{className:"shrink-0"}),jsxRuntimeExports.jsx("span",{children:"Save"})]})]},"action-btns"):jsxRuntimeExports.jsxs(motion.button,{layout:!0,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},onClick:()=>z(!0),className:"flex items-center gap-1.5 sm:gap-2 text-gray-400 hover:text-white transition-colors text-xs sm:text-sm font-medium px-2.5 py-2 sm:py-1.5 rounded-full hover:bg-white/5 min-h-[44px] sm:min-h-0",children:[jsxRuntimeExports.jsx(FaPen,{className:"text-[10px] sm:text-xs shrink-0"})," ",jsxRuntimeExports.jsx("span",{children:"Refine"})]},"edit-btn")})]}),jsxRuntimeExports.jsx("div",{className:"relative min-h-[56px] sm:min-h-[60px]",children:O?jsxRuntimeExports.jsxs(motion.div,{initial:{opacity:0}
vendor: 31,337 bytes, lines 280-294
280,animate:{opacity:1},transition:{duration:.2},children:[jsxRuntimeExports.jsx("textarea",{className:"w-full bg-transparent text-white p-0 border-none outline-none resize-none font-light text-base sm:text-lg md:text-xl leading-relaxed placeholder-gray-600 focus:ring-0 min-h-[72px] sm:min-h-[80px]",value:U,onChange:oe=>G(oe.target.value),autoFocus:!0,placeholder:"Describe what you want to achieve..."}),jsxRuntimeExports.jsx("div",{className:"flex justify-end mt-1 absolute bottom-0 right-0",children:jsxRuntimeExports.jsxs("span",{className:`text-[10px] sm:text-xs ${U.length>250?"text-orange-400":"text-gray-600"}`,children:[U.length," / 280"]})})]}):jsxRuntimeExports.jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"cursor-pointer group/text h-full",onClick:()=>z(!0),children:jsxRuntimeExports.jsx("p",{className:"text-gray-200 text-base md:text-xl leading-relaxed font-light transition-colors group-hover/text:text-white min-h-[56px] sm:min-h-[60px]",children:U||jsxRuntimeExports.jsx("span",{className:"text-gray-500 italic",children:"Set your intention to customize your AI experience..."})})})})]}),O&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-territary/10 blur-xl rounded-bl-full pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-20 h-20 bg-territary/10 blur-xl rounded-tr-full pointer-events-none"})]})]}),jsxRuntimeExports.jsxs("button",{onClick:ye,disabled:X,className:"group mt-4 sm:mt-5 relative px-5 py-2.5 sm:px-6 sm:py-3 md:px-8 md:py-4 rounded-full bg-black border border-territary text-white font-medium flex items-center justify-center gap-2 sm:gap-3 shadow-[0_0_15px_rgba(153,21,235,0.3)] hover:shadow-[0_0_25px_rgba(153,21,235,0.5)] transition-all duration-300 overflow-hidden cursor-pointer active:scale-95 fade-in-up disabled:opacity-70 disabled:cursor-not-allowed min-h-[48px] sm:min-h-0  max-w-sm sm:max-w-none sm:w-auto",style:{animationDelay:"0.4s"},children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-territary opacity-10 group-hover:opacity-20 transition-opacity duration-300"}),X?jsxRuntimeExports.jsx("span",{className:"w-5 h-5 border-2 border-territary/30 border-t-territary rounded-full animate-spin shrink-0"}):jsxRuntimeExports.jsx(BsStars,{className:"text-territary text-lg sm:text-xl group-hover:rotate-12 transition-transform duration-300 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"tracking-wide text-sm sm:text-base",children:X?"Starting...":"Start Conversation"})]})]}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-3xl h-64 bg-territary opacity-[0.03] blur-[100px] pointer-events-none rounded-t-full"}),jsxRuntimeExports.jsx("style",{children:`
281        @keyframes fadeInUp {
282          from {
283            opacity: 0;
284            transform: translateY(20px);
285          }
286          to {
287            opacity: 1;
288            transform: translateY(0);
289          }
290        }
291        .fade-in-up {
292          animation: fadeInUp 0.8s ease-out forwards;
293        }
294      `})]})},Homepage=()=>{const r=useAuth();return jsxRuntimeExports.jsx("div",{children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Home,{})}):jsxRuntimeExports.jsx(LockedPage,{icon:jsxRuntimeExports.jsx(FaHome,{className:"text-5xl text-territary"}),title:"Home Locked",subtitle:"Authentication Required",description:"You need to be logged in to view your home page. Please sign in to access your dashboard and personalized content.",buttonText:"Go to Login",buttonPath:"/login"})})};var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},defaultTimeoutProvider={setTimeout:(r,y)=>setTimeout(r,y),clearTimeout:r=>clearTimeout(r),setInterval:(r,y)=>setInterval(r,y),clearInterval:r=>clearInterval(r)},TimeoutManager=class{#e=defaultTimeoutProvider;#t=!1;setTimeoutProvider(r){this.#e=r}setTimeout(r,y){return this.#e.setTimeout(r,y)}clearTimeout(r){this.#e.clearTimeout(r)}setInterval(r,y){return this.#e.setInterval(r,y)}clearInterval(r){this.#e.clearInterval(r)}},timeoutManager=new TimeoutManager;function systemSetTimeoutZero(r){setTimeout(r,0)}var isServer=typeof window>"u"||"Deno"in globalThis;function noop(){}function functionalUpdate(r,y){return typeof r=="function"?r(y):r}function isValidTimeout(r){return typeof r=="number"&&r>=0&&r!==1/0}function timeUntilStale(r,y){return Math.max(r+(y||0)-Date.now(),0)}function resolveStaleTime(r,y){return typeof r=="function"?r(y):r}function resolveEnabled(r,y){return typeof r=="function"?r(y):r}function matchQuery(r,y){const{type:x="all",exact:b,fetchStatus:R,predicate:M,queryKey:O,stale:z}=r;if(O){if(b){if(y.queryHash!==hashQueryKeyByOptions(O,y.options))return!1}else if(!partialMatchKey(y.queryKey,O))return!1}if(x!=="all"){const U=y.isActive();if(x==="active"&&!U||x==="inactive"&&U)return!1}return!(typeof z=="boolean"&&y.isStale()!==z||R&&R!==y.state.fetchStatus||M&&!M(y))}function matchMutation(r,y){const{exact:x,status:b,predicate:R,mutationKey:M}=r;if(M){if(!y.options.mutationKey)return!1;if(x){if(hashKey(y.options.mutationKey)!==hashKey(M))return!1}else if(!partialMatchKey(y.options.mutationKey,M))return!1}return!(b&&y.state.status!==b||R&&!R(y))}function hashQueryKeyByOptions(r,y){return(y?.queryKeyHashFn||hashKey)(r)}function hashKey(r){return JSON.stringify(r,(y,x)=>isPlainObject(x)?Object.keys(x).sort().reduce((b,R)=>(b[R]=x[R],b),{}):x)}function partialMatchKey(r,y){return r===y?!0:typeof r!=typeof y?!1:r&&y&&typeof r=="object"&&typeof y=="object"?Object.keys(y).every(x=>partialMatchKey(r[x],y[x])):!1}var hasOwn=Object.prototype.hasOwnProperty;function replaceEqualDeep(r,y){if(r===y)return r;const x=isPlainArray(r)&&isPlainArray(y);if(!x&&!(isPlainObject(r)&&isPlainObject(y)))return y;const R=(x?r:Object.keys(r)).length,M=x?y:Object.keys(y),O=M.length,z=x?new Array(O):{};let U=0;for(let G=0;G<O;G++){const q=x?G:M[G],J=r[q],X=y[q];if(J===X){z[q]=J,(x?G<R:hasOwn.call(r,q))&&U++;continue}if(J===null||X===null||typeof J!="object"||typeof X!="object"){z[q]=X;continue}const fe=replaceEqualDeep(J,X);z[q]=fe,fe===J&&U++}return R===O&&U===R?r:z}function shallowEqualObjects(r,y){if(!y||Object.keys(r).length!==Object.keys(y).length)return!1;for(const x in r)if(r[x]!==y[x])return!1;return!0}function isPlainArray(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function isPlainObject(r){if(!hasObjectPrototype(r))return!1;const y=r.constructor;if(y===void 0)return!0;const x=y.prototype;return!(!hasObjectPrototype(x)||!x.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function hasObjectPrototype(r){return Object.prototype.toString.call(r)==="[object Object]"}function sleep(r){return new Promise(y=>{timeoutManager.setTimeout(y,r)})}function replaceData(r,y,x){return typeof x.structuralSharing=="function"?x.structuralSharing(r,y):x.structuralSharing!==!1?replaceEqualDeep(r,y):y}function addToEnd(r,y,x=0){const b=[...r,y];return x&&b.length>x?b.slice(1):b}function addToStart(r,y,x=0){const b=[y,...r];return x&&b.length>x?b.slice(0,-1):b}var skipToken=Symbol();function ensureQueryFn(r,y){return!r.queryFn&&y?.initialPromise?()=>y.initialPromise:!r.queryFn||r.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function shouldThrowError(r,y){return typeof r=="function"?r(...y):!!r}function addConsumeAwareSignal(r,y,x){let b=!1,R;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(R??=y(),b||(b=!0,R.aborted?x():R.addEventListener("abort",x,{once:!0})),R)}),r}var FocusManager=class extends Subscribable{#e;#t;#r;constructor(){super(),this.#r=r=>{if(!isServer&&window.addEventListener){const y=()=>r();return window.addEventListener("visibilitychange",y,!1),()=>{window.removeEventListener("visibilitychange",y)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(r){this.#r=r,this.#t?.(),this.#t=r(y=>{typeof y=="boolean"?this.setFocused(y):this.onFocus()})}setFocused(r){this.#e!==r&&(this.#e=r,this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(y=>{y(r)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},focusManager=new FocusManager;function pendingThenable(){let r,y;const x=new Promise((R,M)=>{r=R,y=M});x.status="pending",x.catch(()=>{});function b(R){Object.assign(x,R),delete x.resolve,delete x.reject}return x.resolve=R=>{b({status:"fulfilled",value:R}),r(R)},x.reject=R=>{b({status:"rejected",reason:R}),y(R)},x}var defaultScheduler=systemSetTimeoutZero;function createNotifyManager(){let r=[],y=0,x=z=>{z()},b=z=>{z()},R=defaultScheduler;const M=z=>{y?r.push(z):R(()=>{x(z)})},O=()=>{const z=r;r=[],z.length&&R(()=>{b(()=>{z.forEach(U=>{x(U)})})})};return{batch:z=>{let U;y++;try{U=z()}finally{y--,y||O()}return U},batchCalls:z=>(...U)=>{M(()=>{z(...U)})},schedule:M,setNotifyFunction:z=>{x=z},setBatchNotifyFunction:z=>{b=z},setScheduler:z=>{R=z}}}var notifyManager=createNotifyManager(),OnlineManager=class extends Subscribable{#e=!0;#t;#r;constructor(){super(),this.#r=r=>{if(!isServer&&window.addEventListener){const y=()=>r(!0),x=()=>r(!1);return window.addEventListener("online",y,!1),window.addEventListener("offline",x,!1),()=>{window.removeEventListener("online",y),window.removeEventListener("offline",x)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(r){this.#r=r,this.#t?.(),this.#t=r(this.setOnline.bind(this))}setOnline(r){this.#e!==r&&(this.#e=r,this.listeners.forEach(x=>{x(r)}))}isOnline(){return this.#e}},onlineManager=new OnlineManager;function defaultRetryDelay(r){return Math.min(1e3*2**r,3e4)}function canFetch(r){return(r??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(r){super("CancelledError"),this.revert=r?.revert,this.silent=r?.silent}};function createRetryer(r){let y=!1,x=0,b;const R=pendingThenable(),M=()=>R.status!=="pending",O=ue=>{if(!M()){const ye=new CancelledError(ue);X(ye),r.onCancel?.(ye)}},z=()=>{y=!0},U=()=>{y=!1},G=()=>focusManager.isFocused()&&(r.networkMode==="always"||onlineManager.isOnline())&&r.canRun(),q=()=>canFetch(r.networkMode)&&r.canRun(),J=ue=>{M()||(b?.(),R.resolve(ue))},X=ue=>{M()||(b?.(),R.reject(ue))},fe=()=>new Promise(ue=>{b=ye=>{(M()||G())&&ue(ye)},r.onPause?.()}).then(()=>{b=void 0,M()||r.onContinue?.()}),te=()=>{if(M())return;let ue;const ye=x===0?r.initialPromise:void 0;try{ue=ye??r.fn()}catch(oe){ue=Promise.reject(oe)}Promise.resolve(ue).then(J).catch(oe=>{if(M())return;const ne=r.retry??(isServer?0:3),ae=r.retryDelay??defaultRetryDelay,pe=typeof ae=="function"?ae(x,oe):ae,je=ne===!0||typeof ne=="number"&&x<ne||typeof ne=="function"&&ne(x,oe);if(y||!je){X(oe);return}x++,r.onFail?.(x,oe),sleep(pe).then(()=>G()?void 0:fe()).then(()=>{y?X(oe):te()})})};return{promise:R,status:()=>R.status,cancel:O,continue:()=>(b?.(),R),cancelRetry:z,continueRetry:U,canStart:q,start:()=>(q()?te():fe().then(te),R)}}var Removable=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&(this.#e=timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(isServer?1/0:300*1e3))}clearGcTimeout(){this.#e&&(timeoutManager.clearTimeout(this.#e),this.#e=void 0)}},Query=class extends Removable{#e;#t;#r;#n;#i;#a;#o;constructor(r){super(),this.#o=!1,this.#a=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.#n=r.client,this.#r=this.#n.getQueryCache(),this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.#e=getDefaultState$1(this.options),this.state=r.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(r){if(this.options={...this.#a,...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const y=getDefaultState$1(this.options);y.data!==void 0&&(this.setState(successState(y.data,y.dataUpdatedAt)),this.#e=y)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(r,y){const x=replaceData(this.state.data,r,this.options);return this.#s({data:x,type:"success",dataUpdatedAt:y?.updatedAt,manual:y?.manual}),x}setState(r,y){this.#s({type:"setState",state:r,setStateOptions:y})}cancel(r){const y=this.#i?.promise;return this.#i?.cancel(r),y?y.then(noop).catch(noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(r=>resolveEnabled(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>resolveStaleTime(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,r)}onFocus(){this.observers.find(y=>y.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(y=>y.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(y=>y!==r),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(r,y){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&y?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(r&&this.setOptions(r),!this.options.queryFn){const z=this.observers.find(U=>U.options.queryFn);z&&this.setOptions(z.options)}const x=new AbortController,b=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(this.#o=!0,x.signal)})},R=()=>{const z=ensureQueryFn(this.options,y),G=(()=>{const q={client:this.#n,queryKey:this.queryKey,meta:this.meta};return b(q),q})();return this.#o=!1,this.options.persister?this.options.persister(z,G,this):z(G)},O=(()=>{const z={fetchOptions:y,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:R};return b(z),z})();this.options.behavior?.onFetch(O,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==O.fetchOptions?.meta)&&this.#s({type:"fetch",meta:O.fetchOptions?.meta}),this.#i=createRetryer({initialPromise:y?.initialPromise,fn:O.fetchFn,onCancel:z=>{z instanceof CancelledError&&z.revert&&this.setState({...this.#t,fetchStatus:"idle"}),x.abort()},onFail:(z,U)=>{this.#s({type:"failed",failureCount:z,error:U})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:O.options.retry,retryDelay:O.options.retryDelay,networkMode:O.options.networkMode,canRun:()=>!0});try{const z=await this.#i.start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),this.#r.config.onSuccess?.(z,this),this.#r.config.onSettled?.(z,this.state.error,this),z}catch(z){if(z instanceof CancelledError){if(z.silent)return this.#i.promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw this.#s({type:"error",error:z}),this.#r.config.onError?.(z,this),this.#r.config.onSettled?.(this.state.data,z,this),z}finally{this.scheduleGc()}}#s(r){const y=x=>{switch(r.type){case"failed":return{...x,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...x,fetchStatus:"paused"};case"continue":return{...x,fetchStatus:"fetching"};case"fetch":return{...x,...fetchState(x.data,this.options),fetchMeta:r.meta??null};case"success":const b={...x,...successState(r.data,r.dataUpdatedAt),dataUpdateCount:x.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=r.manual?b:void 0,b;case"error":const R=r.error;return{...x,error:R,errorUpdateCount:x.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:x.fetchFailureCount+1,fetchFailureReason:R,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...x,isInvalidated:!0};case"setState":return{...x,...r.state}}};this.state=y(this.state),notifyManager.batch(()=>{this.observers.forEach(x=>{x.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:r})})}};function fetchState(r,y){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(y.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function successState(r,y){return{data:r,dataUpdatedAt:y??Date.now(),error:null,isInvalidated:!1,status:"success"}}function getDefaultState$1(r){const y=typeof r.initialData=="function"?r.initialData():r.initialData,x=y!==void 0,b=x?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:y,dataUpdateCount:0,dataUpdatedAt:x?b??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:x?"success":"pending",fetchStatus:"idle"}}var QueryObserver=class extends Subscribable{constructor(r,y){super(),this.options=y,this.#e=r,this.#s=null,this.#o=pendingThenable(),this.bindMethods(),this.setOptions(y)}#e;#t=void 0;#r=void 0;#n=void 0;#i;#a;#o;#s;#m;#f;#d;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),shouldFetchOnMount(this.#t,this.options)?this.#h():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#E(),this.#t.removeObserver(this)}setOptions(r){const y=this.options,x=this.#t;if(this.options=this.#e.defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),y._defaulted&&!shallowEqualObjects(this.options,y)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const b=this.hasListeners();b&&shouldFetchOptionally(this.#t,x,this.options,y)&&this.#h(),this.updateResult(),b&&(this.#t!==x||resolveEnabled(this.options.enabled,this.#t)!==resolveEnabled(y.enabled,this.#t)||resolveStaleTime(this.options.staleTime,this.#t)!==resolveStaleTime(y.staleTime,this.#t))&&this.#g();const R=this.#y();b&&(this.#t!==x||resolveEnabled(this.options.enabled,this.#t)!==resolveEnabled(y.enabled,this.#t)||R!==this.#l)&&this.#v(R)}getOptimisticResult(r){const y=this.#e.getQueryCache().build(this.#e,r),x=this.createResult(y,r);return shouldAssignObserverCurrentProperties(this,x)&&(this.#n=x,this.#a=this.options,this.#i=this.#t.state),x}getCurrentResult(){return this.#n}trackResult(r,y){return new Proxy(r,{get:(x,b)=>(this.trackProp(b),y?.(b),b==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(x,b))})}trackProp(r){this.#p.add(r)}getCurrentQuery(){return this.#t}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const y=this.#e.defaultQueryOptions(r),x=this.#e.getQueryCache().build(this.#e,y);return x.fetch().then(()=>this.createResult(x,y))}fetch(r){return this.#h({...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#h(r){this.#S();let y=this.#t.fetch(this.options,r);return r?.throwOnError||(y=y.catch(noop)),y}#g(){this.#b();const r=resolveStaleTime(this.options.staleTime,this.#t);if(isServer||this.#n.isStale||!isValidTimeout(r))return;const x=timeUntilStale(this.#n.dataUpdatedAt,r)+1;this.#c=timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},x)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(r){this.#E(),this.#l=r,!(isServer||resolveEnabled(this.options.enabled,this.#t)===!1||!isValidTimeout(this.#l)||this.#l===0)&&(this.#u=timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&this.#h()},this.#l))}#x(){this.#g(),this.#v(this.#y())}#b(){this.#c&&(timeoutManager.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(timeoutManager.clearInterval(this.#u),this.#u=void 0)}createResult(r,y){const x=this.#t,b=this.options,R=this.#n,M=this.#i,O=this.#a,U=r!==x?r.state:this.#r,{state:G}=r;let q={...G},J=!1,X;if(y._optimisticResults){const $e=this.hasListeners(),We=!$e&&shouldFetchOnMount(r,y),ot=$e&&shouldFetchOptionally(r,x,y,b);(We||ot)&&(q={...q,...fetchState(G.data,r.options)}),y._optimisticResults==="isRestoring"&&(q.fetchStatus="idle")}let{error:fe,errorUpdatedAt:te,status:ue}=q;X=q.data;let ye=!1;if(y.placeholderData!==void 0&&X===void 0&&ue==="pending"){let $e;R?.isPlaceholderData&&y.placeholderData===O?.placeholderData?($e=R.data,ye=!0):$e=typeof y.placeholderData=="function"?y.placeholderData(this.#d?.state.data,this.#d):y.placeholderData,$e!==void 0&&(ue="success",X=replaceData(R?.data,$e,y),J=!0)}if(y.select&&X!==void 0&&!ye)if(R&&X===M?.data&&y.select===this.#m)X=this.#f;else try{this.#m=y.select,X=y.select(X),X=replaceData(R?.data,X,y),this.#f=X,this.#s=null}catch($e){this.#s=$e}this.#s&&(fe=this.#s,X=this.#f,te=Date.now(),ue="error");const oe=q.fetchStatus==="fetching",ne=ue==="pending",ae=ue==="error",pe=ne&&oe,je=X!==void 0,Ue={status:ue,fetchStatus:q.fetchStatus,isPending:ne,isSuccess:ue==="success",isError:ae,isInitialLoading:pe,isLoading:pe,data:X,dataUpdatedAt:q.dataUpdatedAt,error:fe,errorUpdatedAt:te,failureCount:q.fetchFailureCount,failureReason:q.fetchFailureReason,errorUpdateCount:q.errorUpdateCount,isFetched:q.dataUpdateCount>0||q.errorUpdateCount>0,isFetchedAfterMount:q.dataUpdateCount>U.dataUpdateCount||q.errorUpdateCount>U.errorUpdateCount,isFetching:oe,isRefetching:oe&&!ne,isLoadingError:ae&&!je,isPaused:q.fetchStatus==="paused",isPlaceholderData:J,isRefetchError:ae&&je,isStale:isStale(r,y),refetch:this.refetch,promise:this.#o,isEnabled:resolveEnabled(y.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const $e=ct=>{Ue.status==="error"?ct.reject(Ue.error):Ue.data!==void 0&&ct.resolve(Ue.data)},We=()=>{const ct=this.#o=Ue.promise=pendingThenable();$e(ct)},ot=this.#o;switch(ot.status){case"pending":r.queryHash===x.queryHash&&$e(ot);break;case"fulfilled":(Ue.status==="error"||Ue.data!==ot.value)&&We();break;case"rejected":(Ue.status!=="error"||Ue.error!==ot.reason)&&We();break}}return Ue}updateResult(){const r=this.#n,y=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#d=this.#t),shallowEqualObjects(y,r))return;this.#n=y;const x=()=>{if(!r)return!0;const{notifyOnChangeProps:b}=this.options,R=typeof b=="function"?b():b;if(R==="all"||!R&&!this.#p.size)return!0;const M=new Set(R??this.#p);return this.options.throwOnError&&M.add("error"),Object.keys(this.#n).some(O=>{const z=O;return this.#n[z]!==r[z]&&M.has(z)})};this.#w({listeners:x()})}#S(){const r=this.#e.getQueryCache().build(this.#e,this.options);if(r===this.#t)return;const y=this.#t;this.#t=r,this.#r=r.state,this.hasListeners()&&(y?.removeObserver(this),r.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#w(r){notifyManager.batch(()=>{r.listeners&&this.listeners.forEach(y=>{y(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function shouldLoadOnMount(r,y){return resolveEnabled(y.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&y.retryOnMount===!1)}function shouldFetchOnMount(r,y){return shouldLoadOnMount(r,y)||r.state.data!==void 0&&shouldFetchOn(r,y,y.refetchOnMount)}function shouldFetchOn(r,y,x){if(resolveEnabled(y.enabled,r)!==!1&&resolveStaleTime(y.staleTime,r)!=="static"){const b=typeof x=="function"?x(r):x;return b==="always"||b!==!1&&isStale(r,y)}return!1}function shouldFetchOptionally(r,y,x,b){return(r!==y||resolveEnabled(b.enabled,r)===!1)&&(!x.suspense||r.state.status!=="error")&&isStale(r,x)}function isStale(r,y){return resolveEnabled(y.enabled,r)!==!1&&r.isStaleByTime(resolveStaleTime(y.staleTime,r))}function shouldAssignObserverCurrentProperties(r,y){return!shallowEqualObjects(r.getCurrentResult(),y)}function infiniteQueryBehavior(r){return{onFetch:(y,x)=>{const b=y.options,R=y.fetchOptions?.meta?.fetchMore?.direction,M=y.state.data?.pages||[],O=y.state.data?.pageParams||[];let z={pages:[],pageParams:[]},U=0;const G=async()=>{let q=!1;const J=te=>{addConsumeAwareSignal(te,()=>y.signal,()=>q=!0)},X=ensureQueryFn(y.options,y.fetchOptions),fe=async(te,ue,ye)=>{if(q)return Promise.reject();if(ue==null&&te.pages.length)return Promise.resolve(te);const ne=(()=>{const Ve={client:y.client,queryKey:y.queryKey,pageParam:ue,direction:ye?"backward":"forward",meta:y.options.meta};return J(Ve),Ve})(),ae=await X(ne),{maxPages:pe}=y.options,je=ye?addToStart:addToEnd;return{pages:je(te.pages,ae,pe),pageParams:je(te.pageParams,ue,pe)}};if(R&&M.length){const te=R==="backward",ue=te?getPreviousPageParam:getNextPageParam,ye={pages:M,pageParams:O},oe=ue(b,ye);z=await fe(ye,oe,te)}else{const te=r??M.length;do{const ue=U===0?O[0]??b.initialPageParam:getNextPageParam(b,z);if(U>0&&ue==null)break;z=await fe(z,ue),U++}while(U<te)}return z};y.options.persister?y.fetchFn=()=>y.options.persister?.(G,{client:y.client,queryKey:y.queryKey,meta:y.options.meta,signal:y.signal},x):y.fetchFn=G}}}function getNextPageParam(r,{pages:y,pageParams:x}){const b=y.length-1;return y.length>0?r.getNextPageParam(y[b],y,x[b],x):void 0}function getPreviousPageParam(r,{pages:y,pageParams:x}){return y.length>0?r.getPreviousPageParam?.(y[0],y,x[0],x):void 0}var Mutation=class extends Removable{#e;#t;#r;#n;constructor(r){super(),this.#e=r.client,this.mutationId=r.mutationId,this.#r=r.mutationCache,this.#t=[],this.state=r.state||getDefaultState(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){this.#t.includes(r)||(this.#t.push(r),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){this.#t=this.#t.filter(y=>y!==r),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(r){const y=()=>{this.#i({type:"continue"})},x={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(r,x):Promise.reject(new Error("No mutationFn found")),onFail:(M,O)=>{this.#i({type:"failed",failureCount:M,error:O})},onPause:()=>{this.#i({type:"pause"})},onContinue:y,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const b=this.state.status==="pending",R=!this.#n.canStart();try{if(b)y();else{this.#i({type:"pending",variables:r,isPaused:R}),await this.#r.config.onMutate?.(r,this,x);const O=await this.options.onMutate?.(r,x);O!==this.state.context&&this.#i({type:"pending",context:O,variables:r,isPaused:R})}const M=await this.#n.start();return await this.#r.config.onSuccess?.(M,r,this.state.context,this,x),await this.options.onSuccess?.(M,r,this.state.context,x),await this.#r.config.onSettled?.(M,null,this.state.variables,this.state.context,this,x),await this.options.onSettled?.(M,null,r,this.state.context,x),this.#i({type:"success",data:M}),M}catch(M){try{await this.#r.config.onError?.(M,r,this.state.context,this,x)}catch(O){Promise.reject(O)}try{await this.options.onError?.(M,r,this.state.context,x)}catch(O){Promise.reject(O)}try{await this.#r.config.onSettled?.(void 0,M,this.state.variables,this.state.context,this,x)}catch(O){Promise.reject(O)}try{await this.options.onSettled?.(void 0,M,r,this.state.context,x)}catch(O){Promise.reject(O)}throw this.#i({type:"error",error:M}),M}finally{this.#r.runNext(this)}}#i(r){const y=x=>{switch(r.type){case"failed":return{...x,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...x,isPaused:!0};case"continue":return{...x,isPaused:!1};case"pending":return{...x,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...x,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...x,data:void 0,error:r.error,failureCount:x.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=y(this.state),notifyManager.batch(()=>{this.#t.forEach(x=>{x.onMutationUpdate(r)}),this.#r.notify({mutation:this,type:"updated",action:r})})}};function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var MutationCache=class extends Subscribable{constructor(r={}){super(),this.config=r,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(r,y,x){const b=new Mutation({client:r,mutationCache:this,mutationId:++this.#r,options:r.defaultMutationOptions(y),state:x});return this.add(b),b}add(r){this.#e.add(r);const y=scopeFor(r);if(typeof y=="string"){const x=this.#t.get(y);x?x.push(r):this.#t.set(y,[r])}this.notify({type:"added",mutation:r})}remove(r){if(this.#e.delete(r)){const y=scopeFor(r);if(typeof y=="string"){const x=this.#t.get(y);if(x)if(x.length>1){const b=x.indexOf(r);b!==-1&&x.splice(b,1)}else x[0]===r&&this.#t.delete(y)}}this.notify({type:"removed",mutation:r})}canRun(r){const y=scopeFor(r);if(typeof y=="string"){const b=this.#t.get(y)?.find(R=>R.state.status==="pending");return!b||b===r}else return!0}runNext(r){const y=scopeFor(r);return typeof y=="string"?this.#t.get(y)?.find(b=>
294b!==r&&b.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){notifyManager.batch(()=>{this.#e.forEach(r=>{this.notify({type:"removed",mutation:r})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(r){const y={exact:!0,...r};return this.getAll().find(x=>matchMutation(y,x))}findAll(r={}){return this.getAll().filter(y=>matchMutation(r,y))}notify(r){notifyManager.batch(()=>{this.listeners.forEach(y=>{y(r)})})}resumePausedMutations(){const r=this.getAll().filter(y=>y.state.isPaused);return notifyManager.batch(()=>Promise.all(r.map(y=>y.continue().catch(noop))))}};function scopeFor(r){return r.options.scope?.id}var MutationObserver$1=class extends Subscribable{#e;#t=void 0;#r;#n;constructor(y,x){super(),this.#e=y,this.setOptions(x),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(y){const x=this.options;this.options=this.#e.defaultMutationOptions(y),shallowEqualObjects(this.options,x)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),x?.mutationKey&&this.options.mutationKey&&hashKey(x.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(y){this.#i(),this.#a(y)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#a()}mutate(y,x){return this.#n=x,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(y)}#i(){const y=this.#r?.state??getDefaultState();this.#t={...y,isPending:y.status==="pending",isSuccess:y.status==="success",isError:y.status==="error",isIdle:y.status==="idle",mutate:this.mutate,reset:this.reset}}#a(y){notifyManager.batch(()=>{if(this.#n&&this.hasListeners()){const x=this.#t.variables,b=this.#t.context,R={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(y?.type==="success"){try{this.#n.onSuccess?.(y.data,x,b,R)}catch(M){Promise.reject(M)}try{this.#n.onSettled?.(y.data,null,x,b,R)}catch(M){Promise.reject(M)}}else if(y?.type==="error"){try{this.#n.onError?.(y.error,x,b,R)}catch(M){Promise.reject(M)}try{this.#n.onSettled?.(void 0,y.error,x,b,R)}catch(M){Promise.reject(M)}}}this.listeners.forEach(x=>{x(this.#t)})})}},QueryCache=class extends Subscribable{constructor(r={}){super(),this.config=r,this.#e=new Map}#e;build(r,y,x){const b=y.queryKey,R=y.queryHash??hashQueryKeyByOptions(b,y);let M=this.get(R);return M||(M=new Query({client:r,queryKey:b,queryHash:R,options:r.defaultQueryOptions(y),state:x,defaultOptions:r.getQueryDefaults(b)}),this.add(M)),M}add(r){this.#e.has(r.queryHash)||(this.#e.set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const y=this.#e.get(r.queryHash);y&&(r.destroy(),y===r&&this.#e.delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return this.#e.get(r)}getAll(){return[...this.#e.values()]}find(r){const y={exact:!0,...r};return this.getAll().find(x=>matchQuery(y,x))}findAll(r={}){const y=this.getAll();return Object.keys(r).length>0?y.filter(x=>matchQuery(r,x)):y}notify(r){notifyManager.batch(()=>{this.listeners.forEach(y=>{y(r)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},QueryClient=class{#e;#t;#r;#n;#i;#a;#o;#s;constructor(r={}){this.#e=r.queryCache||new QueryCache,this.#t=r.mutationCache||new MutationCache,this.#r=r.defaultOptions||{},this.#n=new Map,this.#i=new Map,this.#a=0}
vendor: 5,195 bytes, line 294
294mount(){this.#a++,this.#a===1&&(this.#o=focusManager.subscribe(async r=>{r&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=onlineManager.subscribe(async r=>{r&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(r){return this.#e.findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return this.#t.findAll({...r,status:"pending"}).length}getQueryData(r){const y=this.defaultQueryOptions({queryKey:r});return this.#e.get(y.queryHash)?.state.data}ensureQueryData(r){const y=this.defaultQueryOptions(r),x=this.#e.build(this,y),b=x.state.data;return b===void 0?this.fetchQuery(r):(r.revalidateIfStale&&x.isStaleByTime(resolveStaleTime(y.staleTime,x))&&this.prefetchQuery(y),Promise.resolve(b))}getQueriesData(r){return this.#e.findAll(r).map(({queryKey:y,state:x})=>{const b=x.data;return[y,b]})}setQueryData(r,y,x){const b=this.defaultQueryOptions({queryKey:r}),M=this.#e.get(b.queryHash)?.state.data,O=functionalUpdate(y,M);if(O!==void 0)return this.#e.build(this,b).setData(O,{...x,manual:!0})}setQueriesData(r,y,x){return notifyManager.batch(()=>this.#e.findAll(r).map(({queryKey:b})=>[b,this.setQueryData(b,y,x)]))}getQueryState(r){const y=this.defaultQueryOptions({queryKey:r});return this.#e.get(y.queryHash)?.state}removeQueries(r){const y=this.#e;notifyManager.batch(()=>{y.findAll(r).forEach(x=>{y.remove(x)})})}resetQueries(r,y){const x=this.#e;return notifyManager.batch(()=>(x.findAll(r).forEach(b=>{b.reset()}),this.refetchQueries({type:"active",...r},y)))}cancelQueries(r,y={}){const x={revert:!0,...y},b=notifyManager.batch(()=>this.#e.findAll(r).map(R=>R.cancel(x)));return Promise.all(b).then(noop).catch(noop)}invalidateQueries(r,y={}){return notifyManager.batch(()=>(this.#e.findAll(r).forEach(x=>{x.invalidate()}),r?.refetchType==="none"?Promise.resolve():this.refetchQueries({...r,type:r?.refetchType??r?.type??"active"},y)))}refetchQueries(r,y={}){const x={...y,cancelRefetch:y.cancelRefetch??!0},b=notifyManager.batch(()=>this.#e.findAll(r).filter(R=>!R.isDisabled()&&!R.isStatic()).map(R=>{let M=R.fetch(void 0,x);return x.throwOnError||(M=M.catch(noop)),R.state.fetchStatus==="paused"?Promise.resolve():M}));return Promise.all(b).then(noop)}fetchQuery(r){const y=this.defaultQueryOptions(r);y.retry===void 0&&(y.retry=!1);const x=this.#e.build(this,y);return x.isStaleByTime(resolveStaleTime(y.staleTime,x))?x.fetch(y):Promise.resolve(x.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(noop).catch(noop)}fetchInfiniteQuery(r){return r.behavior=infiniteQueryBehavior(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(noop).catch(noop)}ensureInfiniteQueryData(r){return r.behavior=infiniteQueryBehavior(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return onlineManager.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(r){this.#r=r}setQueryDefaults(r,y){this.#n.set(hashKey(r),{queryKey:r,defaultOptions:y})}getQueryDefaults(r){const y=[...this.#n.values()],x={};return y.forEach(b=>{partialMatchKey(r,b.queryKey)&&Object.assign(x,b.defaultOptions)}),x}setMutationDefaults(r,y){this.#i.set(hashKey(r),{mutationKey:r,defaultOptions:y})}getMutationDefaults(r){const y=[...this.#i.values()],x={};return y.forEach(b=>{partialMatchKey(r,b.mutationKey)&&Object.assign(x,b.defaultOptions)}),x}defaultQueryOptions(r){if(r._defaulted)return r;const y={...this.#r.queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return y.queryHash||(y.queryHash=hashQueryKeyByOptions(y.queryKey,y)),y.refetchOnReconnect===void 0&&(y.refetchOnReconnect=y.networkMode!=="always"),y.throwOnError===void 0&&(y.throwOnError=!!y.suspense),!y.networkMode&&y.persister&&(y.networkMode="offlineFirst"),y.queryFn===skipToken&&(y.enabled=!1),y}defaultMutationOptions(r){return r?._defaulted?r:{...this.#r.mutations,...r?.mutationKey&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},QueryClientContext=reactExports.createContext(void 0),useQueryClient=r=>{const y=reactExports.useContext(QueryClientContext);if(!y)throw new Error("No QueryClient set, use QueryClientProvider to set one");return y},QueryClientProvider=({client:r,children:y})=>(reactExports.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:r,children:y})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(r,y,x)=>{const b=x?.state.error&&typeof r.throwOnError=="function"?shouldThrowError(r.throwOnError,[x.state.error,x]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||b)&&(y.isReset()||(r.retryOn
294Mount=!1))},useClearResetErrorBoundary=r=>{reactExports.useEffect(()=>{r.clearReset()},[r])},getHasError=({result:r,errorResetBoundary:y,throwOnError:x,query:b,suspense:R})=>r.isError&&!y.isReset()&&!r.isFetching&&b&&(R&&r.data===void 0||shouldThrowError(x,[r.error,b])),ensureSuspenseTimers=r=>{if(r.suspense){const x=R=>R==="static"?R:Math.max(R??1e3,1e3),b=r.staleTime;r.staleTime=typeof b=="function"?(...R)=>x(b(...R)):x(b),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},willFetch=(r,y)=>r.isLoading&&r.isFetching&&!y,shouldSuspend=(r,y)=>r?.suspense&&y.isPending,fetchOptimistic=(r,y,x)=>y.fetchOptimistic(r).catch(()=>{x.clearReset()});function useBaseQuery(r,y,x){const b=useIsRestoring(),R=useQueryErrorResetBoundary(),M=useQueryClient(),O=M.defaultQueryOptions(r);M.getDefaultOptions().queries?._experimental_beforeQuery?.(O);const z=M.getQueryCache().get(O.queryHash);O._optimisticResults=b?"isRestoring":"optimistic",ensureSuspenseTimers(O),ensurePreventErrorBoundaryRetry(O,R,z),useClearResetErrorBoundary(R);const U=!M.getQueryCache().get(O.queryHash),[G]=reactExports.useState(()=>new y(M,O)),q=G.getOptimisticResult(O),J=!b&&r.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(X=>{const fe=J?G.subscribe(notifyManager.batchCalls(X)):noop;return G.updateResult(),fe},[G,J]),()=>G.getCurrentResult(),()=>G.getCurrentResult()),reactExports.useEffect(()=>{G.setOptions(O)},[O,G]),shouldSuspend(O,q))throw fetchOptimistic(O,G,R);if(getHasError({result:q,errorResetBoundary:R,throwOnError:O.throwOnError,query:z,suspense:O.suspense}))throw q.error;return M.getDefaultOptions().queries?._experimental_afterQuery?.(O,q),O.experimental_prefetchInRender&&!isServer&&willFetch(q,b)&&(U?fetchOptimistic(O,G,R):z?.promise)?.catch(noop).finally(()=>{G.updateResult()}),O.notifyOnChangeProps?q:G.trackResult(q)}function useQuery(r,y){return useBaseQuery(r,QueryObserver)}function useMutation(r,y){const x=useQueryClient(),[b]=reactExports.useState(()=>new MutationObserver$1(x,r));reactExports.useEffect(()=>{b.setOptions(r)},[b,r]);const R=reactExports.useSyncExternalStore(reactExports.useCallback(O=>b.subscribe(notifyManager.batchCalls(O)),[b]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),M=reactExports.useCallback((O,z)=>{b.mutate(O,z).catch(noop)},[b]);if(R.error&&shouldThrowError(b.options.throwOnError,[R.error]))throw R.error;return{...R,mutate:M,mutateAsync:R.mutate}}const MotionDiv$4=motion.div,MotionButton=motion.button;function SkeletonRow({wide:r}){return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 animate-pulse",children:[jsxRuntimeExports.jsx("div",{className:"w-12 h-12 rounded-full bg-white/[0.06] shrink-0"}),jsxRuntimeExports.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntimeExports.jsx("div",{className:`h-3 rounded-full bg-white/[0.06] ${r?"w-2/3":"w-1/2"}`}),jsxRuntimeExports.jsx("div",{className:"h-2.5 rounded-full bg-white/[0.04] w-4/5"})]}),jsxRuntimeExports.jsx("div",{className:"h-2 w-8 rounded-full bg-white/[0.04] shrink-0"})]})}function MessagesListSkeleton(){return jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntimeExports.jsx("div",{className:"px-4 pt-20 md:pt-8 pb-4 shrink-0",children:jsxRuntimeExports.jsx("div",{className:"h-11 rounded-xl bg-white/[0.05] animate-pulse"})}),jsxRuntimeExports.jsx("div",{className:"flex-1 space-y-1 px-2",children:[!0,!1,!0,!1,!0,!1].map((r,y)=>jsxRuntimeExports.jsx(SkeletonRow,{wide:r},y))})]})}const Messages=()=>{const r=useNavigate(),{user:y}=useAuth()||{user:null},[x,b]=reactExports.useState(null),[R,M]=reactExports.useState(""),O={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.055}}},z={hidden:{opacity:0,y:8},visible:{opacity:1,y:0,transition:{duration:.22,ease:"easeOut"}}},{data:U,isLoading:G,error:q}=useQuery({queryKey:["talks"],queryFn:()=>Gettalks()}),{data:J,isLoading:X}=useQuery({queryKey:["quickContacts"],queryFn:async()=>{const ne=await GetHomies();return!ne||ne.length===0?await getsimilaruser()||[]:ne}}),fe=ne=>y&&ne.user1id===y.id?ne.user2:ne.user1,te=ne=>!ne.messages||ne.messages.length===0?null:ne.messages[ne.messages.length-1],ue=ne=>{const ae=new Date(ne),pe=new Date;return ae.toDateString()===pe.toDateString()?ae.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}):ae.toLocaleDateString("en-US",{month:"short",day:"numeric"})};if(q)return jsxRuntimeExports.jsx("div",{className:"min-h-full w-full bg-primary flex items-center justify-center p-8 font-montserrat text-white",children:jsxRuntimeExports.jsxs("div",{className:"text-center space-y-2",children:[jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold",children:"Failed to load messages"}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-sm",children:q.message})]})});const oe=(U?.data||[]).filter(ne=>fe(ne).name.toLowerCase().includes(R.toLowerCase()));if(x){const ne=fe(x),ae=x.messages||[];return jsxRuntimeExports.jsxs("div",{className:"h-dvh w-full bg-primary flex overflow-hidden font-montserrat",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex-shrink-0 h-16 mt-12 md:mt-0 px-4 md:px-6 flex items-center gap-3 border-b border-white/[0.05] bg-[#080A0E]",children:[jsxRuntimeExports.jsx("button",{onClick:()=>b(null),className:"p-2 -ml-1 rounded-full text-gray-400 hover:text-white hover:bg-white/[0.06] transition-colors",children:jsxRuntimeExports.jsx(FaArrowLeft,{className:"text-sm"})}),jsxRuntimeExports.jsxs("div",{className:"relative shrink-0",children:[ne.image?jsxRuntimeExports.jsx("img",{src:ne.image,alt:ne.name,className:"w-9 h-9 rounded-full object-cover ring-1 ring-white/10"}):jsxRuntimeExports.jsx("div",{className:"w-9 h-9 rounded-full bg-territary/15 border border-territary/20 flex items-center justify-center text-territary font-bold text-sm",children:ne.name.charAt(0).toUpperCase()}),jsxRuntimeExports.jsx("span",{className:`absolute bottom-0 right-0 w-2.5 h-2.5 rounded-full border-2 border-[#080A0E] ${ne.isActive?"bg-green-500":"bg-gray-600"}`})]}),jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-white font-semibold text-[13px] leading-tight truncate tracking-wide",children:ne.name}),jsxRuntimeExports.jsx("p",{className:`text-[10px] mt-0.5 ${ne.isActive?"text-green-500":"text-gray-500"}`,children:ne.isActive?"Online":"Offline"})]})]}),jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto px-4 md:px-8 py-6 space-y-5",children:ae.length===0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 text-center",children:[jsxRuntimeExports.jsx("div",{className:"w-12 h-12 rounded-2xl bg-white/[0.04] border border-white/[0.06] flex items-center justify-center",children:jsxRuntimeExports.jsx(FaEnvelope,{className:"text-gray-600 text-sm"})}),jsxRuntimeExports.jsxs("p",{className:"text-[13px] text-gray-500",children:["Start the conversation with ",jsxRuntimeExports.jsx("span",{className:"text-white",children:ne.name})]})]}):ae.map(pe=>{const je=pe.senderid===y?.id;return jsxRuntimeExports.jsxs("div",{className:`flex flex-col gap-1 ${je?"items-end":"items-start"}`,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntimeExports.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500",children:je?"You":ne.name.split(" ")[0]}),jsxRuntimeExports.jsx("span",{className:"text-[10px] text-gray-600 tracking-wide",children:ue(pe.createdAt)})]}),jsxRuntimeExports.jsx("div",{className:`max-w-[82%] md:max-w-[65%] px-4 py-3 text-[13px] leading-[1.65] rounded-2xl
295                        ${je?"bg-westxpurple text-white rounded-tr-[4px]":"bg-[#16181D] border border-white/[0.05] text-gray-200 rounded-tl-[4px]"}`,style:je?{boxShadow:"0 4px 24px rgba(139,92,246,0.18)"}:{},children:pe.message})]},pe.id)})})]}),jsxRuntimeExports.jsx("div",{className:"w-[320px] bg-[#080A0E] border-l border-white/[0.04] flex-col max-lg:hidden flex",children:jsxRuntimeExports.jsxs("div",{className:"p-7 flex flex-col items-center text-center",children:[jsxRuntimeExports.jsx("div",{className:"mb-5",children:ne.image?jsxRuntimeExports.jsx("img",{src:ne.image,alt:ne.name,className:"w-24 h-24 rounded-2xl object-cover ring-1 ring-white/10"}):jsxRuntimeExports.jsx("div",{className:"w-24 h-24 rounded-2xl bg-territary/10 border border-territary/15 flex items-center justify-center text-territary text-4xl font-bold",children:ne.name.charAt(0).toUpperCase()})}),jsxRuntimeExports.jsx("h2",{className:"text-white font-bold text-base tracking-wide mb-1",children:ne.name}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-[12px] leading-relaxed max-w-[85%] mb-6",children:ne.intention||"Member"}),ne.interestlist&&ne.interestlist.length>0&&jsxRuntimeExports.jsxs("div",{className:"w-full text-left",children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.14em] text-gray-600 mb-3",children:"Interests"}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-1.5",children:ne.interestlist.map((pe,je)=>jsxRuntimeExports.jsxs("span",{className:"px-2.5 py-1.5 bg-white/[0.04] border border-white/[0.06] text-gray-400 text-[11px] rounded-lg flex items-center gap-1.5",children:[jsxRuntimeExports.jsx("span",{className:"w-1 h-1 rounded-full bg-territary/60"}),pe]},je))})]})]})})]})}return jsxRuntimeExports.jsxs("div",{className:"min-h-full w-full flex bg-primary flex-col md:flex-row overflow-hidden font-montserrat",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col min-w-0 md:border-r border-white/[0.04] h-full",children:[jsxRuntimeExports.jsx("div",{className:"px-4 md:px-6 pt-20 md:pt-8 pb-4 shrink-0",children:jsxRuntimeExports.jsxs("div",{className:"relative group",children:[jsxRuntimeExports.jsx(FaSearch,{className:"absolute left-3.5 to
295p-1/2 -translate-y-1/2 text-[11px] text-gray-500 group-focus-within:text-territary transition-colors"}),jsxRuntimeExports.jsx("input",{type:"text",value:R,onChange:ne=>M(ne.target.value),placeholder:"Search conversations...",className:"w-full bg-[#16181D] text-white text-[13px] pl-9 pr-4 py-2.5 rounded-xl border border-transparent focus:border-territary/40 transition-all outline-none placeholder-gray-600"})]})}),jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto pb-6",children:G?jsxRuntimeExports.jsx(MessagesListSkeleton,{}):oe.length===0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center h-52 text-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-12 h-12 bg-white/[0.04] rounded-full flex items-center justify-center",children:jsxRuntimeExports.jsx(FaEnvelope,{className:"text-gray-600 text-sm"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-white text-sm font-medium mb-0.5",children:"No conversations"}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-[12px]",children:"Try a different search"})]})]}):jsxRuntimeExports.jsx(MotionDiv$4,{variants:O,initial:"hidden",animate:"visible",className:"px-3 space-y-1",children:oe.map(ne=>{const ae=fe(ne),pe=te(ne);return jsxRuntimeExports.jsxs(MotionButton,{variants:z,whileTap:{scale:.985},onClick:()=>b(ne),className:"w-full flex items-center gap-3 px-3 py-3 rounded-xl hover:bg-white/[0.04] active:bg-white/[0.06] transition-colors cursor-pointer text-left",children:[jsxRuntimeExports.jsxs("div",{className:"relative shrink-0",children:[ae.image?jsxRuntimeExports.jsx("img",{src:ae.image,alt:ae.name,className:"w-12 h-12 rounded-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"w-12 h-12 rounded-full bg-territary/15 border border-territary/20 flex items-center justify-center text-territary font-bold",children:ae.name.charAt(0).toUpperCase()}),jsxRuntimeExports.jsx("span",{className:`absolute bottom-0 right-0 w-3 h-3 border-2 border-primary rounded-full ${ae.isActive?"bg-green-500":"bg-gray-600"}`})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-baseline mb-0.5",children:[jsxRuntimeExports.jsx("h3",{className:"text-white font-semibold text-[13px] truncate pr-2",children:ae.name}),pe&&jsxRuntimeExports.jsx("span",{className:"text-[10px] text-gray-500 shrink-0",children:ue(pe.createdAt)})]}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-[12px] truncate leading-snug",children:pe?pe.message:jsxRuntimeExports.jsx("span",{className:"italic text-gray-600",children:"No messages yet"})})]})]},ne.id)})})})]}),jsxRuntimeExports.jsxs("div",{className:"w-72 lg:w-80 border-l border-white/[0.04] flex flex-col h-full max-md:hidden",children:[jsxRuntimeExports.jsxs("div",{className:"p-6 pt-8 flex-1 overflow-y-auto",children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] font-semibold text-gray-600 uppercase tracking-[0.14em] mb-5",children:"Quick Contacts"}),X?jsxRuntimeExports.jsx("div",{className:"space-y-1",children:[1,2,3,4].map(ne=>jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 p-3 animate-pulse",children:[jsxRuntimeExports.jsx("div",{className:"w-9 h-9 rounded-full bg-white/[0.05] shrink-0"}),jsxRuntimeExports.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntimeExports.jsx("div",{className:"h-2.5 rounded-full bg-white/[0.05] w-1/2"}),jsxRuntimeExports.jsx("div",{className:"h-2 rounded-full bg-white/[0.03] w-3/4"})]})]},ne))}):jsxRuntimeExports.jsx("div",{className:"space-y-0.5",children:J&&J.length>0?J.slice(0,6).map(ne=>jsxRuntimeExports.jsxs("div",{onClick:()=>r(`/user/${ne.username}`),className:"flex items-center gap-3 p-3 rounded-xl hover:bg-white/[0.04] cursor-pointer transition-colors group",children:[jsxRuntimeExports.jsxs("div",{className:"relative shrink-0",children:[ne.image?jsxRuntimeExports.jsx("img",{src:ne.image,alt:ne.name,className:"w-9 h-9 rounded-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"w-9 h-9 rounded-full bg-territary/10 border border-territary/15 flex items-center justify-center text-territary font-bold text-sm",children:ne.name.charAt(0).toUpperCase()}),jsxRuntimeExports.jsx("span",{className:`absolute bottom-0 right-0 w-2 h-2 border-2 border-primary rounded-full ${ne.isActive?"bg-green-500":"bg-gray-600"}`})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsx("h4",{className:"text-white text-[12px] font-semibold truncate group-hover:text-territary transition-colors",children:ne.name}),jsxRuntimeExports.jsx("p",{className:"text-[11px] text-gray-600 truncate",children:ne.intention||"Member"})]})]},ne.id)):jsxRuntimeExports.jsx("p",{className:"text-gray-600 text-[12px] italic px-3",children:"No contacts found"})})]}),jsxRuntimeExports.jsx("div",{className:"p-5 border-t border-white/[0.04]",children:jsxRuntimeExports.jsxs("button",{onClick:()=>r("/discover"),className:"w-full py-2.5 rounded-xl border border-dashed border-white/[0.08] text-gray-500 hover:text-white hover:border-territary/40 hover:bg-territary/[0.06] transition-all flex items-center justify-center gap-2 text-[12px] font-medium",children:[jsxRuntimeExports.jsx(FaPlus,{className:"text-[10px]"}),"Discover More"]})})]})]})},Messagepage=()=>{const r=useAuth();return jsxRuntimeExports.jsx("div",{className:"h-full min-h-0 flex flex-col",children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{className:"h-full min-h-0 flex flex-col",children:jsxRuntimeExports.jsx(Messages,{})}):jsxRuntimeExports.jsx(LockedPage,{icon:jsxRuntimeExports.jsx(FaEnvelope,{className:"text-5xl text-territary"}),title:"Messages Locked",subtitle:"Authentication Required",description:"You need to be logged in to view your messages. Please sign in to access your conversations and connect with other users.",buttonText:"Go to Login",buttonPath:"/login"})})},UserCard=({user:r,onStartInteract:y})=>{const x=r.interestList||r.interestlist||[];return jsxRuntimeExports.jsxs("div",{className:"w-full bg-newcolor2 font-montserrat rounded-3xl overflow-hidden border border-white/10 flex flex-col relative group hover:border-territary/50 transition-all duration-300 shadow-lg hover:shadow-territary/20",children:[jsxRuntimeExports.jsxs("div",{className:"h-24 bg-[#570091] relative overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-2 right-2 w-16 h-16 opacity-30 pointer-events-none",children:jsxRuntimeExports.jsx("img",{src:logo,alt:"Watermark",className:"w-full h-full object-contain"})}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"})]}),jsxRuntimeExports.jsxs("div",{className:"px-5 relative",children:[jsxRuntimeExports.jsx("div",{className:"-mt-10 mb-3 relative inline-block",children:jsxRuntimeExports.jsx(Link,{to:`/user/${r.username}`,children:jsxRuntimeExports.jsx("div",{className:"w-20 h-20 rounded-full p-1 bg-black cursor-pointer hover:scale-105 transition-transform",children:jsxRuntimeExports.jsx("div",{className:"w-full h-full rounded-full overflow-hidden bg-zinc-800",children:r.image?jsxRuntimeExports.jsx("img",{src:r.image,alt:r.name,className:"w-full h-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"w-full h-full flex items-center justify-center bg-[#570091] text-white text-2xl font-bold",children:r.name.charAt(0).toUpperCase()})})})})}),jsxRuntimeExports.jsxs("div",{className:"mb-4",children:[jsxRuntimeExports.jsx(Link,{to:`/user/${r.username}`,className:"hover:underline decoration-white",children:jsxRuntimeExports.jsx("h3",{className:"text-white font-bold text-lg mb-1 font-jakarta",children:r.name})}),(r.country||r.city)&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-gray-400 text-sm",children:[jsxRuntimeExports.jsx(FaMapMarkerAlt,{className:"text-[#a855f7]"}),jsxRuntimeExports.jsx("span",{className:"truncate",children:[r.city,r.country].filter(
295Boolean).join(", ")})]})]}),jsxRuntimeExports.jsxs("div",{className:"mb-4",children:[jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-xs font-semibold mb-1",children:"Intention"}),jsxRuntimeExports.jsx("p",{className:"text-gray-200 text-sm line-clamp-2 min-h-[40px]",children:r.intention||"No specific intention set yet."})]}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-xs font-semibold mb-2",children:"Interests"}),jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-2",children:[x.slice(0,2).map((b,R)=>jsxRuntimeExports.jsx("span",{className:"px-3 py-1 rounded-full bg-[#570091]/30 text-[#d8b4fe] text-xs font-medium border border-[#570091]/50",children:b},R)),x.length>2&&jsxRuntimeExports.jsxs("span",{className:"px-2 py-1 text-gray-400 text-xs",children:["+",x.length-2," more"]}),x.length===0&&jsxRuntimeExports.jsx("span",{className:"text-gray-600 text-xs italic",children:"No interests listed"})]})]}),jsxRuntimeExports.jsx("div",{className:"pb-5",children:jsxRuntimeExports.jsxs("button",{onClick:()=>y(r),className:"w-full cursor-pointer  py-3 bg-westxpurple/80 hover:bg-westxpurple/60 text-white font-bold rounded-xl transition-all shadow-[0_4px_14px_0_rgba(168,85,247,0.39)] hover:shadow-[0_6px_20px_rgba(168,85,247,0.23)] flex items-center justify-center gap-2",children:[jsxRuntimeExports.jsx(BsStars,{className:"text-lg"}),"Start Interacting"]})})]})]})},v="4.8.0",meta={g:"LottieFiles AE 1.0.0",a:"",k:"",d:"",tc:""},fr=29.9700012207031,ip=0,op=31.0000012626559,w=500,h=500,nm="Loading ",ddd=0,assets=[],layers=[{ddd:0,ind:5,ty:4,nm:"Rectangle_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:45,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[250,157.375,0],to:[15.448,15.438,0],ti:[.031,-.052,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:15,s:[342.688,250,0],to:[-.059,.098,0],ti:[15.448,-15.427,0]},{t:30.0000012219251,s:[250,342.563,0]}],ix:2},a:{a:0,k:[-125,-107,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[57,-57],[57,57],[-57,57],[-57,-57]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.7243,.3846,.9354,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-125,-107],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:90.0000036657751,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Rectangle_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:45,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[342.688,250,0],to:[.052,-.073,0],ti:[-.01,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:15,s:[250,342.563,0],to:[.104,0,0],ti:[.198,-.073,0]},{t:30.0000012219251,s:[157.313,250,0]}],ix:2},a:{a:0,k:[-125,-107,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[57,-57],[57,57],[-57,57],[-57,-57]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.5843,.102,.8863,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-125,-107],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:90.0000036657751,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Rectangle_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:45,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[250,342.563,0],to:[.052,.198,0],ti:[.04,-.012,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:15,s:[157.313,250,0],to:[-.492,.145,0],ti:[.052,-.563,0]},{t:30.0000012219251,s:[250,157.375,0]}],ix:2},a:{a:0,k:[-125,-107,0],ix:1},s:{a:0,k:[100,100,100],ix:6}}
295,ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[57,-57],[57,57],[-57,57],[-57,-57]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.7243,.3846,.9354,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-125,-107],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:90.0000036657751,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Rectangle_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:45,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[157.313,250,0],to:[15.448,-15.438,0],ti:[-.079,.525,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:15,s:[250,157.375,0],to:[.019,-.125,0],ti:[-15.448,-15.438,0]},{t:30.0000012219251,s:[342.688,250,0]}],ix:2},a:{a:0,k:[-125,-107,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[57,-57],[57,57],[-57,57],[-57,-57]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.5843,.102,.8863,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-125,-107],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:90.0000036657751,st:0,bm:0}],markers=[],loading={v,meta,fr,ip,op,w,h,nm,ddd,assets,layers,markers};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(r,y){module.exports=y()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(y){_useWebWorker=!!y},getWebWorker=function(){return _useWebWorker},setLocationHref=function(y){locationHref=y},getLocationHref=function(){return locationHref};function createTag(r){return document.createElement(r)}function extendPrototype(r,y){var x,b=r.length,R;for(x=0;x<b;x+=1){R=r[x].prototype;for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(y.prototype[M]=R[M])}}function getDescriptor(r,y){return Object.getOwnPropertyDescriptor(r,y)}function createProxyFunction(r){function y(){}return y.prototype=r,y}var audioControllerFactory=(function(){function r(y){this.audios=[],this.audioFactory=y,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(x){this.audios.push(x)},pause:function(){var x,b=this.audios.length;for(x=0;x<b;x+=1)this.audios[x].pause()},resume:function(){var x,b=this.audios.length;for(x=0;x<b;x+=1)this.audios[x].resume()},setRate:function(x){var b,R=this.audios.length;for(b=0;b<R;b+=1)this.audios[b].setRate(x)},createAudio:function(x){return this.audioFactory?this.audioFactory(x):window.Howl?new window.Howl({src:[x]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(x){this.audioFactory=x},setVolume:function(x){this._volume=x,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var x,b=this.audios.length;for(x=0;x<b;x+=1)this.audios[x].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}})(),createTypedArray=(function(){function r(x,b){var R=0,M=[],O;switch(x){case"int16":case"uint8c":O=1;break;default:O=1.1;break}for(R=0;R<b;R+=1)M.push(O);return M}function y(x,b){return x==="float32"?new Float32Array(b):x==="int16"?new Int16Array(b):x==="uint8c"?new Uint8ClampedArray(b):r(x,b)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?y:r})();function createSizedArray(r){return Array.apply(null,{length:r})}function _typeof$6(r){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof$6(r)}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 r=["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"],y,x=r.length;for(y=0;y<x;y+=1)BMMath[r[y]]=Math[r[y]]})(),BMMath.random=Math.random,BMMath.abs=function(r){var y=_typeof$6(r);if(y==="object"&&r.length){var x=createSizedArray(r.length),b,R=r.length;for(b=0;b<R;b+=1)x[b]=Math.abs(r[b]);return x}return Math.abs(r)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(r,y,x,b){this.type=r,this.currentTime=y,this.totalTime=x,this.direction=b<0?-1:1}function BMCompleteEvent(r,y){this.type=r,this.direction=y<0?-1:1}function BMCompleteLoopEvent(r,y,x,b){this.type=r,this.currentLoop=x,this.totalLoops=y,this.direction=b<0?-1:1}function BMSegmentStartEvent(r,y,x){this.type=r,this.firstFrame=y,this.totalFrames=x}function BMDestroyEvent(r,y){this.type=r,this.target=y}function BMRenderFrameErrorEvent(r,y){this.type="renderFrameError",this.nativeError=r,this.currentTime=y}function BMConfigErrorEvent(r){this.type="configError",this.nativeError=r}var createElementID=(function(){var r=0;return function(){return r+=1,idPrefix$1+"__lottie_element_"+r}}
vendor: 128,590 bytes, lines 295-296
295)();function HSVtoRGB(r,y,x){var b,R,M,O,z,U,G,q;switch(O=Math.floor(r*6),z=r*6-O,U=x*(1-y),G=x*(1-z*y),q=x*(1-(1-z)*y),O%6){case 0:b=x,R=q,M=U;break;case 1:b=G,R=x,M=U;break;case 2:b=U,R=x,M=q;break;case 3:b=U,R=G,M=x;break;case 4:b=q,R=U,M=x;break;case 5:b=x,R=U,M=G;break}return[b,R,M]}function RGBtoHSV(r,y,x){var b=Math.max(r,y,x),R=Math.min(r,y,x),M=b-R,O,z=b===0?0:M/b,U=b/255;switch(b){case R:O=0;break;case r:O=y-x+M*(y<x?6:0),O/=6*M;break;case y:O=x-r+M*2,O/=6*M;break;case x:O=r-y+M*4,O/=6*M;break}return[O,z,U]}function addSaturationToRGB(r,y){var x=RGBtoHSV(r[0]*255,r[1]*255,r[2]*255);return x[1]+=y,x[1]>1?x[1]=1:x[1]<=0&&(x[1]=0),HSVtoRGB(x[0],x[1],x[2])}function addBrightnessToRGB(r,y){var x=RGBtoHSV(r[0]*255,r[1]*255,r[2]*255);return x[2]+=y,x[2]>1?x[2]=1:x[2]<0&&(x[2]=0),HSVtoRGB(x[0],x[1],x[2])}function addHueToRGB(r,y){var x=RGBtoHSV(r[0]*255,r[1]*255,r[2]*255);return x[0]+=y/360,x[0]>1?x[0]-=1:x[0]<0&&(x[0]+=1),HSVtoRGB(x[0],x[1],x[2])}var rgbToHex=(function(){var r=[],y,x;for(y=0;y<256;y+=1)x=y.toString(16),r[y]=x.length===1?"0"+x:x;return function(b,R,M){return b<0&&(b=0),R<0&&(R=0),M<0&&(M=0),"#"+r[b]+r[R]+r[M]}})(),setSubframeEnabled=function(y){subframeEnabled=!!y},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(y){expressionsPlugin=y},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(y){expressionsInterfaces=y},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(y){defaultCurveSegments=y},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(y){idPrefix$1=y};function createNS(r){return document.createElementNS(svgNS,r)}function _typeof$5(r){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof$5(r)}var dataManager=(function(){var r=1,y=[],x,b,R={onmessage:function(){},postMessage:function(fe){x({data:fe})}},M={postMessage:function(fe){R.onmessage({data:fe})}};function O(X){if(window.Worker&&window.Blob&&getWebWorker()){var fe=new Blob(["var _workerSelf = self; self.onmessage = ",X.toString()],{type:"text/javascript"}),te=URL.createObjectURL(fe);return new Worker(te)}return x=X,R}function z(){b||(b=O(function(fe){function te(){function ye(nt,Ne){var He,_e,Be=nt.length,Ye,Le,Ge,Ke;for(_e=0;_e<Be;_e+=1)if(He=nt[_e],"ks"in He&&!He.completed){if(He.completed=!0,He.hasMask){var Ze=He.masksProperties;for(Le=Ze.length,Ye=0;Ye<Le;Ye+=1)if(Ze[Ye].pt.k.i)je(Ze[Ye].pt.k);else for(Ke=Ze[Ye].pt.k.length,Ge=0;Ge<Ke;Ge+=1)Ze[Ye].pt.k[Ge].s&&je(Ze[Ye].pt.k[Ge].s[0]),Ze[Ye].pt.k[Ge].e&&je(Ze[Ye].pt.k[Ge].e[0])}He.ty===0?(He.layers=ae(He.refId,Ne),ye(He.layers,Ne)):He.ty===4?pe(He.shapes):He.ty===5&&ft(He)}}function oe(nt,Ne){if(nt){var He=0,_e=nt.length;for(He=0;He<_e;He+=1)nt[He].t===1&&(nt[He].data.layers=ae(nt[He].data.refId,Ne),ye(nt[He].data.layers,Ne))}}function ne(nt,Ne){for(var He=0,_e=Ne.length;He<_e;){if(Ne[He].id===nt)return Ne[He];He+=1}return null}function ae(nt,Ne){var He=ne(nt,Ne);return He?He.layers.__used?JSON.parse(JSON.stringify(He.layers)):(He.layers.__used=!0,He.layers):null}function pe(nt){var Ne,He=nt.length,_e,Be;for(Ne=He-1;Ne>=0;Ne-=1)if(nt[Ne].ty==="sh")if(nt[Ne].ks.k.i)je(nt[Ne].ks.k);else for(Be=nt[Ne].ks.k.length,_e=0;_e<Be;_e+=1)nt[Ne].ks.k[_e].s&&je(nt[Ne].ks.k[_e].s[0]),nt[Ne].ks.k[_e].e&&je(nt[Ne].ks.k[_e].e[0]);else nt[Ne].ty==="gr"&&pe(nt[Ne].it)}function je(nt){var Ne,He=nt.i.length;for(Ne=0;Ne<He;Ne+=1)nt.i[Ne][0]+=nt.v[Ne][0],nt.i[Ne][1]+=nt.v[Ne][1],nt.o[Ne][0]+=nt.v[Ne][0],nt.o[Ne][1]+=nt.v[Ne][1]}function Ve(nt,Ne){var He=Ne?Ne.split("."):[100,100,100];return nt[0]>He[0]?!0:He[0]>nt[0]?!1:nt[1]>He[1]?!0:He[1]>nt[1]?!1:nt[2]>He[2]?!0:He[2]>nt[2]?!1:null}var Ue=(function(){var nt=[4,4,14];function Ne(_e){var Be=_e.t.d;_e.t.d={k:[{s:Be,t:0}]}}function He(_e){var Be,Ye=_e.length;for(Be=0;Be<Ye;Be+=1)_e[Be].ty===5&&Ne(_e[Be])}return function(_e){if(Ve(nt,_e.v)&&(He(_e.layers),_e.assets)){var Be,Ye=_e.assets.length;for(Be=0;Be<Ye;Be+=1)_e.assets[Be].layers&&He(_e.assets[Be].layers)}}})(),$e=(function(){var nt=[4,7,99];return function(Ne){if(Ne.chars&&!Ve(nt,Ne.v)){var He,_e=Ne.chars.length;for(He=0;He<_e;He+=1){var Be=Ne.chars[He];Be.data&&Be.data.shapes&&(pe(Be.data.shapes),Be.data.ip=0,Be.data.op=99999,Be.data.st=0,Be.data.sr=1,Be.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[He].t||(Be.data.shapes.push({ty:"no"}),Be.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"})))}}}})(),We=(function(){var nt=[5,7,15];function Ne(_e){var Be=_e.t.p;typeof Be.a=="number"&&(Be.a={a:0,k:Be.a}),typeof Be.p=="number"&&(Be.p={a:0,k:Be.p}),typeof Be.r=="number"&&(Be.r={a:0,k:Be.r})}function He(_e){var Be,Ye=_e.length;for(Be=0;Be<Ye;Be+=1)_e[Be].ty===5&&Ne(_e[Be])}return function(_e){if(Ve(nt,_e.v)&&(He(_e.layers),_e.assets)){var Be,Ye=_e.assets.length;for(Be=0;Be<Ye;Be+=1)_e.assets[Be].layers&&He(_e.assets[Be].layers)}}})(),ot=(function(){var nt=[4,1,9];function Ne(_e){var Be,Ye=_e.length,Le,Ge;for(Be=0;Be<Ye;Be+=1)if(_e[Be].ty==="gr")Ne(_e[Be].it);else if(_e[Be].ty==="fl"||_e[Be].ty==="st")if(_e[Be].c.k&&_e[Be].c.k[0].i)for(Ge=_e[Be].c.k.length,Le=0;Le<Ge;Le+=1)_e[Be].c.k[Le].s&&(_e[Be].c.k[Le].s[0]/=255,_e[Be].c.k[Le].s[1]/=255,_e[Be].c.k[Le].s[2]/=255,_e[Be].c.k[Le].s[3]/=255),_e[Be].c.k[Le].e&&(_e[Be].c.k[Le].e[0]/=255,_e[Be].c.k[Le].e[1]/=255,_e[Be].c.k[Le].e[2]/=255,_e[Be].c.k[Le].e[3]/=255);else _e[Be].c.k[0]/=255,_e[Be].c.k[1]/=255,_e[Be].c.k[2]/=255,_e[Be].c.k[3]/=255}function He(_e){var Be,Ye=_e.length;for(Be=0;Be<Ye;Be+=1)_e[Be].ty===4&&Ne(_e[Be].shapes)}return function(_e){if(Ve(nt,_e.v)&&(He(_e.layers),_e.assets)){var Be,Ye=_e.assets.length;for(Be=0;Be<Ye;Be+=1)_e.assets[Be].layers&&He(_e.assets[Be].layers)}}})(),ct=(function(){var nt=[4,4,18];function Ne(_e){var Be,Ye=_e.length,Le,Ge;for(Be=Ye-1;Be>=0;Be-=1)if(_e[Be].ty==="sh")if(_e[Be].ks.k.i)_e[Be].ks.k.c=_e[Be].closed;else for(Ge=_e[Be].ks.k.length,Le=0;Le<Ge;Le+=1)_e[Be].ks.k[Le].s&&(_e[Be].ks.k[Le].s[0].c=_e[Be].closed),_e[Be].ks.k[Le].e&&(_e[Be].ks.k[Le].e[0].c=_e[Be].closed);else _e[Be].ty==="gr"&&Ne(_e[Be].it)}function He(_e){var Be,Ye,Le=_e.length,Ge,Ke,Ze,ut;for(Ye=0;Ye<Le;Ye+=1){if(Be=_e[Ye],Be.hasMask){var pt=Be.masksProperties;for(Ke=pt.length,Ge=0;Ge<Ke;Ge+=1)if(pt[Ge].pt.k.i)pt[Ge].pt.k.c=pt[Ge].cl;else for(ut=pt[Ge].pt.k.length,Ze=0;Ze<ut;Ze+=1)pt[Ge].pt.k[Ze].s&&(pt[Ge].pt.k[Ze].s[0].c=pt[Ge].cl),pt[Ge].pt.k[Ze].e&&(pt[Ge].pt.k[Ze].e[0].c=pt[Ge].cl)}Be.ty===4&&Ne(Be.shapes)}}return function(_e){if(Ve(nt,_e.v)&&(He(_e.layers),_e.assets)){var Be,Ye=_e.assets.length;for(Be=0;Be<Ye;Be+=1)_e.assets[Be].layers&&He(_e.assets[Be].layers)}}})();function it(nt){nt.__complete||(ot(nt),Ue(nt),$e(nt),We(nt),ct(nt),ye(nt.layers,nt.assets),oe(nt.chars,nt.assets),nt.__complete=!0)}function ft(nt){nt.t.a.length===0&&"m"in nt.t.p}var dt={};return dt.completeData=it,dt.checkColors=ot,dt.checkChars=$e,dt.checkPathProperties=We,dt.checkShapes=ct,dt.completeLayers=ye,dt}if(M.dataManager||(M.dataManager=te()),M.assetLoader||(M.assetLoader=(function(){function ye(ne){var ae=ne.getResponseHeader("content-type");return ae&&ne.responseType==="json"&&ae.indexOf("json")!==-1||ne.response&&_typeof$5(ne.response)==="object"?ne.response:ne.response&&typeof ne.response=="string"?JSON.parse(ne.response):ne.responseText?JSON.parse(ne.responseText):null}function oe(ne,ae,pe,je){var Ve,Ue=new XMLHttpRequest;try{Ue.responseType="json"}catch{}Ue.onreadystatechange=function(){if(Ue.readyState===4)if(Ue.status===200)Ve=ye(Ue),pe(Ve);else try{Ve=ye(Ue),pe(Ve)}catch($e){je&&je($e)}};try{Ue.open(["G","E","T"].join(""),ne,!0)}catch{Ue.open(["G","E","T"].join(""),ae+"/"+ne,!0)}Ue.send()}return{load:oe}})()),fe.data.type==="loadAnimation")M.assetLoader.load(fe.data.path,fe.data.fullPath,function(ye){M.dataManager.completeData(ye),M.postMessage({id:fe.data.id,payload:ye,status:"success"})},function(){M.postMessage({id:fe.data.id,status:"error"})});else if(fe.data.type==="complete"){var ue=fe.data.animation;M.dataManager.completeData(ue),M.postMessage({id:fe.data.id,payload:ue,status:"success"})}else fe.data.type==="loadData"&&M.assetLoader.load(fe.data.path,fe.data.fullPath,function(ye){M.postMessage({id:fe.data.id,payload:ye,status:"success"})},function(){M.postMessage({id:fe.data.id,status:"error"})})}),b.onmessage=function(X){var fe=X.data,te=fe.id,ue=y[te];y[te]=null,fe.status==="success"?ue.onComplete(fe.payload):ue.onError&&ue.onError()})}function U(X,fe){r+=1;var te="processId_"+r;return y[te]={onComplete:X,onError:fe},te}function G(X,fe,te){z();var ue=U(fe,te);b.postMessage({type:"loadAnimation",path:X,fullPath:window.location.origin+window.location.pathname,id:ue})}function q(X,fe,te){z();var ue=U(fe,te);b.postMessage({type:"loadData",path:X,fullPath:window.location.origin+window.location.pathname,id:ue})}function J(X,fe,te){z();var ue=U(fe,te);b.postMessage({type:"complete",animation:X,id:ue})}return{loadAnimation:G,loadData:q,completeAnimation:J}})(),ImagePreloader=(function(){var r=(function(){var oe=createTag("canvas");oe.width=1,oe.height=1;var ne=oe.getContext("2d");return ne.fillStyle="rgba(0,0,0,0)",ne.fillRect(0,0,1,1),oe})();function y(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function x(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function b(oe,ne,ae){var pe="";if(oe.e)pe=oe.p;else if(ne){var je=oe.p;je.indexOf("images/")!==-1&&(je=je.split("/")[1]),pe=ne+je}else pe=ae,pe+=oe.u?oe.u:"",pe+=oe.p;return pe}function R(oe){var ne=0,ae=setInterval((function(){var pe=oe.getBBox();(pe.width||ne>500)&&(this._imageLoaded(),clearInterval(ae)),ne+=1}).bind(this),50)}function M(oe){var ne=b(oe,this.assetsPath,this.path),ae=createNS("image");isSafari?this.testImageLoaded(ae):ae.addEventListener("load",this._imageLoaded,!1),ae.addEventListener("error",(function(){pe.img=r,this._imageLoaded()}).bind(this),!1),ae.setAttributeNS("http://www.w3.org/1999/xlink","href",ne),this._elementHelper.append?this._elementHelper.append(ae):this._elementHelper.appendChild(ae);var pe={img:ae,assetData:oe};return pe}function O(oe){var ne=b(oe,this.assetsPath,this.path),ae=createTag("img");ae.crossOrigin="anonymous",ae.addEventListener("load",this._imageLoaded,!1),ae.addEventListener("error",(function(){pe.img=r,this._imageLoaded()}).bind(this),!1),ae.src=ne;var pe={img:ae,assetData:oe};return pe}function z(oe){var ne={assetData:oe},ae=b(oe,this.assetsPath,this.path);return dataManager.loadData(ae,(function(pe){ne.img=pe,this._footageLoaded()}).bind(this),(function(){ne.img={},this._footageLoaded()}).bind(this)),ne}function U(oe,ne){this.imagesLoadedCb=ne;var ae,pe=oe.length;for(ae=0;ae<pe;ae+=1)oe[ae].layers||(!oe[ae].t||oe[ae].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(oe[ae]))):oe[ae].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(oe[ae]))))}function G(oe){this.path=oe||""}function q(oe){this.assetsPath=oe||""}function J(oe){for(var ne=0,ae=this.images.length;ne<ae;){if(this.images[ne].assetData===oe)return this.images[ne].img;ne+=1}return null}function X(){this.imagesLoadedCb=null,this.images.length=0}function fe(){return this.totalImages===this.loadedAssets}function te(){return this.totalFootages===this.loadedFootagesCount}function ue(oe,ne){oe==="svg"?(this._elementHelper=ne,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ye(){this._imageLoaded=y.bind(this),this._footageLoaded=x.bind(this),this.testImageLoaded=R.bind(this),this.createFootageData=z.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ye.prototype={loadAssets:U,setAssetsPath:q,setPath:G,loadedImages:fe,loadedFootages:te,destroy:X,getAsset:J,createImgData:O,createImageData:M,imageLoaded:y,footageLoaded:x,setCacheType:ue},ye})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(y,x){if(this._cbs[y])for(var b=this._cbs[y],R=0;R<b.length;R+=1)b[R](x)},addEventListener:function(y,x){return this._cbs[y]||(this._cbs[y]=[]),this._cbs[y].push(x),(function(){this.removeEventListener(y,x)}).bind(this)},removeEventListener:function(y,x){if(!x)this._cbs[y]=null;else if(this._cbs[y]){for(var b=0,R=this._cbs[y].length;b<R;)this._cbs[y][b]===x&&(this._cbs[y].splice(b,1),b-=1,R-=1),b+=1;this._cbs[y].length||(this._cbs[y]=null)}}};var markerParser=(function(){function r(y){for(var x=y.split(`\r
296`),b={},R,M=0,O=0;O<x.length;O+=1)R=x[O].split(":"),R.length===2&&(b[R[0]]=R[1].trim(),M+=1);if(M===0)throw new Error;return b}return function(y){for(var x=[],b=0;b<y.length;b+=1){var R=y[b],M={time:R.tm,duration:R.dr};try{M.payload=JSON.parse(y[b].cm)}catch{try{M.payload=r(y[b].cm)}catch{M.payload={name:y[b].cm}}}x.push(M)}return x}})(),ProjectInterface=(function(){function r(y){this.compositions.push(y)}return function(){function y(x){for(var b=0,R=this.compositions.length;b<R;){if(this.compositions[b].data&&this.compositions[b].data.nm===x)return this.compositions[b].prepareFrame&&this.compositions[b].data.xt&&this.compositions[b].prepareFrame(this.currentFrame),this.compositions[b].compInterface;b+=1}return null}return y.compositions=[],y.currentFrame=0,y.registerComposition=r,y}})(),renderers={},registerRenderer=function(y,x){renderers[y]=x};function getRenderer(r){return renderers[r]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var r in renderers)if(renderers[r])return r;return""}function _typeof$4(r){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof$4(r)}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(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var y="svg";r.animType?y=r.animType:r.renderer&&(y=r.renderer);var x=getRenderer(y);this.renderer=new x(this,r.rendererSettings),this.imagePreloader.setCacheType(y,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=y,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(r.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(r){dataManager.completeAnimation(r,this.configAnimation)},AnimationItem.prototype.setData=function(r,y){y&&_typeof$4(y)!=="object"&&(y=JSON.parse(y));var x={wrapper:r,animationData:y},b=r.attributes;x.path=b.getNamedItem("data-animation-path")?b.getNamedItem("data-animation-path").value:b.getNamedItem("data-bm-path")?b.getNamedItem("data-bm-path").value:b.getNamedItem("bm-path")?b.getNamedItem("bm-path").value:"",x.animType=b.getNamedItem("data-anim-type")?b.getNamedItem("data-anim-type").value:b.getNamedItem("data-bm-type")?b.getNamedItem("data-bm-type").value:b.getNamedItem("bm-type")?b.getNamedItem("bm-type").value:b.getNamedItem("data-bm-renderer")?b.getNamedItem("data-bm-renderer").value:b.getNamedItem("bm-renderer")?b.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var R=b.getNamedItem("data-anim-loop")?b.getNamedItem("data-anim-loop").value:b.getNamedItem("data-bm-loop")?b.getNamedItem("data-bm-loop").value:b.getNamedItem("bm-loop")?b.getNamedItem("bm-loop").value:"";R==="false"?x.loop=!1:R==="true"?x.loop=!0:R!==""&&(x.loop=parseInt(R,10));var M=b.getNamedItem("data-anim-autoplay")?b.getNamedItem("data-anim-autoplay").value:b.getNamedItem("data-bm-autoplay")?b.getNamedItem("data-bm-autoplay").value:b.getNamedItem("bm-autoplay")?b.getNamedItem("bm-autoplay").value:!0;x.autoplay=M!=="false",x.name=b.getNamedItem("data-name")?b.getNamedItem("data-name").value:b.getNamedItem("data-bm-name")?b.getNamedItem("data-bm-name").value:b.getNamedItem("bm-name")?b.getNamedItem("bm-name").value:"";var O=b.getNamedItem("data-anim-prerender")?b.getNamedItem("data-anim-prerender").value:b.getNamedItem("data-bm-prerender")?b.getNamedItem("data-bm-prerender").value:b.getNamedItem("bm-prerender")?b.getNamedItem("bm-prerender").value:"";O==="false"&&(x.prerender=!1),x.path?this.setParams(x):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var y=this.animationData.layers,x,b=y.length,R=r.layers,M,O=R.length;for(M=0;M<O;M+=1)for(x=0;x<b;){if(y[x].id===R[M].id){y[x]=R[M];break}x+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(b=r.assets.length,x=0;x<b;x+=1)this.animationData.assets.push(r.assets[x]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(r){this.animationData=r;var y=getExpressionsPlugin();y&&y.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var y=r.shift();this.timeCompleted=y.time*this.frameRate;var x=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(x,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var r=this.animationData.segments;r||(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(r){if(this.renderer)try{this.animationData=r,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(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=markerParser(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(y){this.triggerConfigError(y)}},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 r=getExpressionsPlugin();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(r,y){var x=typeof r=="number"?r:void 0,b=typeof y=="number"?y:void 0;this.renderer.updateContainerSize(x,b)},AnimationItem.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},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(r){this.triggerRenderFrameError(r)}},AnimationItem.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(r){for(var y,x=0;x<this.markers.length;x+=1)if(y=this.markers[x],y.payload&&y.payload.name===r)return y;return null},AnimationItem.prototype.goToAndStop=function(r,y,x){if(!(x&&this.name!==x)){var b=Number(r);if(isNaN(b)){var R=this.getMarkerData(r);R&&this.goToAndStop(R.time,!0)}else y?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(r,y,x){if(!(x&&this.name!==x)){var b=Number(r);if(isNaN(b)){var R=this.getMarkerData(r);R&&(R.duration?this.playSegments([R.time,R.time+R.duration],!0):this.goToAndStop(R.time,!0))}else this.goToAndStop(b,y,x);this.play()}},AnimationItem.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var y=this.currentRawFrame+r*this.frameModifier,x=!1;y>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(y>this.totalFrames?y%this.totalFrames:0)||(x=!0,y=this.totalFrames-1):y>=this.totalFrames?(this.playCount+=1,this.checkSegments(y%this.totalFrames)||(this.setCurrentRawFrameValue(y%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(y):y<0?this.checkSegments(y%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+y%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(x=!0,y=0)):this.setCurrentRawFrameValue(y),x&&(this.setCurrentRawFrameValue(y),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(r,y){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-y)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+y)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(r,y){var x=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?x=r:this.currentRawFrame+this.firstFrame>y&&(x=y-r)),this.firstFrame=r,this.totalFrames=y-r,this.timeCompleted=this.totalFrames,x!==-1&&this.goToAndStop(x,!0)},AnimationItem.prototype.playSegments=function(r,y){if(y&&(this.segments.length=0),_typeof$4(r[0])==="object"){var x,b=r.length;for(x=0;x<b;x+=1)this.segments.push(r[x])}else this.segments.push(r);this.segments.length&&y&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},AnimationItem.prototype.destroy=function(r){r&&this.name!==r||!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(r){this.currentRawFrame=r,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(r){this.loop=r},AnimationItem.prototype.setVolume=function(r,y){y&&this.name!==y||this.audioController.setVolume(r)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},AnimationItem.prototype.unmute=function(r){r&&this.name!==r||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(r){var y="";if(r.e)y=r.p;else if(this.assetsPath){var x=r.p;x.indexOf("images/")!==-1&&(x=x.split("/")[1]),y=this.assetsPath+x}else y=this.path,y+=r.u?r.u:"",y+=r.p;return y},AnimationItem.prototype.getAssetData=function(r){for(var y=0,x=this.assets.length;y<x;){if(r===this.assets[y].id)return this.assets[y];y+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(r,y,x){try{var b=this.renderer.getElementByPath(r);b.updateDocumentData(y,x)}catch{}},AnimationItem.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new BMEnterFrameEvent(r,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(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new BMCompleteLoopEvent(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new BMCompleteEvent(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new BMSegmentStartEvent(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new BMDestroyEvent(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(r,this))},AnimationItem.prototype.triggerRenderFrameError=function(r){var y=new BMRenderFrameErrorEvent(r,this.currentFrame);this.triggerEvent("error",y),this.onError&&this.onError.call(this,y)},AnimationItem.prototype.triggerConfigError=function(r){var y=new BMConfigErrorEvent(r,this.currentFrame);this.triggerEvent("error",y),this.onError&&this.onError.call(this,y)};var animationManager=(function(){var r={},y=[],x=0,b=0,R=0,M=!0,O=!1;function z(Ne){for(var He=0,_e=Ne.target;He<b;)y[He].animation===_e&&(y.splice(He,1),He-=1,b-=1,_e.isPaused||J()),He+=1}function U(Ne,He){if(!Ne)return null;for(var _e=0;_e<b;){if(y[_e].elem===Ne&&y[_e].elem!==null)return y[_e].animation;_e+=1}var Be=new AnimationItem;return X(Be,Ne),Be.setData(Ne,He),Be}function G(){var Ne,He=y.length,_e=[];for(Ne=0;Ne<He;Ne+=1)_e.push(y[Ne].animation);return _e}function q(){R+=1,ot()}function J(){R-=1}function X(Ne,He){Ne.addEventListener("destroy",z),Ne.addEventListener("_active",q),Ne.addEventListener("_idle",J),y.push({elem:He,animation:Ne}),b+=1}function fe(Ne){var He=new AnimationItem;return X(He,null),He.setParams(Ne),He}function te(Ne,He){var _e;for(_e=0;_e<b;_e+=1)y[_e].animation.setSpeed(Ne,He)}function ue(Ne,He){var _e;for(_e=0;_e<b;_e+=1)y[_e].animation.setDirection(Ne,He)}function ye(Ne){var He;for(He=0;He<b;He+=1)y[He].animation.play(Ne)}function oe(Ne){var He=Ne-x,_e;for(_e=0;_e<b;_e+=1)y[_e].animation.advanceTime(He);x=Ne,R&&!O?window.requestAnimationFrame(oe):M=!0}function ne(Ne){x=Ne,window.requestAnimationFrame(oe)}function ae(Ne){var He;for(He=0;He<b;He+=1)y[He].animation.pause(Ne)}function pe(Ne,He,_e){var Be;for(Be=0;Be<b;Be+=1)y[Be].animation.goToAndStop(Ne,He,_e)}function je(Ne){var He;for(He=0;He<b;He+=1)y[He].animation.stop(Ne)}function Ve(Ne){var He;for(He=0;He<b;He+=1)y[He].animation.togglePause(Ne)}function Ue(Ne){var He;for(He=b-1;He>=0;He-=1)y[He].animation.destroy(Ne)}function $e(Ne,He,_e){var Be=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ye,Le=Be.length;for(Ye=0;Ye<Le;Ye+=1)_e&&Be[Ye].setAttribute("data-bm-type",_e),U(Be[Ye],Ne);if(He&&Le===0){_e||(_e="svg");var Ge=document.getElementsByTagName("body")[0];Ge.innerText="";var Ke=createTag("div");Ke.style.width="100%",Ke.style.height="100%",Ke.setAttribute("data-bm-type",_e),Ge.appendChild(Ke),U(Ke,Ne)}}function We(){var Ne;for(Ne=0;Ne<b;Ne+=1)y[Ne].animation.resize()}function ot(){!O&&R&&M&&(window.requestAnimationFrame(ne),M=!1)}function ct(){O=!0}function it(){O=!1,ot()}function ft(Ne,He){var _e;for(_e=0;_e<b;_e+=1)y[_e].animation.setVolume(Ne,He)}function dt(Ne){var He;for(He=0;He<b;He+=1)y[He].animation.mute(Ne)}function nt(Ne){var He;for(He=0;He<b;He+=1)y[He].animation.unmute(Ne)}return r.registerAnimation=U,r.loadAnimation=fe,r.setSpeed=te,r.setDirection=ue,r.play=ye,r.pause=ae,r.stop=je,r.togglePause=Ve,r.searchAnimations=$e,r.resize=We,r.goToAndStop=pe,r.destroy=Ue,r.freeze=ct,r.unfreeze=it,r.setVolume=ft,r.mute=dt,r.unmute=nt,r.getRegisteredAnimations=G,r})(),BezierFactory=(function(){var r={};r.getBezierEasing=x;var y={};function x(ne,ae,pe,je,Ve){var Ue=Ve||("bez_"+ne+"_"+ae+"_"+pe+"_"+je).replace(/\./g,"p");if(y[Ue])return y[Ue];var $e=new oe([ne,ae,pe,je]);return y[Ue]=$e,$e}var b=4,R=.001,M=1e-7,O=10,z=11,U=1/(z-1),G=typeof Float32Array=="function";function q(ne,ae){return 1-3*ae+3*ne}function J(ne,ae){return 3*ae-6*ne}function X(ne){return 3*ne}function fe(ne,ae,pe){return((q(ae,pe)*ne+J(ae,pe))*ne+X(ae))*ne}function te(ne,ae,pe){return 3*q(ae,pe)*ne*ne+2*J(ae,pe)*ne+X(ae)}function ue(ne,ae,pe,je,Ve){var Ue,$e,We=0;do $e=ae+(pe-ae)/2,Ue=fe($e,je,Ve)-ne,Ue>0?pe=$e:ae=$e;while(Math.abs(Ue)>M&&++We<O);return $e}function ye(ne,ae,pe,je){for(var Ve=0;Ve<b;++Ve){var Ue=te(ae,pe,je);if(Ue===0)return ae;var $e=fe(ae,pe,je)-ne;ae-=$e/Ue}return ae}function oe(ne){this._p=ne,this._mSampleValues=G?new Float32Array(z):new Array(z),this._precomputed=!1,this.get=this.get.bind(this)}return oe.prototype={get:function(ae){var pe=this._p[0],je=this._p[1],Ve=this._p[2],Ue=this._p[3];return this._precomputed||this._precompute(),pe===je&&Ve===Ue?ae:ae===0?0:ae===1?1:fe(this._getTForX(ae),je,Ue)},_precompute:function(){var ae=this._p[0],pe=this._p[1],je=this._p[2],Ve=this._p[3];this._precomputed=!0,(ae!==pe||je!==Ve)&&this._calcSampleValues()},_calcSampleValues:function(){for(var ae=this._p[0],pe=this._p[2],je=0;je<z;++je)this._mSampleValues[je]=fe(je*U,ae,pe)},_getTForX:function(ae){for(var pe=this._p[0],je=this._p[2],Ve=this._mSampleValues,Ue=0,$e=1,We=z-1;$e!==We&&Ve[$e]<=ae;++$e)Ue+=U;--$e;var ot=(ae-Ve[$e])/(Ve[$e+1]-Ve[$e]),ct=Ue+ot*U,it=te(ct,pe,je);return it>=R?ye(ae,ct,pe,je):it===0?ct:ue(ae,Ue,Ue+U,pe,je)}},r})(),pooling=(function(){function r(y){return y.concat(createSizedArray(y.length))}return{double:r}})(),poolFactory=(function(){return function(r,y,x){var b=0,R=r,M=createSizedArray(R),O={newElement:z,release:U};function z(){var G;return b?(b-=1,G=M[b]):G=y(),G}function U(G){b===R&&(M=pooling.double(M),R*=2),x&&x(G),M[b]=G,b+=1}return O}})(),bezierLengthPool=(function(){function r(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,r)})(),segmentsLengthPool=(function(){function r(){return{lengths:[],totalLength:0}}function y(x){var b,R=x.lengths.length;for(b=0;b<R;b+=1)bezierLengthPool.release(x.lengths[b]);x.lengths.length=0}return poolFactory(8,r,y)})();function bezFunction(){var r=Math;function y(X,fe,te,ue,ye,oe){var ne=X*ue+fe*ye+te*oe-ye*ue-oe*X-te*fe;return ne>-.001&&ne<.001}function x(X,fe,te,ue,ye,oe,ne,ae,pe){if(te===0&&oe===0&&pe===0)return y(X,fe,ue,ye,ne,ae);var je=r.sqrt(r.pow(ue-X,2)+r.pow(ye-fe,2)+r.pow(oe-te,2)),Ve=r.sqrt(r.pow(ne-X,2)+r.pow(ae-fe,2)+r.pow(pe-te,2)),Ue=r.sqrt(r.pow(ne-ue,2)+r.pow(ae-ye,2)+r.pow(pe-oe,2)),$e;return je>Ve?je>Ue?$e=je-Ve-Ue:$e=Ue-Ve-je:Ue>Ve?$e=Ue-Ve-je:$e=Ve-je-Ue,$e>-1e-4&&$e<1e-4}var b=(function(){return function(X,fe,te,ue){var ye=getDefaultCurveSegments(),oe,ne,ae,pe,je,Ve=0,Ue,$e=[],We=[],ot=bezierLengthPool.newElement();for(ae=te.length,oe=0;oe<ye;oe+=1){for(je=oe/(ye-1),Ue=0,ne=0;ne<ae;ne+=1)pe=bmPow(1-je,3)*X[ne]+3*bmPow(1-je,2)*je*te[ne]+3*(1-je)*bmPow(je,2)*ue[ne]+bmPow(je,3)*fe[ne],$e[ne]=pe,We[ne]!==null&&(Ue+=bmPow($e[ne]-We[ne],2)),We[ne]=$e[ne];Ue&&(Ue=bmSqrt(Ue),Ve+=Ue),ot.percents[oe]=je,ot.lengths[oe]=Ve}return ot.addedLength=Ve,ot}})();function R(X){var fe=segmentsLengthPool.newElement(),te=X.c,ue=X.v,ye=X.o,oe=X.i,ne,ae=X._length,pe=fe.lengths,je=0;for(ne=0;ne<ae-1;ne+=1)pe[ne]=b(ue[ne],ue[ne+1],ye[ne],oe[ne+1]),je+=pe[ne].addedLength;return te&&ae&&(pe[ne]=b(ue[ne],ue[0],ye[ne],oe[0]),je+=pe[ne].addedLength),fe.totalLength=je,fe}function M(X){this.segmentLength=0,this.points=new Array(X)}function O(X,fe){this.partialLength=X,this.point=fe}var z=(function(){var X={};return function(fe,te,ue,ye){var oe=(fe[0]+"_"+fe[1]+"_"+te[0]+"_"+te[1]+"_"+ue[0]+"_"+ue[1]+"_"+ye[0]+"_"+ye[1]).replace(/\./g,"p");if(!X[oe]){var ne=getDefaultCurveSegments(),ae,pe,je,Ve,Ue,$e=0,We,ot,ct=null;fe.length===2&&(fe[0]!==te[0]||fe[1]!==te[1])&&y(fe[0],fe[1],te[0],te[1],fe[0]+ue[0],fe[1]+ue[1])&&y(fe[0],fe[1],te[0],te[1],te[0]+ye[0],te[1]+ye[1])&&(ne=2);var it=new M(ne);for(je=ue.length,ae=0;ae<ne;ae+=1){for(ot=createSizedArray(je),Ue=ae/(ne-1),We=0,pe=0;pe<je;pe+=1)Ve=bmPow(1-Ue,3)*fe[pe]+3*bmPow(1-Ue,2)*Ue*(fe[pe]+ue[pe])+3*(1-Ue)*bmPow(Ue,2)*(te[pe]+ye[pe])+bmPow(Ue,3)*te[pe],ot[pe]=Ve,ct!==null&&(We+=bmPow(ot[pe]-ct[pe],2));We=bmSqrt(We),$e+=We,it.points[ae]=new O(We,ot),ct=ot}it.segmentLength=$e,X[oe]=it}return X[oe]}})();function U(X,fe){var te=fe.percents,ue=fe.lengths,ye=te.length,oe=bmFloor((ye-1)*X),ne=X*fe.addedLength,ae=0;if(oe===ye-1||oe===0||ne===ue[oe])return te[oe];for(var pe=ue[oe]>ne?-1:1,je=!0;je;)if(ue[oe]<=ne&&ue[oe+1]>ne?(ae=(ne-ue[oe])/(ue[oe+1]-ue[oe]),je=!1):oe+=pe,oe<0||oe>=ye-1){if(oe===ye-1)return te[oe];je=!1}return te[oe]+(te[oe+1]-te[oe])*ae}function G(X,fe,te,ue,ye,oe){var ne=U(ye,oe),ae=1-ne,pe=r.round((ae*ae*ae*X[0]+(ne*ae*ae+ae*ne*ae+ae*ae*ne)*te[0]+(ne*ne*ae+ae*ne*ne+ne*ae*ne)*ue[0]+ne*ne*ne*fe[0])*1e3)/1e3,je=r.round((ae*ae*ae*X[1]+(ne*ae*ae+ae*ne*ae+ae*ae*ne)*te[1]+(ne*ne*ae+ae*ne*ne+ne*ae*ne)*ue[1]+ne*ne*ne*fe[1])*1e3)/1e3;return[pe,je]}var q=createTypedArray("float32",8);function J(X,fe,te,ue,ye,oe,ne){ye<0?ye=0:ye>1&&(ye=1);var ae=U(ye,ne);oe=oe>1?1:oe;var pe=U(oe,ne),je,Ve=X.length,Ue=1-ae,$e=1-pe,We=Ue*Ue*Ue,ot=ae*Ue*Ue*3,ct=ae*ae*Ue*3,it=ae*ae*ae,ft=Ue*Ue*$e,dt=ae*Ue*$e+Ue*ae*$e+Ue*Ue*pe,nt=ae*ae*$e+Ue*ae*pe+ae*Ue*pe,Ne=ae*ae*pe,He=Ue*$e*$e,_e=ae*$e*$e+Ue*pe*$e+Ue*$e*pe,Be=ae*pe*$e+Ue*pe*pe+ae*$e*pe,Ye=ae*pe*pe,Le=$e*$e*$e,Ge=pe*$e*$e+$e*pe*$e+$e*$e*pe,Ke=pe*pe*$e+$e*pe*pe+pe*$e*pe,Ze=pe*pe*pe;for(je=0;je<Ve;je+=1)q[je*4]=r.round((We*X[je]+ot*te[je]+ct*ue[je]+it*fe[je])*1e3)/1e3,q[je*4+1]=r.round((ft*X[je]+dt*te[je]+nt*ue[je]+Ne*fe[je])*1e3)/1e3,q[je*4+2]=r.round((He*X[je]+_e*te[je]+Be*ue[je]+Ye*fe[je])*1e3)/1e3,q[je*4+3]=r.round((Le*X[je]+Ge*te[je]+Ke*ue[je]+Ze*fe[je])*1e3)/1e3;return q}return{getSegmentsLength:R,getNewSegment:J,getPointInSegment:G,buildBezierData:z,pointOnLine2D:y,pointOnLine3D:x}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(r,y){var x=this.offsetTime,b;this.propType==="multidimensional"&&(b=createTypedArray("float32",this.pv.length));for(var R=y.lastIndex,M=R,O=this.keyframes.length-1,z=!0,U,G,q;z;){if(U=this.keyframes[M],G=this.keyframes[M+1],M===O-1&&r>=G.t-x){U.h&&(U=G),R=0;break}if(G.t-x>r){R=M;break}M<O-1?M+=1:(R=0,z=!1)}q=this.keyframesMetadata[M]||{};var J,X,fe,te,ue,ye,oe=G.t-x,ne=U.t-x,ae;if(U.to){q.bezierData||(q.bezierData=bez.buildBezierData(U.s,G.s||U.e,U.to,U.ti));var pe=q.bezierData;if(r>=oe||r<ne){var je=r>=oe?pe.points.length-1:0;for(X=pe.points[je].point.length,J=0;J<X;J+=1)b[J]=pe.points[je].point[J]}else{q.__fnct?ye=q.__fnct:(ye=BezierFactory.getBezierEasing(U.o.x,U.o.y,U.i.x,U.i.y,U.n).get,q.__fnct=ye),fe=ye((r-ne)/(oe-ne));var Ve=pe.segmentLength*fe,Ue,$e=y.lastFrame<r&&y._lastKeyframeIndex===M?y._lastAddedLength:0;for(ue=y.lastFrame<r&&y._lastKeyframeIndex===M?y._lastPoint:0,z=!0,te=pe.points.length;z;){if($e+=pe.points[ue].partialLength,Ve===0||fe===0||ue===pe.points.length-1){for(X=pe.points[ue].point.length,J=0;J<X;J+=1)b[J]=pe.points[ue].point[J];break}else if(Ve>=$e&&Ve<$e+pe.points[ue+1].partialLength){for(Ue=(Ve-$e)/pe.points[ue+1].partialLength,X=pe.points[ue].point.length,J=0;J<X;J+=1)b[J]=pe.points[ue].point[J]+(pe.points[ue+1].point[J]-pe.points[ue].point[J])*Ue;break}ue<te-1?ue+=1:z=!1}y._lastPoint=ue,y._lastAddedLength=$e-pe.points[ue].partialLength,y._lastKeyframeIndex=M}}else{var We,ot,ct,it,ft;if(O=U.s.length,ae=G.s||U.e,this.sh&&U.h!==1)if(r>=oe)b[0]=ae[0],b[1]=ae[1],b[2]=ae[2];else if(r<=ne)b[0]=U.s[0],b[1]=U.s[1],b[2]=U.s[2];else{var dt=createQuaternion(U.s),nt=createQuaternion(ae),Ne=(r-ne)/(oe-ne);quaternionToEuler(b,slerp(dt,nt,Ne))}else for(M=0;M<O;M+=1)U.h!==1&&(r>=oe?fe=1:r<ne?fe=0:(U.o.x.constructor===Array?(q.__fnct||(q.__fnct=[]),q.__fnct[M]?ye=q.__fnct[M]:(We=U.o.x[M]===void 0?U.o.x[0]:U.o.x[M],ot=U.o.y[M]===void 0?U.o.y[0]:U.o.y[M],ct=U.i.x[M]===void 0?U.i.x[0]:U.i.x[M],it=U.i.y[M]===void 0?U.i.y[0]:U.i.y[M],ye=BezierFactory.getBezierEasing(We,ot,ct,it).get,q.__fnct[M]=ye)):q.__fnct?ye=q.__fnct:(We=U.o.x,ot=U.o.y,ct=U.i.x,it=U.i.y,ye=BezierFactory.getBezierEasing(We,ot,ct,it).get,U.keyframeMetadata=ye),fe=ye((r-ne)/(oe-ne)))),ae=G.s||U.e,ft=U.h===1?U.s[M]:U.s[M]+(ae[M]-U.s[M])*fe,this.propType==="multidimensional"?b[M]=ft:b=ft}return y.lastIndex=R,b}function slerp(r,y,x){var b=[],R=r[0],M=r[1],O=r[2],z=r[3],U=y[0],G=y[1],q=y[2],J=y[3],X,fe,te,ue,ye;return fe=R*U+M*G+O*q+z*J,fe<0&&(fe=-fe,U=-U,G=-G,q=-q,J=-J),1-fe>1e-6?(X=Math.acos(fe),te=Math.sin(X),ue=Math.sin((1-x)*X)/te,ye=Math.sin(x*X)/te):(ue=1-x,ye=x),b[0]=ue*R+ye*U,b[1]=ue*M+ye*G,b[2]=ue*O+ye*q,b[3]=ue*z+ye*J,b}function quaternionToEuler(r,y){var x=y[0],b=y[1],R=y[2],M=y[3],O=Math.atan2(2*b*M-2*x*R,1-2*b*b-2*R*R),z=Math.asin(2*x*b+2*R*M),U=Math.atan2(2*x*M-2*b*R,1-2*x*x-2*R*R);r[0]=O/degToRads,r[1]=z/degToRads,r[2]=U/degToRads}function createQuaternion(r){var y=r[0]*degToRads,x=r[1]*degToRads,b=r[2]*degToRads,R=Math.cos(y/2),M=Math.cos(x/2),O=Math.cos(b/2),z=Math.sin(y/2),U=Math.sin(x/2),G=Math.sin(b/2),q=R*M*O-z*U*G,J=z*U*O+R*M*G,X=z*M*O+R*U*G,fe=R*U*O-z*M*G;return[J,X,fe,q]}function getValueAtCurrentTime(){var r=this.comp.renderedFrame-this.offsetTime,y=this.keyframes[0].t-this.offsetTime,x=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=x&&r>=x||this._caching.lastFrame<y&&r<y))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var b=this.interpolateValue(r,this._caching);this.pv=b}return this._caching.lastFrame=r,this.pv}function setVValue(r){var y;if(this.propType==="unidimensional")y=r*this.mult,mathAbs(this.v-y)>1e-5&&(this.v=y,this._mdf=!0);else for(var x=0,b=this.v.length;x<b;)y=r[x]*this.mult,mathAbs(this.v[x]-y)>1e-5&&(this.v[x]=y,this._mdf=!0),x+=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 r,y=this.effectsSequence.length,x=this.kf?this.pv:this.data.k;for(r=0;r<y;r+=1)x=this.effectsSequence[r](x);this.setVValue(x),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function ValueProperty(r,y,x,b){this.propType="unidimensional",this.mult=x||1,this.data=y,this.v=x?y.k*x:y.k,this.pv=y.k,this._mdf=!1,this.elem=r,this.container=b,this.comp=r.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(r,y,x,b){this.propType="multidimensional",this.mult=x||1,this.data=y,this._mdf=!1,this.elem=r,this.container=b,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var R,M=y.k.length;for(this.v=createTypedArray("float32",M),this.pv=createTypedArray("float32",M),this.vel=createTypedArray("float32",M),R=0;R<M;R+=1)this.v[R]=y.k[R]*this.mult,this.pv[R]=y.k[R];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(r,y,x,b){this.propType="unidimensional",this.keyframes=y.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=y,this.mult=x||1,this.elem=r,this.container=b,this.comp=r.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(r,y,x,b){this.propType="multidimensional";var R,M=y.k.length,O,z,U,G;for(R=0;R<M-1;R+=1)y.k[R].to&&y.k[R].s&&y.k[R+1]&&y.k[R+1].s&&(O=y.k[R].s,z=y.k[R+1].s,U=y.k[R].to,G=y.k[R].ti,(O.length===2&&!(O[0]===z[0]&&O[1]===z[1])&&bez.pointOnLine2D(O[0],O[1],z[0],z[1],O[0]+U[0],O[1]+U[1])&&bez.pointOnLine2D(O[0],O[1],z[0],z[1],z[0]+G[0],z[1]+G[1])||O.length===3&&!(O[0]===z[0]&&O[1]===z[1]&&O[2]===z[2])&&bez.pointOnLine3D(O[0],O[1],O[2],z[0],z[1],z[2],O[0]+U[0],O[1]+U[1],O[2]+U[2])&&bez.pointOnLine3D(O[0],O[1],O[2],z[0],z[1],z[2],z[0]+G[0],z[1]+G[1],z[2]+G[2]))&&(y.k[R].to=null,y.k[R].ti=null),O[0]===z[0]&&O[1]===z[1]&&U[0]===0&&U[1]===0&&G[0]===0&&G[1]===0&&(O.length===2||O[2]===z[2]&&U[2]===0&&G[2]===0)&&(y.k[R].to=null,y.k[R].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=y,this.keyframes=y.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=x||1,this.elem=r,this.container=b,this.comp=r.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var q=y.k[0].s.length;for(this.v=createTypedArray("float32",q),this.pv=createTypedArray("float32",q),R=0;R<q;R+=1)this.v[R]=initFrame,this.pv[R]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",q)},this.addEffect=addEffect}var PropertyFactory=(function(){function r(x,b,R,M,O){b.sid&&(b=x.globalData.slotManager.getProp(b));var z;if(!b.k.length)z=new ValueProperty(x,b,M,O);else if(typeof b.k[0]=="number")z=new MultiDimensionalProperty(x,b,M,O);else switch(R){case 0:z=new KeyframedValueProperty(x,b,M,O);break;case 1:z=new KeyframedMultidimensionalProperty(x,b,M,O);break}return z.effectsSequence.length&&O.addDynamicProperty(z),z}var y={getProp:r};return y})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(y){this.dynamicProperties.indexOf(y)===-1&&(this.dynamicProperties.push(y),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var y,x=this.dynamicProperties.length;for(y=0;y<x;y+=1)this.dynamicProperties[y].getValue(),this.dynamicProperties[y]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(y){this.container=y,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function r(){return createTypedArray("float32",2)}return poolFactory(8,r)})();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(r,y){this.c=r,this.setLength(y);for(var x=0;x<y;)this.v[x]=pointPool.newElement(),this.o[x]=pointPool.newElement(),this.i[x]=pointPool.newElement(),x+=1},ShapePath.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},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(r,y,x,b,R){var M;switch(this._length=Math.max(this._length,b+1),this._length>=this._maxLength&&this.doubleArrayLength(),x){case"v":M=this.v;break;case"i":M=this.i;break;case"o":M=this.o;break;default:M=[];break}(!M[b]||M[b]&&!R)&&(M[b]=pointPool.newElement()),M[b][0]=r,M[b][1]=y},ShapePath.prototype.setTripleAt=function(r,y,x,b,R,M,O,z){this.setXYAt(r,y,"v",O,z),this.setXYAt(x,b,"o",O,z),this.setXYAt(R,M,"i",O,z)},ShapePath.prototype.reverse=function(){var r=new ShapePath;r.setPathData(this.c,this._length);var y=this.v,x=this.o,b=this.i,R=0;this.c&&(r.setTripleAt(y[0][0],y[0][1],b[0][0],b[0][1],x[0][0],x[0][1],0,!1),R=1);var M=this._length-1,O=this._length,z;for(z=R;z<O;z+=1)r.setTripleAt(y[M][0],y[M][1],b[M][0],b[M][1],x[M][0],x[M][1],z,!1),M-=1;return r},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function r(){return new ShapePath}function y(R){var M=R._length,O;for(O=0;O<M;O+=1)pointPool.release(R.v[O]),pointPool.release(R.i[O]),pointPool.release(R.o[O]),R.v[O]=null,R.i[O]=null,R.o[O]=null;R._length=0,R.c=!1}function x(R){var M=b.newElement(),O,z=R._length===void 0?R.v.length:R._length;for(M.setLength(z),M.c=R.c,O=0;O<z;O+=1)M.setTripleAt(R.v[O][0],R.v[O][1],R.o[O][0],R.o[O][1],R.i[O][0],R.i[O][1],O);return M}var b=poolFactory(4,r,y);return b.clone=x,b})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)shapePool.release(this.shapes[r]);this._length=0};var shapeCollectionPool=(function(){var r={newShapeCollection:R,release:M},y=0,x=4,b=createSizedArray(x);function R(){var O;return y?(y-=1,O=b[y]):O=new ShapeCollection,O}function M(O){var z,U=O._length;for(z=0;z<U;z+=1)shapePool.release(O.shapes[z]);O._length=0,y===x&&(b=pooling.double(b),x*=2),b[y]=O,y+=1}return r})(),ShapePropertyFactory=(function(){var r=-999999;function y(oe,ne,ae){var pe=ae.lastIndex,je,Ve,Ue,$e,We,ot,ct,it,ft,dt=this.keyframes;if(oe<dt[0].t-this.offsetTime)je=dt[0].s[0],Ue=!0,pe=0;else if(oe>=dt[dt.length-1].t-this.offsetTime)je=dt[dt.length-1].s?dt[dt.length-1].s[0]:dt[dt.length-2].e[0],Ue=!0;else{for(var nt=pe,Ne=dt.length-1,He=!0,_e,Be,Ye;He&&(_e=dt[nt],Be=dt[nt+1],!(Be.t-this.offsetTime>oe));)nt<Ne-1?nt+=1:He=!1;if(Ye=this.keyframesMetadata[nt]||{},Ue=_e.h===1,pe=nt,!Ue){if(oe>=Be.t-this.offsetTime)it=1;else if(oe<_e.t-this.offsetTime)it=0;else{var Le;Ye.__fnct?Le=Ye.__fnct:(Le=BezierFactory.getBezierEasing(_e.o.x,_e.o.y,_e.i.x,_e.i.y).get,Ye.__fnct=Le),it=Le((oe-(_e.t-this.offsetTime))/(Be.t-this.offsetTime-(_e.t-this.offsetTime)))}Ve=Be.s?Be.s[0]:_e.e[0]}je=_e.s[0]}for(ot=ne._length,ct=je.i[0].length,ae.lastIndex=pe,$e=0;$e<ot;$e+=1)for(We=0;We<ct;We+=1)ft=Ue?je.i[$e][We]:je.i[$e][We]+(Ve.i[$e][We]-je.i[$e][We])*it,ne.i[$e][We]=ft,ft=Ue?je.o[$e][We]:je.o[$e][We]+(Ve.o[$e][We]-je.o[$e][We])*it,ne.o[$e][We]=ft,ft=Ue?je.v[$e][We]:je.v[$e][We]+(Ve.v[$e][We]-je.v[$e][We])*it,ne.v[$e][We]=ft}function x(){var oe=this.comp.renderedFrame-this.offsetTime,ne=this.keyframes[0].t-this.offsetTime,ae=this.keyframes[this.keyframes.length-1].t-this.offsetTime,pe=this._caching.lastFrame;return pe!==r&&(pe<ne&&oe<ne||pe>ae&&oe>ae)||(this._caching.lastIndex=pe<oe?this._caching.lastIndex:0,this.interpolateShape(oe,this.pv,this._caching)),this._caching.lastFrame=oe,this.pv}function b(){this.paths=this.localShapeCollection}function R(oe,ne){if(oe._length!==ne._length||oe.c!==ne.c)return!1;var ae,pe=oe._length;for(ae=0;ae<pe;ae+=1)if(oe.v[ae][0]!==ne.v[ae][0]||oe.v[ae][1]!==ne.v[ae][1]||oe.o[ae][0]!==ne.o[ae][0]||oe.o[ae][1]!==ne.o[ae][1]||oe.i[ae][0]!==ne.i[ae][0]||oe.i[ae][1]!==ne.i[ae][1])return!1;return!0}function M(oe){R(this.v,oe)||(this.v=shapePool.clone(oe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function O(){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 oe;this.kf?oe=this.pv:this.data.ks?oe=this.data.ks.k:oe=this.data.pt.k;var ne,ae=this.effectsSequence.length;for(ne=0;ne<ae;ne+=1)oe=this.effectsSequence[ne](oe);this.setVValue(oe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function z(oe,ne,ae){this.propType="shape",this.comp=oe.comp,this.container=oe,this.elem=oe,this.data=ne,this.k=!1,this.kf=!1,this._mdf=!1;var pe=ae===3?ne.pt.k:ne.ks.k;this.v=shapePool.clone(pe),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=b,this.effectsSequence=[]}function U(oe){this.effectsSequence.push(oe),this.container.addDynamicProperty(this)}z.prototype.interpolateShape=y,z.prototype.getValue=O,z.prototype.setVValue=M,z.prototype.addEffect=U;function G(oe,ne,ae){this.propType="shape",this.comp=oe.comp,this.elem=oe,this.container=oe,this.offsetTime=oe.data.st,this.keyframes=ae===3?ne.pt.k:ne.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var pe=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,pe),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=b,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[x.bind(this)]}G.prototype.getValue=O,G.prototype.interpolateShape=y,G.prototype.setVValue=M,G.prototype.addEffect=U;var q=(function(){var oe=roundCorner;function ne(ae,pe){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=pe.d,this.elem=ae,this.comp=ae.comp,this.frameId=-1,this.initDynamicPropertyContainer(ae),this.p=PropertyFactory.getProp(ae,pe.p,1,0,this),this.s=PropertyFactory.getProp(ae,pe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ne.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var pe=this.p.v[0],je=this.p.v[1],Ve=this.s.v[0]/2,Ue=this.s.v[1]/2,$e=this.d!==3,We=this.v;We.v[0][0]=pe,We.v[0][1]=je-Ue,We.v[1][0]=$e?pe+Ve:pe-Ve,We.v[1][1]=je,We.v[2][0]=pe,We.v[2][1]=je+Ue,We.v[3][0]=$e?pe-Ve:pe+Ve,We.v[3][1]=je,We.i[0][0]=$e?pe-Ve*oe:pe+Ve*oe,We.i[0][1]=je-Ue,We.i[1][0]=$e?pe+Ve:pe-Ve,We.i[1][1]=je-Ue*oe,We.i[2][0]=$e?pe+Ve*oe:pe-Ve*oe,We.i[2][1]=je+Ue,We.i[3][0]=$e?pe-Ve:pe+Ve,We.i[3][1]=je+Ue*oe,We.o[0][0]=$e?pe+Ve*oe:pe-Ve*oe,We.o[0][1]=je-Ue,We.o[1][0]=$e?pe+Ve:pe-Ve,We.o[1][1]=je+Ue*oe,We.o[2][0]=$e?pe-Ve*oe:pe+Ve*oe,We.o[2][1]=je+Ue,We.o[3][0]=$e?pe-Ve:pe+Ve,We.o[3][1]=je-Ue*oe}},extendPrototype([DynamicPropertyContainer],ne),ne})(),J=(function(){function oe(ne,ae){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ne,this.comp=ne.comp,this.data=ae,this.frameId=-1,this.d=ae.d,this.initDynamicPropertyContainer(ne),ae.sy===1?(this.ir=PropertyFactory.getProp(ne,ae.ir,0,0,this),this.is=PropertyFactory.getProp(ne,ae.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ne,ae.pt,0,0,this),this.p=PropertyFactory.getProp(ne,ae.p,1,0,this),this.r=PropertyFactory.getProp(ne,ae.r,0,degToRads,this),this.or=PropertyFactory.getProp(ne,ae.or,0,0,this),this.os=PropertyFactory.getProp(ne,ae.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 oe.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var ae=Math.floor(this.pt.v)*2,pe=Math.PI*2/ae,je=!0,Ve=this.or.v,Ue=this.ir.v,$e=this.os.v,We=this.is.v,ot=2*Math.PI*Ve/(ae*2),ct=2*Math.PI*Ue/(ae*2),it,ft,dt,nt,Ne=-Math.PI/2;Ne+=this.r.v;var He=this.data.d===3?-1:1;for(this.v._length=0,it=0;it<ae;it+=1){ft=je?Ve:Ue,dt=je?$e:We,nt=je?ot:ct;var _e=ft*Math.cos(Ne),Be=ft*Math.sin(Ne),Ye=_e===0&&Be===0?0:Be/Math.sqrt(_e*_e+Be*Be),Le=_e===0&&Be===0?0:-_e/Math.sqrt(_e*_e+Be*Be);_e+=+this.p.v[0],Be+=+this.p.v[1],this.v.setTripleAt(_e,Be,_e-Ye*nt*dt*He,Be-Le*nt*dt*He,_e+Ye*nt*dt*He,Be+Le*nt*dt*He,it,!0),je=!je,Ne+=pe*He}},convertPolygonToPath:function(){var ae=Math.floor(this.pt.v),pe=Math.PI*2/ae,je=this.or.v,Ve=this.os.v,Ue=2*Math.PI*je/(ae*4),$e,We=-Math.PI*.5,ot=this.data.d===3?-1:1;for(We+=this.r.v,this.v._length=0,$e=0;$e<ae;$e+=1){var ct=je*Math.cos(We),it=je*Math.sin(We),ft=ct===0&&it===0?0:it/Math.sqrt(ct*ct+it*it),dt=ct===0&&it===0?0:-ct/Math.sqrt(ct*ct+it*it);ct+=+this.p.v[0],it+=+this.p.v[1],this.v.setTripleAt(ct,it,ct-ft*Ue*Ve*ot,it-dt*Ue*Ve*ot,ct+ft*Ue*Ve*ot,it+dt*Ue*Ve*ot,$e,!0),We+=pe*ot}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],oe),oe})(),X=(function(){function oe(ne,ae){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ne,this.comp=ne.comp,this.frameId=-1,this.d=ae.d,this.initDynamicPropertyContainer(ne),this.p=PropertyFactory.getProp(ne,ae.p,1,0,this),this.s=PropertyFactory.getProp(ne,ae.s,1,0,this),this.r=PropertyFactory.getProp(ne,ae.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return oe.prototype={convertRectToPath:function(){var ae=this.p.v[0],pe=this.p.v[1],je=this.s.v[0]/2,Ve=this.s.v[1]/2,Ue=bmMin(je,Ve,this.r.v),$e=Ue*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(ae+je,pe-Ve+Ue,ae+je,pe-Ve+Ue,ae+je,pe-Ve+$e,0,!0),this.v.setTripleAt(ae+je,pe+Ve-Ue,ae+je,pe+Ve-$e,ae+je,pe+Ve-Ue,1,!0),Ue!==0?(this.v.setTripleAt(ae+je-Ue,pe+Ve,ae+je-Ue,pe+Ve,ae+je-$e,pe+Ve,2,!0),this.v.setTripleAt(ae-je+Ue,pe+Ve,ae-je+$e,pe+Ve,ae-je+Ue,pe+Ve,3,!0),this.v.setTripleAt(ae-je,pe+Ve-Ue,ae-je,pe+Ve-Ue,ae-je,pe+Ve-$e,4,!0),this.v.setTripleAt(ae-je,pe-Ve+Ue,ae-je,pe-Ve+$e,ae-je,pe-Ve+Ue,5,!0),this.v.setTripleAt(ae-je+Ue,pe-Ve,ae-je+Ue,pe-Ve,ae-je+$e,pe-Ve,6,!0),this.v.setTripleAt(ae+je-Ue,pe-Ve,ae+je-$e,pe-Ve,ae+je-Ue,pe-Ve,7,!0)):(this.v.setTripleAt(ae-je,pe+Ve,ae-je+$e,pe+Ve,ae-je,pe+Ve,2),this.v.setTripleAt(ae-je,pe-Ve,ae-je,pe-Ve+$e,ae-je,pe-Ve,3))):(this.v.setTripleAt(ae+je,pe-Ve+Ue,ae+je,pe-Ve+$e,ae+je,pe-Ve+Ue,0,!0),Ue!==0?(this.v.setTripleAt(ae+je-Ue,pe-Ve,ae+je-Ue,pe-Ve,ae+je-$e,pe-Ve,1,!0),this.v.setTripleAt(ae-je+Ue,pe-Ve,ae-je+$e,pe-Ve,ae-je+Ue,pe-Ve,2,!0),this.v.setTripleAt(ae-je,pe-Ve+Ue,ae-je,pe-Ve+Ue,ae-je,pe-Ve+$e,3,!0),this.v.setTripleAt(ae-je,pe+Ve-Ue,ae-je,pe+Ve-$e,ae-je,pe+Ve-Ue,4,!0),this.v.setTripleAt(ae-je+Ue,pe+Ve,ae-je+Ue,pe+Ve,ae-je+$e,pe+Ve,5,!0),this.v.setTripleAt(ae+je-Ue,pe+Ve,ae+je-$e,pe+Ve,ae+je-Ue,pe+Ve,6,!0),this.v.setTripleAt(ae+je,pe+Ve-Ue,ae+je,pe+Ve-Ue,ae+je,pe+Ve-$e,7,!0)):(this.v.setTripleAt(ae-je,pe-Ve,ae-je+$e,pe-Ve,ae-je,pe-Ve,1,!0),this.v.setTripleAt(ae-je,pe+Ve,ae-je,pe+Ve-$e,ae-je,pe+Ve,2,!0),this.v.setTripleAt(ae+je,pe+Ve,ae+je-$e,pe+Ve,ae+je,pe+Ve,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:b},extendPrototype([DynamicPropertyContainer],oe),oe})();function fe(oe,ne,ae){var pe;if(ae===3||ae===4){var je=ae===3?ne.pt:ne.ks,Ve=je.k;Ve.length?pe=new G(oe,ne,ae):pe=new z(oe,ne,ae)}else ae===5?pe=new X(oe,ne):ae===6?pe=new q(oe,ne):ae===7&&(pe=new J(oe,ne));return pe.k&&oe.addDynamicProperty(pe),pe}function te(){return z}function ue(){return G}var ye={};return ye.getShapeProp=fe,ye.getConstructorFunction=te,ye.getKeyframedConstructorFunction=ue,ye})();var Matrix=(function(){var r=Math.cos,y=Math.sin,x=Math.tan,b=Math.round;function R(){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 M(_e){if(_e===0)return this;var Be=r(_e),Ye=y(_e);return this._t(Be,-Ye,0,0,Ye,Be,0,0,0,0,1,0,0,0,0,1)}function O(_e){if(_e===0)return this;var Be=r(_e),Ye=y(_e);return this._t(1,0,0,0,0,Be,-Ye,0,0,Ye,Be,0,0,0,0,1)}function z(_e){if(_e===0)return this;var Be=r(_e),Ye=y(_e);return this._t(Be,0,Ye,0,0,1,0,0,-Ye,0,Be,0,0,0,0,1)}function U(_e){if(_e===0)return this;var Be=r(_e),Ye=y(_e);return this._t(Be,-Ye,0,0,Ye,Be,0,0,0,0,1,0,0,0,0,1)}function G(_e,Be){return this._t(1,Be,_e,1,0,0)}function q(_e,Be){return this.shear(x(_e),x(Be))}function J(_e,Be){var Ye=r(Be),Le=y(Be);return this._t(Ye,Le,0,0,-Le,Ye,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,x(_e),1,0,0,0,0,1,0,0,0,0,1)._t(Ye,-Le,0,0,Le,Ye,0,0,0,0,1,0,0,0,0,1)}function X(_e,Be,Ye){return!Ye&&Ye!==0&&(Ye=1),_e===1&&Be===1&&Ye===1?this:this._t(_e,0,0,0,0,Be,0,0,0,0,Ye,0,0,0,0,1)}function fe(_e,Be,Ye,Le,Ge,Ke,Ze,ut,pt,xt,Nt,kt,Yt,qt,ir,jt){return this.props[0]=_e,this.props[1]=Be,this.props[2]=Ye,this.props[3]=Le,this.props[4]=Ge,this.props[5]=Ke,this.props[6]=Ze,this.props[7]=ut,this.props[8]=pt,this.props[9]=xt,this.props[10]=Nt,this.props[11]=kt,this.props[12]=Yt,this.props[13]=qt,this.props[14]=ir,this.props[15]=jt,this}function te(_e,Be,Ye){return Ye=Ye||0,_e!==0||Be!==0||Ye!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,_e,Be,Ye,1):this}function ue(_e,Be,Ye,Le,Ge,Ke,Ze,ut,pt,xt,Nt,kt,Yt,qt,ir,jt){var mt=this.props;if(_e===1&&Be===0&&Ye===0&&Le===0&&Ge===0&&Ke===1&&Ze===0&&ut===0&&pt===0&&xt===0&&Nt===1&&kt===0)return mt[12]=mt[12]*_e+mt[15]*Yt,mt[13]=mt[13]*Ke+mt[15]*qt,mt[14]=mt[14]*Nt+mt[15]*ir,mt[15]*=jt,this._identityCalculated=!1,this;var mr=mt[0],br=mt[1],Er=mt[2],gr=mt[3],yr=mt[4],vr=mt[5],ht=mt[6],Et=mt[7],Tt=mt[8],At=mt[9],sr=mt[10],pr=mt[11],Br=mt[12],Qr=mt[13],Pr=mt[14],wi=mt[15];return mt[0]=mr*_e+br*Ge+Er*pt+gr*Yt,mt[1]=mr*Be+br*Ke+Er*xt+gr*qt,mt[2]=mr*Ye+br*Ze+Er*Nt+gr*ir,mt[3]=mr*Le+br*ut+Er*kt+gr*jt,mt[4]=yr*_e+vr*Ge+ht*pt+Et*Yt,mt[5]=yr*Be+vr*Ke+ht*xt+Et*qt,mt[6]=yr*Ye+vr*Ze+ht*Nt+Et*ir,mt[7]=yr*Le+vr*ut+ht*kt+Et*jt,mt[8]=Tt*_e+At*Ge+sr*pt+pr*Yt,mt[9]=Tt*Be+At*Ke+sr*xt+pr*qt,mt[10]=Tt*Ye+At*Ze+sr*Nt+pr*ir,mt[11]=Tt*Le+At*ut+sr*kt+pr*jt,mt[12]=Br*_e+Qr*Ge+Pr*pt+wi*Yt,mt[13]=Br*Be+Qr*Ke+Pr*xt+wi*qt,mt[14]=Br*Ye+Qr*Ze+Pr*Nt+wi*ir,mt[15]=Br*Le+Qr*ut+Pr*kt+wi*jt,this._identityCalculated=!1,this}function ye(_e){var Be=_e.props;return this.transform(Be[0],Be[1],Be[2],Be[3],Be[4],Be[5],Be[6],Be[7],Be[8],Be[9],Be[10],Be[11],Be[12],Be[13],Be[14],Be[15])}function oe(){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 ne(_e){for(var Be=0;Be<16;){if(_e.props[Be]!==this.props[Be])return!1;Be+=1}return!0}function ae(_e){var Be;for(Be=0;Be<16;Be+=1)_e.props[Be]=this.props[Be];return _e}function pe(_e){var Be;for(Be=0;Be<16;Be+=1)this.props[Be]=_e[Be]}function je(_e,Be,Ye){return{x:_e*this.props[0]+Be*this.props[4]+Ye*this.props[8]+this.props[12],y:_e*this.props[1]+Be*this.props[5]+Ye*this.props[9]+this.props[13],z:_e*this.props[2]+Be*this.props[6]+Ye*this.props[10]+this.props[14]}}function Ve(_e,Be,Ye){return _e*this.props[0]+Be*this.props[4]+Ye*this.props[8]+this.props[12]}function Ue(_e,Be,Ye){return _e*this.props[1]+Be*this.props[5]+Ye*this.props[9]+this.props[13]}function $e(_e,Be,Ye){return _e*this.props[2]+Be*this.props[6]+Ye*this.props[10]+this.props[14]}function We(){var _e=this.props[0]*this.props[5]-this.props[1]*this.props[4],Be=this.props[5]/_e,Ye=-this.props[1]/_e,Le=-this.props[4]/_e,Ge=this.props[0]/_e,Ke=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/_e,Ze=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/_e,ut=new Matrix;return ut.props[0]=Be,ut.props[1]=Ye,ut.props[4]=Le,ut.props[5]=Ge,ut.props[12]=Ke,ut.props[13]=Ze,ut}function ot(_e){var Be=this.getInverseMatrix();return Be.applyToPointArray(_e[0],_e[1],_e[2]||0)}function ct(_e){var Be,Ye=_e.length,Le=[];for(Be=0;Be<Ye;Be+=1)Le[Be]=ot(_e[Be]);return Le}function it(_e,Be,Ye){var Le=createTypedArray("float32",6);if(this.isIdentity())Le[0]=_e[0],Le[1]=_e[1],Le[2]=Be[0],Le[3]=Be[1],Le[4]=Ye[0],Le[5]=Ye[1];else{var Ge=this.props[0],Ke=this.props[1],Ze=this.props[4],ut=this.props[5],pt=this.props[12],xt=this.props[13];Le[0]=_e[0]*Ge+_e[1]*Ze+pt,Le[1]=_e[0]*Ke+_e[1]*ut+xt,Le[2]=Be[0]*Ge+Be[1]*Ze+pt,Le[3]=Be[0]*Ke+Be[1]*ut+xt,Le[4]=Ye[0]*Ge+Ye[1]*Ze+pt,Le[5]=Ye[0]*Ke+Ye[1]*ut+xt}return Le}function ft(_e,Be,Ye){var Le;return this.isIdentity()?Le=[_e,Be,Ye]:Le=[_e*this.props[0]+Be*this.props[4]+Ye*this.props[8]+this.props[12],_e*this.props[1]+Be*this.props[5]+Ye*this.props[9]+this.props[13],_e*this.props[2]+Be*this.props[6]+Ye*this.props[10]+this.props[14]],Le}function dt(_e,Be){if(this.isIdentity())return _e+","+Be;var Ye=this.props;return Math.round((_e*Ye[0]+Be*Ye[4]+Ye[12])*100)/100+","+Math.round((_e*Ye[1]+Be*Ye[5]+Ye[13])*100)/100}function nt(){for(var _e=0,Be=this.props,Ye="matrix3d(",Le=1e4;_e<16;)Ye+=b(Be[_e]*Le)/Le,Ye+=_e===15?")":",",_e+=1;return Ye}function Ne(_e){var Be=1e4;return _e<1e-6&&_e>0||_e>-1e-6&&_e<0?b(_e*Be)/Be:_e}function He(){var _e=this.props,Be=Ne(_e[0]),Ye=Ne(_e[1]),Le=Ne(_e[4]),Ge=Ne(_e[5]),Ke=Ne(_e[12]),Ze=Ne(_e[13]);return"matrix("+Be+","+Ye+","+Le+","+Ge+","+Ke+","+Ze+")"}return function(){this.reset=R,this.rotate=M,this.rotateX=O,this.rotateY=z,this.rotateZ=U,this.skew=q,this.skewFromAxis=J,this.shear=G,this.scale=X,this.setTransform=fe,this.translate=te,this.transform=ue,this.multiply=ye,this.applyToPoint=je,this.applyToX=Ve,this.applyToY=Ue,this.applyToZ=$e,this.applyToPointArray=ft,this.applyToTriplePoints=it,this.applyToPointStringified=dt,this.toCSS=nt,this.to2dCSS=He,this.clone=ae,this.cloneFromProps=pe,this.equals=ne,this.inversePoints=ct,this.inversePoint=ot,this.getInverseMatrix=We,this._t=this.transform,this.isIdentity=oe,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(r){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof$3(r)}var lottie={};function setLocation(r){setLocationHref(r)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(r){setSubframeEnabled(r)}function setPrefix(r){setIdPrefix(r)}function loadAnimation(r){return animationManager.loadAnimation(r)}function setQuality(r){if(typeof r=="string")switch(r){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(r)&&r>1&&setDefaultCurveSegments(r)}function inBrowser(){return typeof navigator<"u"}function installPlugin(r,y){r==="expressions"&&setExpressionsPlugin(y)}function getFactory(r){switch(r){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(r){for(var y=queryString.split("&"),x=0;x<y.length;x+=1){var b=y[x].split("=");if(decodeURIComponent(b[0])==r)return decodeURIComponent(b[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(r){}var ShapeModifiers=(function(){var r={},y={};r.registerModifier=x,r.getModifier=b;function x(R,M){y[R]||(y[R]=M)}function b(R,M,O){return new y[R](M,O)}return r})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var y={shape:r.sh,data:r,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(y),this.addShapeToModifier(y),this._isAnimated&&r.setAsAnimated()}},ShapeModifier.prototype.init=function(r,y){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,y),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(r,y){this.s=PropertyFactory.getProp(r,y.s,0,.01,this),this.e=PropertyFactory.getProp(r,y.e,0,.01,this),this.o=PropertyFactory.getProp(r,y.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=y.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(r){r.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(r,y,x,b,R){var M=[];y<=1?M.push({s:r,e:y}):r>=1?M.push({s:r-1,e:y-1}):(M.push({s:r,e:1}),M.push({s:0,e:y-1}));var O=[],z,U=M.length,G;for(z=0;z<U;z+=1)if(G=M[z],!(G.e*R<b||G.s*R>b+x)){var q,J;G.s*R<=b?q=0:q=(G.s*R-b)/x,G.e*R>=b+x?J=1:J=(G.e*R-b)/x,O.push([q,J])}return O.length||O.push([0,0]),O},TrimModifier.prototype.releasePathsData=function(r){var y,x=r.length;for(y=0;y<x;y+=1)segmentsLengthPool.release(r[y]);return r.length=0,r},TrimModifier.prototype.processShapes=function(r){var y,x;if(this._mdf||r){var b=this.o.v%360/360;if(b<0&&(b+=1),this.s.v>1?y=1+b:this.s.v<0?y=0+b:y=this.s.v+b,this.e.v>1?x=1+b:this.e.v<0?x=0+b:x=this.e.v+b,y>x){var R=y;y=x,x=R}y=Math.round(y*1e4)*1e-4,x=Math.round(x*1e4)*1e-4,this.sValue=y,this.eValue=x}else y=this.sValue,x=this.eValue;var M,O,z=this.shapes.length,U,G,q,J,X,fe=0;if(x===y)for(O=0;O<z;O+=1)this.shapes[O].localShapeCollection.releaseShapes(),this.shapes[O].shape._mdf=!0,this.shapes[O].shape.paths=this.shapes[O].localShapeCollection,this._mdf&&(this.shapes[O].pathsData.length=0);else if(x===1&&y===0||x===0&&y===1){if(this._mdf)for(O=0;O<z;O+=1)this.shapes[O].pathsData.length=0,this.shapes[O].shape._mdf=!0}else{var te=[],ue,ye;for(O=0;O<z;O+=1)if(ue=this.shapes[O],!ue.shape._mdf&&!this._mdf&&!r&&this.m!==2)ue.shape.paths=ue.localShapeCollection;else{if(M=ue.shape.paths,G=M._length,X=0,!ue.shape._mdf&&ue.pathsData.length)X=ue.totalShapeLength;else{for(q=this.releasePathsData(ue.pathsData),U=0;U<G;U+=1)J=bez.getSegmentsLength(M.shapes[U]),q.push(J),X+=J.totalLength;ue.totalShapeLength=X,ue.pathsData=q}fe+=X,ue.shape._mdf=!0}var oe=y,ne=x,ae=0,pe;for(O=z-1;O>=0;O-=1)if(ue=this.shapes[O],ue.shape._mdf){for(ye=ue.localShapeCollection,ye.releaseShapes(),this.m===2&&z>1?(pe=this.calculateShapeEdges(y,x,ue.totalShapeLength,ae,fe),ae+=ue.totalShapeLength):pe=[[oe,ne]],G=pe.length,U=0;U<G;U+=1){oe=pe[U][0],ne=pe[U][1],te.length=0,ne<=1?te.push({s:ue.totalShapeLength*oe,e:ue.totalShapeLength*ne}):oe>=1?te.push({s:ue.totalShapeLength*(oe-1),e:ue.totalShapeLength*(ne-1)}):(te.push({s:ue.totalShapeLength*oe,e:ue.totalShapeLength}),te.push({s:0,e:ue.totalShapeLength*(ne-1)}));var je=this.addShapes(ue,te[0]);if(te[0].s!==te[0].e){if(te.length>1){var Ve=ue.shape.paths.shapes[ue.shape.paths._length-1];if(Ve.c){var Ue=je.pop();this.addPaths(je,ye),je=this.addShapes(ue,te[1],Ue)}else this.addPaths(je,ye),je=this.addShapes(ue,te[1])}this.addPaths(je,ye)}}ue.shape.paths=ye}}},TrimModifier.prototype.addPaths=function(r,y){var x,b=r.length;for(x=0;x<b;x+=1)y.addShape(r[x])},TrimModifier.prototype.addSegment=function(r,y,x,b,R,M,O){R.setXYAt(y[0],y[1],"o",M),R.setXYAt(x[0],x[1],"i",M+1),O&&R.setXYAt(r[0],r[1],"v",M),R.setXYAt(b[0],b[1],"v",M+1)},TrimModifier.prototype.addSegmentFromArray=function(r,y,x,b){y.setXYAt(r[1],r[5],"o",x),y.setXYAt(r[2],r[6],"i",x+1),b&&y.setXYAt(r[0],r[4],"v",x),y.setXYAt(r[3],r[7],"v",x+1)},TrimModifier.prototype.addShapes=function(r,y,x){var b=r.pathsData,R=r.shape.paths.shapes,M,O=r.shape.paths._length,z,U,G=0,q,J,X,fe,te=[],ue,ye=!0;for(x?(J=x._length,ue=x._length):(x=shapePool.newElement(),J=0,ue=0),te.push(x),M=0;M<O;M+=1){for(X=b[M].lengths,x.c=R[M].c,U=R[M].c?X.length:X.length+1,z=1;z<U;z+=1)if(q=X[z-1],G+q.addedLength<y.s)G+=q.addedLength,x.c=!1;else if(G>y.e){x.c=!1;break}else y.s<=G&&y.e>=G+q.addedLength?(this.addSegment(R[M].v[z-1],R[M].o[z-1],R[M].i[z],R[M].v[z],x,J,ye),ye=!1):(fe=bez.getNewSegment(R[M].v[z-1],R[M].v[z],R[M].o[z-1],R[M].i[z],(y.s-G)/q.addedLength,(y.e-G)/q.addedLength,X[z-1]),this.addSegmentFromArray(fe,x,J,ye),ye=!1,x.c=!1),G+=q.addedLength,J+=1;if(R[M].c&&X.length){if(q=X[z-1],G<=y.e){var oe=X[z-1].addedLength;y.s<=G&&y.e>=G+oe?(this.addSegment(R[M].v[z-1],R[M].o[z-1],R[M].i[0],R[M].v[0],x,J,ye),ye=!1):(fe=bez.getNewSegment(R[M].v[z-1],R[M].v[0],R[M].o[z-1],R[M].i[0],(y.s-G)/oe,(y.e-G)/oe,X[z-1]),this.addSegmentFromArray(fe,x,J,ye),ye=!1,x.c=!1)}else x.c=!1;G+=q.addedLength,J+=1}if(x._length&&(x.setXYAt(x.v[ue][0],x.v[ue][1],"i",ue),x.setXYAt(x.v[x._length-1][0],x.v[x._length-1][1],"o",x._length-1)),G>y.e)break;M<O-1&&(x=shapePool.newElement(),ye=!0,te.push(x),J=0)}return te};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(r,y){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(r,y.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(r,y){var x=y/100,b=[0,0],R=r._length,M=0;for(M=0;M<R;M+=1)b[0]+=r.v[M][0],b[1]+=r.v[M][1];b[0]/=R,b[1]/=R;var O=shapePool.newElement();O.c=r.c;var z,U,G,q,J,X;for(M=0;M<R;M+=1)z=r.v[M][0]+(b[0]-r.v[M][0])*x,U=r.v[M][1]+(b[1]-r.v[M][1])*x,G=r.o[M][0]+(b[0]-r.o[M][0])*-x,q=r.o[M][1]+(b[1]-r.o[M][1])*-x,J=r.i[M][0]+(b[0]-r.i[M][0])*-x,X=r.i[M][1]+(b[1]-r.i[M][1])*-x,O.setTripleAt(z,U,G,q,J,X,M);return O},PuckerAndBloatModifier.prototype.processShapes=function(r){var y,x,b=this.shapes.length,R,M,O=this.amount.v;if(O!==0){var z,U;for(x=0;x<b;x+=1){if(z=this.shapes[x],U=z.localShapeCollection,!(!z.shape._mdf&&!this._mdf&&!r))for(U.releaseShapes(),z.shape._mdf=!0,y=z.shape.paths.shapes,M=z.shape.paths._length,R=0;R<M;R+=1)U.addShape(this.processPath(y[R],O));z.shape.paths=z.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var r=[0,0];function y(U){var G=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||G,this.a&&U.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&U.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&U.skewFromAxis(-this.sk.v,this.sa.v),this.r?U.rotate(-this.r.v):U.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?U.translate(this.px.v,this.py.v,-this.pz.v):U.translate(this.px.v,this.py.v,0):U.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function x(U){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||U){var G;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 q,J;if(G=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(q=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/G,0),J=this.p.getValueAtTime(this.p.keyframes[0].t/G,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(q=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/G,0),J=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/G,0)):(q=this.p.pv,J=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/G,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){q=[],J=[];var X=this.px,fe=this.py;X._caching.lastFrame+X.offsetTime<=X.keyframes[0].t?(q[0]=X.getValueAtTime((X.keyframes[0].t+.01)/G,0),q[1]=fe.getValueAtTime((fe.keyframes[0].t+.01)/G,0),J[0]=X.getValueAtTime(X.keyframes[0].t/G,0),J[1]=fe.getValueAtTime(fe.keyframes[0].t/G,0)):X._caching.lastFrame+X.offsetTime>=X.keyframes[X.keyframes.length-1].t?(q[0]=X.getValueAtTime(X.keyframes[X.keyframes.length-1].t/G,0),q[1]=fe.getValueAtTime(fe.keyframes[fe.keyframes.length-1].t/G,0),J[0]=X.getValueAtTime((X.keyframes[X.keyframes.length-1].t-.01)/G,0),J[1]=fe.getValueAtTime((fe.keyframes[fe.keyframes.length-1].t-.01)/G,0)):(q=[X.pv,fe.pv],J[0]=X.getValueAtTime((X._caching.lastFrame+X.offsetTime-.01)/G,X.offsetTime),J[1]=fe.getValueAtTime((fe._caching.lastFrame+fe.offsetTime-.01)/G,fe.offsetTime))}else J=r,q=J;this.v.rotate(-Math.atan2(q[1]-J[1],q[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 b(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function R(){}function M(U){this._addDynamicProperty(U),this.elem.addDynamicProperty(U),this._isDirty=!0}function O(U,G,q){if(this.elem=U,this.frameId=-1,this.propType="transform",this.data=G,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(q||U),G.p&&G.p.s?(this.px=PropertyFactory.getProp(U,G.p.x,0,0,this),this.py=PropertyFactory.getProp(U,G.p.y,0,0,this),G.p.z&&(this.pz=PropertyFactory.getProp(U,G.p.z,0,0,this))):this.p=PropertyFactory.getProp(U,G.p||{k:[0,0,0]},1,0,this),G.rx){if(this.rx=PropertyFactory.getProp(U,G.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(U,G.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(U,G.rz,0,degToRads,this),G.or.k[0].ti){var J,X=G.or.k.length;for(J=0;J<X;J+=1)G.or.k[J].to=null,G.or.k[J].ti=null}this.or=PropertyFactory.getProp(U,G.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(U,G.r||{k:0},0,degToRads,this);G.sk&&(this.sk=PropertyFactory.getProp(U,G.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(U,G.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(U,G.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(U,G.s||{k:[100,100,100]},1,.01,this),G.o?this.o=PropertyFactory.getProp(U,G.o,0,.01,U):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}O.prototype={applyToMatrix:y,getValue:x,precalculateMatrix:b,autoOrient:R},extendPrototype([DynamicPropertyContainer],O),O.prototype.addDynamicProperty=M,O.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function z(U,G,q){return new O(U,G,q)}return{getTransformProperty:z}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(r,y){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(r,y.c,0,null,this),this.o=PropertyFactory.getProp(r,y.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(r,y.tr,this),this.so=PropertyFactory.getProp(r,y.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(r,y.tr.eo,0,.01,this),this.data=y,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(r,y,x,b,R,M){var O=M?-1:1,z=b.s.v[0]+(1-b.s.v[0])*(1-R),U=b.s.v[1]+(1-b.s.v[1])*(1-R);r.translate(b.p.v[0]*O*R,b.p.v[1]*O*R,b.p.v[2]),y.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),y.rotate(-b.r.v*O*R),y.translate(b.a.v[0],b.a.v[1],b.a.v[2]),x.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),x.scale(M?1/z:z,M?1/U:U),x.translate(b.a.v[0],b.a.v[1],b.a.v[2])},RepeaterModifier.prototype.init=function(r,y,x,b){for(this.elem=r,this.arr=y,this.pos=x,this.elemsData=b,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,y[x]);x>0;)x-=1,this._elements.unshift(y[x]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(r){var y,x=r.length;for(y=0;y<x;y+=1)r[y]._processed=!1,r[y].ty==="gr"&&this.resetElements(r[y].it)},RepeaterModifier.prototype.cloneElements=function(r){var y=JSON.parse(JSON.stringify(r));return this.resetElements(y),y},RepeaterModifier.prototype.changeGroupRender=function(r,y){var x,b=r.length;for(x=0;x<b;x+=1)r[x]._render=y,r[x].ty==="gr"&&this.changeGroupRender(r[x].it,y)},RepeaterModifier.prototype.processShapes=function(r){var y,x,b,R,M,O=!1;if(this._mdf||r){var z=Math.ceil(this.c.v);if(this._groups.length<z){for(;this._groups.length<z;){var U={it:this.cloneElements(this._elements),ty:"gr"};U.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,U),this._groups.splice(0,0,U),this._currentCopies+=1}this.elem.reloadShapes(),O=!0}M=0;var G;for(b=0;b<=this._groups.length-1;b+=1){if(G=M<z,this._groups[b]._render=G,this.changeGroupRender(this._groups[b].it,G),!G){var q=this.elemsData[b].it,J=q[q.length-1];J.transform.op.v!==0?(J.transform.op._mdf=!0,J.transform.op.v=0):J.transform.op._mdf=!1}M+=1}this._currentCopies=z;var X=this.o.v,fe=X%1,te=X>0?Math.floor(X):Math.ceil(X),ue=this.pMatrix.props,ye=this.rMatrix.props,oe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ne=0;if(X>0){for(;ne<te;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ne+=1;fe&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,fe,!1),ne+=fe)}else if(X<0){for(;ne>te;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ne-=1;fe&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-fe,!0),ne-=fe)}b=this.data.m===1?0:this._currentCopies-1,R=this.data.m===1?1:-1,M=this._currentCopies;for(var ae,pe;M;){if(y=this.elemsData[b].it,x=y[y.length-1].transform.mProps.v.props,pe=x.length,y[y.length-1].transform.mProps._mdf=!0,y[y.length-1].transform.op._mdf=!0,y[y.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(b/(this._currentCopies-1)),ne!==0){for((b!==0&&R===1||b!==this._currentCopies-1&&R===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],ye[8],ye[9],ye[10],ye[11],ye[12],ye[13],ye[14],ye[15]),this.matrix.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],oe[8],oe[9],oe[10],oe[11],oe[12],oe[13],oe[14],oe[15]),this.matrix.transform(ue[0],ue[1],ue[2],ue[3],ue[4],ue[5],ue[6],ue[7],ue[8],ue[9],ue[10],ue[11],ue[12],ue[13],ue[14],ue[15]),ae=0;ae<pe;ae+=1)x[ae]=this.matrix.props[ae];this.matrix.reset()}else for(this.matrix.reset(),ae=0;ae<pe;ae+=1)x[ae]=this.matrix.props[ae];ne+=1,M-=1,b+=R}}else for(M=this._currentCopies,b=0,R=1;M;)y=this.elemsData[b].it,x=y[y.length-1].transform.mProps.v.props,y[y.length-1].transform.mProps._mdf=!1,y[y.length-1].transform.op._mdf=!1,M-=1,b+=R;return O},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(r,y){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(r,y.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(r,y){var x=shapePool.newElement();x.c=r.c;var b,R=r._length,M,O,z,U,G,q,J=0,X,fe,te,ue,ye,oe;for(b=0;b<R;b+=1)M=r.v[b],z=r.o[b],O=r.i[b],M[0]===z[0]&&M[1]===z[1]&&M[0]===O[0]&&M[1]===O[1]?(b===0||b===R-1)&&!r.c?(x.setTripleAt(M[0],M[1],z[0],z[1],O[0],O[1],J),J+=1):(b===0?U=r.v[R-1]:U=r.v[b-1],G=Math.sqrt(Math.pow(M[0]-U[0],2)+Math.pow(M[1]-U[1],2)),q=G?Math.min(G/2,y)/G:0,ye=M[0]+(U[0]-M[0])*q,X=ye,oe=M[1]-(M[1]-U[1])*q,fe=oe,te=X-(X-M[0])*roundCorner,ue=fe-(fe-M[1])*roundCorner,x.setTripleAt(X,fe,te,ue,ye,oe,J),J+=1,b===R-1?U=r.v[0]:U=r.v[b+1],G=Math.sqrt(Math.pow(M[0]-U[0],2)+Math.pow(M[1]-U[1],2)),q=G?Math.min(G/2,y)/G:0,te=M[0]+(U[0]-M[0])*q,X=te,ue=M[1]+(U[1]-M[1])*q,fe=ue,ye=X-(X-M[0])*roundCorner,oe=fe-(fe-M[1])*roundCorner,x.setTripleAt(X,fe,te,ue,ye,oe,J),J+=1):(x.setTripleAt(r.v[b][0],r.v[b][1],r.o[b][0],r.o[b][1],r.i[b][0],r.i[b][1],J),J+=1);return x},RoundCornersModifier.prototype.processShapes=function(r){var y,x,b=this.shapes.length,R,M,O=this.rd.v;if(O!==0){var z,U;for(x=0;x<b;x+=1){if(z=this.shapes[x],U=z.localShapeCollection,!(!z.shape._mdf&&!this._mdf&&!r))for(U.releaseShapes(),z.shape._mdf=!0,y=z.shape.paths.shapes,M=z.shape.paths._length,R=0;R<M;R+=1)U.addShape(this.processPath(y[R],O));z.shape.paths=z.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(r,y){return Math.abs(r-y)*1e5<=Math.min(Math.abs(r),Math.abs(y))}function floatZero(r){return Math.abs(r)<=1e-5}function lerp(r,y,x){return r*(1-x)+y*x}function lerpPoint(r,y,x){return[lerp(r[0],y[0],x),lerp(r[1],y[1],x)]}function quadRoots(r,y,x){if(r===0)return[];var b=y*y-4*r*x;if(b<0)return[];var R=-y/(2*r);if(b===0)return[R];var M=Math.sqrt(b)/(2*r);return[R-M,R+M]}function polynomialCoefficients(r,y,x,b){return[-r+3*y-3*x+b,3*r-6*y+3*x,-3*r+3*y,r]}function singlePoint(r){return new PolynomialBezier(r,r,r,r,!1)}function PolynomialBezier(r,y,x,b,R){R&&pointEqual(r,y)&&(y=lerpPoint(r,b,1/3)),R&&pointEqual(x,b)&&(x=lerpPoint(r,b,2/3));var M=polynomialCoefficients(r[0],y[0],x[0],b[0]),O=polynomialCoefficients(r[1],y[1],x[1],b[1]);this.a=[M[0],O[0]],this.b=[M[1],O[1]],this.c=[M[2],O[2]],this.d=[M[3],O[3]],this.points=[r,y,x,b]}PolynomialBezier.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},PolynomialBezier.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(r){var y=this.derivative(r);return Math.atan2(y[1],y[0])},PolynomialBezier.prototype.normalAngle=function(r){var y=this.derivative(r);return Math.atan2(y[0],y[1])},PolynomialBezier.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(r))return[];var y=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,x=y*y-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(x<0)return[];var b=Math.sqrt(x);return floatZero(b)?b>0&&b<1?[y]:[]:[y-b,y+b].filter(function(R){return R>0&&R<1})},PolynomialBezier.prototype.split=function(r){if(r<=0)return[singlePoint(this.points[0]),this];if(r>=1)return[this,singlePoint(this.points[this.points.length-1])];var y=lerpPoint(this.points[0],this.points[1],r),x=lerpPoint(this.points[1],this.points[2],r),b=lerpPoint(this.points[2],this.points[3],r),R=lerpPoint(y,x,r),M=lerpPoint(x,b,r),O=lerpPoint(R,M,r);return[new PolynomialBezier(this.points[0],y,R,O,!0),new PolynomialBezier(O,M,b,this.points[3],!0)]};function extrema(r,y){var x=r.points[0][y],b=r.points[r.points.length-1][y];if(x>b){var R=b;b=x,x=R}for(var M=quadRoots(3*r.a[y],2*r.b[y],r.c[y]),O=0;O<M.length;O+=1)if(M[O]>0&&M[O]<1){var z=r.point(M[O])[y];z<x?x=z:z>b&&(b=z)}return{min:x,max:b}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function intersectData(r,y,x){var b=r.boundingBox();return{cx:b.cx,cy:b.cy,width:b.width,height:b.height,bez:r,t:(y+x)/2,t1:y,t2:x}}function splitData(r){var y=r.bez.split(.5);return[intersectData(y[0],r.t1,r.t),intersectData(y[1],r.t,r.t2)]}function boxIntersect(r,y){return Math.abs(r.cx-y.cx)*2<r.width+y.width&&Math.abs(r.cy-y.cy)*2<r.height+y.height}function intersectsImpl(r,y,x,b,R,M){if(boxIntersect(r,y)){if(x>=M||r.width<=b&&r.height<=b&&y.width<=b&&y.height<=b){R.push([r.t,y.t]);return}var O=splitData(r),z=splitData(y);intersectsImpl(O[0],z[0],x+1,b,R,M),intersectsImpl(O[0],z[1],x+1,b,R,M),intersectsImpl(O[1],z[0],x+1,b,R,M),intersectsImpl(O[1],z[1],x+1,b,R,M)}}PolynomialBezier.prototype.intersections=function(r,y,x){y===void 0&&(y=2),x===void 0&&(x=7);var b=[];return intersectsImpl(intersectData(this,0,1),intersectData(r,0,1),0,y,b,x),b},PolynomialBezier.shapeSegment=function(r,y){var x=(y+1)%r.length();return new PolynomialBezier(r.v[y],r.o[y],r.i[x],r.v[x],!0)},PolynomialBezier.shapeSegmentInverted=function(r,y){var x=(y+1)%r.length();return new PolynomialBezier(r.v[x],r.i[x],r.o[y],r.v[y],!0)};function crossProduct(r,y){return[r[1]*y[2]-r[2]*y[1],r[2]*y[0]-r[0]*y[2],r[0]*y[1]-r[1]*y[0]]}function lineIntersection(r,y,x,b){var R=[r[0],r[1],1],M=[y[0],y[1],1],O=[x[0],x[1],1],z=[b[0],b[1],1],U=crossProduct(crossProduct(R,M),crossProduct(O,z));return floatZero(U[2])?null:[U[0]/U[2],U[1]/U[2]]}function polarOffset(r,y,x){return[r[0]+Math.cos(y)*x,r[1]-Math.sin(y)*x]}function pointDistance(r,y){return Math.hypot(r[0]-y[0],r[1]-y[1])}function pointEqual(r,y){return floatEqual(r[0],y[0])&&floatEqual(r[1],y[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(r,y){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(r,y.s,0,null,this),this.frequency=PropertyFactory.getProp(r,y.r,0,null,this),this.pointsType=PropertyFactory.getProp(r,y.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(r,y,x,b,R,M,O){var z=x-Math.PI/2,U=x+Math.PI/2,G=y[0]+Math.cos(x)*b*R,q=y[1]-Math.sin(x)*b*R;r.setTripleAt(G,q,G+Math.cos(z)*M,q-Math.sin(z)*M,G+Math.cos(U)*O,q-Math.sin(U)*O,r.length())}function getPerpendicularVector(r,y){var x=[y[0]-r[0],y[1]-r[1]],b=-Math.PI*.5,R=[Math.cos(b)*x[0]-Math.sin(b)*x[1],Math.sin(b)*x[0]+Math.cos(b)*x[1]];return R}function getProjectingAngle(r,y){var x=y===0?r.length()-1:y-1,b=(y+1)%r.length(),R=r.v[x],M=r.v[b],O=getPerpendicularVector(R,M);return Math.atan2(0,1)-Math.atan2(O[1],O[0])}function zigZagCorner(r,y,x,b,R,M,O){var z=getProjectingAngle(y,x),U=y.v[x%y._length],G=y.v[x===0?y._length-1:x-1],q=y.v[(x+1)%y._length],J=M===2?Math.sqrt(Math.pow(U[0]-G[0],2)+Math.pow(U[1]-G[1],2)):0,X=M===2?Math.sqrt(Math.pow(U[0]-q[0],2)+Math.pow(U[1]-q[1],2)):0;setPoint(r,y.v[x%y._length],z,O,b,X/((R+1)*2),J/((R+1)*2))}function zigZagSegment(r,y,x,b,R,M){for(var O=0;O<b;O+=1){var z=(O+1)/(b+1),U=R===2?Math.sqrt(Math.pow(y.points[3][0]-y.points[0][0],2)+Math.pow(y.points[3][1]-y.points[0][1],2)):0,G=y.normalAngle(z),q=y.point(z);setPoint(r,q,G,M,x,U/((b+1)*2),U/((b+1)*2)),M=-M}return M}ZigZagModifier.prototype.processPath=function(r,y,x,b){var R=r._length,M=shapePool.newElement();if(M.c=r.c,r.c||(R-=1),R===0)return M;var O=-1,z=PolynomialBezier.shapeSegment(r,0);zigZagCorner(M,r,0,y,x,b,O);for(var U=0;U<R;U+=1)O=zigZagSegment(M,z,y,x,b,-O),U===R-1&&!r.c?z=null:z=PolynomialBezier.shapeSegment(r,(U+1)%R),zigZagCorner(M,r,U+1,y,x,b,O);return M},ZigZagModifier.prototype.processShapes=function(r){var y,x,b=this.shapes.length,R,M,O=this.amplitude.v,z=Math.max(0,Math.round(this.frequency.v)),U=this.pointsType.v;if(O!==0){var G,q;for(x=0;x<b;x+=1){if(G=this.shapes[x],q=G.localShapeCollection,!(!G.shape._mdf&&!this._mdf&&!r))for(q.releaseShapes(),G.shape._mdf=!0,y=G.shape.paths.shapes,M=G.shape.paths._length,R=0;R<M;R+=1)q.addShape(this.processPath(y[R],O,z,U));G.shape.paths=G.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(r,y,x){var b=Math.atan2(y[0]-r[0],y[1]-r[1]);return[polarOffset(r,b,x),polarOffset(y,b,x)]}function offsetSegment(r,y){var x,b,R,M,O,z,U;U=linearOffset(r.points[0],r.points[1],y),x=U[0],b=U[1],U=linearOffset(r.points[1],r.points[2],y),R=U[0],M=U[1],U=linearOffset(r.points[2],r.points[3],y),O=U[0],z=U[1];var G=lineIntersection(x,b,R,M);G===null&&(G=b);var q=lineIntersection(O,z,R,M);return q===null&&(q=O),new PolynomialBezier(x,G,q,z)}function joinLines(r,y,x,b,R){var M=y.points[3],O=x.points[0];if(b===3||pointEqual(M,O))return M;if(b===2){var z=-y.tangentAngle(1),U=-x.tangentAngle(0)+Math.PI,G=lineIntersection(M,polarOffset(M,z+Math.PI/2,100),O,polarOffset(O,z+Math.PI/2,100)),q=G?pointDistance(G,M):pointDistance(M,O)/2,J=polarOffset(M,z,2*q*roundCorner);return r.setXYAt(J[0],J[1],"o",r.length()-1),J=polarOffset(O,U,2*q*roundCorner),r.setTripleAt(O[0],O[1],O[0],O[1],J[0],J[1],r.length()),O}var X=pointEqual(M,y.points[2])?y.points[0]:y.points[2],fe=pointEqual(O,x.points[1])?x.points[3]:x.points[1],te=lineIntersection(X,M,O,fe);return te&&pointDistance(te,M)<R?(r.setTripleAt(te[0],te[1],te[0],te[1],te[0],te[1],r.length()),te):M}function getIntersection(r,y){var x=r.intersections(y);return x.length&&floatEqual(x[0][0],1)&&x.shift(),x.length?x[0]:null}function pruneSegmentIntersection(r,y){var x=r.slice(),b=y.slice(),R=getIntersection(r[r.length-1],y[0]);return R&&(x[r.length-1]=r[r.length-1].split(R[0])[0],b[0]=y[0].split(R[1])[1]),r.length>1&&y.length>1&&(R=getIntersection(r[0],y[y.length-1]),R)?[[r[0].split(R[0])[0]],[y[y.length-1].split(R[1])[1]]]:[x,b]}function pruneIntersections(r){for(var y,x=1;x<r.length;x+=1)y=pruneSegmentIntersection(r[x-1],r[x]),r[x-1]=y[0],r[x]=y[1];return r.length>1&&(y=pruneSegmentIntersection(r[r.length-1],r[0]),r[r.length-1]=y[0],r[0]=y[1]),r}function offsetSegmentSplit(r,y){var x=r.inflectionPoints(),b,R,M,O;if(x.length===0)return[offsetSegment(r,y)];if(x.length===1||floatEqual(x[1],1))return M=r.split(x[0]),b=M[0],R=M[1],[offsetSegment(b,y),offsetSegment(R,y)];M=r.split(x[0]),b=M[0];var z=(x[1]-x[0])/(1-x[0]);return M=M[1].split(z),O=M[0],R=M[1],[offsetSegment(b,y),offsetSegment(O,y),offsetSegment(R,y)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(r,y){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(r,y.a,0,null,this),this.miterLimit=PropertyFactory.getProp(r,y.ml,0,null,this),this.lineJoin=y.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(r,y,x,b){var R=shapePool.newElement();R.c=r.c;var M=r.length();r.c||(M-=1);var O,z,U,G=[];for(O=0;O<M;O+=1)U=PolynomialBezier.shapeSegment(r,O),G.push(offsetSegmentSplit(U,y));if(!r.c)for(O=M-1;O>=0;O-=1)U=PolynomialBezier.shapeSegmentInverted(r,O),G.push(offsetSegmentSplit(U,y));G=pruneIntersections(G);var q=null,J=null;for(O=0;O<G.length;O+=1){var X=G[O];for(J&&(q=joinLines(R,J,X[0],x,b)),J=X[X.length-1],z=0;z<X.length;z+=1)U=X[z],q&&pointEqual(U.points[0],q)?R.setXYAt(U.points[1][0],U.points[1][1],"o",R.length()-1):R.setTripleAt(U.points[0][0],U.points[0][1],U.points[1][0],U.points[1][1],U.points[0][0],U.points[0][1],R.length()),R.setTripleAt(U.points[3][0],U.points[3][1],U.points[3][0],U.points[3][1],U.points[2][0],U.points[2][1],R.length()),q=U.points[3]}return G.length&&joinLines(R,J,G[0][0],x,b),R},OffsetPathModifier.prototype.processShapes=function(r){var y,x,b=this.shapes.length,R,M,O=this.amount.v,z=this.miterLimit.v,U=this.lineJoin;if(O!==0){var G,q;for(x=0;x<b;x+=1){if(G=this.shapes[x],q=G.localShapeCollection,!(!G.shape._mdf&&!this._mdf&&!r))for(q.releaseShapes(),G.shape._mdf=!0,y=G.shape.paths.shapes,M=G.shape.paths._length,R=0;R<M;R+=1)q.addShape(this.processPath(y[R],O,U,z));G.shape.paths=G.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(r){for(var y=r.fStyle?r.fStyle.split(" "):[],x="normal",b="normal",R=y.length,M,O=0;O<R;O+=1)switch(M=y[O].toLowerCase(),M){case"italic":b="italic";break;case"bold":x="700";break;case"black":x="900";break;case"medium":x="500";break;case"regular":case"normal":x="400";break;case"light":case"thin":x="200";break}return{style:b,weight:r.fWeight||x}}var FontManager=(function(){var r=5e3,y={w:0,size:0,shapes:[],data:{shapes:[]}},x=[];x=x.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var b=127988,R=917631,M=917601,O=917626,z=65039,U=8205,G=127462,q=127487,J=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function X(Ne){var He=Ne.split(","),_e,Be=He.length,Ye=[];for(_e=0;_e<Be;_e+=1)He[_e]!=="sans-serif"&&He[_e]!=="monospace"&&Ye.push(He[_e]);return Ye.join(",")}function fe(Ne,He){var _e=createTag("span");_e.setAttribute("aria-hidden",!0),_e.style.fontFamily=He;var Be=createTag("span");Be.innerText="giItT1WQy@!-/#",_e.style.position="absolute",_e.style.left="-10000px",_e.style.top="-10000px",_e.style.fontSize="300px",_e.style.fontVariant="normal",_e.style.fontStyle="normal",_e.style.fontWeight="normal",_e.style.letterSpacing="0",_e.appendChild(Be),document.body.appendChild(_e);var Ye=Be.offsetWidth;return Be.style.fontFamily=X(Ne)+", "+He,{node:Be,w:Ye,parent:_e}}function te(){var Ne,He=this.fonts.length,_e,Be,Ye=He;for(Ne=0;Ne<He;Ne+=1)this.fonts[Ne].loaded?Ye-=1:this.fonts[Ne].fOrigin==="n"||this.fonts[Ne].origin===0?this.fonts[Ne].loaded=!0:(_e=this.fonts[Ne].monoCase.node,Be=this.fonts[Ne].monoCase.w,_e.offsetWidth!==Be?(Ye-=1,this.fonts[Ne].loaded=!0):(_e=this.fonts[Ne].sansCase.node,Be=this.fonts[Ne].sansCase.w,_e.offsetWidth!==Be&&(Ye-=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)));Ye!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function ue(Ne,He){var _e=document.body&&He?"svg":"canvas",Be,Ye=getFontProperties(Ne);if(_e==="svg"){var Le=createNS("text");Le.style.fontSize="100px",Le.setAttribute("font-family",Ne.fFamily),Le.setAttribute("font-style",Ye.style),Le.setAttribute("font-weight",Ye.weight),Le.textContent="1",Ne.fClass?(Le.style.fontFamily="inherit",Le.setAttribute("class",Ne.fClass)):Le.style.fontFamily=Ne.fFamily,He.appendChild(Le),Be=Le}else{var Ge=new OffscreenCanvas(500,500).getContext("2d");Ge.font=Ye.style+" "+Ye.weight+" 100px "+Ne.fFamily,Be=Ge}function Ke(Ze){return _e==="svg"?(Be.textContent=Ze,Be.getComputedTextLength()):Be.measureText(Ze).width}return{measureText:Ke}}function ye(Ne,He){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(Nt){Nt.helper=ue(Nt),Nt.cache={}}),this.fonts=Ne.list;return}var _e=Ne.list,Be,Ye=_e.length,Le=Ye;for(Be=0;Be<Ye;Be+=1){var Ge=!0,Ke,Ze;if(_e[Be].loaded=!1,_e[Be].monoCase=fe(_e[Be].fFamily,"monospace"),_e[Be].sansCase=fe(_e[Be].fFamily,"sans-serif"),!_e[Be].fPath)_e[Be].loaded=!0,Le-=1;else if(_e[Be].fOrigin==="p"||_e[Be].origin===3){if(Ke=document.querySelectorAll('style[f-forigin="p"][f-family="'+_e[Be].fFamily+'"], style[f-origin="3"][f-family="'+_e[Be].fFamily+'"]'),Ke.length>0&&(Ge=!1),Ge){var ut=createTag("style");ut.setAttribute("f-forigin",_e[Be].fOrigin),ut.setAttribute("f-origin",_e[Be].origin),ut.setAttribute("f-family",_e[Be].fFamily),ut.type="text/css",ut.innerText="@font-face {font-family: "+_e[Be].fFamily+"; font-style: normal; src: url('"+_e[Be].fPath+"');}",He.appendChild(ut)}}else if(_e[Be].fOrigin==="g"||_e[Be].origin===1){for(Ke=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ze=0;Ze<Ke.length;Ze+=1)Ke[Ze].href.indexOf(_e[Be].fPath)!==-1&&(Ge=!1);if(Ge){var pt=createTag("link");pt.setAttribute("f-forigin",_e[Be].fOrigin),pt.setAttribute("f-origin",_e[Be].origin),pt.type="text/css",pt.rel="stylesheet",pt.href=_e[Be].fPath,document.body.appendChild(pt)}}else if(_e[Be].fOrigin==="t"||_e[Be].origin===2){for(Ke=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ze=0;Ze<Ke.length;Ze+=1)_e[Be].fPath===Ke[Ze].src&&(Ge=!1);if(Ge){var xt=createTag("link");xt.setAttribute("f-forigin",_e[Be].fOrigin),xt.setAttribute("f-origin",_e[Be].origin),xt.setAttribute("rel","stylesheet"),xt.setAttribute("href",_e[Be].fPath),He.appendChild(xt)}}_e[Be].helper=ue(_e[Be],He),_e[Be].cache={},this.fonts.push(_e[Be])}Le===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function oe(Ne){if(Ne){this.chars||(this.chars=[]);var He,_e=Ne.length,Be,Ye=this.chars.length,Le;for(He=0;He<_e;He+=1){for(Be=0,Le=!1;Be<Ye;)this.chars[Be].style===Ne[He].style&&this.chars[Be].fFamily===Ne[He].fFamily&&this.chars[Be].ch===Ne[He].ch&&(Le=!0),Be+=1;Le||(this.chars.push(Ne[He]),Ye+=1)}}}function ne(Ne,He,_e){for(var Be=0,Ye=this.chars.length;Be<Ye;){if(this.chars[Be].ch===Ne&&this.chars[Be].style===He&&this.chars[Be].fFamily===_e)return this.chars[Be];Be+=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,He,_e)),y}function ae(Ne,He,_e){var Be=this.getFontByName(He),Ye=Ne;if(!Be.cache[Ye]){var Le=Be.helper;if(Ne===" "){var Ge=Le.measureText("|"+Ne+"|"),Ke=Le.measureText("||");Be.cache[Ye]=(Ge-Ke)/100}else Be.cache[Ye]=Le.measureText(Ne)/100}return Be.cache[Ye]*_e}function pe(Ne){for(var He=0,_e=this.fonts.length;He<_e;){if(this.fonts[He].fName===Ne)return this.fonts[He];He+=1}return this.fonts[0]}function je(Ne){var He=0,_e=Ne.charCodeAt(0);if(_e>=55296&&_e<=56319){var Be=Ne.charCodeAt(1);Be>=56320&&Be<=57343&&(He=(_e-55296)*1024+Be-56320+65536)}return He}function Ve(Ne,He){var _e=Ne.toString(16)+He.toString(16);return J.indexOf(_e)!==-1}function Ue(Ne){return Ne===U}function $e(Ne){return Ne===z}function We(Ne){var He=je(Ne);return He>=G&&He<=q}function ot(Ne){return We(Ne.substr(0,2))&&We(Ne.substr(2,2))}function ct(Ne){return x.indexOf(Ne)!==-1}function it(Ne,He){var _e=je(Ne.substr(He,2));if(_e!==b)return!1;var Be=0;for(He+=2;Be<5;){if(_e=je(Ne.substr(He,2)),_e<M||_e>O)return!1;Be+=1,He+=2}return je(Ne.substr(He,2))===R}function ft(){this.isLoaded=!0}var dt=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)};dt.isModifier=Ve,dt.isZeroWidthJoiner=Ue,dt.isFlagEmoji=ot,dt.isRegionalCode=We,dt.isCombinedCharacter=ct,dt.isRegionalFlag=it,dt.isVariationSelector=$e,dt.BLACK_FLAG_CODE_POINT=b;var nt={addChars:oe,addFonts:ye,getCharData:ne,getFontByName:pe,measureText:ae,checkLoadedFonts:te,setIsLoaded:ft};return dt.prototype=nt,dt})();function SlotManager(r){this.animationData=r}SlotManager.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function slotFactory(r){return new SlotManager(r)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(y){this.renderableComponents.indexOf(y)===-1&&this.renderableComponents.push(y)},removeRenderableComponent:function(y){this.renderableComponents.indexOf(y)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(y),1)},prepareRenderableFrame:function(y){this.checkLayerLimits(y)},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(y){this.data.ip-this.data.st<=y&&this.data.op-this.data.st>y?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 y,x=this.renderableComponents.length;for(y=0;y<x;y+=1)this.renderableComponents[y].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 r={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(y){return r[y]||""}})();function SliderEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,0,0,x)}function AngleEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,0,0,x)}function ColorEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,1,0,x)}function PointEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,1,0,x)}function LayerIndexEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,0,0,x)}function MaskIndexEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,0,0,x)}function CheckboxEffect(r,y,x){this.p=PropertyFactory.getProp(y,r.v,0,0,x)}function NoValueEffect(){this.p={}}function EffectsManager(r,y){var x=r.ef||[];this.effectElements=[];var b,R=x.length,M;for(b=0;b<R;b+=1)M=new GroupEffect(x[b],y),this.effectElements.push(M)}function GroupEffect(r,y){this.init(r,y)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(r,y){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(y);var x,b=this.data.ef.length,R,M=this.data.ef;for(x=0;x<b;x+=1){switch(R=null,M[x].ty){case 0:R=new SliderEffect(M[x],y,this);break;case 1:R=new AngleEffect(M[x],y,this);break;case 2:R=new ColorEffect(M[x],y,this);break;case 3:R=new PointEffect(M[x],y,this);break;case 4:case 7:R=new CheckboxEffect(M[x],y,this);break;case 10:R=new LayerIndexEffect(M[x],y,this);break;case 11:R=new MaskIndexEffect(M[x],y,this);break;case 5:R=new EffectsManager(M[x],y);break;default:R=new NoValueEffect(M[x]);break}R&&this.effectElements.push(R)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var y=0,x=this.data.masksProperties.length;y<x;){if(this.data.masksProperties[y].mode!=="n"&&this.data.masksProperties[y].cl!==!1)return!0;y+=1}return!1},initExpressions:function(){var y=getExpressionInterfaces();if(y){var x=y("layer"),b=y("effects"),R=y("shape"),M=y("text"),O=y("comp");this.layerInterface=x(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var z=b.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(z),this.data.ty===0||this.data.xt?this.compInterface=O(this):this.data.ty===4?(this.layerInterface.shapeInterface=R(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=M(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var y=getBlendMode(this.data.bm),x=this.baseElement||this.layerElement;x.style["mix-blend-mode"]=y},initBaseData:function(y,x,b){this.globalData=x,this.comp=b,this.data=y,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(y,x){var b,R=this.dynamicProperties.length;for(b=0;b<R;b+=1)(x||this._isParent&&this.dynamicProperties[b].propType==="transform")&&(this.dynamicProperties[b].getValue(),this.dynamicProperties[b]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(y){this.dynamicProperties.indexOf(y)===-1&&this.dynamicProperties.push(y)}};function FootageElement(r,y,x){this.initFrame(),this.initRenderable(),this.assetData=y.getAssetData(r.refId),this.footageData=y.imageLoader.getAsset(this.assetData),this.initBaseData(r,y,x)}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 r=getExpressionInterfaces();if(r){var y=r("footage");this.layerInterface=y(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(r,y,x){this.initFrame(),this.initRenderable(),this.assetData=y.getAssetData(r.refId),this.initBaseData(r,y,x),this._isPlaying=!1,this._canPlay=!1;var b=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(b),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?PropertyFactory.getProp(this,r.tm,0,y.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var y=this.tm.v;this._currentTime=y}this._volume=this.lv.v[0];var x=this._volume*this._volumeMultiplier;this._previousVolume!==x&&(this._previousVolume=x,this.audio.volume(x))},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(r){this.audio.rate(r)},AudioElement.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*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(r){var y,x=this.layers.length,b;for(this.completeLayers=!0,y=x-1;y>=0;y-=1)this.elements[y]||(b=this.layers[y],b.ip-b.st<=r-this.layers[y].st&&b.op-b.st>r-this.layers[y].st&&this.buildItem(y)),this.completeLayers=this.elements[y]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(r){return new AudioElement(r,this.globalData,this)},BaseRenderer.prototype.createFootage=function(r){return new FootageElement(r,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var r,y=this.layers.length;for(r=0;r<y;r+=1)this.buildItem(r);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(r){this.completeLayers=!1;var y,x=r.length,b,R=this.layers.length;for(y=0;y<x;y+=1)for(b=0;b<R;){if(this.layers[b].id===r[y].id){this.layers[b]=r[y];break}b+=1}},BaseRenderer.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(r,y,x){for(var b=this.elements,R=this.layers,M=0,O=R.length;M<O;)R[M].ind==y&&(!b[M]||b[M]===!0?(this.buildItem(M),this.addPendingElement(r)):(x.push(b[M]),b[M].setAsParent(),R[M].parent!==void 0?this.buildElementParenting(r,R[M].parent,x):r.setHierarchy(x))),M+=1},BaseRenderer.prototype.addPendingElement=function(r){this.pendingElements.push(r)},BaseRenderer.prototype.searchExtraCompositions=function(r){var y,x=r.length;for(y=0;y<x;y+=1)if(r[y].xt){var b=this.createComp(r[y]);b.initExpressions(),this.globalData.projectInterface.registerComposition(b)}},BaseRenderer.prototype.getElementById=function(r){var y,x=this.elements.length;for(y=0;y<x;y+=1)if(this.elements[y].data.ind===r)return this.elements[y];return null},BaseRenderer.prototype.getElementByPath=function(r){var y=r.shift(),x;if(typeof y=="number")x=this.elements[y];else{var b,R=this.elements.length;for(b=0;b<R;b+=1)if(this.elements[b].data.nm===y){x=this.elements[b];break}}return r.length===0?x:x.getElementByPath(r)},BaseRenderer.prototype.setupGlobalData=function(r,y){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,y),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=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var y=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:y,localMat:y,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 y,x=this.finalTransform.mat,b=0,R=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;b<R;){if(this.hierarchy[b].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}b+=1}if(this.finalTransform._matMdf)for(y=this.finalTransform.mProp.v.props,x.cloneFromProps(y),b=0;b<R;b+=1)x.multiply(this.hierarchy[b].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 y=0,x=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;y<x;)this.localTransforms[y]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[y]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),y+=1;if(this.finalTransform._localMatMdf){var b=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(b),y=1;y<x;y+=1){var R=this.localTransforms[y].matrix;b.multiply(R)}b.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var M=this.finalTransform.localOpacity;for(y=0;y<x;y+=1)M*=this.localTransforms[y].opacity*.01;this.finalTransform.localOpacity=M}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var y=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(y.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var x=0,b=y.length;for(x=0;x<b;x+=1)this.localTransforms.push(y[x])}}},globalToLocal:function(y){var x=[];x.push(this.finalTransform);for(var b=!0,R=this.comp;b;)R.finalTransform?(R.data.hasMask&&x.splice(0,0,R.finalTransform),R=R.comp):b=!1;var M,O=x.length,z;for(M=0;M<O;M+=1)z=x[M].mat.applyToPointArray(0,0,0),y=[y[0]-z[0],y[1]-z[1],0];return y},mHelper:new Matrix};function MaskElement(r,y,x){this.data=r,this.element=y,this.globalData=x,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var b=this.globalData.defs,R,M=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(M),this.solidPath="";var O,z=this.masksProperties,U=0,G=[],q,J,X=createElementID(),fe,te,ue,ye,oe="clipPath",ne="clip-path";for(R=0;R<M;R+=1)if((z[R].mode!=="a"&&z[R].mode!=="n"||z[R].inv||z[R].o.k!==100||z[R].o.x)&&(oe="mask",ne="mask"),(z[R].mode==="s"||z[R].mode==="i")&&U===0?(fe=createNS("rect"),fe.setAttribute("fill","#ffffff"),fe.setAttribute("width",this.element.comp.data.w||0),fe.setAttribute("height",this.element.comp.data.h||0),G.push(fe)):fe=null,O=createNS("path"),z[R].mode==="n")this.viewData[R]={op:PropertyFactory.getProp(this.element,z[R].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,z[R],3),elem:O,lastPath:""},b.appendChild(O);else{U+=1,O.setAttribute("fill",z[R].mode==="s"?"#000000":"#ffffff"),O.setAttribute("clip-rule","nonzero");var ae;if(z[R].x.k!==0?(oe="mask",ne="mask",ye=PropertyFactory.getProp(this.element,z[R].x,0,null,this.element),ae=createElementID(),te=createNS("filter"),te.setAttribute("id",ae),ue=createNS("feMorphology"),ue.setAttribute("operator","erode"),ue.setAttribute("in","SourceGraphic"),ue.setAttribute("radius","0"),te.appendChild(ue),b.appendChild(te),O.setAttribute("stroke",z[R].mode==="s"?"#000000":"#ffffff")):(ue=null,ye=null),this.storedData[R]={elem:O,x:ye,expan:ue,lastPath:"",lastOperator:"",filterId:ae,lastRadius:0},z[R].mode==="i"){J=G.length;var pe=createNS("g");for(q=0;q<J;q+=1)pe.appendChild(G[q]);var je=createNS("mask");je.setAttribute("mask-type","alpha"),je.setAttribute("id",X+"_"+U),je.appendChild(O),b.appendChild(je),pe.setAttribute("mask","url("+getLocationHref()+"#"+X+"_"+U+")"),G.length=0,G.push(pe)}else G.push(O);z[R].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[R]={elem:O,lastPath:"",op:PropertyFactory.getProp(this.element,z[R].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,z[R],3),invRect:fe},this.viewData[R].prop.k||this.drawPath(z[R],this.viewData[R].prop.v,this.viewData[R])}for(this.maskElement=createNS(oe),M=G.length,R=0;R<M;R+=1)this.maskElement.appendChild(G[R]);U>0&&(this.maskElement.setAttribute("id",X),this.element.maskedElement.setAttribute(ne,"url("+getLocationHref()+"#"+X+")"),b.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(r){return this.viewData[r].prop},MaskElement.prototype.renderFrame=function(r){var y=this.element.finalTransform.mat,x,b=this.masksProperties.length;for(x=0;x<b;x+=1)if((this.viewData[x].prop._mdf||r)&&this.drawPath(this.masksProperties[x],this.viewData[x].prop.v,this.viewData[x]),(this.viewData[x].op._mdf||r)&&this.viewData[x].elem.setAttribute("fill-opacity",this.viewData[x].op.v),this.masksProperties[x].mode!=="n"&&(this.viewData[x].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[x].invRect.setAttribute("transform",y.getInverseMatrix().to2dCSS()),this.storedData[x].x&&(this.storedData[x].x._mdf||r))){var R=this.storedData[x].expan;this.storedData[x].x.v<0?(this.storedData[x].lastOperator!=="erode"&&(this.storedData[x].lastOperator="erode",this.storedData[x].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[x].filterId+")")),R.setAttribute("radius",-this.storedData[x].x.v)):(this.storedData[x].lastOperator!=="dilate"&&(this.storedData[x].lastOperator="dilate",this.storedData[x].elem.setAttribute("filter",null)),this.storedData[x].elem.setAttribute("stroke-width",this.storedData[x].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},MaskElement.prototype.drawPath=function(r,y,x){var b=" M"+y.v[0][0]+","+y.v[0][1],R,M;for(M=y._length,R=1;R<M;R+=1)b+=" C"+y.o[R-1][0]+","+y.o[R-1][1]+" "+y.i[R][0]+","+y.i[R][1]+" "+y.v[R][0]+","+y.v[R][1];if(y.c&&M>1&&(b+=" C"+y.o[R-1][0]+","+y.o[R-1][1]+" "+y.i[0][0]+","+y.i[0][1]+" "+y.v[0][0]+","+y.v[0][1]),x.lastPath!==b){var O="";x.elem&&(y.c&&(O=r.inv?this.solidPath+b:b),x.elem.setAttribute("d",O)),x.lastPath=b}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var r={};r.createFilter=y,r.createAlphaToLuminanceFilter=x;function y(b,R){var M=createNS("filter");return M.setAttribute("id",b),R!==!0&&(M.setAttribute("filterUnits","objectBoundingBox"),M.setAttribute("x","0%"),M.setAttribute("y","0%"),M.setAttribute("width","100%"),M.setAttribute("height","100%")),M}function x(){var b=createNS("feColorMatrix");return b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),b}return r})(),featureSupport=(function(){var r={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))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(r){var y,x="SourceGraphic",b=r.data.ef?r.data.ef.length:0,R=createElementID(),M=filtersFactory.createFilter(R,!0),O=0;this.filters=[];var z;for(y=0;y<b;y+=1){z=null;var U=r.data.ef[y].ty;if(registeredEffects$1[U]){var G=registeredEffects$1[U].effect;z=new G(M,r.effectsManager.effectElements[y],r,idPrefix+O,x),x=idPrefix+O,registeredEffects$1[U].countsAsEffect&&(O+=1)}z&&this.filters.push(z)}O&&(r.globalData.defs.appendChild(M),r.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+R+")")),this.filters.length&&r.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(r){var y,x=this.filters.length;for(y=0;y<x;y+=1)this.filters[y].renderFrame(r)},SVGEffects.prototype.getEffects=function(r){var y,x=this.filters.length,b=[];for(y=0;y<x;y+=1)this.filters[y].type===r&&b.push(this.filters[y]);return b};function registerEffect$1(r,y,x){registeredEffects$1[r]={effect:y,countsAsEffect:x}}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 y=null;if(this.data.td){this.matteMasks={};var x=createNS("g");x.setAttribute("id",this.layerId),x.appendChild(this.layerElement),y=x,this.globalData.defs.appendChild(x)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),y=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var b=createNS("clipPath"),R=createNS("path");R.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var M=createElementID();if(b.setAttribute("id",M),b.appendChild(R),this.globalData.defs.appendChild(b),this.checkMasks()){var O=createNS("g");O.setAttribute("clip-path","url("+getLocationHref()+"#"+M+")"),O.appendChild(this.layerElement),this.transformedElement=O,y?y.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+M+")")}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("op
296acity",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(y){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[y]){var x=this.layerId+"_"+y,b,R,M,O;if(y===1||y===3){var z=createNS("mask");z.setAttribute("id",x),z.setAttribute("mask-type",y===3?"luminance":"alpha"),M=createNS("use"),M.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),z.appendChild(M),this.globalData.defs.appendChild(z),!featureSupport.maskType&&y===1&&(z.setAttribute("mask-type","luminance"),b=createElementID(),R=filtersFactory.createFilter(b),this.globalData.defs.appendChild(R),R.appendChild(filtersFactory.createAlphaToLuminanceFilter()),O=createNS("g"),O.appendChild(M),z.appendChild(O),O.setAttribute("filter","url("+getLocationHref()+"#"+b+")"))}else if(y===2){var U=createNS("mask");U.setAttribute("id",x),U.setAttribute("mask-type","alpha");var G=createNS("g");U.appendChild(G),b=createElementID(),R=filtersFactory.createFilter(b);var q=createNS("feComponentTransfer");q.setAttribute("in","SourceGraphic"),R.appendChild(q);var J=createNS("feFuncA");J.setAttribute("type","table"),J.setAttribute("tableValues","1.0 0.0"),q.appendChild(J),this.globalData.defs.appendChild(R);var X=createNS("rect");X.setAttribute("width",this.comp.data.w),X.setAttribute("height",this.comp.data.h),X.setAttribute("x","0"),X.setAttribute("y","0"),X.setAttribute("fill","#ffffff"),X.setAttribute("opacity","0"),G.setAttribute("filter","url("+getLocationHref()+"#"+b+")"),G.appendChild(X),M=createNS("use"),M.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),G.appendChild(M),featureSupport.maskType||(U.setAttribute("mask-type","luminance"),R.appendChild(filtersFactory.createAlphaToLuminanceFilter()),O=createNS("g"),G.appendChild(X),O.appendChild(this.layerElement),G.appendChild(O)),this.globalData.defs.appendChild(U)}this.matteMasks[y]=x}return this.matteMasks[y]},setMatte:function(y){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+y+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(y){this.hierarchy=y},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var r={initElement:function(x,b,R){this.initFrame(),this.initBaseData(x,b,R),this.initTransform(x,b,R),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var x=this.baseElement||this.layerElement;x.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var x=this.baseElement||this.layerElement;x.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(x){this._mdf=!1,this.prepareRenderableFrame(x),this.prepareProperties(x,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(r)],RenderableDOMElement)})();function IImageElement(r,y,x){this.assetData=y.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=y.slotManager.getProp(this.assetData)),this.initElement(r,y,x),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 r=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",r),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(r,y){this.elem=r,this.pos=y}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(y){var x,b=this.shapeModifiers.length;for(x=0;x<b;x+=1)this.shapeModifiers[x].addShape(y)},isShapeInAnimatedModifiers:function(y){for(var x=0,b=this.shapeModifiers.length;x<b;)if(this.shapeModifiers[x].isAnimatedWithShape(y))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var y,x=this.shapes.length;for(y=0;y<x;y+=1)this.shapes[y].sh.reset();x=this.shapeModifiers.length;var b;for(y=x-1;y>=0&&(b=this.shapeModifiers[y].processShapes(this._isFirstFrame),!b);y-=1);}},searchProcessedElement:function(y){for(var x=this.processedElements,b=0,R=x.length;b<R;){if(x[b].elem===y)return x[b].pos;b+=1}return 0},addProcessedElement:function(y,x){for(var b=this.processedElements,R=b.length;R;)if(R-=1,b[R].elem===y){b[R].pos=x;return}b.push(new ProcessedElement(y,x))},prepareFrame:function(y){this.prepareRenderableFrame(y),this.prepareProperties(y,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(r,y,x){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=x,this.lvl=y,this._isAnimated=!!x.k;for(var b=0,R=r.length;b<R;){if(r[b].mProps.dynamicProperties.length){this._isAnimated=!0;break}b+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(r,y){this.data=r,this.type=r.ty,this.d="",this.lvl=y,this._mdf=!1,this.closed=r.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(r,y,x,b){this.elem=r,this.frameId=-1,this.dataProps=createSizedArray(y.length),this.renderer=x,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",y.length?y.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(b);var R,M=y.length||0,O;for(R=0;R<M;R+=1)O=PropertyFactory.getProp(r,y[R].v,0,0,this),this.k=O.k||this.k,this.dataProps[R]={n:y[R].n,p:O};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&
vendor: 18,858 bytes, line 296
296!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var y=0,x=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),y=0;y<x;y+=1)this.dataProps[y].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[y].p.v:this.dashArray[y]=this.dataProps[y].p.v:this.dashoffset[0]=this.dataProps[y].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(r,y,x){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(r,y.o,0,.01,this),this.w=PropertyFactory.getProp(r,y.w,0,null,this),this.d=new DashProperty(r,y.d||{},"svg",this),this.c=PropertyFactory.getProp(r,y.c,1,255,this),this.style=x,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(r,y,x){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(r,y.o,0,.01,this),this.c=PropertyFactory.getProp(r,y.c,1,255,this),this.style=x}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(r,y,x){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=x}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(r,y,x){this.data=y,this.c=createTypedArray("uint8c",y.p*4);var b=y.k.k[0].s?y.k.k[0].s.length-y.p*4:y.k.k.length-y.p*4;this.o=createTypedArray("float32",b),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=b,this.initDynamicPropertyContainer(x),this.prop=PropertyFactory.getProp(r,y.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(r,y){for(var x=0,b=this.o.length/2,R;x<b;){if(R=Math.abs(r[x*4]-r[y*4+x*2]),R>.01)return!1;x+=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 r=0,y=this.data.k.k.length;r<y;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var y,x=this.data.p*4,b,R;for(y=0;y<x;y+=1)b=y%4===0?100:255,R=Math.round(this.prop.v[y]*b),this.c[y]!==R&&(this.c[y]=R,this._cmdf=!r);if(this.o.length)for(x=this.prop.v.length,y=this.data.p*4;y<x;y+=1)b=y%2===0?100:1,R=y%2===0?Math.round(this.prop.v[y]*100):this.prop.v[y],this.o[y-this.data.p*4]!==R&&(this.o[y-this.data.p*4]=R,this._omdf=!r);this._mdf=!r}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(r,y,x){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,y,x)}SVGGradientFillStyleData.prototype.initGradientData=function(r,y,x){this.o=PropertyFactory.getProp(r,y.o,0,.01,this),this.s=PropertyFactory.getProp(r,y.s,1,null,this),this.e=PropertyFactory.getProp(r,y.e,1,null,this),this.h=PropertyFactory.getProp(r,y.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(r,y.a||{k:0},0,degToRads,this),this.g=new GradientProperty(r,y.g,this),this.style=x,this.stops=[],this.setGradientData(x.pElem,y),this.setGradientOpacity(y,x),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(r,y){var x=createElementID(),b=createNS(y.t===1?"linearGradient":"radialGradient");b.setAttribute("id",x),b.setAttribute("spreadMethod","pad"),b.setAttribute("gradientUnits","userSpaceOnUse");var R=[],M,O,z;for(z=y.g.p*4,O=0;O<z;O+=4)M=createNS("stop"),b.appendChild(M),R.push(M);r.setAttribute(y.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+x+")"),this.gf=b,this.cst=R},SVGGradientFillStyleData.prototype.setGradientOpacity=function(r,y){if(this.g._hasOpacity&&!this.g._collapsable){var x,b,R,M=createNS("mask"),O=createNS("path");M.appendChild(O);var z=createElementID(),U=createElementID();M.setAttribute("id",U);var G=createNS(r.t===1?"linearGradient":"radialGradient");G.setAttribute("id",z),G.setAttribute("spreadMethod","pad"),G.setAttribute("gradientUnits","userSpaceOnUse"),R=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var q=this.stops;for(b=r.g.p*4;b<R;b+=2)x=createNS("stop"),x.setAttribute("stop-color","rgb(255,255,255)"),G.appendChild(x),q.push(x);O.setAttribute(r.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+z+")"),r.ty==="gs"&&(O.setAttribute("stroke-linecap",lineCapEnum[r.lc||2]),O.setAttribute("stroke-linejoin",lineJoinEnum[r.lj||2]),r.lj===1&&O.setAttribute("stroke-miterlimit",r.ml)),this.of=G,this.ms=M,this.ost=q,this.maskId=U,y.msElem=O}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(r,y,x){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(r,y.w,0,null,this),this.d=new DashProperty(r,y.d||{},"svg",this),this.initGradientData(r,y,x),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(r,y,x){this.transform={mProps:r,op:y,container:x},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(y,x,b,R){if(x===0)return"";var M=y.o,O=y.i,z=y.v,U,G=" M"+R.applyToPointStringified(z[0][0],z[0][1]);for(U=1;U<x;U+=1)G+=" C"+R.applyToPointStringified(M[U-1][0],M[U-1][1])+" "+R.applyToPointStringified(O[U][0],O[U][1])+" "+R.applyToPointStringified(z[U][0],z[U][1]);return b&&x&&(G+=" C"+R.applyToPointStringified(M[U-1][0],M[U-1][1])+" "+R.applyToPointStringified(O[0][0],O[0][1])+" "+R.applyToPointStringified(z[0][0],z[0][1]),G+="z"),G},SVGElementsRenderer=(function(){var r=new Matrix,y=new Matrix,x={createRenderFunction:b};function b(J){switch(J.ty){case"fl":return z;case"gf":return G;case"gs":return U;case"st":return q;case"sh":case"el":case"rc":case"sr":return O;case"tr":return R;case"no":return M;default:return null}}function R(J,X,fe){(fe||X.transform.op._mdf)&&X.transform.container.setAttribute("opacity",X.transform.op.v),(fe||X.transform.mProps._mdf)&&X.transform.container.setAttribute("transform",X.transform.mProps.v.to2dCSS())}function M(){}function O(J,X,fe){var te,ue,ye,oe,ne,ae,pe=X.styles.length,je=X.lvl,Ve,Ue,$e,We;for(ae=0;ae<pe;ae+=1){if(oe=X.sh._mdf||fe,X.styles[ae].lvl<je){for(Ue=y.reset(),$e=je-X.styles[ae].lvl,We=X.transformers.length-1;!oe&&$e>0;)oe=X.transformers[We].mProps._mdf||oe,$e-=1,We-=1;if(oe)for($e=je-X.styles[ae].lvl,We=X.transformers.length-1;$e>0;)Ue.multiply(X.transformers[We].mProps.v),$e-=1,We-=1}else Ue=r;if(Ve=X.sh.paths,ue=Ve._length,oe){for(ye="",te=0;te<ue;te+=1)ne=Ve.shapes[te],ne&&ne._length&&(ye+=buildShapeString(ne,ne._length,ne.c,Ue));X.caches[ae]=ye}else ye=X.caches[ae];X.styles[ae].d+=J.hd===!0?"":ye,X.styles[ae]._mdf=oe||X.styles[ae]._mdf}}function z(J,X,fe){var te=X.style;(X.c._mdf||fe)&&te.pElem.setAttribute("fill","rgb("+bmFloor(X.c.v[0])+","+bmFloor(X.c.v[1])+","+bmFloor(X.c.v[2])+")"),(X.o._mdf||fe)&&te.pElem.setAttribute("fill-opacity",X.o.v)}function U(J,X,fe){G(J,X,fe),q(J,X,fe)}function G(J,X,fe){var te=X.gf,ue=X.g._hasOpacity,ye=X.s.v,oe=X.e.v;if(X.o._mdf||fe){var ne=J.ty==="gf"?"fill-opacity":"stroke-opacity";X.style.pElem.setAttribute(ne,X.o.v)}if(X.s._mdf||fe){var ae=J.t===1?"x1":"cx",pe=ae==="x1"?"y1":"cy";te.setAttribute(ae,ye[0]),te.setAttribute(pe,ye[1]),ue&&!X.g._collapsable&&(X.of.setAttribute(ae,ye[0]),X.of.setAttribute(pe,ye[1]))}var je,Ve,Ue,$e;if(X.g._cmdf||fe){je=X.cst;var We=X.g.c;for(Ue=je.length,Ve=0;Ve<Ue;Ve+=1)$e=je[Ve],$e.setAttribute("offset",We[Ve*4]+"%"),$e.setAttribute("stop-color","rgb("+We[Ve*4+1]+","+We[Ve*4+2]+","+We[Ve*4+3]+")")}if(ue&&(X.g._omdf||fe)){var ot=X.g.o;for(X.g._collapsable?je=X.cst:je=X.ost,Ue=je.length,Ve=0;Ve<Ue;Ve+=1)$e=je[Ve],X.g._collapsable||$e.setAttribute("offset",ot[Ve*2]+"%"),$e.setAttribute("stop-opacity",ot[Ve*2+1])}if(J.t===1)(X.e._mdf||fe)&&(te.setAttribute("x2",oe[0]),te.setAttribute("y2",oe[1]),ue&&!X.g._collapsable&&(X.of.setAttribute("x2",oe[0]),X.of.setAttribute("y2",oe[1])));else{var ct;if((X.s._mdf||X.e._mdf||fe)&&(ct=Math.sqrt(Math.pow(ye[0]-oe[0],2)+Math.pow(ye[1]-oe[1],2)),te.setAttribute("r",ct),ue&&!X.g._collapsable&&X.of.setAttribute("r",ct)),X.s._mdf||X.e._mdf||X.h._mdf||X.a._mdf||fe){ct||(ct=Math.sqrt(Math.pow(ye[0]-oe[0],2)+Math.pow(ye[1]-oe[1],2)));var it=Math.atan2(oe[1]-ye[1],oe[0]-ye[0]),ft=X.h.v;ft>=1?ft=.99:ft<=-1&&(ft=-.99);var dt=ct*ft,nt=Math.cos(it+X.a.v)*dt+ye[0],Ne=Math.sin(it+X.a.v)*dt+ye[1];te.setAttribute("fx",nt),te.setAttribute("fy",Ne),ue&&!X.g._collapsable&&(X.of.setAttribute("fx",nt),X.of.setAttribute("fy",Ne))}}}function q(J,X,fe){var te=X.style,ue=X.d;ue&&(ue._mdf||fe)&&ue.dashStr&&(te.pElem.setAttribute("stroke-dasharray",ue.dashStr),te.pElem.setAttribute("stroke-dashoffset",ue.dashoffset[0])),X.c&&(X.c._mdf||fe)&&te.pElem.setAttribute("stroke","rgb("+bmFloor(X.c.v[0])+","+bmFloor(X.c.v[1])+","+bmFloor(X.c.v[2])+")"),(X.o._mdf||fe)&&te.pElem.setAttribute("stroke-opacity",X.o.v),(X.w._mdf||fe)&&(te.pElem.setAttribute("stroke-width",X.w.v),te.msElem&&te.msElem.setAttribute("stroke-width",X.w.v))}return x})();function SVGShapeElement(r,y,x){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,y,x),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 r,y=this.shapes.length,x,b,R=this.stylesList.length,M,O=[],z=!1;for(b=0;b<R;b+=1){for(M=this.stylesList[b],z=!1,O.length=0,r=0;r<y;r+=1)x=this.shapes[r],x.styles.indexOf(M)!==-1&&(O.push(x),z=x._isAnimated||z);O.length>1&&z&&this.setShapesAsAnimated(O)}},SVGShapeElement.prototype.setShapesAsAnimated=function(r){var y,x=r.length;for(y=0;y<x;y+=1)r[y].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(r,y){var x,b=new SVGStyleData(r,y),R=b.pElem;if(r.ty==="st")x=new SVGStrokeStyleData(this,r,b);else if(r.ty==="fl")x=new SVGFillStyleData(this,r,b);else if(r.ty==="gf"||r.ty==="gs"){var M=r.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;x=new M(this,r,b),this.globalData.defs.appendChild(x.gf),x.maskId&&(this.globalData.defs.appendChild(x.ms),this.globalData.defs.appendChild(x.of),R.setAttribute("mask","url("+getLocationHref()+"#"+x.maskId+")"))}else r.ty==="no"&&(x=new SVGNoStyleData(this,r,b));return(r.ty==="st"||r.ty==="gs")&&(R.setAttribute("stroke-linecap",lineCapEnum[r.lc||2]),R.setAttribute("stroke-linejoin",lineJoinEnum[r.lj||2]),R.setAttribute("fill-opacity","0"),r.lj===1&&R.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&R.setAttribute("fill-rule","evenodd"),r.ln&&R.setAttribute("id",r.ln),r.cl&&R.setAttribute("class",r.cl),r.bm&&(R.style["mix-blend-mode"]=getBlendMode(r.bm)),this.stylesList.push(b),this.addToAnimatedContents(r,x),x},SVGShapeElement.prototype.createGroupElement=function(r){var y=new ShapeGroupData;return r.ln&&y.gr.setAttribute("id",r.ln),r.cl&&y.gr.setAttribute("class",r.cl),r.bm&&(y.gr.style["mix-blend-mode"]=getBlendMode(r.bm)),y},SVGShapeElement.prototype.createTransformElement=function(r,y){var x=TransformPropertyFactory.getTransformProperty(this,r,this),b=new SVGTransformData(x,x.o,y);return this.addToAnimatedContents(r,b),b},SVGShapeElement.prototype.createShapeElement=function(r,y,x){var b=4;r.ty==="rc"?b=5:r.ty==="el"?b=6:r.ty==="sr"&&(b=7);var R=ShapePropertyFactory.getShapeProp(this,r,b,this),M=new SVGShapeData(y,x,R);return this.shapes.push(M),this.addShapeToModifiers(M),this.addToAnimatedContents(r,M),M},SVGShapeElement.prototype.addToAnimatedContents=function(r,y){for(var x=0,b=this.animatedContents.length;x<b;){if(this.animatedContents[x].element===y)return;x+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(r),element:y,data:r})},SVGShapeElement.prototype.setElementStyles=function(r){var y=r.styles,x,b=this.stylesList.length;for(x=0;x<b;x+=1)y.indexOf(this.stylesList[x])===-1&&!this.stylesList[x].closed&&y.push(this.stylesList[x])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,y=this.itemsData.length;for(r=0;r<y;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),y=this.dynamicProperties.length,r=0;r<y;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(r,y,x,b,R,M,O){var z=[].concat(M),U,G=r.length-1,q,J,X=[],fe=[],te,ue,ye;for(U=G;U>=0;U-=1){if(ye=this.searchProcessedElement(r[U]),ye?y[U]=x[ye-1]:r[U]._render=O,r[U].ty==="fl"||r[U].ty==="st"||r[U].ty==="gf"||r[U].ty==="gs"||r[U].ty==="no")ye?y[U].style.closed=r[U].hd:y[U]=this.createStyleElement(r[U],R),r[U]._render&&y[U].style.pElem.parentNode!==b&&b.appendChild(y[U].style.pElem),X.push(y[U].style);else if(r[U].ty==="gr"){if(!ye)y[U]=this.createGroupElement(r[U]);else for(J=y[U].it.length,q=0;q<J;q+=1)y[U].prevViewData[q]=y[U].it[q];this.searchShapes(r[U].it,y[U].it,y[U].prevViewData,y[U].gr,R+1,z,O),r[U]._render&&y[U].gr.parentNode!==b&&b.appendChild(y[U].gr)}else r[U].ty==="tr"?(ye||(y[U]=this.createTransformElement(r[U],b)),te=y[U].transform,z.push(te)):r[U].ty==="sh"||r[U].ty==="rc"||r[U].ty==="el"||r[U].ty==="sr"?(ye||(y[U]=this.createShapeElement(r[U],z,R)),this.setElementStyles(y[U])):r[U].ty==="tm"||r[U].ty==="rd"||r[U].ty==="ms"||r[U].ty==="pb"||r[U].ty==="zz"||r[U].ty==="op"?(ye?(ue=y[U],ue.closed=!1):(ue=ShapeModifiers.getModifier(r[U].ty),ue.init(this,r[U]),y[U]=ue,this.shapeModifiers.push(ue)),fe.push(ue)):r[U].ty==="rp"&&(ye?(ue=y[U],ue.closed=!0):(ue=ShapeModifiers.getModifier(r[U].ty),y[U]=ue,ue.init(this,r,U,y),this.shapeModifiers.push(ue),O=!1),fe.push(ue));this.addProcessedElement(r[U],U+1)}for(G=X.length,U=0;U<G;U+=1)X[U].closed=!0;for(G=fe.length,U=0;U<G;U+=1)fe[U].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var r,y=this.stylesList.length;for(r=0;r<y;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<y;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var r,y=this.animatedContents.length,x;for(r=0;r<y;r+=1)x=this.animatedContents[r],(this._isFirstFrame||x.element._isAnimated)&&x.data!==!0&&x.fn(x.data,x.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(r,y,x,b,R,M){this.o=r,this.sw=y,this.sc=x,this.fc=b,this.m=R,this.p=M,this._mdf={o:!0,sw:!!y,sc:!!x,fc:!!b,m:!0,p:!0}}LetterProps.prototype.update=function(r,y,x,b,R,M){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 O=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,O=!0),this.sw!==y&&(this.sw=y,this._mdf.sw=!0,O=!0),this.sc!==x&&(this.sc=x,this._mdf.sc=!0,O=!0),this.fc!==b&&(this.fc=b,this._mdf.fc=!0,O=!0),this.m!==R&&(this.m=R,this._mdf.m=!0,O=!0),M.length&&(this.p[0]!==M[0]||this.p[1]!==M[1]||this.p[4]!==M[4]||this.p[5]!==M[5]||this.p[12]!==M[12]||this.p[13]!==M[13])&&(this.p=M,this._mdf.p=!0,O=!0),O};function TextProperty(r,y){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,y.d&&y.d.sid&&(y.d=r.globalData.slotManager.getProp(y.d)),this.data=y,this.elem=r,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(r,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(r[x]=y[x]);return r},TextProperty.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,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(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var y=this.currentData,x=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var b,R=this.effectsSequence.length,M=r||this.data.d.k[this.keysIndex].s;for(b=0;b<R;b+=1)x!==this.keysIndex?M=this.effectsSequence[b](M,M.t):M=this.effectsSequence[b](this.currentData,M.t);y!==M&&this.setCurrentData(M),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,y=this.elem.comp.renderedFrame,x=0,b=r.length;x<=b-1&&!(x===b-1||r[x+1].t>y);)x+=1;return this.keysIndex!==x&&(this.keysIndex=x),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(r){for(var y=[],x=0,b=r.length,R,M,O=!1,z=!1,U="";x<b;)O=z,z=!1,R=r.charCodeAt(x),U=r.charAt(x),FontManager.isCombinedCharacter(R)?O=!0:R>=55296&&R<=56319?FontManager.isRegionalFlag(r,x)?U=r.substr(x,14):(M=r.charCodeAt(x+1),M>=56320&&M<=57343&&(FontManager.isModifier(R,M)?(U=r.substr(x,2),O=!0):FontManager.isFlagEmoji(r.substr(x,4))?U=r.substr(x,4):U=r.substr(x,2))):R>
vendor: 1,165 bytes, line 296
29656319?(M=r.charCodeAt(x+1),FontManager.isVariationSelector(R)&&(O=!0)):FontManager.isZeroWidthJoiner(R)&&(O=!0,z=!0),O?(y[y.length-1]+=U,O=!1):y.push(U),x+=U.length;return y},TextProperty.prototype.completeTextData=function(r){r.__complete=!0;var y=this.elem.globalData.fontManager,x=this.data,b=[],R,M,O,z=0,U,G=x.m.g,q=0,J=0,X=0,fe=[],te=0,ue=0,ye,oe,ne=y.getFontByName(r.f),ae,pe=0,je=getFontProperties(ne);r.fWeight=je.weight,r.fStyle=je.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),M=r.finalText.length,r.finalLineHeight=r.lh;var Ve=r.tr/1e3*r.finalSize,Ue;if(r.sz)for(var $e=!0,We=r.sz[0],ot=r.sz[1],ct,it;$e;){it=this.buildFinalText(r.t),ct=0,te=0,M=it.length,Ve=r.tr/1e3*r.finalSize;var ft=-1;for(R=0;R<M;R+=1)Ue=it[R].charCodeAt(0),O=!1,it[R]===" "?ft=R:(Ue===13||Ue===3)&&(te=0,O=!0,ct+=r.finalLineHeight||r.finalSize*1.2),y.chars?(ae=y.getCharData(it[R],ne.fStyle,ne.fFamily),pe=O?0:ae.w*r.finalSize/100):pe=y.measureText(it[R],r.f,r.finalSize),te+pe>We&&it[R]!==" "?(ft===-1?M+=1:R=ft,ct+=r.finalLineHeight||r.finalSize*1.2,it.splice(R,ft===R?1:0,"\r"),ft=-1,te=0):(te+=pe,te+=Ve);ct+=ne.ascent*r.finalSize/100,this.canResize&&r.finalSize>
vendor: 20,979 bytes, line 296
296this.minimumFontSize&&ot<ct?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=it,M=r.finalText.length,$e=!1)}te=-Ve,pe=0;var dt=0,nt;for(R=0;R<M;R+=1)if(O=!1,nt=r.finalText[R],Ue=nt.charCodeAt(0),Ue===13||Ue===3?(dt=0,fe.push(te),ue=te>ue?te:ue,te=-2*Ve,U="",O=!0,X+=1):U=nt,y.chars?(ae=y.getCharData(nt,ne.fStyle,y.getFontByName(r.f).fFamily),pe=O?0:ae.w*r.finalSize/100):pe=y.measureText(U,r.f,r.finalSize),nt===" "?dt+=pe+Ve:(te+=pe+Ve+dt,dt=0),b.push({l:pe,an:pe,add:q,n:O,anIndexes:[],val:U,line:X,animatorJustifyOffset:0}),G==2){if(q+=pe,U===""||U===" "||R===M-1){for((U===""||U===" ")&&(q-=pe);J<=R;)b[J].an=q,b[J].ind=z,b[J].extra=pe,J+=1;z+=1,q=0}}else if(G==3){if(q+=pe,U===""||R===M-1){for(U===""&&(q-=pe);J<=R;)b[J].an=q,b[J].ind=z,b[J].extra=pe,J+=1;q=0,z+=1}}else b[z].ind=z,b[z].extra=0,z+=1;if(r.l=b,ue=te>ue?te:ue,fe.push(te),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=ue,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=fe;var Ne=x.a,He,_e;oe=Ne.length;var Be,Ye,Le=[];for(ye=0;ye<oe;ye+=1){for(He=Ne[ye],He.a.sc&&(r.strokeColorAnim=!0),He.a.sw&&(r.strokeWidthAnim=!0),(He.a.fc||He.a.fh||He.a.fs||He.a.fb)&&(r.fillColorAnim=!0),Ye=0,Be=He.s.b,R=0;R<M;R+=1)_e=b[R],_e.anIndexes[ye]=Ye,(Be==1&&_e.val!==""||Be==2&&_e.val!==""&&_e.val!==" "||Be==3&&(_e.n||_e.val==" "||R==M-1)||Be==4&&(_e.n||R==M-1))&&(He.s.rn===1&&Le.push(Ye),Ye+=1);x.a[ye].s.totalChars=Ye;var Ge=-1,Ke;if(He.s.rn===1)for(R=0;R<M;R+=1)_e=b[R],Ge!=_e.anIndexes[ye]&&(Ge=_e.anIndexes[ye],Ke=Le.splice(Math.floor(Math.random()*Le.length),1)[0]),_e.anIndexes[ye]=Ke}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=ne.ascent*r.finalSize/100},TextProperty.prototype.updateDocumentData=function(r,y){y=y===void 0?this.keysIndex:y;var x=this.copyData({},this.data.d.k[y].s);x=this.copyData(x,r),this.data.d.k[y].s=x,this.recalculate(y),this.setCurrentData(x),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(r){var y=this.data.d.k[r].s;y.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(y)},TextProperty.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var r=Math.max,y=Math.min,x=Math.floor;function b(M,O){this._currentTextLength=-1,this.k=!1,this.data=O,this.elem=M,this.comp=M.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(M),this.s=PropertyFactory.getProp(M,O.s||{k:0},0,0,this),"e"in O?this.e=PropertyFactory.getProp(M,O.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(M,O.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(M,O.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(M,O.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(M,O.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(M,O.a,0,.01,this),this.dynamicProperties.length||this.getValue()}b.prototype={getMult:function(O){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var z=0,U=0,G=1,q=1;this.ne.v>0?z=this.ne.v/100:U=-this.ne.v/100,this.xe.v>0?G=1-this.xe.v/100:q=1+this.xe.v/100;var J=BezierFactory.getBezierEasing(z,U,G,q).get,X=0,fe=this.finalS,te=this.finalE,ue=this.data.sh;if(ue===2)te===fe?X=O>=te?1:0:X=r(0,y(.5/(te-fe)+(O-fe)/(te-fe),1)),X=J(X);else if(ue===3)te===fe?X=O>=te?0:1:X=1-r(0,y(.5/(te-fe)+(O-fe)/(te-fe),1)),X=J(X);else if(ue===4)te===fe?X=0:(X=r(0,y(.5/(te-fe)+(O-fe)/(te-fe),1)),X<.5?X*=2:X=1-2*(X-.5)),X=J(X);else if(ue===5){if(te===fe)X=0;else{var ye=te-fe;O=y(r(0,O+.5-fe),te-fe);var oe=-ye/2+O,ne=ye/2;X=Math.sqrt(1-oe*oe/(ne*ne))}X=J(X)}else ue===6?(te===fe?X=0:(O=y(r(0,O+.5-fe),te-fe),X=(1+Math.cos(Math.PI+Math.PI*2*O/(te-fe)))/2),X=J(X)):(O>=x(fe)&&(O-fe<0?X=r(0,y(y(te,1)-(fe-O),1)):X=r(0,y(te-O,1))),X=J(X));if(this.sm.v!==100){var ae=this.sm.v*.01;ae===0&&(ae=1e-8);var pe=.5-ae*.5;X<pe?X=0:(X=(X-pe)/ae,X>1&&(X=1))}return X*this.a.v},getValue:function(O){this.iterateDynamicProperties(),this._mdf=O||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,O&&this.data.r===2&&(this.e.v=this._currentTextLength);var z=this.data.r===2?1:100/this.data.totalChars,U=this.o.v/z,G=this.s.v/z+U,q=this.e.v/z+U;if(G>q){var J=G;G=q,q=J}this.finalS=G,this.finalE=q}},extendPrototype([DynamicPropertyContainer],b);function R(M,O,z){return new b(M,O)}return{getTextSelectorProp:R}})();function TextAnimatorDataProperty(r,y,x){var b={propType:!1},R=PropertyFactory.getProp,M=y.a;this.a={r:M.r?R(r,M.r,0,degToRads,x):b,rx:M.rx?R(r,M.rx,0,degToRads,x):b,ry:M.ry?R(r,M.ry,0,degToRads,x):b,sk:M.sk?R(r,M.sk,0,degToRads,x):b,sa:M.sa?R(r,M.sa,0,degToRads,x):b,s:M.s?R(r,M.s,1,.01,x):b,a:M.a?R(r,M.a,1,0,x):b,o:M.o?R(r,M.o,0,.01,x):b,p:M.p?R(r,M.p,1,0,x):b,sw:M.sw?R(r,M.sw,0,0,x):b,sc:M.sc?R(r,M.sc,1,0,x):b,fc:M.fc?R(r,M.fc,1,0,x):b,fh:M.fh?R(r,M.fh,0,0,x):b,fs:M.fs?R(r,M.fs,0,.01,x):b,fb:M.fb?R(r,M.fb,0,.01,x):b,t:M.t?R(r,M.t,0,0,x):b},this.s=TextSelectorProp.getTextSelectorProp(r,y.s,x),this.s.t=y.s.t}function TextAnimatorProperty(r,y,x){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=y,this._elem=x,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(x)}TextAnimatorProperty.prototype.searchProperties=function(){var r,y=this._textData.a.length,x,b=PropertyFactory.getProp;for(r=0;r<y;r+=1)x=this._textData.a[r],this._animatorsData[r]=new TextAnimatorDataProperty(this._elem,x,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:b(this._elem,this._textData.p.a,0,0,this),f:b(this._elem,this._textData.p.f,0,0,this),l:b(this._elem,this._textData.p.l,0,0,this),r:b(this._elem,this._textData.p.r,0,0,this),p:b(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=b(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(r,y){if(this.lettersChangedFlag=y,!(!this._mdf&&!this._isFirstFrame&&!y&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var x=this._moreOptions.alignment.v,b=this._animatorsData,R=this._textData,M=this.mHelper,O=this._renderType,z=this.renderedLetters.length,U,G,q,J,X=r.l,fe,te,ue,ye,oe,ne,ae,pe,je,Ve,Ue,$e,We,ot,ct;if(this._hasMaskedPath){if(ct=this._pathData.m,!this._pathData.n||this._pathData._mdf){var it=ct.v;this._pathData.r.v&&(it=it.reverse()),fe={tLength:0,segments:[]},J=it._length-1;var ft;for($e=0,q=0;q<J;q+=1)ft=bez.buildBezierData(it.v[q],it.v[q+1],[it.o[q][0]-it.v[q][0],it.o[q][1]-it.v[q][1]],[it.i[q+1][0]-it.v[q+1][0],it.i[q+1][1]-it.v[q+1][1]]),fe.tLength+=ft.segmentLength,fe.segments.push(ft),$e+=ft.segmentLength;q=J,ct.v.c&&(ft=bez.buildBezierData(it.v[q],it.v[0],[it.o[q][0]-it.v[q][0],it.o[q][1]-it.v[q][1]],[it.i[0][0]-it.v[0][0],it.i[0][1]-it.v[0][1]]),fe.tLength+=ft.segmentLength,fe.segments.push(ft),$e+=ft.segmentLength),this._pathData.pi=fe}if(fe=this._pathData.pi,te=this._pathData.f.v,ae=0,ne=1,ye=0,oe=!0,Ve=fe.segments,te<0&&ct.v.c)for(fe.tLength<Math.abs(te)&&(te=-Math.abs(te)%fe.tLength),ae=Ve.length-1,je=Ve[ae].points,ne=je.length-1;te<0;)te+=je[ne].partialLength,ne-=1,ne<0&&(ae-=1,je=Ve[ae].points,ne=je.length-1);je=Ve[ae].points,pe=je[ne-1],ue=je[ne],Ue=ue.partialLength}J=X.length,U=0,G=0;var dt=r.finalSize*1.2*.714,nt=!0,Ne,He,_e,Be,Ye;Be=b.length;var Le,Ge=-1,Ke,Ze,ut,pt=te,xt=ae,Nt=ne,kt=-1,Yt,qt,ir,jt,mt,mr,br,Er,gr="",yr=this.defaultPropsArray,vr;if(r.j===2||r.j===1){var ht=0,Et=0,Tt=r.j===2?-.5:-1,At=0,sr=!0;for(q=0;q<J;q+=1)if(X[q].n){for(ht&&(ht+=Et);At<q;)X[At].animatorJustifyOffset=ht,At+=1;ht=0,sr=!0}else{for(_e=0;_e<Be;_e+=1)Ne=b[_e].a,Ne.t.propType&&(sr&&r.j===2&&(Et+=Ne.t.v*Tt),He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),Le.length?ht+=Ne.t.v*Le[0]*Tt:ht+=Ne.t.v*Le*Tt);sr=!1}for(ht&&(ht+=Et);At<q;)X[At].animatorJustifyOffset=ht,At+=1}for(q=0;q<J;q+=1){if(M.reset(),Yt=1,X[q].n)U=0,G+=r.yOffset,G+=nt?1:0,te=pt,nt=!1,this._hasMaskedPath&&(ae=xt,ne=Nt,je=Ve[ae].points,pe=je[ne-1],ue=je[ne],Ue=ue.partialLength,ye=0),gr="",Er="",mr="",vr="",yr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(kt!==X[q].line){switch(r.j){case 1:te+=$e-r.lineWidths[X[q].line];break;case 2:te+=($e-r.lineWidths[X[q].line])/2;break}kt=X[q].line}Ge!==X[q].ind&&(X[Ge]&&(te+=X[Ge].extra),te+=X[q].an/2,Ge=X[q].ind),te+=x[0]*X[q].an*.005;var pr=0;for(_e=0;_e<Be;_e+=1)Ne=b[_e].a,Ne.p.propType&&(He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),Le.length?pr+=Ne.p.v[0]*Le[0]:pr+=Ne.p.v[0]*Le),Ne.a.propType&&(He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),Le.length?pr+=Ne.a.v[0]*Le[0]:pr+=Ne.a.v[0]*Le);for(oe=!0,this._pathData.a.v&&(te=X[0].an*.5+($e-this._pathData.f.v-X[0].an*.5-X[X.length-1].an*.5)*Ge/(J-1),te+=this._pathData.f.v);oe;)ye+Ue>=te+pr||!je?(We=(te+pr-ye)/ue.partialLength,Ze=pe.point[0]+(ue.point[0]-pe.point[0])*We,ut=pe.point[1]+(ue.point[1]-pe.point[1])*We,M.translate(-x[0]*X[q].an*.005,-(x[1]*dt)*.01),oe=!1):je&&(ye+=ue.partialLength,ne+=1,ne>=je.length&&(ne=0,ae+=1,Ve[ae]?je=Ve[ae].points:ct.v.c?(ne=0,ae=0,je=Ve[ae].points):(ye-=ue.partialLength,je=null)),je&&(pe=ue,ue=je[ne],Ue=ue.partialLength));Ke=X[q].an/2-X[q].add,M.translate(-Ke,0,0)}else Ke=X[q].an/2-X[q].add,M.translate(-Ke,0,0),M.translate(-x[0]*X[q].an*.005,-x[1]*dt*.01,0);for(_e=0;_e<Be;_e+=1)Ne=b[_e].a,Ne.t.propType&&(He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),(U!==0||r.j!==0)&&(this._hasMaskedPath?Le.length?te+=Ne.t.v*Le[0]:te+=Ne.t.v*Le:Le.length?U+=Ne.t.v*Le[0]:U+=Ne.t.v*Le));for(r.strokeWidthAnim&&(ir=r.sw||0),r.strokeColorAnim&&(r.sc?qt=[r.sc[0],r.sc[1],r.sc[2]]:qt=[0,0,0]),r.fillColorAnim&&r.fc&&(jt=[r.fc[0],r.fc[1],r.fc[2]]),_e=0;_e<Be;_e+=1)Ne=b[_e].a,Ne.a.propType&&(He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),Le.length?M.translate(-Ne.a.v[0]*Le[0],-Ne.a.v[1]*Le[1],Ne.a.v[2]*Le[2]):M.translate(-Ne.a.v[0]*Le,-Ne.a.v[1]*Le,Ne.a.v[2]*Le));for(_e=0;_e<Be;_e+=1)Ne=b[_e].a,Ne.s.propType&&(He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),Le.length?M.scale(1+(Ne.s.v[0]-1)*Le[0],1+(Ne.s.v[1]-1)*Le[1],1):M.scale(1+(Ne.s.v[0]-1)*Le,1+(Ne.s.v[1]-1)*Le,1));for(_e=0;_e<Be;_e+=1){if(Ne=b[_e].a,He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),Ne.sk.propType&&(Le.length?M.skewFromAxis(-Ne.sk.v*Le[0],Ne.sa.v*Le[1]):M.skewFromAxis(-Ne.sk.v*Le,Ne.sa.v*Le)),Ne.r.propType&&(Le.length?M.rotateZ(-Ne.r.v*Le[2]):M.rotateZ(-Ne.r.v*Le)),Ne.ry.propType&&(Le.length?M.rotateY(Ne.ry.v*Le[1]):M.rotateY(Ne.ry.v*Le)),Ne.rx.propType&&(Le.length?M.rotateX(Ne.rx.v*Le[0]):M.rotateX(Ne.rx.v*Le)),Ne.o.propType&&(Le.length?Yt+=(Ne.o.v*Le[0]-Yt)*Le[0]:Yt+=(Ne.o.v*Le-Yt)*Le),r.strokeWidthAnim&&Ne.sw.propType&&(Le.length?ir+=Ne.sw.v*Le[0]:ir+=Ne.sw.v*Le),r.strokeColorAnim&&Ne.sc.propType)for(mt=0;mt<3;mt+=1)Le.length?qt[mt]+=(Ne.sc.v[mt]-qt[mt])*Le[0]:qt[mt]+=(Ne.sc.v[mt]-qt[mt])*Le;if(r.fillColorAnim&&r.fc){if(Ne.fc.propType)for(mt=0;mt<3;mt+=1)Le.length?jt[mt]+=(Ne.fc.v[mt]-jt[mt])*Le[0]:jt[mt]+=(Ne.fc.v[mt]-jt[mt])*Le;Ne.fh.propType&&(Le.length?jt=addHueToRGB(jt,Ne.fh.v*Le[0]):jt=addHueToRGB(jt,Ne.fh.v*Le)),Ne.fs.propType&&(Le.length?jt=addSaturationToRGB(jt,Ne.fs.v*Le[0]):jt=addSaturationToRGB(jt,Ne.fs.v*Le)),Ne.fb.propType&&(Le.length?jt=addBrightnessToRGB(jt,Ne.fb.v*Le[0]):jt=addBrightnessToRGB(jt,Ne.fb.v*Le))}}for(_e=0;_e<Be;_e+=1)Ne=b[_e].a,Ne.p.propType&&(He=b[_e].s,Le=He.getMult(X[q].anIndexes[_e],R.a[_e].s.totalChars),this._hasMaskedPath?Le.length?M.translate(0,Ne.p.v[1]*Le[0],-Ne.p.v[2]*Le[1]):M.translate(0,Ne.p.v[1]*Le,-Ne.p.v[2]*Le):Le.length?M.translate(Ne.p.v[0]*Le[0],Ne.p.v[1]*Le[1],-Ne.p.v[2]*Le[2]):M.translate(Ne.p.v[0]*Le,Ne.p.v[1]*Le,-Ne.p.v[2]*Le));if(r.strokeWidthAnim&&(mr=ir<0?0:ir),r.strokeColorAnim&&(br="rgb("+Math.round(qt[0]*255)+","+Math.round(qt[1]*255)+","+Math.round(qt[2]*255)+")"),r.fillColorAnim&&r.fc&&(Er="rgb("+Math.round(jt[0]*255)+","+Math.round(jt[1]*255)+","+Math.round(jt[2]*255)+")"),this._hasMaskedPath){if(M.translate(0,-r.ls),M.translate(0,x[1]*dt*.01+G,0),this._pathData.p.v){ot=(ue.point[1]-pe.point[1])/(ue.point[0]-pe.point[0]);var Br=Math.atan(ot)*180/Math.PI;ue.point[0]<pe.point[0]&&(Br+=180),M.rotate(-Br*Math.PI/180)}M.translate(Ze,ut,0),te-=x[0]*X[q].an*.005,X[q+1]&&Ge!==X[q+1].ind&&(te+=X[q].an/2,te+=r.tr*.001*r.finalSize)}else{switch(M.translate(U,G,0),r.ps&&M.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:M.translate(X[q].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[X[q].line]),0,0);break;case 2:M.translate(X[q].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[X[q].line])/2,0,0);break}M.translate(0,-r.ls),M.translate(Ke,0,0),M.translate(x[0]*X[q].an*.005,x[1]*dt*.01,0),U+=X[q].l+r.tr*.001*r.finalSize}O==="html"?gr=M.toCSS():O==="svg"?gr=M.to2dCSS():yr=[M.props[0],M.props[1],M.props[2],M.props[3],M.props[4],M.props[5],M.props[6],M.props[7],M.props[8],M.props[9],M.props[10],M.props[11],M.props[12],M.props[13],M.props[14],M.props[15]],vr=Yt}z<=q?(Ye=new LetterProps(vr,mr,br,Er,gr,yr),this.renderedLetters.push(Ye),z+=1,this.lettersChangedFlag=!0):(Ye=this.renderedLetters[q],this.lettersChangedFlag=Ye.update(vr,mr,br,Er,gr,yr)||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(r,y,x){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,y,x),this.textProperty=new TextProperty(this,r.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(r.t,this.renderType,this),this.initTransform(r,y,x),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},ITextElement.prototype.createPathShape=function(r,y){var x,b=y.length,R,M="";for(x=0;x<b;x+=1)y[x].ty==="sh"&&(R=y[x].ks.k,M+=buildShapeString(R,R.i.length,!0,r));return M},ITextElement.prototype.updateDocumentData=function(r,y){this.textProperty.updateDocumentData(r,y)},ITextElement.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},ITextElement.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},ITextElement.prototype.applyTextPropertiesToMatrix=function(r,y,x,b,R){switch(r.ps&&y.translate(r.ps[0],r.ps[1]+r.ascent,0),y.translate(0,-r.ls,0),r.j){case 1:y.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[x]),0,0);break;case 2:y.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[x])/2,0,0);break}y.translate(b,R,0)},ITextElement.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[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(r,y,x){this.textSpans=[],this.renderType="svg",this.initElement(r,y,x)}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(r){for(var y=0,x=r.length,b=[],R="";y<x;)r[y]==="\r"||r[y]==="�"?(b.push(R),R=""):R+=r[y],y+=1;return b.push(R),b},SVGTextLottieElement.prototype.buildShapeData=function(r,y){if(r.shapes&&r.shapes.length){var x=r.shapes[0];if(x.it){var b=x.it[x.it.length-1];b.s&&(b.s.k[0]=y,b.s.k[1]=y)}}return r},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,y,x=this.textProperty.currentData;this.renderedLetters=createSizedArray(x?x.l.length:0),x.fc?this.layerElement.setAttribute("fill",this.buildColor(x.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),x.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(x.sc)),this.layerElement.setAttribute("stroke-width",x.sw)),this.layerElement.setAttribute("font-size",x.finalSize);var b=this.globalData.fontManager.getFontByName(x.f);if(b.fClass)this.layerElement.setAttribute("class",b.fClass);else{this.layerElement.setAttribute("font-family",b.fFamily);var R=x.fWeight,M=x.fStyle;this.layerElement.setAttribute("font-style",M),this.layerElement.setAttribute("font-weight",R)}this.layerElement.setAttribute("aria-label",x.t);var O=x.l||[],z=!!this.globalData.fontManager.chars;y=O.length;var U,G=this.mHelper,q="",J=this.data.singleShape,X=0,fe=0,te=!0,ue=x.tr*.001*x.finalSize;if(J&&!z&&!x.sz){var ye=this.textContainer,oe="start";switch(x.j){case 1:oe="end";break;case 2:oe="middle";break;default:oe="start";break}ye.setAttribute("text-anchor",oe),ye.setAttribute("letter-spacing",ue);var ne=this.buildTextContents(x.finalText);for(y=ne.length,fe=x.ps?x.ps[1]+x.ascent:0,r=0;r<y;r+=1)U=this.textSpans[r].span||createNS("tspan"),U.textContent=ne[r],U.setAttribute("x",0),U.setAttribute("y",fe),U.style.display="inherit",ye.appendChild(U),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=U,fe+=x.finalLineHeight;this.layerElement.appendChild(ye)}else{var ae=this.textSpans.length,pe;for(r=0;r<y;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!z||!J||r===0){if(U=ae>r?this.textSpans[r].span:createNS(z?"g":"text"),ae<=r){if(U.setAttribute("stroke-linecap","butt"),U.setAttribute("stroke-linejoin","round"),U.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=U,z){var je=createNS("g");U.appendChild(je),this.textSpans[r].childSpan=je}this.textSpans[r].span=U,this.layerElement.appendChild(U)}U.style.display="inherit"}if(G.reset(),J&&(O[r].n&&(X=-ue,fe+=x.yOffset,fe+=te?1:0,te=!1),this.applyTextPropertiesToMatrix(x,G,O[r].line,X,fe),X+=O[r].l||0,X+=ue),z){pe=this.globalData.fontManager.getCharData(x.finalText[r],b.fStyle,this.globalData.fontManager.getFontByName(x.f).fFamily);var Ve;if(pe.t===1)Ve=new SVGCompElement(pe.data,this.globalData,this);else{var Ue=emptyShapeData;pe.data&&pe.data.shapes&&(Ue=this.buildShapeData(pe.data,x.finalSize)),Ve=new SVGShapeElement(Ue,this.globalData,this)}if(this.textSpans[r].glyph){var $e=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild($e.layerElement),$e.destroy()}this.textSpans[r].glyph=Ve,Ve._debug=!0,Ve.prepareFrame(0),Ve.renderFrame(),this.textSpans[r].childSpan.appendChild(Ve.layerElement),pe.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+x.finalSize/100+","+x.finalSize/100+")")}else J&&U.setAttribute("transform","translate("+G.props[12]+","+G.props[13]+")"),U.textContent=O[r].val,U.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}J&&U&&U.setAttribute("d",q)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=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 r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var r,y=this.textSpans.length,x;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<y;r+=1)x=this.textSpans[r].glyph,x&&(x.prepareFrame(this.comp.renderedFrame-this.data.st),x._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 r,y,x=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;y=b.length;var R,M,O;for(r=0;r<y;r+=1)b[r].n||(R=x[r],M=this.textSpans[r].span,O=this.textSpans[r].glyph,O&&O.renderFrame(),R._mdf.m&&M.setAttribute("transform",R.m),R._mdf.o&&M.setAttribute("op
296acity",R.o),R._mdf.sw&&M.setAttribute("stroke-width",R.sw),R._mdf.sc&&M.setAttribute("stroke",R.sc),R._mdf.fc&&M.setAttribute("fill",R.fc))}};function ISolidElement(r,y,x){this.initElement(r,y,x)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var r=createNS("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function NullElement(r,y,x){this.initFrame(),this.initBaseData(r,y,x),this.initFrame(),this.initTransform(r,y,x),this.initHierarchy()}NullElement.prototype.prepareFrame=function(r){this.prepareProperties(r,!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(r){return new NullElement(r,this.globalData,this)},SVGRendererBase.prototype.createShape=function(r){return new SVGShapeElement(r,this.globalData,this)},SVGRendererBase.prototype.createText=function(r){return new SVGTextLottieElement(r,this.globalData,this)},SVGRendererBase.prototype.createImage=function(r){return new IImageElement(r,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(r){return new ISolidElement(r,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(r){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 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.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 y=this.globalData.defs;this.setupGlobalData(r,y),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var x=createNS("clipPath"),b=createNS("rect");b.setAttribute("width",r.w),b.setAttribute("height",r.h),b.setAttribute("x",0),b.setAttribute("y",0);var R=createElementID();x.setAttribute("id",R),x.appendChild(b),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+R+")"),y.appendChild(x),this.layers=r.layers,this.elements=createSizedArray(r.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,y=this.layers?this.layers.length:0;for(r=0;r<y;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(r){var y=0,x=this.layers.length;for(y=0;y<x;y+=1)if(this.layers[y].ind===r)return y;return-1},SVGRendererBase.prototype.buildItem=function(r){var y=this.elements;if(!(y[r]||this.layers[r].ty===99)){y[r]=!0;var x=this.createItem(this.layers[r]);if(y[r]=x,getExpressionsPlugin()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(x),x.initExpressions()),this.appendElementInPos(x,r),this.layers[r].tt){var b="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(b===-1)return;if(!this.elements[b]||this.elements[b]===!0)this.buildItem(b),this.addPendingElement(x);else{var R=y[b],M=R.getMatte(this.layers[r].tt);x.setMatte(M)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var y=0,x=this.elements.length;y<x;){if(this.elements[y]===r){var b="tp"in r.data?this.findIndexByInd(r.data.tp):y-1,R=this.elements[b],M=R.getMatte(this.layers[y].tt);r.setMatte(M);break}y+=1}}},SVGRendererBase.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var y,x=this.layers.length;for(this.completeLayers||this.checkLayers(r),y=x-1;y>=0;y-=1)(this.completeLayers||this.elements[y])&&this.elements[y].prepareFrame(r-this.layers[y].st);if(this.globalData._mdf)for(y=0;y<x;y+=1)(this.completeLayers||this.elements[y])&&this.elements[y].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(r,y){var x=r.getBaseElement();if(x){for(var b=0,R;b<y;)this.elements[b]&&this.elements[b]!==!0&&this.elements[b].getBaseElement()&&
vendor: 5,410 bytes, line 296
296(R=this.elements[b].getBaseElement()),b+=1;R?this.layerElement.insertBefore(x,R):this.layerElement.appendChild(x)}},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(r,y,x){this.initFrame(),this.initBaseData(r,y,x),this.initTransform(r,y,x),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!y.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var y=this.tm.v;y===this.data.op&&(y=this.data.op-1),this.renderedFrame=y}var x,b=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),x=b-1;x>=0;x-=1)(this.completeLayers||this.elements[x])&&(this.elements[x].prepareFrame(this.renderedFrame-this.layers[x].st),this.elements[x]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var r,y=this.layers.length;for(r=0;r<y;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},ICompElement.prototype.setElements=function(r){this.elements=r},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var r,y=this.layers.length;for(r=0;r<y;r+=1)this.elements[r]&&this.elements[r].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(r,y,x){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(r,y,x),this.tm=r.tm?PropertyFactory.getProp(this,r.tm,0,y.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(r){return new SVGCompElement(r,this.globalData,this)};function SVGRenderer(r,y){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var x="";if(y&&y.title){var b=createNS("title"),R=createElementID();b.setAttribute("id",R),b.textContent=y.title,this.svgElement.appendChild(b),x+=R}if(y&&y.description){var M=createNS("desc"),O=createElementID();M.setAttribute("id",O),M.textContent=y.description,this.svgElement.appendChild(M),x+=" "+O}x&&this.svgElement.setAttribute("aria-labelledby",x);var z=createNS("defs");this.svgElement.appendChild(z);var U=createNS("g");this.svgElement.appendChild(U),this.layerElement=U,this.renderConfig={preserveAspectRatio:y&&y.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:y&&y.contentVisibility||"visible",progressiveLoad:y&&y.progressiveLoad||!1,hideOnTransparent:!(y&&y.hideOnTransparent===!1),viewBoxOnly:y&&y.viewBoxOnly||!1,viewBoxSize:y&&y.viewBoxSize||!1,className:y&&y.className||"",id:y&&y.id||"",focusable:y&&y.focusable,filterSize:{width:y&&y.filterSize&&y.filterSize.width||"100%",height:y&&y.filterSize&&y.filterSize.height||"100%",x:y&&y.filterSize&&y.filterSize.x||"0%",y:y&&y.filterSize&&y.filterSize.y||"0%"},width:y&&y.width,height:y&&y.height,runExpressions:!y||y.runExpressions===void 0||y.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:z,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(r){return new SVGCompElement(r,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(y){var x,b=y.length,R="_";for(x=0;x<b;x+=1)R+=y[x].transform.key+"_";var M=this.sequences[R];return M||(M={transforms:[].concat(y),finalTransform:new Matrix,_mdf:!1},this.sequences[R]=M,this.sequenceList.push(M)),M},processSequence:function(y,x){for(var b=0,R=y.transforms.length,M=x;b<R&&!x;){if(y.transforms[b].transform.mProps._mdf){M=!0;break}b+=1}if(M)for(y.finalTransform.reset(),b=R-1;b>=0;b-=1)y.finalTransform.multiply(y.transforms[b].transform.mProps.v);y._mdf=M},processSequences:function(y){var x,b=this.sequenceList.length;for(x=0;x<b;x+=1)this.processSequence(this.sequenceList[x],y)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var y="__lottie_element_luma_buffer",x=null,b=null,R=null;function M(){var U=createNS("svg"),G=createNS("filter"),q=createNS("feColorMatrix");return G.setAttribute("id",y),q.setAttribute("type","matrix"),q.setAttribute("color-interpolation-filters","sRGB"),q.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"),G.appendChild(q),U.appendChild(G),U.setAttribute("id",y+"_svg"),featureSupport.svgLumaHidden&&(U.style.display="none"),U}function O(){x||(R=M(),document.body.appendChild(R),x=createTag("canvas"),b=x.getContext("2d"),b.filter="url
296(#"+y+")",b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1))}function z(U){return x||O(),x.width=U.width,x.height=U.height,b.filter="url(#"+y+")",x}return{load:O,get:z}};function createCanvas(r,y){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(r,y);var x=createTag("canvas");return x.width=r,x.height=y,x}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(r){var y,x=r.data.ef?r.data.ef.length:0;this.filters=[];var b;for(y=0;y<x;y+=1){b=null;var R=r.data.ef[y].ty;if(registeredEffects[R]){var M=registeredEffects[R].effect;b=new M(r.effectsManager.effectElements[y],r)}b&&this.filters.push(b)}this.filters.length&&r.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(r){var y,x=this.filters.length;for(y=0;y<x;y+=1)this.filters[y].renderFrame(r)},CVEffects.prototype.getEffects=function(r){var y,x=this.filters.length,b=[];for(y=0;y<x;y+=1)this.filters[y].type===r&&b.push(this.filters[y]);return b};function registerEffect(r,y){registeredEffects[r]={effect:y}}function CVMaskElement(r,y){this.data=r,this.element=y,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var x,b=this.masksProperties.length,R=!1;for(x=0;x<b;x+=1)this.masksProperties[x].mode!=="n"&&(R=!0),this.viewData[x]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[x],3);this.hasMasks=R,R&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var r=this.element.finalTransform.mat,y=this.element.canvasContext,x,b=this.masksProperties.length,R,M,O;for(y.beginPath(),x=0;x<b;x+=1)if(this.masksProperties[x].mode!=="n"){this.masksProperties[x].inv&&(y.moveTo(0,0),y.lineTo(this.element.globalData.compSize.w,0),y.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),y.lineTo(0,this.element.globalData.compSize.h),y.lineTo(0,0)),O=this.viewData[x].v,R=r.applyToPointArray(O.v[0][0],O.v[0][1],0),y.moveTo(R[0],R[1]);var z,U=O._length;for(z=1;z<U;z+=1)M=r.applyToTriplePoints(O.o[z-1],O.i[z],O.v[z]),y.bezierCurveTo(M[0],M[1],M[2],M[3],M[4],M[5]);M=r.applyToTriplePoints(O.o[z-1],O.i[0],O.v[0]),y.bezierCurveTo(M[0],M[1],M[2],M[3],M[4],M[5])}this.element.globalData.renderer.save(!0),y.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 y=this.globalData.canvasContext,x=assetLoader.createCanvas(y.canvas.width,y.canvas.height);this.buffers.push(x);var b=assetLoader.createCanvas(y.canvas.width,y.canvas.height);this.buffers.push(b),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var y=this.globalData;if(y.blendMode!==this.data.bm){y.blendMode=this.data.bm;var x=getBlendMode(this.data.bm);y.canvasContext.globalCompositeOperation=x}},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(y){y.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 y=this.buffers[0],x=y.getContext("2d");this.clearCanvas(x),x.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 y=this.buffers[1],x=y.getContext("2d");this.clearCanvas(x),x.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var b=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(b.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var R=assetLoader.getLumaCanvas(this.canvasContext.canvas),M=R.getContext("2d");M.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(R,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(y,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(y){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!y)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var x=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(x),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(x),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(r,y,x,b){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var R=4;y.ty==="rc"?R=5:y.ty==="el"?R=6:y.ty==="sr"&&(R=7),this.sh=ShapePropertyFactory.getShapeProp(r,y,R,r);var M,O=x.length,z;for(M=0;M<O;M+=1)x[M].closed||(z={transforms:b.addTransformSequence(x[M].transforms),trNodes:[]},this.styledShapes.push(z),x[M].elements.push(z))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(r,y,x){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(r,y,x)}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(r,y){var x={data:r,type:r.ty,preTransforms:this.transformsManager.addTransformSequence(y),transforms:[],elements:[],closed:r.hd===!0},b={};if(r.ty==="fl"||r.ty==="st"?(b.c=PropertyFactory.getProp(this,r.c,1,255,this),b.c.k||(x.co="rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")")):(r.ty==="gf"||r.ty==="gs")&&(b.s=PropertyFactory.getProp(this,r.s,1,null,this),b.e=PropertyFactory.getProp(this,r.e,1,null,this),b.h=PropertyFactory.getProp(this,r.h||{k:0},0,.01,this),b.a=PropertyFactory.getProp(this,r.a||{k:0},0,degToRads,this),b.g=new GradientProperty(this,r.g,this)),b.o=PropertyFactory.getProp(this,r.o,0,.01,this),r.ty==="st"||r.ty==="gs"){if(x.lc=lineCapEnum[r.lc||2],x.lj=lineJoinEnum[r.lj||2],r.lj==1&&(x.ml=r.ml),b.w=PropertyFactory.getProp(this,r.w,0,null,this),b.w.k||(x.wi=b.w.v),r.d){var R=new DashProperty(this,r.d,"canvas",this);b.d=R,b.d.k||(x.da=b.d.dashArray,x.do=b.d.dashoffset[0])}}else x.r=r.r===2?"evenodd":"nonzero";return this.stylesList.push(x),b.style=x,b},CVShapeElement.prototype.createGroupElement=function(){var r={it:[],prevViewData:[]};return r},CVShapeElement.prototype.createTransformElement=function(r){var y={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,r.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,r,this)}};return y},CVShapeElement.prototype.createShapeElement=function(r){var y=new CVShapeData(this,r,this.stylesList,this.transformsManager);return this.shapes.push(y),this.addShapeToModifiers(y),y},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,y=this.itemsData.length;for(r=0;r<y;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),y=this.dynamicProperties.length,r=0;r<y;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(r){var y,x=this.stylesList.length;for(y=0;y<x;y+=1)this.stylesList[y].closed||this.stylesList[y].transforms.push(r)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var r,y=this.stylesList.length;for(r=0;r<y;r+=1)this.stylesList[r].closed||this.stylesList[r].transforms.pop()},CVShapeElement.prototype.closeStyles=function(r){var y,x=r.length;for(y=0;y<x;y+=1)r[y].closed=!0},CVShapeElement.prototype.searchShapes=function(r,y,x,b,R){var M,O=r.length-1,z,U,G=[],q=[],J,X,fe,te=[].concat(R);for(M=O;M>=0;M-=1){if(J=this.searchProcessedElement(r[M]),J?y[M]=x[J-1]:r[M]._shouldRender=b,r[M].ty==="fl"||r[M].ty==="st"||r[M].ty==="gf"||r[M].ty==="gs")J?y[M].style.closed=!1:y[M]=this.createStyleElement(r[M],te),G.push(y[M].style);else if(r[M].ty==="gr"){if(!J)y[M]=this.createGroupElement(r[M]);else for(U=y[M].it.length,z=0;z<U;z+=1)y[M].prevViewData[z]=y[M].it[z];this.searchShapes(r[M].it,y[M].it,y[M].prevViewData,b,te)}else r[M].ty==="tr"?(J||(fe=this.createTransformElement(r[M]),y[M]=fe),te.push(y[M]),this.addTransformToStyleList(y[M])):r[M].ty==="sh"||r[M].ty==="rc"||r[M].ty==="el"||r[M].ty==="sr"?J||(y[M]=this.createShapeElement(r[M])):r[M].ty==="tm"||r[M].ty==="rd"||r[M].ty==="pb"||r[M].ty==="zz"||r[M].ty==="op"?(J?(X=y[M],X.closed=!1):(X=ShapeModifiers.getModifier(r[M].ty),X.init(this,r[M]),y[M]=X,this.shapeModifiers.push(X)),q.push(X)):r[M].ty==="rp"&&(J?(X=y[M],X.closed=!0):(X=ShapeModifiers.getModifier(r[M].ty),y[M]=X,X.init(this,r,M,y),this.shapeModifiers.push(X),b=!1),q.push(X));this.addProcessedElement(r[M],M+1)}for(this.removeTransformFromStyleList(),this.closeStyles(G),O=q.length,M=0;M<O;M+=1)q[M].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(r,y){(r._opMdf||y.op._mdf||this._isFirstFrame)&&(y.opacity=r.opacity,y.opacity*=y.op.v,y._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var r,y=this.stylesList.length,x,b,R,M,O,z,U=this.globalData.renderer,G=this.globalData.canvasContext,q,J;for(r=0;r<y;r+=1)if(J=this.stylesList[r],q=J.type,!((q==="st"||q==="gs")&&J.wi===0||!J.data._shouldRender||J.coOp===0||this.globalData.currentGlobalAlpha===0)){for(U.save(),O=J.elements,q==="st"||q==="gs"?(U.ctxStrokeStyle(q==="st"?J.co:J.grd),U.ctxLineWidth(J.wi),U.ctxLineCap(J.lc),U.ctxLineJoin(J.lj),U.ctxMiterLimit(J.ml||0)):U.ctxFillStyle(q==="fl"?J.co:J.grd),U.ctxOpacity(J.coOp),q!=="st"&&q!=="gs"&&G.beginPath(),U.ctxTransform(J.preTransforms.finalTransform.props),b=O.length,x=0;x<b;x+=1){for((q==="st"||q==="gs")&&(G.beginPath(),J.da&&(G.setLineDash(J.da),G.lineDashOffset=J.do)),z=O[x].trNodes,M=z.length,R=0;R<M;R+=1)z[R].t==="m"?G.moveTo(z[R].p[0],z[R].p[1]):z[R].t==="c"?G.bezierCurveTo(z[R].pts[0],z[R].pts[1],z[R].pts[2],z[R].pts[3],z[R].pts[4],z[R].pts[5]):G.closePath();(q==="st"||q==="gs")&&(U.ctxStroke(),J.da&&G.setLineDash(this.dashResetter))}q!=="st"&&q!=="gs"&&this.globalData.renderer.ctxFill(J.r),U.restore(
vendor: 108,102 bytes, line 296
296)}},CVShapeElement.prototype.renderShape=function(r,y,x,b){var R,M=y.length-1,O;for(O=r,R=M;R>=0;R-=1)y[R].ty==="tr"?(O=x[R].transform,this.renderShapeTransform(r,O)):y[R].ty==="sh"||y[R].ty==="el"||y[R].ty==="rc"||y[R].ty==="sr"?this.renderPath(y[R],x[R]):y[R].ty==="fl"?this.renderFill(y[R],x[R],O):y[R].ty==="st"?this.renderStroke(y[R],x[R],O):y[R].ty==="gf"||y[R].ty==="gs"?this.renderGradientFill(y[R],x[R],O):y[R].ty==="gr"?this.renderShape(O,y[R].it,x[R].it):y[R].ty;b&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(r,y){if(this._isFirstFrame||y._mdf||r.transforms._mdf){var x=r.trNodes,b=y.paths,R,M,O,z=b._length;x.length=0;var U=r.transforms.finalTransform;for(O=0;O<z;O+=1){var G=b.shapes[O];if(G&&G.v){for(M=G._length,R=1;R<M;R+=1)R===1&&x.push({t:"m",p:U.applyToPointArray(G.v[0][0],G.v[0][1],0)}),x.push({t:"c",pts:U.applyToTriplePoints(G.o[R-1],G.i[R],G.v[R])});M===1&&x.push({t:"m",p:U.applyToPointArray(G.v[0][0],G.v[0][1],0)}),G.c&&M&&(x.push({t:"c",pts:U.applyToTriplePoints(G.o[R-1],G.i[0],G.v[0])}),x.push({t:"z"}))}}r.trNodes=x}},CVShapeElement.prototype.renderPath=function(r,y){if(r.hd!==!0&&r._shouldRender){var x,b=y.styledShapes.length;for(x=0;x<b;x+=1)this.renderStyledShape(y.styledShapes[x],y.sh)}},CVShapeElement.prototype.renderFill=function(r,y,x){var b=y.style;(y.c._mdf||this._isFirstFrame)&&(b.co="rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||x._opMdf||this._isFirstFrame)&&(b.coOp=y.o.v*x.opacity)},CVShapeElement.prototype.renderGradientFill=function(r,y,x){var b=y.style,R;if(!b.grd||y.g._mdf||y.s._mdf||y.e._mdf||r.t!==1&&(y.h._mdf||y.a._mdf)){var M=this.globalData.canvasContext,O=y.s.v,z=y.e.v;if(r.t===1)R=M.createLinearGradient(O[0],O[1],z[0],z[1]);else{var U=Math.sqrt(Math.pow(O[0]-z[0],2)+Math.pow(O[1]-z[1],2)),G=Math.atan2(z[1]-O[1],z[0]-O[0]),q=y.h.v;q>=1?q=.99:q<=-1&&(q=-.99);var J=U*q,X=Math.cos(G+y.a.v)*J+O[0],fe=Math.sin(G+y.a.v)*J+O[1];R=M.createRadialGradient(X,fe,0,O[0],O[1],U)}var te,ue=r.g.p,ye=y.g.c,oe=1;for(te=0;te<ue;te+=1)y.g._hasOpacity&&y.g._collapsable&&(oe=y.g.o[te*2+1]),R.addColorStop(ye[te*4]/100,"rgba("+ye[te*4+1]+","+ye[te*4+2]+","+ye[te*4+3]+","+oe+")");b.grd=R}b.coOp=y.o.v*x.opacity},CVShapeElement.prototype.renderStroke=function(r,y,x){var b=y.style,R=y.d;R&&(R._mdf||this._isFirstFrame)&&(b.da=R.dashArray,b.do=R.dashoffset[0]),(y.c._mdf||this._isFirstFrame)&&(b.co="rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||x._opMdf||this._isFirstFrame)&&(b.coOp=y.o.v*x.opacity),(y.w._mdf||this._isFirstFrame)&&(b.wi=y.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(r,y,x){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(r,y,x)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r.l?r.l.length:0);var y=!1;r.fc?(y=!0,this.values.fill=this.buildColor(r.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=y;var x=!1;r.sc&&(x=!0,this.values.stroke=this.buildColor(r.sc),this.values.sWidth=r.sw);var b=this.globalData.fontManager.getFontByName(r.f),R,M,O=r.l,z=this.mHelper;this.stroke=x,this.values.fValue=r.finalSize+"px "+this.globalData.fontManager.getFontByName(r.f).fFamily,M=r.finalText.length;var U,G,q,J,X,fe,te,ue,ye,oe,ne=this.data.singleShape,ae=r.tr*.001*r.finalSize,pe=0,je=0,Ve=!0,Ue=0;for(R=0;R<M;R+=1){U=this.globalData.fontManager.getCharData(r.finalText[R],b.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily),G=U&&U.data||{},z.reset(),ne&&O[R].n&&(pe=-ae,je+=r.yOffset,je+=Ve?1:0,Ve=!1),X=G.shapes?G.shapes[0].it:[],te=X.length,z.scale(r.finalSize/100,r.finalSize/100),ne&&this.applyTextPropertiesToMatrix(r,z,O[R].line,pe,je),ye=createSizedArray(te-1);var $e=0;for(fe=0;fe<te;fe+=1)if(X[fe].ty==="sh"){for(J=X[fe].ks.k.i.length,ue=X[fe].ks.k,oe=[],q=1;q<J;q+=1)q===1&&oe.push(z.applyToX(ue.v[0][0],ue.v[0][1],0),z.applyToY(ue.v[0][0],ue.v[0][1],0)),oe.push(z.applyToX(ue.o[q-1][0],ue.o[q-1][1],0),z.applyToY(ue.o[q-1][0],ue.o[q-1][1],0),z.applyToX(ue.i[q][0],ue.i[q][1],0),z.applyToY(ue.i[q][0],ue.i[q][1],0),z.applyToX(ue.v[q][0],ue.v[q][1],0),z.applyToY(ue.v[q][0],ue.v[q][1],0));oe.push(z.applyToX(ue.o[q-1][0],ue.o[q-1][1],0),z.applyToY(ue.o[q-1][0],ue.o[q-1][1],0),z.applyToX(ue.i[0][0],ue.i[0][1],0),z.applyToY(ue.i[0][0],ue.i[0][1],0),z.applyToX(ue.v[0][0],ue.v[0][1],0),z.applyToY(ue.v[0][0],ue.v[0][1],0)),ye[$e]=oe,$e+=1}ne&&(pe+=O[R].l,pe+=ae),this.textSpans[Ue]?this.textSpans[Ue].elem=ye:this.textSpans[Ue]={elem:ye},Ue+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var r=this.canvasContext;r.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 y,x,b,R,M,O,z=this.textAnimator.renderedLetters,U=this.textProperty.currentData.l;x=U.length;var G,q=null,J=null,X=null,fe,te,ue=this.globalData.renderer;for(y=0;y<x;y+=1)if(!U[y].n){if(G=z[y],G&&(ue.save(),ue.ctxTransform(G.p),ue.ctxOpacity(G.o)),this.fill){for(G&&G.fc?q!==G.fc&&(ue.ctxFillStyle(G.fc),q=G.fc):q!==this.values.fill&&(q=this.values.fill,ue.ctxFillStyle(this.values.fill)),fe=this.textSpans[y].elem,R=fe.length,this.globalData.canvasContext.beginPath(),b=0;b<R;b+=1)for(te=fe[b],O=te.length,this.globalData.canvasContext.moveTo(te[0],te[1]),M=2;M<O;M+=6)this.globalData.canvasContext.bezierCurveTo(te[M],te[M+1],te[M+2],te[M+3],te[M+4],te[M+5]);this.globalData.canvasContext.closePath(),ue.ctxFill()}if(this.stroke){for(G&&G.sw?X!==G.sw&&(X=G.sw,ue.ctxLineWidth(G.sw)):X!==this.values.sWidth&&(X=this.values.sWidth,ue.ctxLineWidth(this.values.sWidth)),G&&G.sc?J!==G.sc&&(J=G.sc,ue.ctxStrokeStyle(G.sc)):J!==this.values.stroke&&(J=this.values.stroke,ue.ctxStrokeStyle(this.values.stroke)),fe=this.textSpans[y].elem,R=fe.length,this.globalData.canvasContext.beginPath(),b=0;b<R;b+=1)for(te=fe[b],O=te.length,this.globalData.canvasContext.moveTo(te[0],te[1]),M=2;M<O;M+=6)this.globalData.canvasContext.bezierCurveTo(te[M],te[M+1],te[M+2],te[M+3],te[M+4],te[M+5]);this.globalData.canvasContext.closePath(),ue.ctxStroke()}G&&this.globalData.renderer.restore()}};function CVImageElement(r,y,x){this.assetData=y.getAssetData(r.refId),this.img=y.imageLoader.getAsset(this.assetData),this.initElement(r,y,x)}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 r=createTag("canvas");r.width=this.assetData.w,r.height=this.assetData.h;var y=r.getContext("2d"),x=this.img.width,b=this.img.height,R=x/b,M=this.assetData.w/this.assetData.h,O,z,U=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;R>M&&U==="xMidYMid slice"||R<M&&U!=="xMidYMid slice"?(z=b,O=z*M):(O=x,z=O/M),y.drawImage(this.img,(x-O)/2,(b-z)/2,O,z,0,0,this.assetData.w,this.assetData.h),this.img=r}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(r,y,x){this.initElement(r,y,x)}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(r){return new CVShapeElement(r,this.globalData,this)},CanvasRendererBase.prototype.createText=function(r){return new CVTextElement(r,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(r){return new CVImageElement(r,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(r){return new CVSolidElement(r,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(r){r[0]===1&&r[1]===0&&r[4]===0&&r[5]===1&&r[12]===0&&r[13]===0||this.canvasContext.transform(r[0],r[1],r[4],r[5],r[12],r[13])},CanvasRendererBase.prototype.ctxOpacity=function(r){this.canvasContext.globalAlpha*=r<0?0:r},CanvasRendererBase.prototype.ctxFillStyle=function(r){this.canvasContext.fillStyle=r},CanvasRendererBase.prototype.ctxStrokeStyle=function(r){this.canvasContext.strokeStyle=r},CanvasRendererBase.prototype.ctxLineWidth=function(r){this.canvasContext.lineWidth=r},CanvasRendererBase.prototype.ctxLineCap=function(r){this.canvasContext.lineCap=r},CanvasRendererBase.prototype.ctxLineJoin=function(r){this.canvasContext.lineJoin=r},CanvasRendererBase.prototype.ctxMiterLimit=function(r){this.canvasContext.miterLimit=r},CanvasRendererBase.prototype.ctxFill=function(r){this.canvasContext.fill(r)},CanvasRendererBase.prototype.ctxFillRect=function(r,y,x,b){this.canvasContext.fillRect(r,y,x,b)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(r){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}r&&(this.globalData.blendMode="source-over"),this.contextData.restore(r)},CanvasRendererBase.prototype.configAnimation=function(r){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var y=this.animationItem.container.style;y.width="100%",y.height="100%";var x="0px 0px 0px";y.transformOrigin=x,y.mozTransformOrigin=x,y.webkitTransformOrigin=x,y["-webkit-transform"]=x,y.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=r,this.layers=r.layers,this.transformCanvas={w:r.w,h:r.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(r,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(r.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(r,y){this.reset();var x,b;r?(x=r,b=y,this.canvasContext.canvas.width=x,this.canvasContext.canvas.height=b):(this.animationItem.wrapper&&this.animationItem.container?(x=this.animationItem.wrapper.offsetWidth,b=this.animationItem.wrapper.offsetHeight):(x=this.canvasContext.canvas.width,b=this.canvasContext.canvas.height),this.canvasContext.canvas.width=x*this.renderConfig.dpr,this.canvasContext.canvas.height=b*this.renderConfig.dpr);var R,M;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var O=this.renderConfig.preserveAspectRatio.split(" "),z=O[1]||"meet",U=O[0]||"xMidYMid",G=U.substr(0,4),q=U.substr(4);R=x/b,M=this.transformCanvas.w/this.transformCanvas.h,M>R&&z==="meet"||M<R&&z==="slice"?(this.transformCanvas.sx=x/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=x/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=b/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=b/(this.transformCanvas.h/this.renderConfig.dpr)),G==="xMid"&&(M<R&&z==="meet"||M>R&&z==="slice")?this.transformCanvas.tx=(x-this.transformCanvas.w*(b/this.transformCanvas.h))/2*this.renderConfig.dpr:G==="xMax"&&(M<R&&z==="meet"||M>R&&z==="slice")?this.transformCanvas.tx=(x-this.transformCanvas.w*(b/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,q==="YMid"&&(M>R&&z==="meet"||M<R&&z==="slice")?this.transformCanvas.ty=(b-this.transformCanvas.h*(x/this.transformCanvas.w))/2*this.renderConfig.dpr:q==="YMax"&&(M>R&&z==="meet"||M<R&&z==="slice")?this.transformCanvas.ty=(b-this.transformCanvas.h*(x/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=x/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=b/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var r,y=this.layers?this.layers.length:0;for(r=y-1;r>=0;r-=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(r,y){if(!(this.renderedFrame===r&&this.renderConfig.clearCanvas===!0&&!y||this.destroyed||r===-1)){this.renderedFrame=r,this.globalData.frameNum=r-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||y,this.globalData.projectInterface.currentFrame=r;var x,b=this.layers.length;for(this.completeLayers||this.checkLayers(r),x=b-1;x>=0;x-=1)(this.completeLayers||this.elements[x])&&this.elements[x].prepareFrame(r-this.layers[x].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),x=b-1;x>=0;x-=1)(this.completeLayers||this.elements[x])&&this.elements[x].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(r){var y=this.elements;if(!(y[r]||this.layers[r].ty===99)){var x=this.createItem(this.layers[r],this,this.globalData);y[r]=x,x.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();r.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 r,y=15;for(r=0;r<y;r+=1){var x=new CanvasContext;this.stack[r]=x}this._length=y,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 r=this._length*2,y=0;for(y=this._length;y<r;y+=1)this.stack[y]=new CanvasContext;this._length=r},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(r){this.cArrPos-=1;var y=this.stack[this.cArrPos],x=y.transform,b,R=this.cTr.props;for(b=0;b<16;b+=1)R[b]=x[b];if(r){this.nativeContext.restore();var M=this.stack[this.cArrPos+1];this.appliedFillStyle=M.fillStyle,this.appliedStrokeStyle=M.strokeStyle,this.appliedLineWidth=M.lineWidth,this.appliedLineCap=M.lineCap,this.appliedLineJoin=M.lineJoin,this.appliedMiterLimit=M.miterLimit}this.nativeContext.setTransform(x[0],x[1],x[4],x[5],x[12],x[13]),(r||y.opacity!==-1&&this.currentOpacity!==y.opacity)&&(this.nativeContext.globalAlpha=y.opacity,this.currentOpacity=y.opacity),this.currentFillStyle=y.fillStyle,this.currentStrokeStyle=y.strokeStyle,this.currentLineWidth=y.lineWidth,this.currentLineCap=y.lineCap,this.currentLineJoin=y.lineJoin,this.currentMiterLimit=y.miterLimit},CVContextData.prototype.save=function(r){r&&this.nativeContext.save();var y=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var x=this.stack[this.cArrPos],b;for(b=0;b<16;b+=1)x.transform[b]=y[b];this.cArrPos+=1;var R=this.stack[this.cArrPos];R.opacity=x.opacity,R.fillStyle=x.fillStyle,R.strokeStyle=x.strokeStyle,R.lineWidth=x.lineWidth,R.lineCap=x.lineCap,R.lineJoin=x.lineJoin,R.miterLimit=x.miterLimit},CVContextData.prototype.setOpacity=function(r){this.stack[this.cArrPos].opacity=r},CVContextData.prototype.setContext=function(r){this.nativeContext=r},CVContextData.prototype.fillStyle=function(r){this.stack[this.cArrPos].fillStyle!==r&&(this.currentFillStyle=r,this.stack[this.cArrPos].fillStyle=r)},CVContextData.prototype.strokeStyle=function(r){this.stack[this.cArrPos].strokeStyle!==r&&(this.currentStrokeStyle=r,this.stack[this.cArrPos].strokeStyle=r)},CVContextData.prototype.lineWidth=function(r){this.stack[this.cArrPos].lineWidth!==r&&(this.currentLineWidth=r,this.stack[this.cArrPos].lineWidth=r)},CVContextData.prototype.lineCap=function(r){this.stack[this.cArrPos].lineCap!==r&&(this.currentLineCap=r,this.stack[this.cArrPos].lineCap=r)},CVContextData.prototype.lineJoin=function(r){this.stack[this.cArrPos].lineJoin!==r&&(this.currentLineJoin=r,this.stack[this.cArrPos].lineJoin=r)},CVContextData.prototype.miterLimit=function(r){this.stack[this.cArrPos].miterLimit!==r&&(this.currentMiterLimit=r,this.stack[this.cArrPos].miterLimit=r)},CVContextData.prototype.transform=function(r){this.transformMat.cloneFromProps(r);var y=this.cTr;this.transformMat.multiply(y),y.cloneFromProps(this.transformMat.props);var x=y.props;this.nativeContext.setTransform(x[0],x[1],x[4],x[5],x[12],x[13])},CVContextData.prototype.opacity=function(r){var y=this.stack[this.cArrPos].opacity;y*=r<0?0:r,this.stack[this.cArrPos].opacity!==y&&(this.currentOpacity!==r&&(this.nativeContext.globalAlpha=r,this.currentOpacity=r),this.stack[this.cArrPos].opacity=y)},CVContextData.prototype.fill=function(r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(r)},CVContextData.prototype.fillRect=function(r,y,x,b){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(r,y,x,b)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(r,y,x){this.completeLayers=!1,this.layers=r.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(r,y,x),this.tm=r.tm?PropertyFactory.getProp(this,r.tm,0,y.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var r=this.canvasContext;r.beginPath(),r.moveTo(0,0),r.lineTo(this.data.w,0),r.lineTo(this.data.w,this.data.h),r.lineTo(0,this.data.h),r.lineTo(0,0),r.clip();var y,x=this.layers.length;for(y=x-1;y>=0;y-=1)(this.completeLayers||this.elements[y])&&this.elements[y].renderFrame()},CVCompElement.prototype.destroy=function(){var r,y=this.layers.length;for(r=y-1;r>=0;r-=1)this.elements[r]&&this.elements[r].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(r){return new CVCompElement(r,this.globalData,this)};function CanvasRenderer(r,y){this.animationItem=r,this.renderConfig={clearCanvas:y&&y.clearCanvas!==void 0?y.clearCanvas:!0,context:y&&y.context||null,progressiveLoad:y&&y.progressiveLoad||!1,preserveAspectRatio:y&&y.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:y&&y.contentVisibility||"visible",className:y&&y.className||"",id:y&&y.id||"",runExpressions:!y||y.runExpressions===void 0||y.runExpressions},this.renderConfig.dpr=y&&y.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=y&&y.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(r){return new CVCompElement(r,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 y=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var x=this.finalTransform.mat.toCSS();y.transform=x,y.webkitTransform=x}this.finalTransform._opMdf&&(y.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(r,y,x){this.initElement(r,y,x)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var r;this.data.hasMask?(r=createNS("rect"),r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(r=createTag("div"),r.style.width=this.data.sw+"px",r.style.height=this.data.sh+"px",r.style.backgroundColor=this.data.sc),this.layerElement.appendChild(r)};function HShapeElement(r,y,x){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(r,y,x),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 r;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),r=this.svgElement;else{r=createNS("svg");var y=this.comp.data?this.comp.data:this.globalData.compSize;r.setAttribute("width",y.w),r.setAttribute("height",y.h),r.appendChild(this.shapesContainer),this.layerElement.appendChild(r)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=r},HShapeElement.prototype.getTransformedPoint=function(r,y){var x,b=r.length;for(x=0;x<b;x+=1)y=r[x].mProps.v.applyToPointArray(y[0],y[1],0);return y},HShapeElement.prototype.calculateShapeBoundingBox=function(r,y){var x=r.sh.v,b=r.transformers,R,M=x._length,O,z,U,G;if(!(M<=1)){for(R=0;R<M-1;R+=1)O=this.getTransformedPoint(b,x.v[R]),z=this.getTransformedPoint(b,x.o[R]),U=this.getTransformedPoint(b,x.i[R+1]),G=this.getTransformedPoint(b,x.v[R+1]),this.checkBounds(O,z,U,G,y);x.c&&(O=this.getTransformedPoint(b,x.v[R]),z=this.getTransformedPoint(b,x.o[R]),U=this.getTransformedPoint(b,x.i[0]),G=this.getTransformedPoint(b,x.v[0]),this.checkBounds(O,z,U,G,y))}},HShapeElement.prototype.checkBounds=function(r,y,x,b,R){this.getBoundsOfCurve(r,y,x,b);var M=this.shapeBoundingBox;R.x=bmMin(M.left,R.x),R.xMax=bmMax(M.right,R.xMax),R.y=bmMin(M.top,R.y),R.yMax=bmMax(M.bottom,R.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(r,y,x,b){for(var R=[[r[0],b[0]],[r[1],b[1]]],M,O,z,U,G,q,J,X=0;X<2;++X)O=6*r[X]-12*y[X]+6*x[X],M=-3*r[X]+9*y[X]-9*x[X]+3*b[X],z=3*y[X]-3*r[X],O|=0,M|=0,z|=0,M===0&&O===0||(M===0?(U=-z/O,U>0&&U<1&&R[X].push(this.calculateF(U,r,y,x,b,X))):(G=O*O-4*z*M,G>=0&&(q=(-O+bmSqrt(G))/(2*M),q>0&&q<1&&R[X].push(this.calculateF(q,r,y,x,b,X)),J=(-O-bmSqrt(G))/(2*M),J>0&&J<1&&R[X].push(this.calculateF(J,r,y,x,b,X)))));this.shapeBoundingBox.left=bmMin.apply(null,R[0]),this.shapeBoundingBox.top=bmMin.apply(null,R[1]),this.shapeBoundingBox.right=bmMax.apply(null,R[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,R[1])},HShapeElement.prototype.calculateF=function(r,y,x,b,R,M){return bmPow(1-r,3)*y[M]+3*bmPow(1-r,2)*r*x[M]+3*(1-r)*bmPow(r,2)*b[M]+bmPow(r,3)*R[M]},HShapeElement.prototype.calculateBoundingBox=function(r,y){var x,b=r.length;for(x=0;x<b;x+=1)r[x]&&r[x].sh?this.calculateShapeBoundingBox(r[x],y):r[x]&&r[x].it?this.calculateBoundingBox(r[x].it,y):r[x]&&r[x].style&&r[x].w&&this.expandStrokeBoundingBox(r[x].w,y)},HShapeElement.prototype.expandStrokeBoundingBox=function(r,y){var x=0;if(r.keyframes){for(var b=0;b<r.keyframes.length;b+=1){var R=r.keyframes[b].s;R>x&&(x=R)}x*=r.mult}else x=r.v*r.mult;y.x-=x,y.xMax+=x,y.y-=x,y.yMax+=x},HShapeElement.prototype.currentBoxContains=function(r){return this.currentBBox.x<=r.x&&this.currentBBox.y<=r.y&&this.currentBBox.width+this.currentBBox.x>=r.x+r.width&&this.currentBBox.height+this.currentBBox.y>=r.y+r.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var r=this.tempBoundingBox,y=999999;if(r.x=y,r.xMax=-y,r.y=y,r.yMax=-y,this.calculateBoundingBox(this.itemsData,r),r.width=r.xMax<r.x?0:r.xMax-r.x,r.height=r.yMax<r.y?0:r.yMax-r.y,this.currentBoxContains(r))return;var x=!1;if(this.currentBBox.w!==r.width&&(this.currentBBox.w=r.width,this.shapeCont.setAttribute("width",r.width),x=!0),this.currentBBox.h!==r.height&&(this.currentBBox.h=r.height,this.shapeCont.setAttribute("height",r.height),x=!0),x||this.currentBBox.x!==r.x||this.currentBBox.y!==r.y){this.currentBBox.w=r.width,this.currentBBox.h=r.height,this.currentBBox.x=r.x,this.currentBBox.y=r.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var b=this.shapeCont.style,R="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";b.transform=R,b.webkitTransform=R}}};function HTextElement(r,y,x){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(r,y,x)}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 r=createNS("g");this.maskedElement.appendChild(r),this.innerElem=r}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r.l?r.l.length:0);var y=this.innerElem.style,x=r.fc?this.buildColor(r.fc):"rgba(0,0,0,0)";y.fill=x,y.color=x,r.sc&&(y.stroke=this.buildColor(r.sc),y.strokeWidth=r.sw+"px");var b=this.globalData.fontManager.getFontByName(r.f);if(!this.globalData.fontManager.chars)if(y.fontSize=r.finalSize+"px",y.lineHeight=r.finalSize+"px",b.fClass)this.innerElem.className=b.fClass;else{y.fontFamily=b.fFamily;var R=r.fWeight,M=r.fStyle;y.fontStyle=M,y.fontWeight=R}var O,z,U=r.l;z=U.length;var G,q,J,X=this.mHelper,fe,te="",ue=0;for(O=0;O<z;O+=1){if(this.globalData.fontManager.chars?(this.textPaths[ue]?G=this.textPaths[ue]:(G=createNS("path"),G.setAttribute("stroke-linecap",lineCapEnum[1]),G.setAttribute("stroke-linejoin",lineJoinEnum[2]),G.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[ue]?(q=this.textSpans[ue],J=q.children[0]):(q=createTag("div"),q.style.lineHeight=0,J=createNS("svg"),J.appendChild(G),styleDiv(q)))):this.isMasked?G=this.textPaths[ue]?this.textPaths[ue]:createNS("text"):this.textSpans[ue]?(q=this.textSpans[ue],G=this.textPaths[ue]):(q=createTag("span"),styleDiv(q),G=createTag("span"),styleDiv(G),q.appendChild(G)),this.globalData.fontManager.chars){var ye=this.globalData.fontManager.getCharData(r.finalText[O],b.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily),oe;if(ye?oe=ye.data:oe=null,X.reset(),oe&&oe.shapes&&oe.shapes.length&&(fe=oe.shapes[0].it,X.scale(r.finalSize/100,r.finalSize/100),te=this.createPathShape(X,fe),G.setAttribute("d",te)),this.isMasked)this.innerElem.appendChild(G);else{if(this.innerElem.appendChild(q),oe&&oe.shapes){document.body.appendChild(J);var ne=J.getBBox();J.setAttribute("width",ne.width+2),J.setAttribute("height",ne.height+2),J.setAttribute("viewBox",ne.x-1+" "+(ne.y-1)+" "+(ne.width+2)+" "+(ne.height+2));var ae=J.style,pe="translate("+(ne.x-1)+"px,"+(ne.y-1)+"px)";ae.transform=pe,ae.webkitTransform=pe,U[O].yOffset=ne.y-1}else J.setAttribute("width",1),J.setAttribute("height",1);q.appendChild(J)}}else if(G.textContent=U[O].val,G.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(G);else{this.innerElem.appendChild(q);var je=G.style,Ve="translate3d(0,"+-r.finalSize/1.2+"px,0)";je.transform=Ve,je.webkitTransform=Ve}this.isMasked?this.textSpans[ue]=G:this.textSpans[ue]=q,this.textSpans[ue].style.display="block",this.textPaths[ue]=G,ue+=1}for(;ue<this.textSpans.length;)this.textSpans[ue].style.display="none",ue+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var r;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),r=this.svgElement.style;var y="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";r.transform=y,r.webkitTransform=y}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var x,b,R=0,M=this.textAnimator.renderedLetters,O=this.textProperty.currentData.l;b=O.length;var z,U,G;for(x=0;x<b;x+=1)O[x].n?R+=1:(U=this.textSpans[x],G=this.textPaths[x],z=M[R],R+=1,z._mdf.m&&(this.isMasked?U.setAttribute("transform",z.m):(U.style.webkitTransform=z.m,U.style.transform=z.m)),U.style.opacity=z.o,z.sw&&z._mdf.sw&&G.setAttribute("stroke-width",z.sw),z.sc&&z._mdf.sc&&G.setAttribute("stroke",z.sc),z.fc&&z._mdf.fc&&(G.setAttribute("fill",z.fc),G.style.color=z.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var q=this.innerElem.getBBox();this.currentBBox.w!==q.width&&(this.currentBBox.w=q.width,this.svgElement.setAttribute("width",q.width)),this.currentBBox.h!==q.height&&(this.currentBBox.h=q.height,this.svgElement.setAttribute("height",q.height));var J=1;if(this.currentBBox.w!==q.width+J*2||this.currentBBox.h!==q.height+J*2||this.currentBBox.x!==q.x-J||this.currentBBox.y!==q.y-J){this.currentBBox.w=q.width+J*2,this.currentBBox.h=q.height+J*2,this.currentBBox.x=q.x-J,this.currentBBox.y=q.y-J,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),r=this.svgElement.style;var X="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=X,r.webkitTransform=X}}}};function HCameraElement(r,y,x){this.initFrame(),this.initBaseData(r,y,x),this.initHierarchy();var b=PropertyFactory.getProp;if(this.pe=b(this,r.pe,0,0,this),r.ks.p.s?(this.px=b(this,r.ks.p.x,1,0,this),this.py=b(this,r.ks.p.y,1,0,this),this.pz=b(this,r.ks.p.z,1,0,this)):this.p=b(this,r.ks.p,1,0,this),r.ks.a&&(this.a=b(this,r.ks.a,1,0,this)),r.ks.or.k.length&&r.ks.or.k[0].to){var R,M=r.ks.or.k.length;for(R=0;R<M;R+=1)r.ks.or.k[R].to=null,r.ks.or.k[R].ti=null}this.or=b(this,r.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=b(this,r.ks.rx,0,degToRads,this),this.ry=b(this,r.ks.ry,0,degToRads,this),this.rz=b(this,r.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 r,y=this.comp.threeDElements.length,x,b,R;for(r=0;r<y;r+=1)if(x=this.comp.threeDElements[r],x.type==="3d"){b=x.perspectiveElem.style,R=x.container.style;var M=this.pe.v+"px",O="0px 0px 0px",z="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";b.perspective=M,b.webkitPerspective=M,R.transformOrigin=O,R.mozTransformOrigin=O,R.webkitTransformOrigin=O,b.transform=z,b.webkitTransform=z}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var r=this._isFirstFrame,y,x;if(this.hierarchy)for(x=this.hierarchy.length,y=0;y<x;y+=1)r=this.hierarchy[y].finalTransform.mProp._mdf||r;if(r||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(x=this.hierarchy.length-1,y=x;y>=0;y-=1){var b=this.hierarchy[y].finalTransform.mProp;this.mat.translate(-b.p.v[0],-b.p.v[1],b.p.v[2]),this.mat.rotateX(-b.or.v[0]).rotateY(-b.or.v[1]).rotateZ(b.or.v[2]),this.mat.rotateX(-b.rx.v).rotateY(-b.ry.v).rotateZ(b.rz.v),this.mat.scale(1/b.s.v[0],1/b.s.v[1],1/b.s.v[2]),this.mat.translate(b.a.v[0],b.a.v[1],b.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var R;this.p?R=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:R=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var M=Math.sqrt(Math.pow(R[0],2)+Math.pow(R[1],2)+Math.pow(R[2],2)),O=[R[0]/M,R[1]/M,R[2]/M],z=Math.sqrt(O[2]*O[2]+O[0]*O[0]),U=Math.atan2(O[1],z),G=Math.atan2(O[0],-O[2]);this.mat.rotateY(G).rotateX(-U)}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 q=!this._prevMat.equals(this.mat);if((q||this.pe._mdf)&&this.comp.threeDElements){x=this.comp.threeDElements.length;var J,X,fe;for(y=0;y<x;y+=1)if(J=this.comp.threeDElements[y],J.type==="3d"){if(q){var te=this.mat.toCSS();fe=J.container.style,fe.transform=te,fe.webkitTransform=te}this.pe._mdf&&(X=J.perspectiveElem.style,X.perspective=this.pe.v+"px",X.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(r,y,x){this.assetData=y.getAssetData(r.refId),this.initElement(r,y,x)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData),y=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",r),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(y),y.crossOrigin="anonymous",y.src=r,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(r,y){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:y&&y.className||"",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(y&&y.hideOnTransparent===!1),filterSize:{width:y&&y.filterSize&&y.filterSize.width||"400%",height:y&&y.filterSize&&y.filterSize.height||"400%",x:y&&y.filterSize&&y.filterSize.x||"-100%",y:y&&y.filterSize&&y.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 r=this.pendingElements.pop();r.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(r,y){var x=r.getBaseElement();if(x){var b=this.layers[y];if(!b.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(x,y);else{for(var R=0,M,O,z;R<y;)this.elements[R]&&this.elements[R]!==!0&&this.elements[R].getBaseElement&&(O=this.elements[R],z=this.layers[R].ddd?this.getThreeDContainerByPos(R):O.getBaseElement(),M=z||M),R+=1;M?(!b.ddd||!this.supports3d)&&this.layerElement.insertBefore(x,M):(!b.ddd||!this.supports3d)&&this.layerElement.appendChild(x)}else this.addTo3dContainer(x,y)}},HybridRendererBase.prototype.createShape=function(r){return this.supports3d?new HShapeElement(r,this.globalData,this):new SVGShapeElement(r,this.globalData,this)},HybridRendererBase.prototype.createText=function(r){return this.supports3d?new HTextElement(r,this.globalData,this):new SVGTextLottieElement(r,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(r){return this.camera=new HCameraElement(r,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(r){return this.supports3d?new HImageElement(r,this.globalData,this):new IImageElement(r,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(r){return this.supports3d?new HSolidElement(r,this.globalData,this):new ISolidElement(r,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(r){for(var y=0,x=this.threeDElements.length;y<x;){if(this.threeDElements[y].startPos<=r&&this.threeDElements[y].endPos>=r)return this.threeDElements[y].perspectiveElem;y+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(r,y){var x=createTag("div"),b,R;styleDiv(x);var M=createTag("div");if(styleDiv(M),y==="3d"){b=x.style,b.width=this.globalData.compSize.w+"px",b.height=this.globalData.compSize.h+"px";var O="50% 50%";b.webkitTransformOrigin=O,b.mozTransformOrigin=O,b.transformOrigin=O,R=M.style;var z="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";R.transform=z,R.webkitTransform=z}x.appendChild(M);var U={container:M,perspectiveElem:x,startPos:r,endPos:r,type:y};return this.threeDElements.push(U),U},HybridRendererBase.prototype.build3dContainers=function(){var r,y=this.layers.length,x,b="";for(r=0;r<y;r+=1)this.layers[r].ddd&&this.layers[r].ty!==3?(b!=="3d"&&(b="3d",x=this.createThreeDContainer(r,"3d")),x.endPos=Math.max(x.endPos,r)):(b!=="2d"&&(b="2d",x=this.createThreeDContainer(r,"2d")),x.endPos=Math.max(x.endPos,r));for(y=this.threeDElements.length,r=y-1;r>=0;r-=1)this.resizerElem.appendChild(this.threeDElements[r].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(r,y){for(var x=0,b=this.threeDElements.length;x<b;){if(y<=this.threeDElements[x].endPos){for(var R=this.threeDElements[x].startPos,M;R<y;)this.elements[R]&&this.elements[R].getBaseElement&&(M=this.elements[R].getBaseElement()),R+=1;M?this.threeDElements[x].container.insertBefore(r,M):this.threeDElements[x].container.appendChild(r);break}x+=1}},HybridRendererBase.prototype.configAnimation=function(r){var y=createTag("div"),x=this.animationItem.wrapper,b=y.style;b.width=r.w+"px",b.height=r.h+"px",this.resizerElem=y,styleDiv(y),b.transformStyle="flat",b.mozTransformStyle="flat",b.webkitTransformStyle="flat",this.renderConfig.className&&y.setAttribute("class",this.renderConfig.className),x.appendChild(y),b.overflow="hidden";var R=createNS("svg");R.setAttribute("width","1"),R.setAttribute("height","1"),styleDiv(R),this.resizerElem.appendChild(R);var M=createNS("defs");R.appendChild(M),this.data=r,this.setupGlobalData(r,R),this.globalData.defs=M,this.layers=r.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 r,y=this.layers?this.layers.length:0;for(r=0;r<y;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var r=this.animationItem.wrapper.offsetWidth,y=this.animationItem.wrapper.offsetHeight,x=r/y,b=this.globalData.compSize.w/this.globalData.compSize.h,R,M,O,z;b>x?(R=r/this.globalData.compSize.w,M=r/this.globalData.compSize.w,O=0,z=(y-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(R=y/this.globalData.compSize.h,M=y/this.globalData.compSize.h,O=(r-this.globalData.compSize.w*(y/this.globalData.compSize.h))/2,z=0);var U=this.resizerElem.style;U.webkitTransform="matrix3d("+R+",0,0,0,0,"+M+",0,0,0,0,1,0,"+O+","+z+",0,1)",U.transform=U.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 r=this.globalData.compSize.w,y=this.globalData.compSize.h,x,b=this.threeDElements.length;for(x=0;x<b;x+=1){var R=this.threeDElements[x].perspectiveElem.style;R.webkitPerspective=Math.sqrt(Math.pow(r,2)+Math.pow(y,2))+"px",R.perspective=R.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(r){var y,x=r.length,b=createTag("div");for(y=0;y<x;y+=1)if(r[y].xt){var R=this.createComp(r[y],b,this.globalData.comp,null);R.initExpressions(),this.globalData.projectInterface.registerComposition(R)}};function HCompElement(r,y,x){this.layers=r.layers,this.supports3d=!r.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(r,y,x),this.tm=r.tm?PropertyFactory.getProp(this,r.tm,0,y.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(r,y){for(var x=0,b;x<y;)this.elements[x]&&this.elements[x].getBaseElement&&(b=this.elements[x].getBaseElement()),x+=1;b?this.layerElement.insertBefore(r,b):this.layerElement.appendChild(r)},HCompElement.prototype.createComp=function(r){return this.supports3d?new HCompElement(r,this.globalData,this):new SVGCompElement(r,this.globalData,this)};function HybridRenderer(r,y){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:y&&y.className||"",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(y&&y.hideOnTransparent===!1),filterSize:{width:y&&y.filterSize&&y.filterSize.width||"400%",height:y&&y.filterSize&&y.filterSize.height||"400%",x:y&&y.filterSize&&y.filterSize.x||"-100%",y:y&&y.filterSize&&y.filterSize.y||"-100%"},runExpressions:!y||y.runExpressions===void 0||y.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(r){return this.supports3d?new HCompElement(r,this.globalData,this):new SVGCompElement(r,this.globalData,this)};var CompExpressionInterface=(function(){return function(r){function y(x){for(var b=0,R=r.layers.length;b<R;){if(r.layers[b].nm===x||r.layers[b].ind===x)return r.elements[b].layerInterface;b+=1}return null}return Object.defineProperty(y,"_name",{value:r.data.nm}),y.layer=y,y.pixelAspect=1,y.height=r.data.h||r.globalData.compSize.h,y.width=r.data.w||r.globalData.compSize.w,y.pixelAspect=1,y.frameDuration=1/r.globalData.frameRate,y.displayStartTime=0,y.numLayers=r.layers.length,y}})();function _typeof$2(r){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof$2(r)}function seedRandom(r,y){var x=this,b=256,R=6,M=52,O="random",z=y.pow(b,R),U=y.pow(2,M),G=U*2,q=b-1,J;function X(ae,pe,je){var Ve=[];pe=pe===!0?{entropy:!0}:pe||{};var Ue=ye(ue(pe.entropy?[ae,ne(r)]:ae===null?oe():ae,3),Ve),$e=new fe(Ve),We=function(){for(var ct=$e.g(R),it=z,ft=0;ct<U;)ct=(ct+ft)*b,it*=b,ft=$e.g(1);for(;ct>=G;)ct/=2,it/=2,ft>>>=1;return(ct+ft)/it};return We.int32=function(){return $e.g(4)|0},We.quick=function(){return $e.g(4)/4294967296},We.double=We,ye(ne($e.S),r),(pe.pass||je||function(ot,ct,it,ft){return ft&&(ft.S&&te(ft,$e),ot.state=function(){return te($e,{})}),it?(y[O]=ot,ct):ot})(We,Ue,"global"in pe?pe.global:this==y,pe.state)}y["seed"+O]=X;function fe(ae){var pe,je=ae.length,Ve=this,Ue=0,$e=Ve.i=Ve.j=0,We=Ve.S=[];for(je||(ae=[je++]);Ue<b;)We[Ue]=Ue++;for(Ue=0;Ue<b;Ue++)We[Ue]=We[$e=q&$e+ae[Ue%je]+(pe=We[Ue])],We[$e]=pe;Ve.g=function(ot){for(var ct,it=0,ft=Ve.i,dt=Ve.j,nt=Ve.S;ot--;)ct=nt[ft=q&ft+1],it=it*b+nt[q&(nt[ft]=nt[dt=q&dt+ct])+(nt[dt]=ct)];return Ve.i=ft,Ve.j=dt,it}}function te(ae,pe){return pe.i=ae.i,pe.j=ae.j,pe.S=ae.S.slice(),pe}function ue(ae,pe){var je=[],Ve=_typeof$2(ae),Ue;if(pe&&Ve=="object")for(Ue in ae)try{je.push(ue(ae[Ue],pe-1))}catch{}return je.length?je:Ve=="string"?ae:ae+"\0"}function ye(ae,pe){for(var je=ae+"",Ve,Ue=0;Ue<je.length;)pe[q&Ue]=q&(Ve^=pe[q&Ue]*19)+je.charCodeAt(Ue++);return ne(pe)}function oe(){try{var ae=new Uint8Array(b);return(x.crypto||x.msCrypto).getRandomValues(ae),ne(ae)}catch{var pe=x.navigator,je=pe&&pe.plugins;return[+new Date,x,je,x.screen,ne(r)]}}function ne(ae){return String.fromCharCode.apply(0,ae)}ye(y.random(),r)}function initialize$2(r){seedRandom([],r)}var propTypes={SHAPE:"shape"};function _typeof$1(r){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof$1(r)}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(r){return r.constructor===Array||r.constructor===Float32Array}function isNumerable(r,y){return r==="number"||y instanceof Number||r==="boolean"||r==="string"}function $bm_neg(r){var y=_typeof$1(r);if(y==="number"||r instanceof Number||y==="boolean")return-r;if($bm_isInstanceOfArray(r)){var x,b=r.length,R=[];for(x=0;x<b;x+=1)R[x]=-r[x];return R}return r.propType?r.v:-r}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(r,y){var x=_typeof$1(r),b=_typeof$1(y);if(isNumerable(x,r)&&isNumerable(b,y)||x==="string"||b==="string")return r+y;if($bm_isInstanceOfArray(r)&&isNumerable(b,y))return r=r.slice(0),r[0]+=y,r;if(isNumerable(x,r)&&$bm_isInstanceOfArray(y))return y=y.slice(0),y[0]=r+y[0],y;if($bm_isInstanceOfArray(r)&&$bm_isInstanceOfArray(y)){for(var R=0,M=r.length,O=y.length,z=[];R<M||R<O;)(typeof r[R]=="number"||r[R]instanceof Number)&&(typeof y[R]=="number"||y[R]instanceof Number)?z[R]=r[R]+y[R]:z[R]=y[R]===void 0?r[R]:r[R]||y[R],R+=1;return z}return 0}var add=sum;function sub(r,y){var x=_typeof$1(r),b=_typeof$1(y);if(isNumerable(x,r)&&isNumerable(b,y))return x==="string"&&(r=parseInt(r,10)),b==="string"&&(y=parseInt(y,10)),r-y;if($bm_isInstanceOfArray(r)&&isNumerable(b,y))return r=r.slice(0),r[0]-=y,r;if(isNumerable(x,r)&&$bm_isInstanceOfArray(y))return y=y.slice(0),y[0]=r-y[0],y;if($bm_isInstanceOfArray(r)&&$bm_isInstanceOfArray(y)){for(var R=0,M=r.length,O=y.length,z=[];R<M||R<O;)(typeof r[R]=="number"||r[R]instanceof Number)&&(typeof y[R]=="number"||y[R]instanceof Number)?z[R]=r[R]-y[R]:z[R]=y[R]===void 0?r[R]:r[R]||y[R],R+=1;return z}return 0}function mul(r,y){var x=_typeof$1(r),b=_typeof$1(y),R;if(isNumerable(x,r)&&isNumerable(b,y))return r*y;var M,O;if($bm_isInstanceOfArray(r)&&isNumerable(b,y)){for(O=r.length,R=createTypedArray("float32",O),M=0;M<O;M+=1)R[M]=r[M]*y;return R}if(isNumerable(x,r)&&$bm_isInstanceOfArray(y)){for(O=y.length,R=createTypedArray("float32",O),M=0;M<O;M+=1)R[M]=r*y[M];return R}return 0}function div(r,y){var x=_typeof$1(r),b=_typeof$1(y),R;if(isNumerable(x,r)&&isNumerable(b,y))return r/y;var M,O;if($bm_isInstanceOfArray(r)&&isNumerable(b,y)){for(O=r.length,R=createTypedArray("float32",O),M=0;M<O;M+=1)R[M]=r[M]/y;return R}if(isNumerable(x,r)&&$bm_isInstanceOfArray(y)){for(O=y.length,R=createTypedArray("float32",O),M=0;M<O;M+=1)R[M]=r/y[M];return R}return 0}function mod(r,y){return typeof r=="string"&&(r=parseInt(r,10)),typeof y=="string"&&(y=parseInt(y,10)),r%y}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(r,y,x){if(y>x){var b=x;x=y,y=b}return Math.min(Math.max(r,y),x)}function radiansToDegrees(r){return r/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(r){return r*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(r,y){if(typeof r=="number"||r instanceof Number)return y=y||0,Math.abs(r-y);y||(y=helperLengthArray);var x,b=Math.min(r.length,y.length),R=0;for(x=0;x<b;x+=1)R+=Math.pow(y[x]-r[x],2);return Math.sqrt(R)}function normalize(r){return div(r,length(r))}function rgbToHsl(r){var y=r[0],x=r[1],b=r[2],R=Math.max(y,x,b),M=Math.min(y,x,b),O,z,U=(R+M)/2;if(R===M)O=0,z=0;else{var G=R-M;switch(z=U>.5?G/(2-R-M):G/(R+M),R){case y:O=(x-b)/G+(x<b?6:0);break;case x:O=(b-y)/G+2;break;case b:O=(y-x)/G+4;break}O/=6}return[O,z,U,r[3]]}function hue2rgb(r,y,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?r+(y-r)*6*x:x<1/2?y:x<2/3?r+(y-r)*(2/3-x)*6:r}function hslToRgb(r){var y=r[0],x=r[1],b=r[2],R,M,O;if(x===0)R=b,O=b,M=b;else{var z=b<.5?b*(1+x):b+x-b*x,U=2*b-z;R=hue2rgb(U,z,y+1/3),M=hue2rgb(U,z,y),O=hue2rgb(U,z,y-1/3)}return[R,M,O,r[3]]}function linear(r,y,x,b,R){if((b===void 0||R===void 0)&&(b=y,R=x,y=0,x=1),x<y){var M=x;x=y,y=M}if(r<=y)return b;if(r>=x)return R;var O=x===y?0:(r-y)/(x-y);if(!b.length)return b+(R-b)*O;var z,U=b.length,G=createTypedArray("float32",U);for(z=0;z<U;z+=1)G[z]=b[z]+(R[z]-b[z])*O;return G}function random(r,y){if(y===void 0&&(r===void 0?(r=0,y=1):(y=r,r=void 0)),y.length){var x,b=y.length;r||(r=createTypedArray("float32",b));var R=createTypedArray("float32",b),M=BMMath.random();for(x=0;x<b;x+=1)R[x]=r[x]+M*(y[x]-r[x]);return R}r===void 0&&(r=0);var O=BMMath.random();return r+O*(y-r)}function createPath(r,y,x,b){var R,M=r.length,O=shapePool.newElement();O.setPathData(!!b,M);var z=[0,0],U,G;for(R=0;R<M;R+=1)U=y&&y[R]?y[R]:z,G=x&&x[R]?x[R]:z,O.setTripleAt(r[R][0],r[R][1],G[0]+r[R][0],G[1]+r[R][1],U[0]+r[R][0],U[1]+r[R][1],R,!0);return O}function initiateExpression(elem,data,property){function noOp(r){return r}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 r(y,x){var b,R,M=this.pv.length?this.pv.length:1,O=createTypedArray("float32",M);y=5;var z=Math.floor(time*y);for(b=0,R=0;b<z;){for(R=0;R<M;R+=1)O[R]+=-x+x*2*BMMath.random();b+=1}var U=time*y,G=U-Math.floor(U),q=createTypedArray("float32",M);if(M>1){for(R=0;R<M;R+=1)q[R]=this.pv[R]+O[R]+(-x+x*2*BMMath.random())*G;return q}return this.pv+O[0]+(-x+x*2*BMMath.random())*G}).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(r,y){return loopIn(r,y,!0)}function loopOutDuration(r,y){return loopOut(r,y,!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(r,y){var x=[y[0]-r[0],y[1]-r[1],y[2]-r[2]],b=Math.atan2(x[0],Math.sqrt(x[1]*x[1]+x[2]*x[2]))/degToRads,R=-Math.atan2(x[1],x[2])/degToRads;return[R,b,0]}function easeOut(r,y,x,b,R){return applyEase(easeOutBez,r,y,x,b,R)}function easeIn(r,y,x,b,R){return applyEase(easeInBez,r,y,x,b,R)}function ease(r,y,x,b,R){return applyEase(easeInOutBez,r,y,x,b,R)}function applyEase(r,y,x,b,R,M){R===void 0?(R=x,M=b):y=(y-x)/(b-x),y>1?y=1:y<0&&(y=0);var O=r(y);if($bm_isInstanceOfArray(R)){var z,U=R.length,G=createTypedArray("float32",U);for(z=0;z<U;z+=1)G[z]=(M[z]-R[z])*O+R[z];return G}return(M-R)*O+R}function nearestKey(r){var y,x=data.k.length,b,R;if(!data.k.length||typeof data.k[0]=="number")b=0,R=0;else if(b=-1,r*=elem.comp.globalData.frameRate,r<data.k[0].t)b=1,R=data.k[0].t;else{for(y=0;y<x-1;y+=1)if(r===data.k[y].t){b=y+1,R=data.k[y].t;break}else if(r>data.k[y].t&&r<data.k[y+1].t){r-data.k[y].t>data.k[y+1].t-r?(b=y+2,R=data.k[y+1].t):(b=y+1,R=data.k[y].t);break}b===-1&&(b=y+1,R=data.k[y].t)}var M={};return M.index=b,M.time=R/elem.comp.globalData.frameRate,M}function key(r){var y,x,b;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+r);r-=1,y={time:data.k[r].t/elem.comp.globalData.frameRate,value:[]};var R=Object.prototype.hasOwnProperty.call(data.k[r],"s")?data.k[r].s:data.k[r-1].e;for(b=R.length,x=0;x<b;x+=1)y[x]=R[x],y.value[x]=R[x];return y}function framesToTime(r,y){return y||(y=elem.comp.globalData.frameRate),r/y}function timeToFrames(r,y){return!r&&r!==0&&(r=time),y||(y=elem.comp.globalData.frameRate),r*y}function seedRandom(r){BMMath.seedrandom(randSeed+r)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(r,y){return typeof value=="string"?y===void 0?value.substring(r):value.substring(r,y):""}function substr(r,y){return typeof value=="string"?y===void 0?value.substr(r):value.substr(r,y):""}function posterizeTime(r){time=r===0?0:Math.floor(time*r)/r,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(r){return value=r,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 r={};r.initExpressions=y,r.resetFrame=ExpressionManager.resetFrame;function y(x){var b=0,R=[];function M(){b+=1}function O(){b-=1,b===0&&U()}function z(G){R.indexOf(G)===-1&&R.push(G)}function U(){var G,q=R.length;for(G=0;G<q;G+=1)R[G].release();R.length=0}x.renderer.compInterface=CompExpressionInterface(x.renderer),x.renderer.globalData.projectInterface.registerComposition(x.renderer),x.renderer.globalData.pushExpression=M,x.renderer.globalData.popExpression=O,x.renderer.globalData.registerExpressionProperty=z}return r})(),MaskManagerInterface=(function(){function r(x,b){this._mask=x,this._data=b}Object.defineProperty(r.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(r.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var y=function(b){var R=createSizedArray(b.viewData.length),M,O=b.viewData.length;for(M=0;M<O;M+=1)R[M]=new r(b.viewData[M],b.masksProperties[M]);var z=function(G){for(M=0;M<O;){if(b.masksProperties[M].nm===G)return R[M];M+=1}return null};return z};return y})(),ExpressionPropertyInterface=(function(){var r={pv:0,v:0,mult:1},y={pv:[0,0,0],v:[0,0,0],mult:1};function x(O,z,U){Object.defineProperty(O,"velocity",{get:function(){return z.getVelocityAtTime(z.comp.currentFrame)}}),O.numKeys=z.keyframes?z.keyframes.length:0,O.key=function(G){if(!O.numKeys)return 0;var q="";"s"in z.keyframes[G-1]?q=z.keyframes[G-1].s:"e"in z.keyframes[G-2]?q=z.keyframes[G-2].e:q=z.keyframes[G-2].s;var J=U==="unidimensional"?new Number(q):Object.assign({},q);return J.time=z.keyframes[G-1].t/z.elem.comp.globalData.frameRate,J.value=U==="unidimensional"?q[0]:q,J},O.valueAtTime=z.getValueAtTime,O.speedAtTime=z.getSpeedAtTime,O.velocityAtTime=z.getVelocityAtTime,O.propertyGroup=z.propertyGroup}function b(O){(!O||!("pv"in O))&&(O=r);var z=1/O.mult,U=O.pv*z,G=new Number(U);return G.value=U,x(G,O,"unidimensional"),function(){return O.k&&O.getValue(),U=O.v*z,G.value!==U&&(G=new Number(U),G.value=U,G[0]=U,x(G,O,"unidimensional")),G}}function R(O){(!O||!("pv"in O))&&(O=y);var z=1/O.mult,U=O.data&&O.data.l||O.pv.length,G=createTypedArray("float32",U),q=createTypedArray("float32",U);return G.value=q,x(G,O,"multidimensional"),function(){O.k&&O.getValue();for(var J=0;J<U;J+=1)q[J]=O.v[J]*z,G[J]=q[J];return G}}function M(){return r}return function(O){return O?O.propType==="unidimensional"?b(O):R(O):M}})(),TransformExpressionInterface=(function(){return function(r){function y(O){switch(O){case"scale":case"Scale":case"ADBE Scale":case 6:return y.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return y.rotation;case"ADBE Rotate X":return y.xRotation;case"ADBE Rotate Y":return y.yRotation;case"position":case"Position":case"ADBE Position":case 2:return y.position;case"ADBE Position_0":return y.xPosition;case"ADBE Position_1":return y.yPosition;case"ADBE Position_2":return y.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return y.anchorPoint;case"opacity":case"Opacity":case 11:return y.opacity;default:return null}}Object.defineProperty(y,"rotation",{get:ExpressionPropertyInterface(r.r||r.rz)}),Object.defineProperty(y,"zRotation",{get:ExpressionPropertyInterface(r.rz||r.r)}),Object.defineProperty(y,"xRotation",{get:ExpressionPropertyInterface(r.rx)}),Object.defineProperty(y,"yRotation",{get:ExpressionPropertyInterface(r.ry)}),Object.defineProperty(y,"scale",{get:ExpressionPropertyInterface(r.s)});var x,b,R,M;return r.p?M=ExpressionPropertyInterface(r.p):(x=ExpressionPropertyInterface(r.px),b=ExpressionPropertyInterface(r.py),r.pz&&(R=ExpressionPropertyInterface(r.pz))),Object.defineProperty(y,"position",{get:function(){return r.p?M():[x(),b(),R?R():0]}}),Object.defineProperty(y,"xPosition",{get:ExpressionPropertyInterface(r.px)}),Object.defineProperty(y,"yPosition",{get:ExpressionPropertyInterface(r.py)}),Object.defineProperty(y,"zPosition",{get:ExpressionPropertyInterface(r.pz)}),Object.defineProperty(y,"anchorPoint",{get:ExpressionPropertyInterface(r.a)}),Object.defineProperty(y,"opacity",{get:ExpressionPropertyInterface(r.o)}),Object.defineProperty(y,"skew",{get:ExpressionPropertyInterface(r.sk)}),Object.defineProperty(y,"skewAxis",{get:ExpressionPropertyInterface(r.sa)}),Object.defineProperty(y,"orientation",{get:ExpressionPropertyInterface(r.or)}),y}})(),LayerExpressionInterface=(function(){function r(G){var q=new Matrix;if(G!==void 0){var J=this._elem.finalTransform.mProp.getValueAtTime(G);J.clone(q)}else{var X=this._elem.finalTransform.mProp;X.applyToMatrix(q)}return q}function y(G,q){var J=this.getMatrix(q);return J.props[12]=0,J.props[13]=0,J.props[14]=0,this.applyPoint(J,G)}function x(G,q){var J=this.getMatrix(q);return this.applyPoint(J,G)}function b(G,q){var J=this.getMatrix(q);return J.props[12]=0,J.props[13]=0,J.props[14]=0,this.invertPoint(J,G)}function R(G,q){var J=this.getMatrix(q);return this.invertPoint(J,G)}function M(G,q){if(this._elem.hierarchy&&this._elem.hierarchy.length){var J,X=this._elem.hierarchy.length;for(J=0;J<X;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(G)}return G.applyToPointArray(q[0],q[1],q[2]||0)}function O(G,q){if(this._elem.hierarchy&&this._elem.hierarchy.length){var J,X=this._elem.hierarchy.length;for(J=0;J<X;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(G)}return G.inversePoint(q)}function z(G){var q=new Matrix;if(q.reset(),this._elem.finalTransform.mProp.applyToMatrix(q),this._elem.hierarchy&&this._elem.hierarchy.length){var J,X=this._elem.hierarchy.length;for(J=0;J<X;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(q);return q.inversePoint(G)}return q.inversePoint(G)}function U(){return[1,1,1,1]}return function(G){var q;function J(ue){fe.mask=new MaskManagerInterface(ue,G)}function X(ue){fe.effect=ue}function fe(ue){switch(ue){case"ADBE Root Vectors Group":case"Contents":case 2:return fe.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return q;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return fe.effect;case"ADBE Text Properties":return fe.textInterface;default:return null}}fe.getMatrix=r,fe.invertPoint=O,fe.applyPoint=M,fe.toWorld=x,fe.toWorldVec=y,fe.fromWorld=R,fe.fromWorldVec=b,fe.toComp=x,fe.fromComp=z,fe.sampleImage=U,fe.sourceRectAtTime=G.sourceRectAtTime.bind(G),fe._elem=G,q=TransformExpressionInterface(G.finalTransform.mProp);var te=getDescriptor(q,"anchorPoint");return Object.defineProperties(fe,{hasParent:{get:function(){return G.hierarchy.length}},parent:{get:function(){return G.hierarchy[0].layerInterface}},rotation:getDescriptor(q,"rotation"),scale:getDescriptor(q,"scale"),position:getDescriptor(q,"position"),opacity:getDescriptor(q,"opacity"),anchorPoint:te,anchor_point:te,transform:{get:function(){return q}},active:{get:function(){return G.isInRange}}}),fe.startTime=G.data.st,fe.index=G.data.ind,fe.source=G.data.refId,fe.height=G.data.ty===0?G.data.h:100,fe.width=G.data.ty===0?G.data.w:100,fe.inPoint=G.data.ip/G.comp.globalData.frameRate,fe.outPoint=G.data.op/G.comp.globalData.frameRate,fe._name=G.data.nm,fe.registerMaskInterface=J,fe.registerEffectsInterface=X,fe}})(),propertyGroupFactory=(function(){return function(r,y){return function(x){return x=x===void 0?1:x,x<=0?r:y(x-1)}}})(),PropertyInterface=(function(){return function(r,y){var x={_name:r};function b(R){return R=R===void 0?1:R,R<=0?x:y(R-1)}return b}})(),EffectsExpressionInterface=(function(){var r={createEffectsInterface:y};function y(R,M){if(R.effectsManager){var O=[],z=R.data.ef,U,G=R.effectsManager.effectElements.length;for(U=0;U<G;U+=1)O.push(x(z[U],R.effectsManager.effectElements[U],M,R));var q=R.data.ef||[],J=function(fe){for(U=0,G=q.length;U<G;){if(fe===q[U].nm||fe===q[U].mn||fe===q[U].ix)return O[U];U+=1}return null};return Object.defineProperty(J,"numProperties",{get:function(){return q.length}}),J}return null}function x(R,M,O,z){function U(fe){for(var te=R.ef,ue=0,ye=te.length;ue<ye;){if(fe===te[ue].nm||fe===te[ue].mn||fe===te[ue].ix)return te[ue].ty===5?q[ue]:q[ue]();ue+=1}throw new Error}var G=propertyGroupFactory(U,O),q=[],J,X=R.ef.length;for(J=0;J<X;J+=1)R.ef[J].ty===5?q.push(x(R.ef[J],M.effectElements[J],M.effectElements[J].propertyGroup,z)):q.push(b(M.effectElements[J],R.ef[J].ty,z,G));return R.mn==="ADBE Color Control"&&Object.defineProperty(U,"color",{get:function(){return q[0]()}}),Object.defineProperties(U,{numProperties:{get:function(){return R.np}},_name:{value:R.nm},propertyGroup:{value:G}}),U.enabled=R.en!==0,U.active=U.enabled,U}function b(R,M,O,z){var U=ExpressionPropertyInterface(R.p);function G(){return M===10?O.comp.compInterface(R.p.v):U()}return R.p.setGroupProperty&&R.p.setGroupProperty(PropertyInterface("",z)),G}return r})(),ShapePathInterface=(function(){return function(y,x,b){var R=x.sh;function M(z){return z==="Shape"||z==="shape"||z==="Path"||z==="path"||z==="ADBE Vector Shape"||z===2?M.path:null}var O=propertyGroupFactory(M,b);return R.setGroupProperty(PropertyInterface("Path",O)),Object.defineProperties(M,{path:{get:function(){return R.k&&R.getValue(),R}},shape:{get:function(){return R.k&&R.getValue(),R}},_name:{value:y.nm},ix:{value:y.ix},propertyIndex:{value:y.ix},mn:{value:y.mn},propertyGroup:{value:b}}),M}})(),ShapeExpressionInterface=(function(){function r(te,ue,ye){var oe=[],ne,ae=te?te.length:0;for(ne=0;ne<ae;ne+=1)te[ne].ty==="gr"?oe.push(x(te[ne],ue[ne],ye)):te[ne].ty==="fl"?oe.push(b(te[ne],ue[ne],ye)):te[ne].ty==="st"?oe.push(O(te[ne],ue[ne],ye)):te[ne].ty==="tm"?oe.push(z(te[ne],ue[ne],ye)):te[ne].ty==="tr"||(te[ne].ty==="el"?oe.push(G(te[ne],ue[ne],ye)):te[ne].ty==="sr"?oe.push(q(te[ne],ue[ne],ye)):te[ne].ty==="sh"?oe.push(ShapePathInterface(te[ne],ue[ne],ye)):te[ne].ty==="rc"?oe.push(J(te[ne],ue[ne],ye)):te[ne].ty==="rd"?oe.push(X(te[ne],ue[ne],ye)):te[ne].ty==="rp"?oe.push(fe(te[ne],ue[ne],ye)):te[ne].ty==="gf"?oe.push(R(te[ne],ue[ne],ye)):oe.push(M(te[ne],ue[ne])));return oe}function y(te,ue,ye){var oe,ne=function(je){for(var Ve=0,Ue=oe.length;Ve<Ue;){if(oe[Ve]._name===je||oe[Ve].mn===je||oe[Ve].propertyIndex===je||oe[Ve].ix===je||oe[Ve].ind===je)return oe[Ve];Ve+=1}return typeof je=="number"?oe[je-1]:null};ne.propertyGroup=propertyGroupFactory(ne,ye),oe=r(te.it,ue.it,ne.propertyGroup),ne.numProperties=oe.length;var ae=U(te.it[te.it.length-1],ue.it[ue.it.length-1],ne.propertyGroup);return ne.transform=ae,ne.propertyIndex=te.cix,ne._name=te.nm,ne}function x(te,ue,ye){var oe=function(je){switch(je){case"ADBE Vectors Group":case"Contents":case 2:return oe.content;default:return oe.transform}};oe.propertyGroup=propertyGroupFactory(oe,ye);var ne=y(te,ue,oe.propertyGroup),ae=U(te.it[te.it.length-1],ue.it[ue.it.length-1],oe.propertyGroup);return oe.content=ne,oe.transform=ae,Object.defineProperty(oe,"_name",{get:function(){return te.nm}}),oe.numProperties=te.np,oe.propertyIndex=te.ix,oe.nm=te.nm,oe.mn=te.mn,oe}function b(te,ue,ye){function oe(ne){return ne==="Color"||ne==="color"?oe.color:ne==="Opacity"||ne==="opacity"?oe.opacity:null}return Object.defineProperties(oe,{color:{get:ExpressionPropertyInterface(ue.c)},opacity:{get:ExpressionPropertyInterface(ue.o)},_name:{value:te.nm},mn:{value:te.mn}}),ue.c.setGroupProperty(PropertyInterface("Color",ye)),ue.o.setGroupProperty(PropertyInterface("Opacity",ye)),oe}function R(te,ue,ye){function oe(ne){return ne==="Start Point"||ne==="start point"?oe.startPoint:ne==="End Point"||ne==="end point"?oe.endPoint:ne==="Opacity"||ne==="opacity"?oe.opacity:null}return Object.defineProperties(oe,{startPoint:{get:ExpressionPropertyInterface(ue.s)},endPoint:{get:ExpressionPropertyInterface(ue.e)},opacity:{get:ExpressionPropertyInterface(ue.o)},type:{get:function(){return"a"}},_name:{value:te.nm},mn:{value:te.mn}}),ue.s.setGroupProperty(PropertyInterface("Start Point",ye)),ue.e.setGroupProperty(PropertyInterface("End Point",ye)),ue.o.setGroupProperty(PropertyInterface("Opacity",ye)),oe}function M(){function te(){return null}return te}function O(te,ue,ye){var oe=propertyGroupFactory(Ue,ye),ne=propertyGroupFactory(Ve,oe);function ae($e){Object.defineProperty(Ve,te.d[$e].nm,{get:ExpressionPropertyInterface(ue.d.dataProps[$e].p)})}var pe,je=te.d?te.d.length:0,Ve={};for(pe=0;pe<je;pe+=1)ae(pe),ue.d.dataProps[pe].p.setGroupProperty(ne);function Ue($e){return $e==="Color"||$e==="color"?Ue.color:$e==="Opacity"||$e==="opacity"?Ue.opacity:$e==="Stroke Width"||$e==="stroke width"?Ue.strokeWidth:null}return Object.defineProperties(Ue,{color:{get:ExpressionPropertyInterface(ue.c)},opacity:{get:ExpressionPropertyInterface(ue.o)},strokeWidth:{get:ExpressionPropertyInterface(ue.w)},dash:{get:function(){return Ve}},_name:{value:te.nm},mn:{value:te.mn}}),ue.c.setGroupProperty(PropertyInterface("Color",oe)),ue.o.setGroupProperty(PropertyInterface("Opacity",oe)),ue.w.setGroupProperty(PropertyInterface("Stroke Width",oe)),Ue}function z(te,ue,ye){function oe(ae){return ae===te.e.ix||ae==="End"||ae==="end"?oe.end:ae===te.s.ix?oe.start:ae===te.o.ix?oe.offset:null}var ne=propertyGroupFactory(oe,ye);return oe.propertyIndex=te.ix,ue.s.setGroupProperty(PropertyInterface("Start",ne)),ue.e.setGroupProperty(PropertyInterface("End",ne)),ue.o.setGroupProperty(PropertyInterface("Offset",ne)),oe.propertyIndex=te.ix,oe.propertyGroup=ye,Object.defineProperties(oe,{start:{get:ExpressionPropertyInterface(ue.s)},end:{get:ExpressionPropertyInterface(ue.e)},offset:{get:ExpressionPropertyInterface(ue.o)},_name:{value:te.nm}}),oe.mn=te.mn,oe}function U(te,ue,ye){function oe(ae){return te.a.ix===ae||ae==="Anchor Point"?oe.anchorPoint:te.o.ix===ae||ae==="Opacity"?oe.opacity:te.p.ix===ae||ae==="Position"?oe.position:te.r.ix===ae||ae==="Rotation"||ae==="ADBE Vector Rotation"?oe.rotation:te.s.ix===ae||ae==="Scale"?oe.scale:te.sk&&te.sk.ix===ae||ae==="Skew"?oe.skew:te.sa&&te.sa.ix===ae||ae==="Skew Axis"?oe.skewAxis:null}var ne=propertyGroupFactory(oe,ye);return ue.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ne)),ue.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ne)),ue.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ne)),ue.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ne)),ue.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ne)),ue.transform.mProps.sk&&(ue.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ne)),ue.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ne))),ue.transform.op.setGroupProperty(PropertyInterface("Opacity",ne)),Object.defineProperties(oe,{opacity:{get:ExpressionPropertyInterface(ue.transform.mProps.o)},position:{get:ExpressionPropertyInterface(ue.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(ue.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(ue.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(ue.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(ue.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(ue.transform.mProps.sa)},_name:{value:te.nm}}),oe.ty="tr",oe.mn=te.mn,oe.propertyGroup=ye,oe}function G(te,ue,ye){function oe(pe){return te.p.ix===pe?oe.position:te.s.ix===pe?oe.size:null}var ne=propertyGroupFactory(oe,ye);oe.propertyIndex=te.ix;var ae=ue.sh.ty==="tm"?ue.sh.prop:ue.sh;return ae.s.setGroupProperty(PropertyInterface("Size",ne)),ae.p.setGroupProperty(PropertyInterface("Position",ne)),Object.defineProperties(oe,{size:{get:ExpressionPropertyInterface(ae.s)},position:{get:ExpressionPropertyInterface(ae.p)},_name:{value:te.nm}}),oe.mn=te.mn,oe}function q(te,ue,ye){function oe(pe){return te.p.ix===pe?oe.position:te.r.ix===pe?oe.rotation:te.pt.ix===pe?oe.points:te.or.ix===pe||pe==="ADBE Vector Star Outer Radius"?oe.outerRadius:te.os.ix===pe?oe.outerRoundness:te.ir&&(te.ir.ix===pe||pe==="ADBE Vector Star Inner Radius")?oe.innerRadius:te.is&&te.is.ix===pe?oe.innerRoundness:null}var ne=propertyGroupFactory(oe,ye),ae=ue.sh.ty==="tm"?ue.sh.prop:ue.sh;return oe.propertyIndex=te.ix,ae.or.setGroupProperty(PropertyInterface("Outer Radius",ne)),ae.os.setGroupProperty(PropertyInterface("Outer Roundness",ne)),ae.pt.setGroupProperty(PropertyInterface("Points",ne)),ae.p.setGroupProperty(PropertyInterface("Position",ne)),ae.r.setGroupProperty(PropertyInterface("Rotation",ne)),te.ir&&(ae.ir.setGroupProperty(PropertyInterface("Inner Radius",ne)),ae.is.setGroupProperty(PropertyInterface("Inner Roundness",ne))),Object.defineProperties(oe,{position:{get:ExpressionPropertyInterface(ae.p)},rotation:{get:ExpressionPropertyInterface(ae.r)},points:{get:ExpressionPropertyInterface(ae.pt)},outerRadius:{get:ExpressionPropertyInterface(ae.or)},outerRoundness:{get:ExpressionPropertyInterface(ae.os)},innerRadius:{get:ExpressionPropertyInterface(ae.ir)},innerRoundness:{get:ExpressionPropertyInterface(ae.is)},_name:{value:te.nm}}),oe.mn=te.mn,oe}function J(te,ue,ye){function oe(pe){return te.p.ix===pe?oe.position:te.r.ix===pe?oe.roundness:te.s.ix===pe||pe==="Size"||pe==="ADBE Vector Rect Size"?oe.size:null}var ne=propertyGroupFactory(oe,ye),ae=ue.sh.ty==="tm"?ue.sh.prop:ue.sh;return oe.propertyIndex=te.ix,ae.p.setGroupProperty(PropertyInterface("Position",ne)),ae.s.setGroupProperty(PropertyInterface("Size",ne)),ae.r.setGroupProperty(PropertyInterface("Rotation",ne)),Object.defineProperties(oe,{position:{get:ExpressionPropertyInterface(ae.p)},roundness:{get:ExpressionPropertyInterface(ae.r)},size:{get:ExpressionPropertyInterface(ae.s)},_name:{value:te.nm}}),oe.mn=te.mn,oe}function X(te,ue,ye){function oe(pe){return te.r.ix===pe||pe==="Round Corners 1"?oe.radius:null}var ne=propertyGroupFactory(oe,ye),ae=ue;return oe.propertyIndex=te.ix,ae.rd.setGroupProperty(PropertyInterface("Radius",ne)),Object.defineProperties(oe,{radius:{get:ExpressionPropertyInterface(ae.rd)},_name:{value:te.nm}}),oe.mn=te.mn,oe}function fe(te,ue,ye){function oe(pe){return te.c.ix===pe||pe==="Copies"?oe.copies:te.o.ix===pe||pe==="Offset"?oe.offset:null}var ne=propertyGroupFactory(oe,ye),ae=ue;return oe.propertyIndex=te.ix,ae.c.setGroupProperty(PropertyInterface("Copies",ne)),ae.o.setGroupProperty(PropertyInterface("Offset",ne)),Object.defineProperties(oe,{copies:{get:ExpressionPropertyInterface(ae.c)},offset:{get:ExpressionPropertyInterface(ae.o)},_name:{value:te.nm}}),oe.mn=te.mn,oe}return function(te,ue,ye){var oe;function ne(pe){if(typeof pe=="number")return pe=pe===void 0?1:pe,pe===0?ye:oe[pe-1];for(var je=0,Ve=oe.length;je<Ve;){if(oe[je]._name===pe)return oe[je];je+=1}return null}function ae(){return ye}return ne.propertyGroup=propertyGroupFactory(ne,ae),oe=r(te,ue,ne.propertyGroup),ne.numProperties=oe.length,ne._name="Contents",ne}})(),TextExpressionInterface=(function(){return function(r){var y;function x(b){return b==="ADBE Text Document"?x.sourceText:null}return Object.defineProperty(x,"sourceText",{get:function(){r.textProperty.getValue();var R=r.textProperty.currentData.t;return(!y||R!==y.value)&&(y=new String(R),y.value=R||new String(R),Object.defineProperty(y,"style",{get:function(){return{fillColor:r.textProperty.currentData.fc}}})),y}}),x}})();function _typeof(r){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof(r)}var FootageInterface=(function(){var r=function(b){var R="",M=b.getFootageData();function O(){return R="",M=b.getFootageData(),z}function z(U){if(M[U])return R=U,M=M[U],_typeof(M)==="object"?z:M;var G=U.indexOf(R);if(G!==-1){var q=parseInt(U.substr(G+R.length),10);return M=M[q],_typeof(M)==="object"?z:M}return""}return O},y=function(b){function R(M){return M==="Outline"?R.outlineInterface():null}return R._name="Outline",R.outlineInterface=r(b),R};return function(x){function b(R){return R==="Data"?b.dataInterface:null}return b._name="Data",b.dataInterface=y(x),b}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(r){return interfaces[r]||null}var expressionHelpers=(function(){function r(O,z,U){z.x&&(U.k=!0,U.x=!0,U.initiateExpression=ExpressionManager.initiateExpression,U.effectsSequence.push(U.initiateExpression(O,z,U).bind(U)))}function y(O){return O*=this.elem.globalData.frameRate,O-=this.offsetTime,O!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<O?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(O,this._cachingAtTime),this._cachingAtTime.lastFrame=O),this._cachingAtTime.value}function x(O){var z=-.01,U=this.getValueAtTime(O),G=this.getValueAtTime(O+z),q=0;if(U.length){var J;for(J=0;J<U.length;J+=1)q+=Math.pow(G[J]-U[J],2);q=Math.sqrt(q)*100}else q=0;return q}function b(O){if(this.vel!==void 0)return this.vel;var z=-.001,U=this.getValueAtTime(O),G=this.getValueAtTime(O+z),q;if(U.length){q=createTypedArray("float32",U.length);var J;for(J=0;J<U.length;J+=1)q[J]=(G[J]-U[J])/z}else q=(G-U)/z;return q}function R(){return this.pv}function M(O){this.propertyGroup=O}return{searchExpressions:r,getSpeedAtTime:x,getVelocityAtTime:b,getValueAtTime:y,getStaticValueAtTime:R,setGroupProperty:M}})();function addPropertyDecorator(){function r(X,fe,te){if(!this.k||!this.keyframes)return this.pv;X=X?X.toLowerCase():"";var ue=this.comp.renderedFrame,ye=this.keyframes,oe=ye[ye.length-1].t;if(ue<=oe)return this.pv;var ne,ae;te?(fe?ne=Math.abs(oe-this.elem.comp.globalData.frameRate*fe):ne=Math.max(0,oe-this.elem.data.ip),ae=oe-ne):((!fe||fe>ye.length-1)&&(fe=ye.length-1),ae=ye[ye.length-1-fe].t,ne=oe-ae);var pe,je,Ve;if(X==="pingpong"){var Ue=Math.floor((ue-ae)/ne);if(Ue%2!==0)return this.getValueAtTime((ne-(ue-ae)%ne+ae)/this.comp.globalData.frameRate,0)}else if(X==="offset"){var $e=this.getValueAtTime(ae/this.comp.globalData.frameRate,0),We=this.getValueAtTime(oe/this.comp.globalData.frameRate,0),ot=this.getValueAtTime(((ue-ae)%ne+ae)/this.comp.globalData.frameRate,0),ct=Math.floor((ue-ae)/ne);if(this.pv.length){for(Ve=new Array($e.length),je=Ve.length,pe=0;pe<je;pe+=1)Ve[pe]=(We[pe]-$e[pe])*ct+ot[pe];return Ve}return(We-$e)*ct+ot}else if(X==="continue"){var it=this.getValueAtTime(oe/this.comp.globalData.frameRate,0),ft=this.getValueAtTime((oe-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Ve=new Array(it.length),je=Ve.length,pe=0;pe<je;pe+=1)Ve[pe]=it[pe]+(it[pe]-ft[pe])*((ue-oe)/this.comp.globalData.frameRate)/5e-4;return Ve}return it+(it-ft)*((ue-oe)/.001)}return this.getValueAtTime(((ue-ae)%ne+ae)/this.comp.globalData.frameRate,0)}function y(X,fe,te){if(!this.k)return this.pv;X=X?X.toLowerCase():"";var ue=this.comp.renderedFrame,ye=this.keyframes,oe=ye[0].t;if(ue>=oe)return this.pv;var ne,ae;te?(fe?ne=Math.abs(this.elem.comp.globalData.frameRate*fe):ne=Math.max(0,this.elem.data.op-oe),ae=oe+ne):((!fe||fe>ye.length-1)&&(fe=ye.length-1),ae=ye[fe].t,ne=ae-oe);var pe,je,Ve;if(X==="pingpong"){var Ue=Math.floor((oe-ue)/ne);if(Ue%2===0)return this.getValueAtTime(((oe-ue)%ne+oe)/this.comp.globalData.frameRate,0)}else if(X==="offset"){var $e=this.getValueAtTime(oe/this.comp.globalData.frameRate,0),We=this.getValueAtTime(ae/this.comp.globalData.frameRate,0),ot=this.getValueAtTime((ne-(oe-ue)%ne+oe)/this.comp.globalData.frameRate,0),ct=Math.floor((oe-ue)/ne)+1;if(this.pv.length){for(Ve=new Array($e.length),je=Ve.length,pe=0;pe<je;pe+=1)Ve[pe]=ot[pe]-(We[pe]-$e[pe])*ct;return Ve}return ot-(We-$e)*ct}else if(X==="continue"){var it=this.getValueAtTime(oe/this.comp.globalData.frameRate,0),ft=this.getValueAtTime((oe+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Ve=new Array(it.length),je=Ve.length,pe=0;pe<je;pe+=1)Ve[pe]=it[pe]+(it[pe]-ft[pe])*(oe-ue)/.001;return Ve}return it+(it-ft)*(oe-ue)/.001}return this.getValueAtTime((ne-((oe-ue)%ne+oe))/this.comp.globalData.frameRate,0)}function x(X,fe){if(!this.k)return this.pv;if(X=(X||.4)*.5,fe=Math.floor(fe||5),fe<=1)return this.pv;var te=this.comp.renderedFrame/this.comp.globalData.frameRate,ue=te-X,ye=te+X,oe=fe>1?(ye-ue)/(fe-1):1,ne=0,ae=0,pe;this.pv.length?pe=createTypedArray("float32",this.pv.length):pe=0;for(var je;ne<fe;){if(je=this.getValueAtTime(ue+ne*oe),this.pv.length)for(ae=0;ae<this.pv.length;ae+=1)pe[ae]+=je[ae];else pe+=je;ne+=1}if(this.pv.length)for(ae=0;ae<this.pv.length;ae+=1)pe[ae]/=fe;else pe/=fe;return pe}function b(X){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var fe=this._transformCachingAtTime.v;if(fe.cloneFromProps(this.pre.props),this.appliedTransformations<1){var te=this.a.getValueAtTime(X);fe.translate(-te[0]*this.a.mult,-te[1]*this.a.mult,te[2]*this.a.mult)}if(this.appliedTransformations<2){var ue=this.s.getValueAtTime(X);fe.scale(ue[0]*this.s.mult,ue[1]*this.s.mult,ue[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var ye=this.sk.getValueAtTime(X),oe=this.sa.getValueAtTime(X);fe.skewFromAxis(-ye*this.sk.mult,oe*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ne=this.r.getValueAtTime(X);fe.rotate(-ne*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var ae=this.rz.getValueAtTime(X),pe=this.ry.getValueAtTime(X),je=this.rx.getValueAtTime(X),Ve=this.or.getValueAtTime(X);fe.rotateZ(-ae*this.rz.mult).rotateY(pe*this.ry.mult).rotateX(je*this.rx.mult).rotateZ(-Ve[2]*this.or.mult).rotateY(Ve[1]*this.or.mult).rotateX(Ve[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Ue=this.px.getValueAtTime(X),$e=this.py.getValueAtTime(X);if(this.data.p.z){var We=this.pz.getValueAtTime(X);fe.translate(Ue*this.px.mult,$e*this.py.mult,-We*this.pz.mult)}else fe.translate(Ue*this.px.mult,$e*this.py.mult,0)}else{var ot=this.p.getValueAtTime(X);fe.translate(ot[0]*this.p.mult,ot[1]*this.p.mult,-ot[2]*this.p.mult)}return fe}function R(){return this.v.clone(new Matrix)}var M=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(X,fe,te){var ue=M(X,fe,te);return ue.dynamicProperties.length?ue.getValueAtTime=b.bind(ue):ue.getValueAtTime=R.bind(ue),ue.setGroupProperty=expressionHelpers.setGroupProperty,ue};var O=PropertyFactory.getProp;PropertyFactory.getProp=function(X,fe,te,ue,ye){var oe=O(X,fe,te,ue,ye);oe.kf?oe.getValueAtTime=expressionHelpers.getValueAtTime.bind(oe):oe.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(oe),oe.setGroupProperty=expressionHelpers.setGroupProperty,oe.loopOut=r,oe.loopIn=y,oe.smooth=x,oe.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(oe),oe.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(oe),oe.numKeys=fe.a===1?fe.k.length:0,oe.propertyIndex=fe.ix;var ne=0;return te!==0&&(ne=createTypedArray("float32",fe.a===1?fe.k[0].s.length:fe.k.length)),oe._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ne},expressionHelpers.searchExpressions(X,fe,oe),oe.k&&ye.addDynamicProperty(oe),oe};function z(X){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),X*=this.elem.globalData.frameRate,X-=this.offsetTime,X!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<X?this._caching.lastIndex:0,this._cachingAtTime.lastTime=X,this.interpolateShape(X,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var U=ShapePropertyFactory.getConstructorFunction(),G=ShapePropertyFactory.getKeyframedConstructorFunction();function q(){}q.prototype={vertices:function(fe,te){this.k&&this.getValue();var ue=this.v;te!==void 0&&(ue=this.getValueAtTime(te,0));var ye,oe=ue._length,ne=ue[fe],ae=ue.v,pe=createSizedArray(oe);for(ye=0;ye<oe;ye+=1)fe==="i"||fe==="o"?pe[ye]=[ne[ye][0]-ae[ye][0],ne[ye][1]-ae[ye][1]]:pe[ye]=[ne[ye][0],ne[ye][1]];return pe},points:function(fe){return this.vertices("v",fe)},inTangents:function(fe){return this.vertices("i",fe)},outTangents:function(fe){return this.vertices("o",fe)},isClosed:function(){return this.v.c},pointOnPath:function(fe,te){var ue=this.v;te!==void 0&&(ue=this.getValueAtTime(te,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(ue));for(var ye=this._segmentsLength,oe=ye.lengths,ne=ye.totalLength*fe,ae=0,pe=oe.length,je=0,Ve;ae<pe;){if(je+oe[ae].addedLength>ne){var Ue=ae,$e=ue.c&&ae===pe-1?0:ae+1,We=(ne-je)/oe[ae].addedLength;Ve=bez.getPointInSegment(ue.v[Ue],ue.v[$e],ue.o[Ue],ue.i[$e],We,oe[ae]);break}else je+=oe[ae].addedLength;ae+=1}return Ve||(Ve=ue.c?[ue.v[0][0],ue.v[0][1]]:[ue.v[ue._length-1][0],ue.v[ue._length-1][1]]),Ve},vectorOnPath:function(fe,te,ue){fe==1?fe=this.v.c:fe==0&&(fe=.999);var ye=this.pointOnPath(fe,te),oe=this.pointOnPath(fe+.001,te),ne=oe[0]-ye[0],ae=oe[1]-ye[1],pe=Math.sqrt(Math.pow(ne,2)+Math.pow(ae,2));if(pe===0)return[0,0];var je=ue==="tangent"?[ne/pe,ae/pe]:[-ae/pe,ne/pe];return je},tangentOnPath:function(fe,te){return this.vectorOnPath(fe,te,"tangent")},normalOnPath:function(fe,te){return this.vectorOnPath(fe,te,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([q],U),extendPrototype([q],G),G.prototype.getValueAtTime=z,G.prototype.initiateExpression=ExpressionManager.initiateExpression;var J=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(X,fe,te,ue,ye){var oe=J(X,fe,te,ue,ye);return oe.propertyIndex=fe.ix,oe.lock=!1,te===3?expressionHelpers.searchExpressions(X,fe.pt,oe):te===4&&expressionHelpers.searchExpressions(X,fe.ks,oe),oe.k&&X.addDynamicProperty(oe),oe}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function r(){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(y,x){var b=this.calculateExpression(x);if(y.t!==b){var R={};return this.copyData(R,y),R.t=b.toString(),R.__complete=!1,R}return y},TextProperty.prototype.searchProperty=function(){var y=this.searchKeyframes(),x=this.searchExpressions();return this.kf=y||x,this.kf},TextProperty.prototype.searchExpressions=r}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function r(y,x){var b=createNS("feMerge");b.setAttribute("result",y);var R,M;for(M=0;M<x.length;M+=1)R=createNS("feMergeNode"),R.setAttribute("in",x[M]),b.appendChild(R),b.appendChild(R);return b}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(r,y,x,b,R){this.filterManager=y;var M=createNS("feColorMatrix");M.setAttribute("type","matrix"),M.setAttribute("color-interpolation-filters","linearRGB"),M.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=M,M.setAttribute("result",b+"_tint_1"),r.appendChild(M),M=createNS("feColorMatrix"),M.setAttribute("type","matrix"),M.setAttribute("color-interpolation-filters","sRGB"),M.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),M.setAttribute("result",b+"_tint_2"),r.appendChild(M),this.matrixFilter=M;var O=this.createMergeNode(b,[R,b+"_tint_1",b+"_tint_2"]);r.appendChild(O)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(r){if(r||this.filterManager._mdf){var y=this.filterManager.effectElements[0].p.v,x=this.filterManager.effectElements[1].p.v,b=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+b+" 0"),this.matrixFilter.setAttribute("values",x[0]-y[0]+" 0 0 0 "+y[0]+" "+(x[1]-y[1])+" 0 0 0 "+y[1]+" "+(x[2]-y[2])+" 0 0 0 "+y[2]+" 0 0 0 1 0")}};function SVGFillFilter(r,y,x,b){this.filterManager=y;var R=createNS("feColorMatrix");R.setAttribute("type","matrix"),R.setAttribute("color-interpolation-filters","sRGB"),R.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),R.setAttribute("result",b),r.appendChild(R),this.matrixFilter=R}SVGFillFilter.prototype.renderFrame=function(r){if(r||this.filterManager._mdf){var y=this.filterManager.effectElements[2].p.v,x=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+y[0]+" 0 0 0 0 "+y[1]+" 0 0 0 0 "+y[2]+" 0 0 0 "+x+" 0")}};function SVGStrokeEffect(r,y,x){this.initialized=!1,this.filterManager=y,this.elem=x,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var r=this.elem.layerElement.children||this.elem.layerElement.childNodes,y,x,b,R;for(this.filterManager.effectElements[1].p.v===1?(R=this.elem.maskManager.masksProperties.length,b=0):(b=this.filterManager.effectElements[0].p.v-1,R=b+1),x=createNS("g"),x.setAttribute("fill","none"),x.setAttribute("stroke-linecap","round"),x.setAttribute("stroke-dashoffset",1),b;b<R;b+=1)y=createNS("path"),x.appendChild(y),this.paths.push({p:y,m:b});if(this.filterManager.effectElements[10].p.v===3){var M=createNS("mask"),O=createElementID();M.setAttribute("id",O),M.setAttribute("mask-type","alpha"),M.appendChild(x),this.elem.globalData.defs.appendChild(M);var z=createNS("g");for(z.setAttribute("mask","url("+getLocationHref()+"#"+O+")");r[0];)z.appendChild(r[0]);this.elem.layerElement.appendChild(z),this.masker=M,x.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(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(x),this.elem.layerElement.removeAttribute("mask"),x.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=x},SVGStrokeEffect.prototype.renderFrame=function(r){this.initialized||this.initialize();var y,x=this.paths.length,b,R;for(y=0;y<x;y+=1)if(this.paths[y].m!==-1&&(b=this.elem.maskManager.viewData[this.paths[y].m],R=this.paths[y].p,(r||this.filterManager._mdf||b.prop._mdf)&&R.setAttribute("d",b.lastPath),r||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||b.prop._mdf)){var M;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var O=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,z=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,U=R.getTotalLength();M="0 0 0 "+U*O+" ";var G=U*(z-O),q=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,J=Math.floor(G/q),X;for(X=0;X<J;X+=1)M+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";M+="0 "+U*10+" 0 0"}else M="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;R.setAttribute("stroke-dasharray",M)}if((r||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(r||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)&&(r||this.filterManager.effectElements[3].p._mdf)){var fe=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(fe[0]*255)+","+bmFloor(fe[1]*255)+","+bmFloor(fe[2]*255)+")")}};function SVGTritoneFilter(r,y,x,b){this.filterManager=y;var R=createNS("feColorMatrix");R.setAttribute("type","matrix"),R.setAttribute("color-interpolation-filters","linearRGB"),R.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"),r.appendChild(R);var M=createNS("feComponentTransfer");M.setAttribute("color-interpolation-filters","sRGB"),M.setAttribute("result",b),this.matrixFilter=M;var O=createNS("feFuncR");O.setAttribute("type","table"),M.appendChild(O),this.feFuncR=O;var z=createNS("feFuncG");z.setAttribute("type","table"),M.appendChild(z),this.feFuncG=z;var U=createNS("feFuncB");U.setAttribute("type","table"),M.appendChild(U),this.feFuncB=U,r.appendChild(M)}SVGTritoneFilter.prototype.renderFrame=function(r){if(r||this.filterManager._mdf){var y=this.filterManager.effectElements[0].p.v,x=this.filterManager.effectElements[1].p.v,b=this.filterManager.effectElements[2].p.v,R=b[0]+" "+x[0]+" "+y[0],M=b[1]+" "+x[1]+" "+y[1],O=b[2]+" "+x[2]+" "+y[2];this.feFuncR.setAttribute("tableValues",R),this.feFuncG.setAttribute("tableValues",M),this.feFuncB.setAttribute("tableValues",O)}};function SVGProLevelsFilter(r,y,x,b){this.filterManager=y;var R=this.filterManager.effectElements,M=createNS("feComponentTransfer");(R[10].p.k||R[10].p.v!==0||R[11].p.k||R[11].p.v!==1||R[12].p.k||R[12].p.v!==1||R[13].p.k||R[13].p.v!==0||R[14].p.k||R[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",M)),(R[17].p.k||R[17].p.v!==0||R[18].p.k||R[18].p.v!==1||R[19].p.k||R[19].p.v!==1||R[20].p.k||R[20].p.v!==0||R[21].p.k||R[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",M)),(R[24].p.k||R[24].p.v!==0||R[25].p.k||R[25].p.v!==1||R[26].p.k||R[26].p.v!==1||R[27].p.k||R[27].p.v!==0||R[28].p.k||R[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",M)),(R[31].p.k||R[31].p.v!==0||R[32].p.k||R[32].p.v!==1||R[33].p.k||R[33].p.v!==1||R[34].p.k||R[34].p.v!==0||R[35].p.k||R[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",M)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(M.setAttribute("color-interpolation-filters","sRGB"),r.appendChild(M)),(R[3].p.k||R[3].p.v!==0||R[4].p.k||R[4].p.v!==1||R[5].p.k||R[5].p.v!==1||R[6].p.k||R[6].p.v!==0||R[7].p.k||R[7].p.v!==1)&&(M=createNS("feComponentTransfer"),M.setAttribute("color-interpolation-filters","sRGB"),M.setAttribute("result",b),r.appendChild(M),this.feFuncRComposed=this.createFeFunc("feFuncR",M),this.feFuncGComposed=this.createFeFunc("feFuncG",M),this.feFuncBComposed=this.createFeFunc("feFuncB",M))}SVGProLevelsFilter.prototype.createFeFunc=function(r,y){var x=createNS(r);return x.setAttribute("type","table"),y.appendChild(x),x},SVGProLevelsFilter.prototype.getTableValue=function(r,y,x,b,R){for(var M=0,O=256,z,U=Math.min(r,y),G=Math.max(r,y),q=Array.call(null,{length:O}),J,X=0,fe=R-b,te=y-r;M<=256;)z=M/256,z<=U?J=te<0?R:b:z>=G?J=te<0?b:R:J=b+fe*Math.pow((z-r)/te,1/x),q[X]=J,X+=1,M+=256/(O-1);return q.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(r){if(r||this.filterManager._mdf){var y,x=this.filterManager.effectElements;this.feFuncRComposed&&(r||x[3].p._mdf||x[4].p._mdf||x[5].p._mdf||x[6].p._mdf||x[7].p._mdf)&&(y=this.getTableValue(x[3].p.v,x[4].p.v,x[5].p.v,x[6].p.v,x[7].p.v),this.feFuncRComposed.setAttribute("tableValues",y),this.feFuncGComposed.setAttribute("tableValues",y),this.feFuncBComposed.setAttribute("tableValues",y)),this.feFuncR&&(r||x[10].p._mdf||x[11].p._mdf||x[12].p._mdf||x[13].p._mdf||x[14].p._mdf)&&(y=this.getTableValue(x[10].p.v,x[11].p.v,x[12].p.v,x[13].p.v,x[14].p.v),this.feFuncR.setAttribute("tableValues",y)),this.feFuncG&&(r||x[17].p._mdf||x[18].p._mdf||x[19].p._mdf||x[20].p._mdf||x[21].p._mdf)&&(y=this.getTableValue(x[17].p.v,x[18].p.v,x[19].p.v,x[20].p.v,x[21].p.v),this.feFuncG.setAttribute("tableValues",y)),this.feFuncB&&(r||x[24].p._mdf||x[25].p._mdf||x[26].p._mdf||x[27].p._mdf||x[28].p._mdf)&&(y=this.getTableValue(x[24].p.v,x[25].p.v,x[26].p.v,x[27].p.v,x[28].p.v),this.feFuncB.setAttribute("tableValues",y)),this.feFuncA&&(r||x[31].p._mdf||x[32].p._mdf||x[33].p._mdf||x[34].p._mdf||x[35].p._mdf)&&(y=this.getTableValue(x[31].p.v,x[32].p.v,x[33].p.v,x[34].p.v,x[35].p.v),this.feFuncA.setAttribute("tableValues",y))}};function SVGDropShadowEffect(r,y,x,b,R){var M=y.container.globalData.renderConfig.filterSize,O=y.data.fs||M;r.setAttribute("x",O.x||M.x),r.setAttribute("y",O.y||M.y),r.setAttribute("width",O.width||M.width),r.setAttribute("height",O.height||M.height),this.filterManager=y;var z=createNS("feGaussianBlur");z.setAttribute("in","SourceAlpha"),z.setAttribute("result",b+"_drop_shadow_1"),z.setAttribute("stdDeviation","0"),this.feGaussianBlur=z,r.appendChild(z);var U=createNS("feOffset");U.setAttribute("dx","25"),U.setAttribute("dy","0"),U.setAttribute("in",b+"_drop_shadow_1"),U.setAttribute("result",b+"_drop_shadow_2"),this.feOffset=U,r.appendChild(U);var G=createNS("feFlood");G.setAttribute("flood-color","#00ff00"),G.setAttribute("flood-opacity","1"),G.setAttribute("result",b+"_drop_shadow_3"),this.feFlood=G,r.appendChild(G);var q=createNS("feComposite");q.setAttribute("in",b+"_drop_shadow_3"),q.setAttribute("in2",b+"_drop_shadow_2"),q.setAttribute("operator","in"),q.setAttribute("result",b+"_drop_shadow_4"),r.appendChild(q);var J=this.createMergeNode(b,[b+"_drop_shadow_4",R]);r.appendChild(J)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(r){if(r||this.filterManager._mdf){if((r||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),r||this.filterManager.effectElements[0].p._mdf){var y=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(y[0]*255),Math.round(y[1]*255),Math.round(y[2]*255)))}if((r||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),r||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var x=this.filterManager.effectElements[3].p.v,b=(this.filterManager.effectElements[2].p.v-90)*degToRads,R=x*Math.cos(b),M=x*Math.sin(b);this.feOffset.setAttribute("dx",R),this.feOffset.setAttribute("dy",M)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(r,y,x){this.initialized=!1,this.filterManager=y,this.filterElem=r,this.elem=x,x.matteElement=createNS("g"),x.matteElement.appendChild(x.layerElement),x.matteElement.appendChild(x.transformedElement),x.baseElement=x.matteElement}SVGMatte3Effect.prototype.findSymbol=function(r){for(var y=0,x=_svgMatteSymbols.length;y<x;){if(_svgMatteSymbols[y]===r)return _svgMatteSymbols[y];y+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(r,y){var x=r.layerElement.parentNode;if(x){for(var b=x.children,R=0,M=b.length;R<M&&b[R]!==r.layerElement;)R+=1;var O;R<=M-2&&(O=b[R+1]);var z=createNS("use");z.setAttribute("href","#"+y),O?x.insertBefore(z,O):x.appendChild(z)}},SVGMatte3Effect.prototype.setElementAsMask=function(r,y){if(!this.findSymbol(y)){var x=createElementID(),b=createNS("mask");b.setAttribute("id",y.layerId),b.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(y);var R=r.globalData.defs;R.appendChild(b);var M=createNS("symbol");M.setAttribute("id",x),this.replaceInParent(y,x),M.appendChild(y.layerElement),R.appendChild(M);var O=createNS("use");O.setAttribute("href","#"+x),b.appendChild(O),y.data.hd=!1,y.show()}r.setMatte(y.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var r=this.filterManager.effectElements[0].p.v,y=this.elem.comp.elements,x=0,b=y.length;x<b;)y[x]&&y[x].data.ind===r&&this.setElementAsMask(this.elem,y[x]),x+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(r,y,x,b){r.setAttribute("x","-100%"),r.setAttribute("y","-100%"),r.setAttribute("width","300%"),r.setAttribute("height","300%"),this.filterManager=y;var R=createNS("feGaussianBlur");R.setAttribute("result",b),r.appendChild(R),this.feGaussianBlur=R}SVGGaussianBlurEffect.prototype.renderFrame=function(r){if(r||this.filterManager._mdf){var y=.3,x=this.filterManager.effectElements[0].p.v*y,b=this.filterManager.effectElements[1].p.v,R=b==3?0:x,M=b==2?0:x;this.feGaussianBlur.setAttribute("stdDeviation",R+" "+M);var O=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",O)}};function TransformEffect(){}TransformEffect.prototype.init=function(r){this.effectsManager=r,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(r){if(this._opMdf=!1,this._mdf=!1,r||this.effectsManager._mdf){var y=this.effectsManager.effectElements,x=y[0].p.v,b=y[1].p.v,R=y[2].p.v===1,M=y[3].p.v,O=R?M:y[4].p.v,z=y[5].p.v,U=y[6].p.v,G=y[7].p.v;this.matrix.reset(),this.matrix.translate(-x[0],-x[1],x[2]),this.matrix.scale(O*.01,M*.01,1),this.matrix.rotate(-G*degToRads),this.matrix.skewFromAxis(-z*degToRads,(U+90)*degToRads),this.matrix.translate(b[0],b[1],0
296),this._mdf=!0,this.opacity!==y[8].p.v&&(this.opacity=y[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(r,y){this.init(y)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(r){this.init(r)}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(r,y){(y==null||y>r.length)&&(y=r.length);for(var x=0,b=Array(y);x<y;x++)b[x]=r[x];return b}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _defineProperty(r,y,x){return(y=_toPropertyKey(y))in r?Object.defineProperty(r,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):r[y]=x,r}function _iterableToArrayLimit(r,y){var x=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(x!=null){var b,R,M,O,z=[],U=!0,G=!1;try{if(M=(x=x.call(r)).next,y!==0)for(;!(U=(b=M.call(x)).done)&&(z.push(b.value),z.length!==y);U=!0);}catch(q){G=!0,R=q}finally{try{if(!U&&x.return!=null&&(O=x.return(),Object(O)!==O))return}finally{if(G)throw R}}return z}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
297In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(r,y){var x=Object.keys(r);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(r);y&&(b=b.filter(function(R){return Object.getOwnPropertyDescriptor(r,R).enumerable})),x.push.apply(x,b)}return x}function _objectSpread2(r){for(var y=1;y<arguments.length;y++){var x=arguments[y]!=null?arguments[y]:{};y%2?ownKeys(Object(x),!0).forEach(function(b){_defineProperty(r,b,x[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(x)):ownKeys(Object(x)).forEach(function(b){Object.defineProperty(r,b,Object.getOwnPropertyDescriptor(x,b))})}return r}function _objectWithoutProperties(r,y){if(r==null)return{};var x,b,R=_objectWithoutPropertiesLoose(r,y);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(r);for(b=0;b<M.length;b++)x=M[b],y.includes(x)||{}.propertyIsEnumerable.call(r,x)&&(R[x]=r[x])}return R}function _objectWithoutPropertiesLoose(r,y){if(r==null)return{};var x={};for(var b in r)if({}.hasOwnProperty.call(r,b)){if(y.includes(b))continue;x[b]=r[b]}return x}function _slicedToArray(r,y){return _arrayWithHoles(r)||_iterableToArrayLimit(r,y)||_unsupportedIterableToArray(r,y)||_nonIterableRest()}function _toPrimitive(r,y){if(typeof r!="object"||!r)return r;var x=r[Symbol.toPrimitive];if(x!==void 0){var b=x.call(r,y);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(r)}function _toPropertyKey(r){var y=_toPrimitive(r,"string");return typeof y=="symbol"?y:y+""}function _unsupportedIterableToArray(r,y){if(r){if(typeof r=="string")return _arrayLikeToArray(r,y);var x={}.toString.call(r).slice(8,-1);return x==="Object"&&r.constructor&&(x=r.constructor.name),x==="Map"||x==="Set"?Array.from(r):x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?_arrayLikeToArray(r,y):void 0}}
vendor: 6,690 bytes, line 297
297var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function r(y,x){var b=y.animationData,R=y.loop,M=y.autoplay,O=y.initialSegment,z=y.onComplete,U=y.onLoopComplete,G=y.onEnterFrame,q=y.onSegmentStart,J=y.onConfigReady,X=y.onDataReady,fe=y.onDataFailed,te=y.onLoadedImages,ue=y.onDOMLoaded,ye=y.onDestroy;y.lottieRef,y.renderer,y.name,y.assetsPath,y.rendererSettings;var oe=_objectWithoutProperties(y,_excluded$1),ne=reactExports.useState(!1),ae=_slicedToArray(ne,2),pe=ae[0],je=ae[1],Ve=reactExports.useRef(),Ue=reactExports.useRef(null),$e=function(){var Ge;(Ge=Ve.current)===null||Ge===void 0||Ge.play()},We=function(){var Ge;(Ge=Ve.current)===null||Ge===void 0||Ge.stop()},ot=function(){var Ge;(Ge=Ve.current)===null||Ge===void 0||Ge.pause()},ct=function(Ge){var Ke;(Ke=Ve.current)===null||Ke===void 0||Ke.setSpeed(Ge)},it=function(Ge,Ke){var Ze;(Ze=Ve.current)===null||Ze===void 0||Ze.goToAndPlay(Ge,Ke)},ft=function(Ge,Ke){var Ze;(Ze=Ve.current)===null||Ze===void 0||Ze.goToAndStop(Ge,Ke)},dt=function(Ge){var Ke;(Ke=Ve.current)===null||Ke===void 0||Ke.setDirection(Ge)},nt=function(Ge,Ke){var Ze;(Ze=Ve.current)===null||Ze===void 0||Ze.playSegments(Ge,Ke)},Ne=function(Ge){var Ke;(Ke=Ve.current)===null||Ke===void 0||Ke.setSubframe(Ge)},He=function(Ge){var Ke;return(Ke=Ve.current)===null||Ke===void 0?void 0:Ke.getDuration(Ge)},_e=function(){var Ge;(Ge=Ve.current)===null||Ge===void 0||Ge.destroy(),Ve.current=void 0},Be=function(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ke;if(Ue.current){(Ke=Ve.current)===null||Ke===void 0||Ke.destroy();var Ze=_objectSpread2(_objectSpread2(_objectSpread2({},y),Ge),{},{container:Ue.current});return Ve.current=lottie.loadAnimation(Ze),je(!!Ve.current),function(){var ut;(ut=Ve.current)===null||ut===void 0||ut.destroy(),Ve.current=void 0}}};reactExports.useEffect(function(){var Le=Be();return function(){return Le?.()}},[b,R]),reactExports.useEffect(function(){Ve.current&&(Ve.current.autoplay=!!M)},[M]),reactExports.useEffect(function(){if(Ve.current){if(!O){Ve.current.resetSegments(!0);return}!Array.isArray(O)||!O.length||((Ve.current.currentRawFrame<O[0]||Ve.current.currentRawFrame>O[1])&&(Ve.current.currentRawFrame=O[0]),Ve.current.setSegment(O[0],O[1]))}},[O]),reactExports.useEffect(function(){var Le=[{name:"complete",handler:z},{name:"loopComplete",handler:U},{name:"enterFrame",handler:G},{name:"segmentStart",handler:q},{name:"config_ready",handler:J},{name:"data_ready",handler:X},{name:"data_failed",handler:fe},{name:"loaded_images",handler:te},{name:"DOMLoaded",handler:ue},{name:"destroy",handler:ye}],Ge=Le.filter(function(Ze){return Ze.handler!=null});if(Ge.length){var Ke=Ge.map(function(Ze){var ut;return(ut=Ve.current)===null||ut===void 0||ut.addEventListener(Ze.name,Ze.handler),function(){var pt;(pt=Ve.current)===null||pt===void 0||pt.removeEventListener(Ze.name,Ze.handler)}});return function(){Ke.forEach(function(Ze){return Ze()})}}},[z,U,G,q,J,X,fe,te,ue,ye]);var Ye=React3.createElement("div",_objectSpread2({style:x,ref:Ue},oe));return{View:Ye,play:$e,stop:We,pause:ot,setSpeed:ct,goToAndStop:ft,goToAndPlay:it,setDirection:dt,playSegments:nt,setSubframe:Ne,getDuration:He,destroy:_e,animationContainerRef:Ue,animationLoaded:pe,animationItem:Ve.current}};function getContainerVisibility(r){var y=r.getBoundingClientRect(),x=y.top,b=y.height,R=window.innerHeight-x,M=window.innerHeight+b;return R/M}function getContainerCursorPosition(r,y,x){var b=r.getBoundingClientRect(),R=b.top,M=b.left,O=b.width,z=b.height,U=(y-M)/O,G=(x-R)/z;return{x:U,y:G}}var useInitInteractivity=function r(y){var x=y.wrapperRef,b=y.animationItem,R=y.mode,M=y.actions;reactExports.useEffect(function(){var O=x.current;if(!(!O||!b||!M.length)){b.stop();var z=function(){var q=null,J=function(){var fe=getContainerVisibility(O),te=M.find(function(ye){var oe=ye.visibility;return oe&&fe>=oe[0]&&fe<=oe[1]});if(te){if(te.type==="seek"&&te.visibility&&te.frames.length===2){var ue=te.frames[0]+Math.ceil((fe-te.visibility[0])/(te.visibility[1]-te.visibility[0])*te.frames[1]);b.goToAndStop(ue-b.firstFrame-1,!0)}te.type==="loop"&&(q===null||q!==te.frames||b.isPaused)&&(b.playSegments(te.frames,!0),q=te.frames),te.type==="play"&&b.isPaused&&(b.resetSegments(!0),b.play()),te.type==="stop"&&b.goToAndStop(te.frames[0]-b.firstFrame-1,!0)}};return document.addEventListener("scroll",J),function(){document.removeEventListener("scroll",J)}},U=function(){var q=function(te,ue){var ye=te,oe=ue;if(ye!==-1&&oe!==-1){var ne=getContainerCursorPosition(O,ye,oe);ye=ne.x,oe=ne.y}var ae=M.find(function(Ve){var Ue=Ve.position;return Ue&&Array.isArray(Ue.x)&&Array.isArray(Ue.y)?ye>=Ue.x[0]&&ye<=Ue.x[1]&&oe>=Ue.y[0]&&oe<=Ue.y[1]:Ue&&!Number.isNaN(Ue.x)&&!Number.isNaN(Ue.y)?ye===Ue.x&&oe===Ue.y:!1});if(ae){if(ae.type==="seek"&&ae.position&&Array.isArray(ae.position.x)&&Array.isArray(ae.position.y)&&ae.frames.length===2){var pe=(ye-ae.position.x[0])/(ae.position.x[1]-ae.position.x[0]),je=(oe-ae.position.y[0])/(ae.position.y[1]-ae.position.y[0]);b.playSegments(ae.frames,!0),b.goToAndStop(Math.ceil((pe+je)/2*(ae.frames[1]-ae.frames[0])),!0)}ae.type==="loop"&&b.playSegments(ae.frames,!0),ae.type==="play"&&(b.isPaused&&b.resetSegments(!1),b.playSegments(ae.frames)),ae.type==="stop"&&b.goToAndStop(ae.frames[0],!0)}},J=function(te){q(te.clientX,te.clientY)},X=function(){q(-1,-1)};return O.addEventListener("mousemove",J),O.addEventListener("mouseout",X),function(){O.removeEventListener("mousemove",J),O.removeEventListener("mouseout",X)}};switch(R){case"scroll":return z();case"cursor":return U()}}},[R,b])},useLottieInteractivity=function r(y){var x=y.actions,b=y.mode,R=y.lottieObj,M=R.animationItem,O=R.View,z=R.animationContainerRef;return useInitInteractivity({actions:x,animationItem:M,mode:b,wrapperRef:z}),O},_excluded=["style","interactivity"],Lottie=function r(y){var x,b,R,M=y.style,O=y.interactivity,z=_objectWithoutProperties(y,_excluded),U=useLottie(z,M),G=U.View,q=U.play,J=U.stop,X=U.pause,fe=U.setSpeed,te=U.goToAndStop,ue=U.goToAndPlay,ye=U.setDirection,oe=U.playSegments,ne=U.setSubframe,ae=U.getDuration,pe=U.destroy,je=U.animationContainerRef,Ve=U.animationLoaded,Ue=U.animationItem;return reactExports.useEffect(function(){y.lottieRef&&(y.lottieRef.current={play:q,stop:J,pause:X,setSpeed:fe,goToAndPlay:ue,goToAndStop:te,setDirection:ye,playSegments:oe,setSubframe:ne,getDuration:ae,destroy:pe,animationContainerRef:je,animationLoaded:Ve,animationItem:Ue})}
vendor: 6,535 bytes, line 297
297,[(x=y.lottieRef)===null||x===void 0?void 0:x.current]),useLottieInteractivity({lottieObj:{View:G,play:q,stop:J,pause:X,setSpeed:fe,goToAndStop:te,goToAndPlay:ue,setDirection:ye,playSegments:oe,setSubframe:ne,getDuration:ae,destroy:pe,animationContainerRef:je,animationLoaded:Ve,animationItem:Ue},actions:(b=O?.actions)!==null&&b!==void 0?b:[],mode:(R=O?.mode)!==null&&R!==void 0?R:"scroll"})};const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(r=>{PACKET_TYPES_REVERSE[PACKET_TYPES[r]]=r});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,encodePacket=({type:r,data:y},x,b)=>withNativeBlob$1&&y instanceof Blob?x?b(y):encodeBlobAsBase64(y,b):withNativeArrayBuffer$2&&(y instanceof ArrayBuffer||isView$1(y))?x?b(y):encodeBlobAsBase64(new Blob([y]),b):b(PACKET_TYPES[r]+(y||"")),encodeBlobAsBase64=(r,y)=>{const x=new FileReader;return x.onload=function(){const b=x.result.split(",")[1];y("b"+(b||""))},x.readAsDataURL(r)};function toArray(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(r,y){if(withNativeBlob$1&&r.data instanceof Blob)return r.data.arrayBuffer().then(toArray).then(y);if(withNativeArrayBuffer$2&&(r.data instanceof ArrayBuffer||isView$1(r.data)))return y(toArray(r.data));encodePacket(r,!1,x=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),y(TEXT_ENCODER.encode(x))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<chars.length;r++)lookup$1[chars.charCodeAt(r)]=r;const decode$1=r=>{let y=r.length*.75,x=r.length,b,R=0,M,O,z,U;r[r.length-1]==="="&&(y--,r[r.length-2]==="="&&y--);const G=new ArrayBuffer(y),q=new Uint8Array(G);for(b=0;b<x;b+=4)M=lookup$1[r.charCodeAt(b)],O=lookup$1[r.charCodeAt(b+1)],z=lookup$1[r.charCodeAt(b+2)],U=lookup$1[r.charCodeAt(b+3)],q[R++]=M<<2|O>>4,q[R++]=(O&15)<<4|z>>2,q[R++]=(z&3)<<6|U&63;return G},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(r,y)=>{if(typeof r!="string")return{type:"message",data:mapBinary(r,y)};const x=r.charAt(0);return x==="b"?{type:"message",data:decodeBase64Packet(r.substring(1),y)}:PACKET_TYPES_REVERSE[x]?r.length>1?{type:PACKET_TYPES_REVERSE[x],data:r.substring(1)}:{type:PACKET_TYPES_REVERSE[x]}:ERROR_PACKET},decodeBase64Packet=(r,y)=>{if(withNativeArrayBuffer$1){const x=decode$1(r);return mapBinary(x,y)}else return{base64:!0,data:r}},mapBinary=(r,y)=>y==="blob"?r instanceof Blob?r:new Blob([r]):r instanceof ArrayBuffer?r:r.buffer,SEPARATOR="�",encodePayload=(r,y)=>{const x=r.length,b=new Array(x);let R=0;r.forEach((M,O)=>{encodePacket(M,!1,z=>{b[O]=z,++R===x&&y(b.join(SEPARATOR))})})},decodePayload=(r,y)=>{const x=r.split(SEPARATOR),b=[];for(let R=0;R<x.length;R++){const M=decodePacket(x[R],y);if(b.push(M),M.type==="error")break}return b};function createPacketEncoderStream(){return new TransformStream({transform(r,y){encodePacketToBinary(r,x=>{const b=x.length;let R;if(b<126)R=new Uint8Array(1),new DataView(R.buffer).setUint8(0,b);else if(b<65536){R=new Uint8Array(3);const M=new DataView(R.buffer);M.setUint8(0,126),M.setUint16(1,b)}else{R=new Uint8Array(9);const M=new DataView(R.buffer);M.setUint8(0,127),M.setBigUint64(1,BigInt(b))}r.data&&typeof r.data!="string"&&(R[0]|=128),y.enqueue(R),y.enqueue(x)})}})}let TEXT_DECODER;function totalLength(r){return r.reduce((y,x)=>y+x.length,0)}function concatChunks(r,y){if(r[0].length===y)return r.shift();const x=new Uint8Array(y);let b=0;for(let R=0;R<y;R++)x[R]=r[0][b++],b===r[0].length&&(r.shift(),b=0);return r.length&&b<r[0].length&&(r[0]=r[0].slice(b)),x}function createPacketDecoderStream(r,y){TEXT_DECODER||(TEXT_DECODER=new TextDecoder);const x=[];let b=0,R=-1,M=!1;return new TransformStream({transform(O,z){for(x.push(O);;){if(b===0){if(totalLength(x)<1)break;const U=concatChunks(x,1);M=(U[0]&128)===128,R=U[0]&127,R<126?b=3:R===126?b=1:b=2}else if(b===1){if(totalLength(x)<2)break;const U=concatChunks(x,2);R=new DataView(U.buffer,U.byteOffset,U.length).getUint16(0),b=3}else if(b===2){if(totalLength(x)<8)break;const U=concatChunks(x,8),G=new DataView(U.buffer,U.byteOffset,U.length),q=G.getUint32(0);if(q>Math.pow(2,21)-1){z.enqueue(ERROR_PACKET);break}R=q*Math.pow(2,32)+G.getUint32(4),b=3}else{if(totalLength(x)<R)break;const U=concatChunks(x,R);z.enqueue(decodePacket(M?U:TEXT_DECODER.decode(U),y)),b=0}if(R===0||R>r){z.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(r){if(r)return mixin(r)}function mixin(r){for(var y in Emitter.prototype)r[y]=Emitter.prototype[y];return r}Emitter.prototype.on=Emitter.prototype.addEventListener=function(r,y){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(y),this};Emitter.prototype.once=function(r,y){function x(){this.off(r,x),y.apply(this,arguments)}return x.fn=y,this.on(r,x),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(r,y){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var x=this._callbacks["$"+r];if(!x)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var b,R=0;R<x.length;R++)if(b=x[R],b===y||b.fn===y){x.splice(R,1);break}return x.length===0&&delete this._callbacks["$"+r],this};Emitter.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var y=new Array(arguments.length-1),x=this._callbacks["$"+r],b=1;b<arguments.length;b++)y[b-1]=arguments[b];if(x){x=x.slice(0);for(var b=0,R=x.length;b<R;++b)x[b].apply(this,y)}return this};Emitter.prototype.emitReserved=Emitter.prototype.emit;Emitter.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Emitter.prototype.hasListeners=function(r){return!!this.listeners(r).length};const nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?y=>Promise.resolve().then(y):(y,x)=>
vendor: 4,485 bytes, line 297
297x(y,0),globalThisShim=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),defaultBinaryType="arraybuffer";function createCookieJar(){}function pick(r,...y){return y.reduce((x,b)=>(r.hasOwnProperty(b)&&(x[b]=r[b]),x),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(r,y){y.useNativeTimers?(r.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),r.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(r.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),r.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(r){return typeof r=="string"?utf8Length(r):Math.ceil((r.byteLength||r.size)*BASE64_OVERHEAD)}function utf8Length(r){let y=0,x=0;for(let b=0,R=r.length;b<R;b++)y=r.charCodeAt(b),y<128?x+=1:y<2048?x+=2:y<55296||y>=57344?x+=3:(b++,x+=4);return x}function randomString(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function encode(r){let y="";for(let x in r)r.hasOwnProperty(x)&&(y.length&&(y+="&"),y+=encodeURIComponent(x)+"="+encodeURIComponent(r[x]));return y}function decode(r){let y={},x=r.split("&");for(let b=0,R=x.length;b<R;b++){let M=x[b].split("=");y[decodeURIComponent(M[0])]=decodeURIComponent(M[1])}return y}class TransportError extends Error{constructor(y,x,b){super(y),this.description=x,this.context=b,this.type="TransportError"}}class Transport extends Emitter{constructor(y){super(),this.writable=!1,installTimerFunctions(this,y),this.opts=y,this.query=y.query,this.socket=y.socket,this.supportsBinary=!y.forceBase64}onError(y,x,b){return super.emitReserved("error",new TransportError(y,x,b)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(y){this.readyState==="open"&&this.write(y)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(y){const x=decodePacket(y,this.socket.binaryType);this.onPacket(x)}onPacket(y){super.emitReserved("packet",y)}onClose(y){this.readyState="closed",super.emitReserved("close",y)}pause(y){}createUri(y,x={}){return y+"://"+this._hostname()+this._port()+this.opts.path+this._query(x)}_hostname(){const y=this.opts.hostname;return y.indexOf(":")===-1?y:"["+y+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(y){const x=encode(y);return x.length?"?"+x:""}}class Polling extends Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(y){this.readyState="pausing";const x=()=>{this.readyState="paused",y()};if(this._polling||!this.writable){let b=0;this._polling&&(b++,this.once("pollComplete",function(){--b||x()})),this.writable||(b++,this.once("drain",function(){--b||x()}))}else x()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(y){const x=b=>{if(this.readyState==="opening"&&b.type==="open"&&this.onOpen(),b.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(b)};decodePayload(y,this.socket.binaryType).forEach(x),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const y=()=>{this.write([{type:"close"}])};this.readyState==="open"?y():this.once("open",y)}write(y){this.writable=!1,encodePayload(y,x=>{this.doWrite(x,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const y=this.opts.secure?"https":"http",x=this.query||{};return this.opts.timestampRequests!==!1&&(x[this.opts.timestampParam]=randomString()),!this.supportsBinary&&!x.sid&&(x.b64=1),this.createUri(y,x)}}let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(r){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(y){if(super(y),typeof location<"u"){const x=location.protocol==="https:";let b=location.port;b||(b=x?"443":"80"),this.xd=typeof location<"u"&&y.hostname!==location.hostname||b!==y.port}}doWrite(y,x){const b=this.request({method:"POST",data:y});b.on("success",x),b.on("error",(R,M)=>{this.onError("xhr post error",R,M)})}doPoll(){const y=this.request();y.on("data",this.onData.bind(this)),y.on("error",(x,b)=>{this.onError("xhr poll error",x,b)}),this.pollXhr=y}}
vendor: 19,188 bytes, line 297
297class Request extends Emitter{constructor(y,x,b){super(),this.createRequest=y,installTimerFunctions(this,b),this._opts=b,this._method=b.method||"GET",this._uri=x,this._data=b.data!==void 0?b.data:null,this._create()}_create(){var y;const x=pick(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");x.xdomain=!!this._opts.xd;const b=this._xhr=this.createRequest(x);try{b.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){b.setDisableHeaderCheck&&b.setDisableHeaderCheck(!0);for(let R in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(R)&&b.setRequestHeader(R,this._opts.extraHeaders[R])}}catch{}if(this._method==="POST")try{b.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{b.setRequestHeader("Accept","*/*")}catch{}(y=this._opts.cookieJar)===null||y===void 0||y.addCookies(b),"withCredentials"in b&&(b.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(b.timeout=this._opts.requestTimeout),b.onreadystatechange=()=>{var R;b.readyState===3&&((R=this._opts.cookieJar)===null||R===void 0||R.parseCookies(b.getResponseHeader("set-cookie"))),b.readyState===4&&(b.status===200||b.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof b.status=="number"?b.status:0)},0))},b.send(this._data)}catch(R){this.setTimeoutFn(()=>{this._onError(R)},0);return}typeof document<"u"&&(this._index=Request.requestsCount++,Request.requests[this._index]=this)}_onError(y){this.emitReserved("error",y,this._xhr),this._cleanup(!0)}_cleanup(y){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=empty,y)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this._index],this._xhr=null}}_onLoad(){const y=this._xhr.responseText;y!==null&&(this.emitReserved("data",y),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const r="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(r,unloadHandler,!1)}}function unloadHandler(){for(let r in Request.requests)Request.requests.hasOwnProperty(r)&&Request.requests[r].abort()}const hasXHR2=(function(){const r=newRequest({xdomain:!1});return r&&r.responseType!==null})();class XHR extends BaseXHR{constructor(y){super(y);const x=y&&y.forceBase64;this.supportsBinary=hasXHR2&&!x}request(y={}){return Object.assign(y,{xd:this.xd},this.opts),new Request(newRequest,this.uri(),y)}}function newRequest(r){const y=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!y||hasCORS))return new XMLHttpRequest}catch{}if(!y)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BaseWS extends Transport{get name(){return"websocket"}doOpen(){const y=this.uri(),x=this.opts.protocols,b=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(b.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(y,x,b)}catch(R){return this.emitReserved("error",R)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=y=>this.onClose({description:"websocket connection closed",context:y}),this.ws.onmessage=y=>this.onData(y.data),this.ws.onerror=y=>this.onError("websocket error",y)}write(y){this.writable=!1;for(let x=0;x<y.length;x++){const b=y[x],R=x===y.length-1;encodePacket(b,this.supportsBinary,M=>{try{this.doWrite(b,M)}catch{}R&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const y=this.opts.secure?"wss":"ws",x=this.query||{};return this.opts.timestampRequests&&(x[this.opts.timestampParam]=randomString()),this.supportsBinary||(x.b64=1),this.createUri(y,x)}}const WebSocketCtor=globalThisShim.WebSocket||globalThisShim.MozWebSocket;class WS extends BaseWS{createSocket(y,x,b){return isReactNative?new WebSocketCtor(y,x,b):x?new WebSocketCtor(y,x):new WebSocketCtor(y)}doWrite(y,x){this.ws.send(x)}}class WT extends Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(y){return this.emitReserved("error",y)}this._transport.closed.then(()=>{this.onClose()}).catch(y=>{this.onError("webtransport error",y)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(y=>{const x=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),b=y.readable.pipeThrough(x).getReader(),R=createPacketEncoderStream();R.readable.pipeTo(y.writable),this._writer=R.writable.getWriter();const M=()=>{b.read().then(({done:z,value:U})=>{z||(this.onPacket(U),M())}).catch(z=>{})};M();const O={type:"open"};this.query.sid&&(O.data=`{"sid":"${this.query.sid}"}`),this._writer.write(O).then(()=>this.onOpen())})})}write(y){this.writable=!1;for(let x=0;x<y.length;x++){const b=y[x],R=x===y.length-1;this._writer.write(b).then(()=>{R&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var y;(y=this._transport)===null||y===void 0||y.close()}}const transports={websocket:WS,webtransport:WT,polling:XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(r){if(r.length>8e3)throw"URI too long";const y=r,x=r.indexOf("["),b=r.indexOf("]");x!=-1&&b!=-1&&(r=r.substring(0,x)+r.substring(x,b).replace(/:/g,";")+r.substring(b,r.length));let R=re.exec(r||""),M={},O=14;for(;O--;)M[parts[O]]=R[O]||"";return x!=-1&&b!=-1&&(M.source=y,M.host=M.host.substring(1,M.host.length-1).replace(/;/g,":"),M.authority=M.authority.replace("[","").replace("]","").replace(/;/g,":"),M.ipv6uri=!0),M.pathNames=pathNames(M,M.path),M.queryKey=queryKey(M,M.query),M}function pathNames(r,y){const x=/\/{2,9}/g,b=y.replace(x,"/").split("/");return(y.slice(0,1)=="/"||y.length===0)&&b.splice(0,1),y.slice(-1)=="/"&&b.splice(b.length-1,1),b}function queryKey(r,y){const x={};return y.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(b,R,M){R&&(x[R]=M)}),x}const withEventListeners=typeof addEventListener=="function"&&typeof removeEventListener=="function",OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener("offline",()=>{OFFLINE_EVENT_LISTENERS.forEach(r=>r())},!1);class SocketWithoutUpgrade extends Emitter{constructor(y,x){if(super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,y&&typeof y=="object"&&(x=y,y=null),y){const b=parse(y);x.hostname=b.host,x.secure=b.protocol==="https"||b.protocol==="wss",x.port=b.port,b.query&&(x.query=b.query)}else x.host&&(x.hostname=parse(x.host).host);installTimerFunctions(this,x),this.secure=x.secure!=null?x.secure:typeof location<"u"&&location.protocol==="https:",x.hostname&&!x.port&&(x.port=this.secure?"443":"80"),this.hostname=x.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=x.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},x.transports.forEach(b=>{const R=b.prototype.name;this.transports.push(R),this._transportsByName[R]=b}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},x),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),withEventListeners&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},OFFLINE_EVENT_LISTENERS.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(y){const x=Object.assign({},this.opts.query);x.EIO=protocol$1,x.transport=y,this.id&&(x.sid=this.id);const b=Object.assign({},this.opts,{query:x,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[y]);return new this._transportsByName[y](b)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const y=this.opts.rememberUpgrade&&SocketWithoutUpgrade.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const x=this.createTransport(y);x.open(),this.setTransport(x)}setTransport(y){this.transport&&this.transport.removeAllListeners(),this.transport=y,y.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",x=>this._onClose("transport close",x))}onOpen(){this.readyState="open",SocketWithoutUpgrade.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(y){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",y),this.emitReserved("heartbeat"),y.type){case"open":this.onHandshake(JSON.parse(y.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const x=new Error("server error");x.code=y.data,this._onError(x);break;case"message":this.emitReserved("data",y.data),this.emitReserved("message",y.data);break}}onHandshake(y){this.emitReserved("handshake",y),this.id=y.sid,this.transport.query.sid=y.sid,this._pingInterval=y.pingInterval,this._pingTimeout=y.pingTimeout,this._maxPayload=y.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const y=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+y,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},y),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const y=this._getWritablePackets();this.transport.send(y),this._prevBufferLen=y.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let x=1;for(let b=0;b<this.writeBuffer.length;b++){const R=this.writeBuffer[b].data;if(R&&(x+=byteLength(R)),b>0&&x>this._maxPayload)return this.writeBuffer.slice(0,b);x+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const y=Date.now()>this._pingTimeoutTime;return y&&(this._pingTimeoutTime=0,nextTick(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),y}write(y,x,b){return this._sendPacket("message",y,x,b),this}send(y,x,b){return this._sendPacket("message",y,x,b),this}_sendPacket(y,x,b,R){if(typeof x=="function"&&(R=x,x=void 0),typeof b=="function"&&(R=b,b=null),this.readyState==="closing"||this.readyState==="closed")return;b=b||{},b.compress=b.compress!==!1;const M={type:y,data:x,options:b};this.emitReserved("packetCreate",M),this.writeBuffer.push(M),R&&this.once("flush",R),this.flush()}close(){const y=()=>{this._onClose("forced close"),this.transport.close()},x=()=>{this.off("upgrade",x),this.off("upgradeError",x),y()},b=()=>{this.once("upgrade",x),this.once("upgradeError",x)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?b():y()}):this.upgrading?b():y()),this}_onError(y){if(SocketWithoutUpgrade.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",y),this._onClose("transport error",y)}_onClose(y,x){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),withEventListeners&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const b=OFFLINE_EVENT_LISTENERS.indexOf(this._offlineEventListener);b!==-1&&OFFLINE_EVENT_LISTENERS.splice(b,1)}this.readyState="closed",this.id=null,this.emitReserved("close",y,x),this.writeBuffer=[],this._prevBufferLen=0}}}SocketWithoutUpgrade.protocol=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let y=0;y<this._upgrades.length;y++)this._probe(this._upgrades[y])}_probe(y){let x=this.createTransport(y),b=!1;SocketWithoutUpgrade.priorWebsocketSuccess=!1;const R=()=>{b||(x.send([{type:"ping",data:"probe"}]),x.once("packet",J=>{if(!b)if(J.type==="pong"&&J.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",x),!x)return;SocketWithoutUpgrade.priorWebsocketSuccess=x.name==="websocket",this.transport.pause(()=>{b||this.readyState!=="closed"&&(q(),this.setTransport(x),x.send([{type:"upgrade"}]),this.emitReserved("upgrade",x),x=null,this.upgrading=!1,this.flush())})}else{const X=new Error("probe error");X.transport=x.name,this.emitReserved("upgradeError",X)}}))};function M(){b||(b=!0,q(),x.close(),x=null)}const O=J=>{const X=new Error("probe error: "+J);X.transport=x.name,M(),this.emitReserved("upgradeError",X)};function z(){O("transport closed")}function U(){O("socket closed")}function G(J){x&&J.name!==x.name&&M()}const q=()=>{x.removeListener("open",R),x.removeListener("error",O),x.removeListener("close",z),this.off("close",U),this.off("upgrading",G)};x.once("open",R),x.once("error",O),x.once("close",z),this.once("close",U),this.once("upgrading",G),this._upgrades.indexOf("webtransport")!==-1&&y!=="webtransport"?this.setTimeoutFn(()=>{b||x.open()},200):x.open()}onHandshake(y){this._upgrades=this._filterUpgrades(y.upgrades),super.onHandshake(y)}_filterUpgrades(y){const x=[];for(let b=0;b<y.length;b++)~this.transports.indexOf(y[b])&&x.push(y[b]);return x}}let Socket$1=class extends SocketWithUpgrade{constructor(y,x={}){const b=typeof y=="object"?y:x;(!b.transports||b.transports&&typeof b.transports[0]=="string")&&(b.transports=(b.transports||["polling","websocket","webtransport"]).map(R=>transports[R]).filter(R=>!!R)),super(y,b)}};function url(r,y="",x){let b=r;x=x||typeof location<"u"&&location,r==null&&(r=x.protocol+"//"+x.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=x.protocol+r:r=x.host+r),/^(https?|wss?):\/\//.test(r)||(typeof x<"u"?r=x.protocol+"//"+r:r="https://"+r),b=parse(r)),b.port||(/^(http|ws)$/.test(b.protocol)?b.port="80":/^(http|ws)s$/.test(b.protocol)&&(b.port="443")),b.path=b.path||"/";const M=b.host.indexOf(":")!==-1?"["+b.host+"]":b.host;return b.id=b.protocol+"://"+M+":"+b.port+y,b.href=b.protocol+"://"+M+(x&&x.port===b.port?"":":"+b.port),b}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(r){return withNativeArrayBuffer&&(r instanceof ArrayBuffer||isView(r))||withNativeBlob&&r instanceof Blob||withNativeFile&&r instanceof File}function hasBinary(r,y){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let x=0,b=r.length;x<b;x++)if(hasBinary(r[x]))return!0;return!1}if(isBinary(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return hasBinary(r.toJSON(),!0);for(const x in r)if(Object.prototype.hasOwnProperty.call(r,x)&&hasBinary(r[x]))return!0;return!1}function deconstructPacket(r){const y=[],x=r.data,b=r;return b.data=_deconstructPacket(x,y),b.attachments=y.length,{packet:b,buffers:y}}function _deconstructPacket(r,y){if(!r)return r;if(isBinary(r)){const x={_placeholder:!0,num:y.length};return y.push(r),x}else if(Array.isArray(r)){const x=new Array(r.length);for(let b=0;b<r.length;b++)x[b]=_deconstructPacket(r[b],y);return x}else if(typeof r=="object"&&!(r instanceof Date)){const x={};for(const b in r)Object.prototype.hasOwnProperty.call(r,b)&&(x[b]=_deconstructPacket(r[b],y));return x}return r}function reconstructPacket(r,y){return r.data=_reconstructPacket(r.data,y),delete r.attachments,r}function _reconstructPacket(r,y){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<y.length)return y[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let x=0;x<r.length;x++)r[x]=_reconstructPacket(r[x],y);else if(typeof r=="object")for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&(r[x]=_reconstructPacket(r[x],y));return r}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(y){this.replacer=y}encode(y){return(y.type===PacketType.EVENT||y.type===PacketType.ACK)&&hasBinary(y)?this.encodeAsBinary({type:y.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:y.nsp,data:y.data,id:y.id}):[this.encodeAsString(y)]}encodeAsString(y){let x=""+y.type;return(y.type===PacketType.BINARY_EVENT||y.type===PacketType.BINARY_ACK)&&(x+=y.attachments+"-"),y.nsp&&y.nsp!=="/"&&(x+=y.nsp+","),y.id!=null&&(x+=y.id),y.data!=null&&(x+=JSON.stringify(y.data,this.replacer)),x}encodeAsBinary(y){const x=deconstructPacket(y),b=this.encodeAsString(x.packet),R=x.buffers;return R.unshift(b),R}}
vendor: 6,839 bytes, line 297
297class Decoder extends Emitter{constructor(y){super(),this.reviver=y}add(y){let x;if(typeof y=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");x=this.decodeString(y);const b=x.type===PacketType.BINARY_EVENT;b||x.type===PacketType.BINARY_ACK?(x.type=b?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(x),x.attachments===0&&super.emitReserved("decoded",x)):super.emitReserved("decoded",x)}else if(isBinary(y)||y.base64)if(this.reconstructor)x=this.reconstructor.takeBinaryData(y),x&&(this.reconstructor=null,super.emitReserved("decoded",x));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+y)}decodeString(y){let x=0;const b={type:Number(y.charAt(0))};if(PacketType[b.type]===void 0)throw new Error("unknown packet type "+b.type);if(b.type===PacketType.BINARY_EVENT||b.type===PacketType.BINARY_ACK){const M=x+1;for(;y.charAt(++x)!=="-"&&x!=y.length;);const O=y.substring(M,x);if(O!=Number(O)||y.charAt(x)!=="-")throw new Error("Illegal attachments");b.attachments=Number(O)}if(y.charAt(x+1)==="/"){const M=x+1;for(;++x&&!(y.charAt(x)===","||x===y.length););b.nsp=y.substring(M,x)}else b.nsp="/";const R=y.charAt(x+1);if(R!==""&&Number(R)==R){const M=x+1;for(;++x;){const O=y.charAt(x);if(O==null||Number(O)!=O){--x;break}if(x===y.length)break}b.id=Number(y.substring(M,x+1))}if(y.charAt(++x)){const M=this.tryParse(y.substr(x));if(Decoder.isPayloadValid(b.type,M))b.data=M;else throw new Error("invalid payload")}return b}tryParse(y){try{return JSON.parse(y,this.reviver)}catch{return!1}}static isPayloadValid(y,x){switch(y){case PacketType.CONNECT:return isObject(x);case PacketType.DISCONNECT:return x===void 0;case PacketType.CONNECT_ERROR:return typeof x=="string"||isObject(x);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(x)&&(typeof x[0]=="number"||typeof x[0]=="string"&&RESERVED_EVENTS$1.indexOf(x[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(x)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(y){this.packet=y,this.buffers=[],this.reconPack=y}takeBinaryData(y){if(this.buffers.push(y),this.buffers.length===this.reconPack.attachments){const x=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),x}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function isNamespaceValid(r){return typeof r=="string"}const isInteger=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};function isAckIdValid(r){return r===void 0||isInteger(r)}function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isDataValid(r,y){switch(r){case PacketType.CONNECT:return y===void 0||isObject(y);case PacketType.DISCONNECT:return y===void 0;case PacketType.EVENT:return Array.isArray(y)&&(typeof y[0]=="number"||typeof y[0]=="string"&&RESERVED_EVENTS$1.indexOf(y[0])===-1);case PacketType.ACK:return Array.isArray(y);case PacketType.CONNECT_ERROR:return typeof y=="string"||isObject(y);default:return!1}}function isPacketValid(r){return isNamespaceValid(r.nsp)&&isAckIdValid(r.id)&&isDataValid(r.type,r.data)}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},isPacketValid,protocol},Symbol.toStringTag,{value:"Module"}));function on(r,y,x){return r.on(y,x),function(){r.off(y,x)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(y,x,b){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=y,this.nsp=x,b&&b.auth&&(this.auth=b.auth),this._opts=Object.assign({},b),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const y=this.io;this.subs=[on(y,"open",this.onopen.bind(this)),on(y,"packet",this.onpacket.bind(this)),on(y,"error",this.onerror.bind(this)),on(y,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...y){return y.unshift("message"),this.emit.apply(this,y),this}emit(y,...x){var b,R,M;if(RESERVED_EVENTS.hasOwnProperty(y))throw new Error('"'+y.toString()+'" is a reserved event name');if(x.unshift(y),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(x),this;const O={type:PacketType.EVENT,data:x};if(O.options={},O.options.compress=this.flags.compress!==!1,typeof x[x.length-1]=="function"){const q=this.ids++,J=x.pop();this._registerAckCallback(q,J),O.id=q}const z=(R=(b=this.io.engine)===null||b===void 0?void 0:b.transport)===null||R===void 0?void 0:R.writable,U=this.connected&&!(!((M=this.io.engine)===null||M===void 0)&&M._hasPingExpired());return this.flags.volatile&&!z||(U?(this.notifyOutgoingListeners(O),this.packet(O)):this.sendBuffer.push(O)),this.flags={},this}_registerAckCallback(y,x){var b;const R=(b=this.flags.timeout)!==null&&b!==void 0?b:this._opts.ackTimeout;if(R===void 0){this.acks[y]=x;return}const M=this.io.setTimeoutFn(()=>{delete this.acks[y];for(let z=0;z<this.sendBuffer.length;z++)this.sendBuffer[z].id===y&&this.sendBuffer.splice(z,1);x.call(this,new Error("operation has timed out"))},R),O=(...z)=>{this.io.clearTimeoutFn(M),x.apply(this,z)};O.withError=!0,this.acks[y]=O}emitWithAck(y,...x){return new Promise((b,R)=>{const M=(O,z)=>O?R(O):b(z);M.withError=!0,x.push(M),this.emit(y,...x)})}_addToQueue(y){let x;typeof y[y.length-1]=="function"&&(x=y.pop());const b={id:this._queueSeq++,tryCount:0,pending:!1,args:y,flags:Object.assign({fromQueue:!0},this.flags)};y.push((R,...M)=>(this._queue[0],R!==null?b.tryCount>this._opts.retries&&(this._queue.shift(),x&&x(R)):(this._queue.shift(),x&&x(null,...M)),b.pending=!1,this._drainQueue())),this._queue.push(b),this._drainQueue()}_drainQueue(y=!1){if(!this.connected||this._queue.length===0)return;const x=this._queue[0];x.pending&&!y||(x.pending=!0,x.tryCount++,this.flags=x.flags,this.emit.apply(this,x.args))}packet(y){y.nsp=this.nsp,this.io._packet(y)}onopen(){typeof this.auth=="function"?this.auth(y=>{this._sendConnectPacket(y)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(y){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},y):y})}onerror(y){this.connected||this.emitReserved("connect_error",y)}onclose(y,x){this.connected=!1,delete this.id,this.emitReserved("disconnect",y,x),this._clearAcks()}
vendor: 6,089 bytes, line 297
297_clearAcks(){Object.keys(this.acks).forEach(y=>{if(!this.sendBuffer.some(b=>String(b.id)===y)){const b=this.acks[y];delete this.acks[y],b.withError&&b.call(this,new Error("socket has been disconnected"))}})}onpacket(y){if(y.nsp===this.nsp)switch(y.type){case PacketType.CONNECT:y.data&&y.data.sid?this.onconnect(y.data.sid,y.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(y);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(y);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const b=new Error(y.data.message);b.data=y.data.data,this.emitReserved("connect_error",b);break}}onevent(y){const x=y.data||[];y.id!=null&&x.push(this.ack(y.id)),this.connected?this.emitEvent(x):this.receiveBuffer.push(Object.freeze(x))}emitEvent(y){if(this._anyListeners&&this._anyListeners.length){const x=this._anyListeners.slice();for(const b of x)b.apply(this,y)}super.emit.apply(this,y),this._pid&&y.length&&typeof y[y.length-1]=="string"&&(this._lastOffset=y[y.length-1])}ack(y){const x=this;let b=!1;return function(...R){b||(b=!0,x.packet({type:PacketType.ACK,id:y,data:R}))}}onack(y){const x=this.acks[y.id];typeof x=="function"&&(delete this.acks[y.id],x.withError&&y.data.unshift(null),x.apply(this,y.data))}onconnect(y,x){this.id=y,this.recovered=x&&this._pid===x,this._pid=x,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(y=>this.emitEvent(y)),this.receiveBuffer=[],this.sendBuffer.forEach(y=>{this.notifyOutgoingListeners(y),this.packet(y)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(y=>y()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(y){return this.flags.compress=y,this}get volatile(){return this.flags.volatile=!0,this}timeout(y){return this.flags.timeout=y,this}onAny(y){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(y),this}prependAny(y){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(y),this}offAny(y){if(!this._anyListeners)return this;if(y){const x=this._anyListeners;for(let b=0;b<x.length;b++)if(y===x[b])return x.splice(b,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(y){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(y),this}prependAnyOutgoing(y){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(y),this}offAnyOutgoing(y){if(!this._anyOutgoingListeners)return this;if(y){const x=this._anyOutgoingListeners;for(let b=0;b<x.length;b++)if(y===x[b])return x.splice(b,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(y){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const x=this._anyOutgoingListeners.slice();for(const b of x)b.apply(this,y.data)}}}function Backoff(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var y=Math.random(),x=Math.floor(y*this.jitter*r);r=(Math.floor(y*10)&1)==0?r-x:r+x}return Math.min(r,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(r){this.ms=r};Backoff.prototype.setMax=function(r){this.max=r};Backoff.prototype.setJitter=function(r){this.jitter=r};class Manager extends Emitter{constructor(y,x){var b;super(),this.nsps={},this.subs=[],y&&typeof y=="object"&&(x=y,y=void 0),x=x||{},x.path=x.path||"/socket.io",this.opts=x,installTimerFunctions(this,x),this.reconnection(x.reconnection!==!1),this.reconnectionAttempts(x.reconnectionAttempts||1/0),this.reconnectionDelay(x.reconnectionDelay||1e3),this.reconnectionDelayMax(x.reconnectionDelayMax||5e3),this.randomizationFactor((b=x.randomizationFactor)!==null&&b!==void 0?b:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(x.timeout==null?2e4:x.timeout),this._readyState="closed",this.uri=y;const R=x.parser||parser;this.encoder=new R.Encoder,this.decoder=new R.Decoder,this._autoConnect=x.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(y){return arguments.length?(this._reconnection=!!y,y||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(y){return y===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=y,this)}reconnectionDelay(y){var x;return y===void 0?this._reconnectionDelay:(this._reconnectionDelay=y,(x=this.backoff)===null||x===void 0||x.setMin(y),this)}randomizationFactor(y){var x;return y===void 0?this._randomizationFactor:(this._randomizationFactor=y,(x=this.backoff)===null||x===void 0||x.setJitter(y),this)}reconnectionDelayMax(y){var x;return y===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=y,(x=this.backoff)===null||x===void 0||x.setMax(y),this)}timeout(y){return arguments.length?(this._timeout=y,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(y){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const x=this.engine,b=this;this._readyState="opening",this.skipReconnect=!1;const R=on(x,"open",function(){b.onopen(),y&&y()}),M=z=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",z),y?y(z):this.maybeReconnectOnOpen()}
297,O=on(x,"error",M);if(this._timeout!==!1){const z=this._timeout,U=this.setTimeoutFn(()=>{R(),M(new Error("timeout")),x.close()},z);this.opts.autoUnref&&U.unref(),this.subs.push(()=>{this.clearTimeoutFn(U)})}return this.subs.push(R),this.subs.push(O),this}connect(y){return this.open(y)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const y=this.engine;this.subs.push(on(y,"ping",this.onping.bind(this)),on(y,"data",this.ondata.bind(this)),on(y,"error",this.onerror.bind(this)),on(y,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(y){try{this.decoder.add(y)}catch(x){this.onclose("parse error",x)}}ondecoded(y){nextTick(()=>{this.emitReserved("packet",y)},this.setTimeoutFn)}onerror(y){this.emitReserved("error",y)}socket(y,x){let b=this.nsps[y];return b?this._autoConnect&&!b.active&&b.connect():(b=new Socket(this,y,x),this.nsps[y]=b),b}_destroy(y){const x=Object.keys(this.nsps);for(const b of x)if(this.nsps[b].active)return;this._close()}_packet(y){const x=this.encoder.encode(y);for(let b=0;b<x.length;b++)this.engine.write(x[b],y.options)}cleanup(){this.subs.forEach(y=>y()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(y,x){var b;this.cleanup(),(b=this.engine)===null||b===void 0||b.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",y,x),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const y=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const x=this.backoff.duration();this._reconnecting=!0;const b=this.setTimeoutFn(()=>{y.skipReconnect||(this.emitReserved("reconnect_attempt",y.backoff.attempts),!y.skipReconnect&&y.open(R=>{R?(y._reconnecting=!1,y.reconnect(),this.emitReserved("reconnect_error",R)):y.onreconnect()}))},x);this.opts.autoUnref&&b.unref(),this.subs.push(()=>{this.clearTimeoutFn(b)})}}onreconnect(){const y=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",y)}}const cache={};function lookup(r,y){typeof r=="object"&&(y=r,r=void 0),y=y||{};const x=url(r,y.path||"/socket.io"),b=x.source,R=x.id,M=x.path,O=cache[R]&&M in cache[R].nsps,z=y.forceNew||y["force new connection"]||y.multiplex===!1||O;let U;return z?U=new Manager(b,y):(cache[R]||(cache[R]=new Manager(b,y)),U=cache[R]),x.query&&!y.query&&(y.query=x.queryKey),U.socket(x.path,y)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const Messagecontext=reactExports.createContext(null),MessageContextProvider=({children:r})=>{const[y,x]=reactExports.useState(null),[b,R]=reactExports.useState([]),[M,O]=reactExports.useState(null),[z,U]=reactExports.useState(!1),[G,q]=reactExports.useState(!1);reactExports.useEffect(()=>{const X=lookup("https://api.westx.ai",{withCredentials:!0,auth:{token:localStorage.getItem("WESTX_AUTH_TOKEN")}});return X.on("connect",()=>{console.log("Connected to Socket.IO server")}),X.on("disconnect",()=>{console.log("Disconnected from Socket.IO server")}),x(X),()=>{X.disconnect()}},[]),reactExports.useEffect(()=>{y&&(y.on("new_message",X=>{let fe=X.messages;console.log(b),R(fe),q(!1)}),y.on("conversation_ended",X=>{console.log("Conversation ended:",X),U(!1),q(!1)}))},[y]);const J=(X,fe)=>{y&&(U(!0),q(!0),R([]),console.log("Emitting start_conversation event with userid:",X,"and message:",fe),y.emit("start_conversation",{userid:X,message:fe}))};return jsxRuntimeExports.jsx(Messagecontext.Provider,{value:{socket:y,startconversation:J,messages:b,otheruser:M,setotheruser:O,live:z,isTyping:G},children:r})},usesocket=()=>reactExports.useContext(Messagecontext),MotionDiv$3=motion.div,InteractModal=({user2:r,onClose:y})=>{const[x,b]=reactExports.useState(""),[R,M]=reactExports.useState(!1),O=useNavigate(),U=useAuth()?.user,G=usesocket();if(!r)return null;const q=async J=>{if(J.preventDefault(),!U){n.error("You must be logged in to interact.");return}if(U.isCompleted==!1){n.error("Please complete your profile to start interacting with users",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),O("/complete-profile");return}if(!x.trim()){n.error("Please enter a message",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}M(!0);try{G?.setotheruser(r),G?.startconversation(r.id,x.trim()),O("/ai/live")}catch(X){console.error(X),n.error("Something went wrong",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}})}finally{M(!1)}};return jsxRuntimeExports.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 font-jakarta",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm",onClick:y,"aria-hidden":!0}),jsxRuntimeExports.jsxs(MotionDiv$3,{initial:{opacity:0,scale:.95}
297,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative w-full max-w-md rounded-2xl border border-white/10 bg-[#0A0A0A] p-6 shadow-2xl",style:{boxShadow:"0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(153, 21, 235, 0.15)"},children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-6",children:[jsxRuntimeExports.jsxs("h3",{className:"text-xl font-bold text-white",children:["Start interacting with ",r.name]}),jsxRuntimeExports.jsx("button",{type:"button",onClick:y,className:"p-2 rounded-full text-gray-400 hover:text-white hover:bg-white/10 transition-colors","aria-label":"Close",children:jsxRuntimeExports.jsx(FaTimes,{className:"text-lg"})})]}),jsxRuntimeExports.jsxs("form",{onSubmit:q,children:[jsxRuntimeExports.jsx("label",{className:"block text-xs font-bold text-gray-400 mb-2 uppercase tracking-wide",children:"Your message"}),jsxRuntimeExports.jsx("textarea",{value:x,onChange:J=>b(J.target.value),placeholder:"Introduce yourself or say what you’d like to talk about...",className:"w-full rounded-xl border border-white/10 bg-white/5 px-4 py-3 text-white placeholder-gray-500 focus:border-territary focus:ring-1 focus:ring-territary outline-none resize-none min-h-[120px] mb-2 transition-all",maxLength:500,disabled:R}),jsxRuntimeExports.jsx("div",{className:"flex justify-between items-center mb-6",children:jsxRuntimeExports.jsxs("span",{className:"text-xs text-gray-500",children:[x.length," / 500"]})}),jsxRuntimeExports.jsxs("div",{className:"flex gap-3",children:[jsxRuntimeExports.jsx("button",{type:"button",onClick:y,className:"flex-1 px-4 py-3 rounded-xl border border-white/10 text-gray-300 hover:bg-white/5 transition-colors font-bold text-sm",disabled:R,children:"CANCEL"}),jsxRuntimeExports.jsx("button",{type:"submit",disabled:R||!x.trim(),className:"flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-xl bg-territary text-white font-bold text-sm hover:opacity-90 transition-all disabled:opacity-60 disabled:cursor-not-allowed shadow-[0_4px_20px_rgba(153,21,235,0.4)]",children:R?jsxRuntimeExports.jsx("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BsStars,{className:"text-sm"}),"SEND & START"]})})]})]})]})]})},Similarusers=()=>{const y=useAuth()?.user||null,[x,b]=reactExports.useState("similar"),[R,M]=reactExports.useState(""),O=y?.latitude!==null&&y?.longitude!==null,z=y?.islinkedin===!0;return jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-screen w-full bg-primary relative overflow-hidden font-montserrat",children:[jsxRuntimeExports.jsx("div",{className:"z-10 pt-6 pb-2 px-4 sm:px-6 lg:px-8",children:jsxRuntimeExports.jsxs("div",{className:"w-full mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between mb-8 hidden md:block",children:jsxRuntimeExports.jsxs("h1",{className:"  text-base md:text-2xl font-bold text-white flex items-center gap-3",children:[jsxRuntimeExports.jsx(FaUsers,{className:"text-white hidden md:block"}),"Similar Users"]})}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4 mb-6 mt-12 md:mt-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 md:pb-0 scrollbar-hide",children:[jsxRuntimeExports.jsx("button",{onClick:()=>b("similar"),className:`px-5 py-2 rounded-md text-sm font-medium transition-all duration-300 whitespace-nowrap ${x==="similar"?"bg-westxpurple/80 text-white":"bg-[#18181b] text-gray-400 hover:text-white border border-white/5 hover:border-white/10"}`,children:"Similar Users"}),jsxRuntimeExports.jsx("button",{onClick:()=>b("near"),className:`px-5 py-2 rounded-md text-sm font-medium transition-all duration-300 whitespace-nowrap ${x==="near"?"bg-westxpurple/80 text-white":"bg-[#18181b] text-gray-400 hover:text-white border border-white/5 hover:border-white/10"}`,children:"Nearby"}),jsxRuntimeExports.jsx("button",{onClick:()=>b("mates"),className:`px-5 py-2 rounded-md text-sm font-medium transition-all duration-300 whitespace-nowrap ${x==="mates"?"bg-westxpurple/80 text-white":"bg-[#18181b] text-gray-400 hover:text-white border border-white/5 hover:border-white/10"}`,children:"Mates"}),jsxRuntimeExports.jsx("button",{onClick:()=>b("community"),className:`px-5 py-2 rounded-md text-sm font-medium transition-all duration-300 whitespace-nowrap ${x==="community"?"bg-westxpurple/80 text-white":"bg-[#18181b] text-gray-400 hover:text-white border border-white/5 hover:border-white/10"}`,children:"Community"})]}),jsxRuntimeExports.jsxs("div",{className:"relative w-full md:w-64 lg:w-80",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:jsxRuntimeExports.jsx(FaSearch,{className:"text-gray-500"})}),jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search Users",value:R,onChange:U=>M(U.target.value),className:"block w-full pl-10 pr-3 py-2.5 bg-[#0F0F0F] border border-white/10 rounded-xl text-sm text-white placeholder-gray-500 focus:outline-none focus:border-territary/50 transition-colors"})]})]})]})}),jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 lg:px-8 py-6 custom-scrollbar relative z-10 w-full",id:"similar-users-content",children:jsxRuntimeExports.jsxs("div",{className:"w-full h-full",children:[x==="similar"&&jsxRuntimeExports.jsx(SimilarUsersTab,{searchQuery:R}),x==="near"&&jsxRuntimeExports.jsx(NearUsersTab,{hasLocation:O,searchQuery:R}),x==="mates"&&jsxRuntimeExports.jsx(MatesTab,{hasLinkedIn:z,searchQuery:R}),x==="community"&&jsxRuntimeExports.jsx(CommunityTab,{searchQuery:R}),jsxRuntimeExports.jsx("div",{className:"h-20"})," "]})}),jsxRuntimeExports.jsx("style",{children:`
298        @keyframes float {
299          0%, 100% {
300            transform: translateY(0px) translateX(0px);
301          }
302          50% {
303            transform: translateY(-20px) translateX(10px);
304          }
305        }
306        @keyframes fadeIn {
307          from {
308            opacity: 0;
309            transform: translateY(10px);
310          }
311          to {
312            opacity: 1;
313            transform: translateY(0);
314          }
315        }
316        .animate-fadeIn {
317          animation: fadeIn 0.3s ease-out;
318        }
319      `})]})},SimilarUsersTab=({searchQuery:r})=>{const[y,x]=reactExports.useState(null),{data:b,isLoading:R}=useQuery({queryKey:["similarusers"],queryFn:getsimilaruser});if(R)return jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-[200px] h-[200px]"})});if(!b||b.length===0)return jsxRuntimeExports.jsx(EmptyState,{title:"No Similar Users Found",description:"We couldn't find any users with similar interests and goals at the moment. Check back later as more users join the platform!",ctaLabel:"Discover Users",onCtaClick:O=>O("/discover")});const M=b.filter(O=>{const z=r.toLowerCase();return O.name.toLowerCase().includes(z)||O.intention?.toLowerCase().includes(z)||O.interestlist?.some(U=>U.toLowerCase().includes(z))});return M.length===0&&r?jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[jsxRuntimeExports.jsx(FaSearch,{className:"text-4xl text-gray-600 mb-4"}),jsxRuntimeExports.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"No users found"}),jsxRuntimeExports.jsxs("p",{className:"text-gray-400",children:['No users match your search "',r,'"']})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(UsersGrid,{users:M,onStartInteract:x}),jsxRuntimeExports.jsx(InteractModal,{user2:y,onClose:()=>x(null),onSuccess:()=>x(null)})]})},NearUsersTab=({hasLocation:r,searchQuery:y})=>{const[x,b]=reactExports.useState(null);if(!r)return jsxRuntimeExports.jsx(EmptyState,{title:"Enable Location",description:"We need your location to show nearby users. Please enable location in your profile.",ctaLabel:"Add location in profile",onCtaClick:z=>z("/profile")});const{data:R,isLoading:M}=useQuery({queryKey:["nearusers"],queryFn:Getnearbyusers,enabled:r});if(M)return jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-[200px] h-[200px]"})});if(!R||R.length===0)return jsxRuntimeExports.jsx(EmptyState,{title:"No Nearby Users Found",description:"We couldn't find any users near your location. Make sure your location is enabled and check back later!",ctaLabel:"Discover Users",onCtaClick:z=>z("/discover")});const O=R.filter(z=>{const U=y.toLowerCase();return z.name.toLowerCase().includes(U)||z.intention?.toLowerCase().includes(U)||z.interestlist?.some(G=>G.toLowerCase().includes(U))});return O.length===0&&y?jsxRuntimeExports.jsx(EmptyState,{title:"No Nearby user found ",description:"We couldn't find any mates for you. Make sure your LinkedIn is connected and check back later!",ctaLabel:"Discover Users",onCtaClick:z=>z("/discover")}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(UsersGrid,{users:O,onStartInteract:b}),jsxRuntimeExports.jsx(InteractModal,{user2:x,onClose:()=>b(null),onSuccess:()=>b(null)})]})},MatesTab=({hasLinkedIn:r,searchQuery:y})=>{const[x,b]=reactExports.useState(null);if(!r)return jsxRuntimeExports.jsx(EmptyState,{title:"Connect LinkedIn",description:"Link your LinkedIn account to access Mates. You can do this from your profile page.",ctaLabel:"Connect LinkedIn",onCtaClick:z=>z("/profile")});const{data:R,isLoading:M}=useQuery({queryKey:["usermates"],queryFn:GetHomies,enabled:r});if(M)return jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-[200px] h-[200px]"})});if(!R||R.length===0)return jsxRuntimeExports.jsx(EmptyState,{title:"No Mates Found",description:"We couldn't find any mates for you. Make sure your LinkedIn is connected and check back later!",ctaLabel:"Discover Users",onCtaClick:z=>z("/discover")});const O=R.filter(z=>{const U=y.toLowerCase();return z.name.toLowerCase().includes(U)||z.intention?.toLowerCase().includes(U)||z.interestlist?.some(G=>G.toLowerCase().includes(U))});return O.length===0&&y?jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[jsxRuntimeExports.jsx(FaSearch,{className:"text-4xl text-gray-600 mb-4"}),jsxRuntimeExports.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"No users found"}),jsxRuntimeExports.jsxs("p",{className:"text-gray-400",children:['No users match your search "',y,'"']})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(UsersGrid,{users:O,onStartInteract:b}),jsxRuntimeExports.jsx(InteractModal,{user2:x,onClose:()=>b(null),onSuccess:()=>b(null)})]})},CommunityTab=({searchQuery:r})=>{const[y,x]=reactExports.useState(r),[b,R]=reactExports.useState(null);React3.useEffect(()=>{const z=setTimeout(()=>{x(r)},500);return()=>clearTimeout(z)},[r]);const{data:M,isLoading:O}=useQuery({queryKey:["communityUsers",y],queryFn:()=>y?getuserbyquery(y):getrandomsimilaruser(),staleTime:1e3*60*5});return O?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-[200px] h-[200px]"})}):!M||M.length===0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[jsxRuntimeExports.jsx(FaSearch,{className:"text-4xl text-gray-600 mb-4"}),jsxRuntimeExports.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"No users found"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400",children:y?`No users match your search "${y}"`:"No community members found at the moment."})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(UsersGrid,{users:M,onStartInteract:R}),jsxRuntimeExports.jsx(InteractModal,{user2:b,onClose:()=>R(null),onSuccess:()=>R(null)})]})},UsersGrid=({users:r,onStartInteract:y})=>jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 sm:gap-6",children:r.map(x=>jsxRuntimeExports.jsx(UserCard,{user:x,onStartInteract:y||(()=>{})},x.id))}
319),EmptyState=({title:r,description:y,ctaLabel:x,onCtaClick:b})=>{const R=useNavigate();return jsxRuntimeExports.jsxs("div",{className:"text-center py-8 sm:py-12 px-3 sm:px-4",children:[jsxRuntimeExports.jsx("div",{className:"mb-4 sm:mb-6 flex justify-center",children:jsxRuntimeExports.jsx("div",{className:"w-16 h-16 sm:w-24 sm:h-24 rounded-full flex items-center justify-center",style:{background:"linear-gradient(135deg, rgba(153, 21, 235, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%)",boxShadow:"0 20px 60px rgba(153, 21, 235, 0.3)"},children:jsxRuntimeExports.jsx(FaUsers,{className:"text-4xl sm:text-5xl text-territary"})})}),jsxRuntimeExports.jsx("h2",{className:"text-lg sm:text-2xl md:text-3xl font-bold text-white font-montserrat mb-2",children:r}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm sm:text-lg max-w-md mx-auto",children:y}),x&&b&&jsxRuntimeExports.jsx("div",{className:"mt-4 sm:mt-6",children:jsxRuntimeExports.jsx("button",{onClick:()=>b(R),className:"px-4 py-2.5  cursor-pointer  sm:px-6 sm:py-3  text-white font-montserrat bg-territary font-semibold text-sm sm:text-base rounded-lg hover:opacity-90 transition-all duration-300 shadow-lg",children:x})})]})},Similaruserpage=()=>{const r=useAuth();return jsxRuntimeExports.jsx("div",{className:"min-w-0 w-full overflow-x-hidden",children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{className:"min-w-0 w-full",children:jsxRuntimeExports.jsx(Similarusers,{})}):jsxRuntimeExports.jsx(LockedPage,{icon:jsxRuntimeExports.jsx(FaUsers,{className:"text-5xl text-territary"}),title:"Similar Users Locked",subtitle:"Authentication Required",description:"You need to be logged in to view similar users. Please sign in to discover and connect with users who share similar interests and goals.",buttonText:"Go to Login",buttonPath:"/login"})})},leftImage="/assets/left-8Nb9GZcw.png",rightImage="/assets/left-8Nb9GZcw.png";function Landingpage(){const r=useNavigate(),y=useAuth(),x=y?.isauthenticated,b=y?.user;return jsxRuntimeExports.jsxs("div",{className:"min-h-screen w-full relative overflow-hidden font-montserrat",style:{backgroundColor:"#0C0E12"},children:[jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[jsxRuntimeExports.jsx("div",{className:"hidden md:block absolute left-0 top-1/2 -translate-y-1/2 w-[200px] md:w-[300px] lg:w-[400px] xl:w-[500px] h-[400px] md:h-[500px] lg:h-[600px] xl:h-[700px] opacity-30 md:opacity-40",children:jsxRuntimeExports.jsx("img",{src:leftImage,alt:"Left profile",className:"w-full h-full object-contain object-left",style:{filter:"drop-shadow(0 0 40px rgba(153, 21, 235, 0.3))"}})}),jsxRuntimeExports.jsx("div",{className:"hidden md:block absolute right-0 top-1/2 -translate-y-1/2 w-[200px] md:w-[300px] lg:w-[400px] xl:w-[500px] h-[400px] md:h-[500px] lg:h-[600px] xl:h-[700px] opacity-30 md:opacity-40",children:jsxRuntimeExports.jsx("img",{src:rightImage,alt:"Right profile",className:"w-full h-full object-contain object-right",style:{filter:"drop-shadow(0 0 40px rgba(153, 21, 235, 0.3))",transform:"scaleX(-1)"}})}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 opacity-40 md:opacity-60",style:{backgroundImage:`url(${middleImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",mixBlendMode:"screen",filter:"brightness(0.8) contrast(1.1)"}}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse at center, rgba(153, 21, 235, 0.08) 0%, transparent 60%)",mixBlendMode:"overlay"}})]}),jsxRuntimeExports.jsxs("div",{className:"relative z-20 flex items-center justify-between p-3 sm:p-4 md:p-6 lg:p-8",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center",children:jsxRuntimeExports.jsx("img",{src:logo,alt:"WestX Logo",className:"h-5 sm:h-6 md:h-8 lg:h-10 xl:h-12 w-auto object-contain",style:{filter:"drop-shadow(0 4px 12px rgba(153, 21, 235, 0.3))"}})}),x&&b?jsxRuntimeExports.jsx("div",{onClick:()=>r("/profile"),className:"cursor-pointer p-1 rounded-full border border-borderColor hover:border-territary/50 transition-all duration-300 bg-[#0C0E12] group",children:jsxRuntimeExports.jsx("div",{className:"w-8 h-8 sm:w-9 sm:h-9 rounded-full overflow-hidden border border-territary/30",children:b.image?jsxRuntimeExports.jsx("img",{src:b.image,alt:b.name,className:"w-full h-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"w-full h-full bg-primary/20 flex items-center justify-center text-territary font-semibold text-xs sm:text-sm",children:b.name?b.name.charAt(0).toUpperCase():"U"})})}):jsxRuntimeExports.jsx("button",{onClick:()=>
319r("/login"),className:"px-3 cursor-pointer sm:px-4 md:px-6 py-1.5 font-montserrat sm:py-2 md:py-2.5 bg-primary border border-borderColor rounded-lg text-white font-montserrat font-medium hover:border-territary/50 transition-all duration-300 hover:scale-105 text-xs sm:text-sm md:text-base",style:{backgroundColor:"#0C0E12"},children:"Sign In"})]}),jsxRuntimeExports.jsx("div",{className:"relative z-10 flex flex-col items-center justify-center min-h-[calc(100vh-80px)] sm:min-h-[calc(100vh-100px)] md:min-h-[calc(100vh-120px)] px-4 sm:px-6 md:px-8 py-6 sm:py-8 md:py-12",children:jsxRuntimeExports.jsxs("div",{className:"max-w-4xl mx-auto text-center w-full",children:[jsxRuntimeExports.jsx("div",{className:"mt-6 sm:mt-8 md:mt-10 mb-4 sm:mb-6 md:mb-8 flex justify-center",children:jsxRuntimeExports.jsxs("div",{className:"inline-flex items-center gap-1.5 sm:gap-2 px-2.5 sm:px-3 md:px-4 py-1 sm:py-1.5 md:py-2 bg-primary border border-territary/50 rounded-full",children:[jsxRuntimeExports.jsx("svg",{className:"w-2.5 h-2.5 sm:w-3 sm:h-3 md:w-4 md:h-4 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:jsxRuntimeExports.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}),jsxRuntimeExports.jsx("span",{className:"text-[10px] sm:text-xs md:text-sm text-white font-montserrat font-medium",children:"New AI Feature"})]})}),jsxRuntimeExports.jsx("h1",{className:"text-md sm:text-xl font-sfpro md:text-2xl lg:text-3xl xl:text-4xl 2xl:text-5xl font-bold font-montserrat mb-3 sm:mb-4 md:mb-6 leading-[1.2] sm:leading-tight px-2",style:{color:"#D8B4FE"},children:"Let AI handle the conversations that move you forward"}),jsxRuntimeExports.jsx("p",{className:"text-xs sm:text-sm font-sfpro md:text-base lg:text-lg xl:text-xl font-roboto mb-8 sm:mb-10 md:mb-12 lg:mb-16 max-w-xl sm:max-w-2xl md:max-w-3xl mx-auto leading-relaxed px-2 sm:px-4",style:{color:"#E9D5FF"},children:"Set your intention, and WestX finds the right AI persona to speak on your behalf all while you focus on what matters."}),jsxRuntimeExports.jsxs("button",{onClick:()=>r(x?"/home":"/login"),className:"highlight-button inline-flex items-center group mt-6 sm:mt-8 md:mt-10 relative px-4 sm:px-5 md:px-6 lg:px-8 py-2.5 sm:py-3 md:py-3.5 lg:py-4 rounded-full bg-black border border-territary text-white font-medium gap-2 sm:gap-3 transition-all duration-300 cursor-pointer active:scale-95 text-xs sm:text-sm md:text-base",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-territary opacity-10 group-hover:opacity-20 transition-opacity duration-300 rounded-full"}),jsxRuntimeExports.jsx(BsStars,{className:"text-territary text-base sm:text-lg md:text-xl group-hover:rotate-12 transition-transform duration-300 relative z-10"}),jsxRuntimeExports.jsx("span",{className:"tracking-wide relative z-10",children:"Start Conversation"})]})]})}),jsxRuntimeExports.jsx("style",{children:`
320        @keyframes pulseGlow {
321          0%, 100% {
322            box-shadow: 
323              0 0 20px rgba(153, 21, 235, 0.5),
324              0 0 40px rgba(153, 21, 235, 0.3),
325              0 0 60px rgba(153, 21, 235, 0.2),
326              0 0 0 0 rgba(153, 21, 235, 0.7);
327          }
328          50% {
329            box-shadow: 
330              0 0 30px rgba(153, 21, 235, 0.8),
331              0 0 60px rgba(153, 21, 235, 0.6),
332              0 0 90px rgba(153, 21, 235, 0.4),
333              0 0 120px rgba(153, 21, 235, 0.2),
334              0 0 0 4px rgba(153, 21, 235, 0.9);
335          }
336        }
337        
338        @keyframes borderGlow {
339          0%, 100% {
340            border-color: rgba(153, 21, 235, 0.6);
341          }
342          50% {
343            border-color: rgba(192, 132, 252, 0.9);
344          }
345        }
346        
347        .highlight-button {
348          animation: pulseGlow 2s ease-in-out infinite, borderGlow 2s ease-in-out infinite;
349          border-color: rgba(153, 21, 235, 0.6);
350        }
351      `})]})}const MotionDiv$2=motion.div,QuestionsC=()=>{const r=useQueryClient(),y={hidden:{opacity:0,y:8},visible:{opacity:1,y:0,transition:{duration:.35,ease:"easeOut",when:"beforeChildren",staggerChildren:.08}}},x={hidden:{opacity:0,y:10},visible:{opacity:1,y:0,transition:{duration:.3,ease:"easeOut"}}},{data:b,isLoading:R,error:M}=useQuery({queryKey:["questions"],queryFn:()=>Getquestions()}),[O,z]=reactExports.useState({}),[U,G]=reactExports.useState(null),[q,J]=reactExports.useState(null),X=U?O[U.id]??"":"",fe=useMutation({mutationFn:({questionid:ne,answer:ae})=>Answerquestion(ne,ae),onSuccess:()=>{r.invalidateQueries({queryKey:["questions"]}),zt.success("Answer submitted successfully!",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),G(null),J(null)},onError:ne=>{zt.error(ne?.response?.data?.message||"Failed to submit answer. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),J(null)}}),te=useMutation({mutationFn:({questionid:ne})=>updateanswerable(ne),onSuccess:()=>{r.invalidateQueries({queryKey:["questions"]}),zt.success("Preference saved",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),J(null)},onError:ne=>{zt.error(ne?.response?.data?.message||"Failed to update preference. Please try again.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}}),J(null)}}),ue=(ne,ae)=>
351{ae.length<=1e3&&z(pe=>({...pe,[ne]:ae}))},ye=ne=>{const ae=O[ne.id]??"";if(!ae.trim()){zt.error("Please enter an answer before submitting.",{duration:4e3,position:"top-center",style:{background:"#16181c",color:"white"}});return}J(ne.id),fe.mutate({questionid:ne.id,answer:ae})},oe=ne=>{J(ne.id),te.mutate({questionid:ne.id})};return R?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-8  md:py-16 mt-[30vh]",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:" w-[100px]  h-[100px] md:w-[200px] md:h-[200px]"})}):M?jsxRuntimeExports.jsx("div",{className:"pt-20 px-3 py-4 sm:pt-6 sm:px-6",children:jsxRuntimeExports.jsx("div",{className:"rounded-lg border border-red-500/40 bg-red-500/10 px-3 py-2.5 sm:px-4 sm:py-3 text-xs sm:text-sm text-red-200",children:"Something went wrong while loading your questions."})}):!b?.success||b.data.length===0?jsxRuntimeExports.jsxs(MotionDiv$2,{className:"pt-20 px-3 py-5 sm:pt-6 sm:px-6 sm:py-6 md:px-10 md:py-8",variants:y,initial:"hidden",animate:"visible",children:[jsxRuntimeExports.jsxs(MotionDiv$2,{variants:x,className:"mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] sm:text-xs font-montserrat uppercase tracking-[0.18em] sm:tracking-[0.2em] text-territary",children:"Profile questions"}),jsxRuntimeExports.jsx("h1",{className:"mt-1.5 sm:mt-2 text-lg font-semibold text-white sm:text-2xl md:text-3xl",children:"Help us understand you better"}),jsxRuntimeExports.jsx("div",{className:"mt-1.5 sm:mt-2 h-[2px] w-12 sm:w-16 rounded-full bg-gradient-to-r from-territary via-white/40 to-territary animate-gradient-border"}),jsxRuntimeExports.jsx("p",{className:"mt-3 sm:mt-4 text-xs text-slate-400 max-w-2xl sm:text-sm",children:"These are questions from the WestX team to learn more about you. When you answer them, you help us build a richer, more accurate version of you so we can recommend better people, conversations and opportunities."})]}),jsxRuntimeExports.jsxs(MotionDiv$2,{variants:x,className:"flex flex-col items-center justify-center rounded-xl sm:rounded-2xl border border-borderColor/80 bg-newcolor2/40 px-4 py-10 sm:px-8 sm:py-16 text-center",children:[jsxRuntimeExports.jsx("div",{className:"mb-3 sm:mb-4 inline-flex h-12 w-12 sm:h-16 sm:w-16 items-center justify-center rounded-full bg-territary/10",children:jsxRuntimeExports.jsx("svg",{className:"h-6 w-6 sm:h-8 sm:w-8 text-territary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),jsxRuntimeExports.jsx("h2",{className:"mb-2 text-base font-semibold text-white sm:text-xl",children:"No questions available"}),jsxRuntimeExports.jsx("p",{className:"max-w-md text-xs text-slate-400 sm:text-sm",children:"There are no questions for you to answer at the moment. Check back later or reach out to the WestX team if you have any questions."})]})]}):jsxRuntimeExports.jsxs(MotionDiv$2,{className:"flex flex-col min-h-0 flex-1 pt-20 sm:pt-6",variants:y,initial:"hidden",animate:"visible",children:[jsxRuntimeExports.jsx("div",{className:"shrink-0 px-3 pb-3 sm:px-6 sm:pb-4 md:px-10 md:pb-6 bg-primary border-b border-borderColor/50",children:jsxRuntimeExports.jsxs(MotionDiv$2,{variants:x,children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] sm:text-xs font-montserrat uppercase tracking-[0.18em] sm:tracking-[0.2em] text-territary",children:"Profile questions"}),jsxRuntimeExports.jsx("h1",{className:"mt-1.5 sm:mt-2 text-lg font-semibold text-white sm:text-2xl md:text-3xl",children:"Help us understand you better"}),jsxRuntimeExports.jsx("div",{className:"mt-1.5 sm:mt-2 h-[2px] w-12 sm:w-16 rounded-full bg-gradient-to-r from-territary via-white/40 to-territary animate-gradient-border"}),jsxRuntimeExports.jsx("p",{className:"mt-3 sm:mt-4 text-xs text-slate-400 max-w-2xl sm:text-sm",children:"These are questions from the WestX team to learn more about you. When you answer them, you help us build a richer, more accurate version of you so we can recommend better people, conversations and opportunities."})]})}),jsxRuntimeExports.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-3 py-4 sm:px-6 sm:py-5 md:px-10 md:py-6",children:b.data.map(ne=>jsxRuntimeExports.jsxs(MotionDiv$2,{variants:x,whileHover:{y:-2,scale:1.01},transition:{type:"spring",stiffness:260,damping:20},className:"mb-4 sm:mb-5 rounded-lg sm:rounded-xl border border-borderColor/80 bg-newcolor2/80 px-3 py-3 sm:px-5 sm:py-4 shadow-sm shadow-black/40",children:[jsxRuntimeExports.jsx("p",{className:"text-xs font-medium text-slate-100 sm:text-sm",children:ne.question}),ne.isanswered&&ne.answer&&jsxRuntimeExports.jsxs("div",{className:"mt-2 sm:mt-3 rounded-md bg-secondary/70 px-2.5 py-1.5 
351sm:px-3 sm:py-2",children:[jsxRuntimeExports.jsx("div",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-wide text-slate-400",children:"Your answer"}),jsxRuntimeExports.jsx("div",{className:"mt-0.5 sm:mt-1 text-xs text-slate-100 sm:text-sm",children:ne.answer})]}),!ne.isanswered&&ne.isanswereable&&jsxRuntimeExports.jsxs("div",{className:"mt-3 sm:mt-4 flex flex-wrap gap-1.5 sm:gap-2",children:[jsxRuntimeExports.jsx("button",{onClick:()=>G(ne),disabled:q!==null,className:"inline-flex items-center rounded-lg bg-westxpurple px-3 py-1.5 text-xs font-medium text-white shadow-sm shadow-territary/40 transition hover:bg-territary disabled:cursor-not-allowed disabled:opacity-60 sm:px-4 sm:text-sm",children:"Answer this question"}),jsxRuntimeExports.jsx("button",{onClick:()=>oe(ne),disabled:q===ne.id||te.isPending,className:"inline-flex items-center gap-1.5 sm:gap-2 rounded-lg border border-slate-600 bg-slate-900 px-3 py-1.5 text-xs font-medium text-slate-200 transition hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-60 sm:px-4 sm:text-sm",children:q===ne.id?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("svg",{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntimeExports.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):"I prefer not to answer"})]}),!ne.isanswered&&!ne.isanswereable&&jsxRuntimeExports.jsx("div",{className:"mt-2 sm:mt-3 text-[10px] sm:text-xs text-slate-400",children:"You chose not to answer this question."})]},ne.id))}),U&&jsxRuntimeExports.jsx(MotionDiv$2,{className:"fixed inset-0 z-40 flex items-center justify-center bg-black/60 backdrop-blur-sm p-3 sm:p-4",initial:{opacity:0}
351,animate:{opacity:1},exit:{opacity:0},onClick:()=>{q!==U.id&&G(null)},children:jsxRuntimeExports.jsxs(MotionDiv$2,{initial:{opacity:0,y:12,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.97},transition:{duration:.2,ease:"easeOut"},className:"w-full max-w-xl rounded-xl sm:rounded-2xl border border-borderColor/80 bg-secondary/95 px-4 py-4 sm:px-6 sm:py-5 shadow-2xl shadow-black/70 max-h-[90vh] overflow-y-auto",onClick:ne=>ne.stopPropagation(),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start justify-between gap-2 sm:gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] sm:text-[11px] font-montserrat uppercase tracking-[0.15em] sm:tracking-[0.18em] text-territary",children:"Answer question"}),jsxRuntimeExports.jsx("h2",{className:"mt-0.5 sm:mt-1 text-base font-semibold text-white sm:text-lg",children:U.question}),jsxRuntimeExports.jsx("p",{className:"mt-0.5 sm:mt-1 text-[11px] sm:text-xs text-slate-400",children:"A thoughtful reply helps us understand your journey and match you with better people and opportunities."})]}),jsxRuntimeExports.jsx("button",{onClick:()=>{q!==U.id&&G(null)},disabled:q===U.id,className:"ml-1 sm:ml-2 shrink-0 inline-flex h-7 w-7 sm:h-8 sm:w-8 items-center justify-center rounded-full border border-slate-700 bg-slate-900/80 text-slate-400 transition hover:bg-slate-800 hover:text-slate-200 disabled:cursor-not-allowed disabled:opacity-50 text-sm",children:"✕"})]}),jsxRuntimeExports.jsx("textarea",{value:X,onChange:ne=>ue(U.id,ne.target.value),maxLength:1e3,placeholder:"Share your thoughts, context or experience here...",className:"mt-3 sm:mt-4 w-full min-h-[120px] sm:min-h-[160px] resize-none rounded-lg sm:rounded-xl border border-slate-700 bg-slate-900/90 px-2.5 py-2 sm:px-3 sm:py-2 text-xs sm:text-sm text-slate-100 placeholder:text-slate-500 focus:border-territary focus:outline-none focus:ring-2 focus:ring-territary/40"}),jsxRuntimeExports.jsxs("div",{className:"mt-1.5 sm:mt-2 flex flex-col gap-0.5 sm:flex-row sm:items-center sm:justify-between text-[10px] sm:text-[11px] text-slate-500",children:[jsxRuntimeExports.jsx("span",{className:"order-2 sm:order-1",children:"Tip: be as specific as you can — real examples are especially helpful."}),jsxRuntimeExports.jsxs("span",{className:"order-1 sm:order-2 shrink-0",children:[X.length,"/1000"]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-3 sm:mt-4 flex flex-wrap justify-end gap-1.5 sm:gap-2",children:[jsxRuntimeExports.jsx("button",{onClick:()=>{G(null),J(null)},disabled:fe.isPending||q===U.id,className:"inline-flex items-center rounded-lg border border-slate-600 bg-slate-900 px-3 py-1.5 text-xs font-medium text-slate-200 transition hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-60 sm:px-4 sm:text-sm",children:"Cancel"}),jsxRuntimeExports.jsx("button",{onClick:()=>ye(U),disabled:fe.isPending||q===U.id||!X.trim(),className:"inline-flex items-center gap-1.5 sm:gap-2 rounded-lg bg-westxpurple px-3 py-1.5 text-xs font-medium text-white shadow-sm shadow-territary/40 transition hover:bg-territary disabled:cursor-not-allowed disabled:opacity-60 sm:px-4 sm:text-sm",children:q===U.id?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("svg",{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntimeExports.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Submitting..."]}):"Submit answer"})]})]})})]})},QuestionPage=()=>{const r=useAuth();return jsxRuntimeExports.jsx("div",{className:"min-h-0 flex-1 flex flex-col",children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{className:"min-h-0 flex-1 flex flex-col",children:jsxRuntimeExports.jsx(QuestionsC,{})}):jsxRuntimeExports.jsx(LockedPage,{title:"Question Page Locked"})})};var reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var r=typeof Element<"u",y=typeof Map=="function",x=typeof Set=="function",b=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function R(M,O){if(M===O)return!0;
351if(M&&O&&typeof M=="object"&&typeof O=="object"){if(M.constructor!==O.constructor)return!1;var z,U,G;if(Array.isArray(M)){if(z=M.length,z!=O.length)return!1;for(U=z;U--!==0;)if(!R(M[U],O[U]))return!1;return!0}var q;if(y&&M instanceof Map&&O instanceof Map){if(M.size!==O.size)return!1;for(q=M.entries();!(U=q.next()).done;)if(!O.has(U.value[0]))return!1;for(q=M.entries();!(U=q.next()).done;)if(!R(U.value[1],O.get(U.value[0])))return!1;return!0}if(x&&M instanceof Set&&O instanceof Set){if(M.size!==O.size)return!1;for(q=M.entries();!(U=q.next()).done;)if(!O.has(U.value[0]))return!1;return!0}if(b&&ArrayBuffer.isView(M)&&ArrayBuffer.isView(O)){if(z=M.length,z!=O.length)return!1;for(U=z;U--!==0;)if(M[U]!==O[U])return!1;return!0}if(M.constructor===RegExp)return M.source===O.source&&M.flags===O.flags;if(M.valueOf!==Object.prototype.valueOf&&typeof M.valueOf=="function"&&typeof O.valueOf=="function")return M.valueOf()===O.valueOf();if(M.toString!==Object.prototype.toString&&typeof M.toString=="function"&&typeof O.toString=="function")return M.toString()===O.toString();if(G=Object.keys(M),z=G.length,z!==Object.keys(O).length)return!1;for(U=z;U--!==0;)if(!Object.prototype.hasOwnProperty.call(O,G[U]))return!1;if(r&&M instanceof Element)return!1;for(U=z;U--!==0;)if(!((G[U]==="_owner"||G[U]==="__v"||G[U]==="__o")&&M.$$typeof)&&!R(M[G[U]],O[G[U]]))return!1;return!0}return M!==M&&O!==O}return reactFastCompare=function(O,z){try{return R(O,z)}catch(U){if((U.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw U}},reactFastCompare}var reactFastCompareExports=requireReactFastCompare();const fastCompare=getDefaultExportFromCjs(reactFastCompareExports);var browser$1,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$1;hasRequiredBrowser=1;var r=function(y,x,b,R,M,O,z,U){if(!y){var G;if(x===void 0)G=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var q=[b,R,M,O,z,U],J=0;G=new Error(x.replace(/%s/g,function(){return q[J++]})),G.name="Invariant Violation"}throw G.framesToPop=1,G}};return browser$1=r,browser$1}var browserExports=requireBrowser();const invariant=getDefaultExportFromCjs(browserExports);var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(y,x,b,R){var M=b?b.call(R,y,x):void 0;if(M!==void 0)return!!M;if(y===x)return!0;if(typeof y!="object"||!y||typeof x!="object"||!x)return!1;var O=Object.keys(y),z=Object.keys(x);if(O.length!==z.length)return!1;for(var U=Object.prototype.hasOwnProperty.bind(x),G=0;G<O.length;G++){var q=O[G];if(!U(q))return!1;var J=y[q],X=x[q];if(M=b?b.call(R,J,X,q):void 0,M===!1||M===void 0&&J!==X)return!1}return!0}),shallowequal}var shallowequalExports=requireShallowequal();const shallowEqual=getDefaultExportFromCjs(shallowequalExports);var TAG_NAMES=(r=>(r.BASE="base",r.BODY="body",r.HEAD="head",r.HTML="html",r.LINK="link",r.META="meta",r.NOSCRIPT="noscript",r.SCRIPT="script",r.STYLE="style",r.TITLE="title",r.FRAGMENT="Symbol(react.fragment)",r))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((r,[y,x])=>(r[x]=y,r),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(r,y)=>{for(let x=r.length-1;x>=0;x-=1){const b=r[x];if(Object.prototype.hasOwnProperty.call(b,y))return b[y]}return null},getTitleFromPropsList=r=>{let y=getInnermostProperty(r,"title");const x=getInnermostProperty(r,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(y)&&(y=y.join("")),x&&y)return x.replace(/%s/g,()=>y);const b=getInnermostProperty(r,HELMET_PROPS.DEFAULT_TITLE);return y||b||void 0},getOnChangeClientState=r=>getInnermostProperty(r,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(r,y)=>y.filter(x=>typeof x[r]<"u").map(x=>x[r]).reduce((x,b)=>({...x,...b}),{}),getBaseTagFromPropsList=(r,y)=>y.filter(x=>typeof x.base<"u").map(x=>x.base).reverse().reduce((x,b)=>{if(!x.length){const R=Object.keys(b);for(let M=0;M<R.length;M+=1){const z=R[M].toLowerCase();if(r.indexOf(z)!==-1&&b[z])return x.concat(b)}}return x},[]),warn=r=>console&&typeof console.warn=="function"&&console.warn(r),getTagsFromPropsList=(r,y,x)=>{const b={};return x.filter(R=>Array.isArray(R[r])?!0:(typeof R[r]<"u"&&warn(`Helmet: ${r} should be of type "Array". Instead found type "${typeof R[r]}"`),!1)).map(R=>R[r]).reverse().reduce((R,M)=>{const O={};M.filter(U=>{let G;const q=Object.keys(U);for(let X=0;X<q.length;X+=1){const fe=q[X],te=fe.toLowerCase();y.indexOf(te)!==-1&&!(G==="rel"&&U[G].toLowerCase()==="canonical")&&!(te==="rel"&&U[te].toLowerCase()==="stylesheet")&&(G=te),y.indexOf(fe)!==-1&&(fe==="innerHTML"||fe==="cssText"||fe==="itemprop")&&(G=fe)}if(!G||!U[G])return!1;const J=U[G].toLowerCase();return b[G]||(b[G]={}),O[G]||(O[G]={}),b[G][J]?!1:(O[G][J]=!0,!0)}
351).reverse().forEach(U=>R.push(U));const z=Object.keys(O);for(let U=0;U<z.length;U+=1){const G=z[U],q={...b[G],...O[G]};b[G]=q}return R},[]).reverse()},getAnyTrueFromPropsList=(r,y)=>{if(Array.isArray(r)&&r.length){for(let x=0;x<r.length;x+=1)if(r[x][y])return!0}return!1},reducePropsToState=r=>({baseTag:getBaseTagFromPropsList(["href"],r),bodyAttributes:getAttributesFromPropsList("bodyAttributes",r),defer:getInnermostProperty(r,HELMET_PROPS.DEFER),encode:getInnermostProperty(r,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",r),linkTags:getTagsFromPropsList("link",["rel","href"],r),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],r),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],r),onChangeClientState:getOnChangeClientState(r),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],r),styleTags:getTagsFromPropsList("style",["cssText"],r),title:getTitleFromPropsList(r),titleAttributes:getAttributesFromPropsList("titleAttributes",r),prioritizeSeoTags:getAnyTrueFromPropsList(r,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=r=>Array.isArray(r)?r.join(""):r,checkIfPropsMatch=(r,y)=>{const x=Object.keys(r);for(let b=0;b<x.length;b+=1)if(y[x[b]]&&y[x[b]].includes(r[x[b]]))return!0;return!1},prioritizer=(r,y)=>Array.isArray(r)?r.reduce((x,b)=>(checkIfPropsMatch(b,y)?x.priority.push(b):x.default.push(b),x),{priority:[],default:[]}):{default:r,priority:[]},without=(r,y)=>({...r,[y]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(r,y=!0)=>y===!1?String(r):String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),generateElementAttributesAsString=r=>Object.keys(r).reduce((y,x)=>{const b=typeof r[x]<"u"?`${x}="${r[x]}"`:`${x}`;return y?`${y} ${b}`:b},""),generateTitleAsString=(r,y,x,b)=>{const R=generateElementAttributesAsString(x),M=flattenArray(y);return R?`<${r} ${HELMET_ATTRIBUTE}="true" ${R}>${encodeSpecialCharacters(M,b)}</${r}>`:`<${r} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(M,b)}</${r}>`},generateTagsAsString=(r,y,x=!0)=>y.reduce((b,R)=>{const M=R,O=Object.keys(M).filter(G=>!(G==="innerHTML"||G==="cssText")).reduce((G,q)=>{const J=typeof M[q]>"u"?q:`${q}="${encodeSpecialCharacters(M[q],x)}"`;return G?`${G} ${J}`:J},""),z=M.innerHTML||M.cssText||"",U=SELF_CLOSING_TAGS.indexOf(r)===-1;return`${b}<${r} ${HELMET_ATTRIBUTE}="true" ${O}${U?"/>":`>${z}</${r}>`}`},""),convertElementAttributesToReactProps=(r,y={})=>Object.keys(r).reduce((x,b)=>{const R=REACT_TAG_MAP[b];return x[R||b]=r[b],x},y),generateTitleAsReactComponent=(r,y,x)=>{const b={key:y,[HELMET_ATTRIBUTE]:!0},R=convertElementAttributesToReactProps(x,b);return[React3.createElement("title",R,y)]},generateTagsAsReactComponent=(r,y)=>y.map((x,b)=>{const R={key:b,[HELMET_ATTRIBUTE]:!0};return Object.keys(x).forEach(M=>{const z=REACT_TAG_MAP[M]||M;if(z==="innerHTML"||z==="cssText"){const U=x.innerHTML||x.cssText;R.dangerouslySetInnerHTML={__html:U}}else R[z]=x[M]}),React3.createElement(r,R)}),getMethodsForTag=(r,y,x=!0)=>{switch(r){case"title":return{toComponent:()=>generateTitleAsReactComponent(r,y.title,y.titleAttributes),toString:()=>generateTitleAsString(r,y.title,y.titleAttributes,x)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(y),toString:()=>generateElementAttributesAsString(y)};default:return{toComponent:()=>generateTagsAsReactComponent(r,y),toString:()=>generateTagsAsString(r,y,x)}}},getPriorityMethods=({metaTags:r,linkTags:y,scriptTags:x,encode:b})=>{const R=prioritizer(r,SEO_PRIORITY_TAGS.meta),M=prioritizer(y,SEO_PRIORITY_TAGS.link),O=prioritizer(x,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",R.priority),...generateTagsAsReactComponent("link",M.priority),...generateTagsAsReactComponent("script",O.priority)],toString:()=>`${getMethodsForTag("meta",R.priority,b)} ${getMethodsForTag("link",M.priority,b)} ${getMethodsForTag("script",O.priority,b)}`},metaTags:R.default,linkTags:M.default,scriptTags:O.default}},mapStateOnServer=r=>{const{baseTag:y,bodyAttributes:x,encode:b=!0,htmlAttributes:R,noscriptTags:M,styleTags:O,title:z="",titleAttributes:U,prioritizeSeoTags:G}=r;let{linkTags:q,metaTags:J,scriptTags:X}=r,fe={toComponent:()=>{},toString:()=>""};return G&&({priorityMethods:fe,linkTags:q,metaTags:J,scriptTags:X}=getPriorityMethods(r)),{priority:fe,base:getMethodsForTag("base",y,b),bodyAttributes:getMethodsForTag("bodyAttributes",x,b),htmlAttributes:getMethodsForTag("htmlAttributes",R,b),link:getMethodsForTag("link",q,b),meta:getMethodsForTag("meta",J,b),noscript:getMethodsForTag("noscript",M,b),script:getMethodsForTag("script",X,b),style:getMethodsForTag("style",O,b),title:getMethodsForTag("title",{title:z,titleAttributes:U},b)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{instances=[];canUseDOM=isDocument;context;value={setHelmet:r=>{this.context.helmet=r},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:r=>{(this.canUseDOM?instances:this.instances).push(r)},remove:r=>{const y=(this.canUseDOM?instances:this.instances).indexOf(r);(this.canUseDOM?instances:this.instances).splice(y,1)}}};constructor(r,y){this.context=r,this.canUseDOM=y||!1,y||(r.helmet=server_default({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},defaultValue={},Context=React3.createContext(defaultValue),HelmetProvider=class Ed extends reactExports.Component{static canUseDOM=isDocument;helmetData;constructor(y){super(y),this.helmetData=new HelmetData(this.props.context||{},Ed.canUseDOM)}render(){return React3.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},updateTags=(r,y)=>{const x=document.head||document.querySelector("head"),b=x.querySelectorAll(`${r}[${HELMET_ATTRIBUTE}]`),R=[].slice.call(b),M=[];let O;
351return y&&y.length&&y.forEach(z=>{const U=document.createElement(r);for(const G in z)if(Object.prototype.hasOwnProperty.call(z,G))if(G==="innerHTML")U.innerHTML=z.innerHTML;else if(G==="cssText")U.styleSheet?U.styleSheet.cssText=z.cssText:U.appendChild(document.createTextNode(z.cssText));else{const q=G,J=typeof z[q]>"u"?"":z[q];U.setAttribute(G,J)}U.setAttribute(HELMET_ATTRIBUTE,"true"),R.some((G,q)=>(O=q,U.isEqualNode(G)))?R.splice(O,1):M.push(U)}),R.forEach(z=>z.parentNode?.removeChild(z)),M.forEach(z=>x.appendChild(z)),{oldTags:R,newTags:M}},updateAttributes=(r,y)=>{const x=document.getElementsByTagName(r)[0];if(!x)return;const b=x.getAttribute(HELMET_ATTRIBUTE),R=b?b.split(","):[],M=[...R],O=Object.keys(y);for(const z of O){const U=y[z]||"";x.getAttribute(z)!==U&&x.setAttribute(z,U),R.indexOf(z)===-1&&R.push(z);const G=M.indexOf(z);G!==-1&&M.splice(G,1)}for(let z=M.length-1;z>=0;z-=1)x.removeAttribute(M[z]);R.length===M.length?x.removeAttribute(HELMET_ATTRIBUTE):x.getAttribute(HELMET_ATTRIBUTE)!==O.join(",")&&x.setAttribute(HELMET_ATTRIBUTE,O.join(","))},updateTitle=(r,y)=>{typeof r<"u"&&document.title!==r&&(document.title=flattenArray(r)),updateAttributes("title",y)},commitTagChanges=(r,y)=>{const{baseTag:x,bodyAttributes:b,htmlAttributes:R,linkTags:M,metaTags:O,noscriptTags:z,onChangeClientState:U,scriptTags:G,styleTags:q,title:J,titleAttributes:X}=r;updateAttributes("body",b),updateAttributes("html",R),updateTitle(J,X);const fe={baseTag:updateTags("base",x),linkTags:updateTags("link",M),metaTags:updateTags("meta",O),noscriptTags:updateTags("noscript",z),scriptTags:updateTags("script",G),styleTags:updateTags("style",q)},te={},ue={};Object.keys(fe).forEach(ye=>{const{newTags:oe,oldTags:ne}=fe[ye];oe.length&&(te[ye]=oe),ne.length&&(ue[ye]=fe[ye].oldTags)}),y&&y(),U(r,te,ue)},_helmetCallback=null,handleStateChangeOnClient=r=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),r.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(r,()=>{_helmetCallback=null})}):(commitTagChanges(r),_helmetCallback=null)},client_default=handleStateChangeOnClient,HelmetDispatcher=class extends reactExports.Component{rendered=!1;shouldComponentUpdate(r){return!shallowEqual(r,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:r}=this.props.context;r.remove(this),this.emitChange()}emitChange(){const{helmetInstances:r,setHelmet:y}=this.props.context;let x=null;const b=reducePropsToState(r.get().map(R=>{const M={...R.props};return delete M.context,M}));HelmetProvider.canUseDOM?client_default(b):server_default&&(x=server_default(b)),y(x)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:r}=this.props.context;r.add(this),this.emitChange()}render(){return this.init(),null}},Helmet=class extends reactExports.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(r){return!fastCompare(without(this.props,"helmetData"),without(r,"helmetData"))}mapNestedChildrenToProps(r,y){if(!y)return null;switch(r.type){case"script":case"noscript":return{innerHTML:y};case"style":return{cssText:y};default:throw new Error(`<${r.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(r,y,x,b){return{...y,[r.type]:[...y[r.type]||[],{...x,...this.mapNestedChildrenToProps(r,b)}]}}mapObjectTypeChildren(r,y,x,b){switch(r.type){case"title":return{...y,[r.type]:b,titleAttributes:{...x}};case"body":return{...y,bodyAttributes:{...x}};case"html":return{...y,htmlAttributes:{...x}};default:return{...y,[r.type]:{...x}}}}mapArrayTypeChildrenToProps(r,y){let x={...y};return Object.keys(r).forEach(b=>{x={...x,[b]:r[b]}}),x}warnOnInvalidChildren(r,y){return invariant(VALID_TAG_NAMES.some(x=>r.type===x),typeof r.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${r.type}> elements. Refer to our API for more information.`),invariant(!y||typeof y=="string"||Array.isArray(y)&&!y.some(x=>typeof x!="string"),`Helmet expects a string as a child of <${r.type}>. Did you forget to wrap your children in braces? ( <${r.type}>{\`\`}</${r.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(r,y){let x={};
351return React3.Children.forEach(r,b=>{if(!b||!b.props)return;const{children:R,...M}=b.props,O=Object.keys(M).reduce((U,G)=>(U[HTML_TAG_MAP[G]||G]=M[G],U),{});let{type:z}=b;switch(typeof z=="symbol"?z=z.toString():this.warnOnInvalidChildren(b,R),z){case"Symbol(react.fragment)":y=this.mapChildrenToProps(R,y);break;case"link":case"meta":case"noscript":case"script":case"style":x=this.flattenArrayTypeChildren(b,x,O,R);break;default:y=this.mapObjectTypeChildren(b,y,O,R);break}}),this.mapArrayTypeChildrenToProps(x,y)}render(){const{children:r,...y}=this.props;let x={...y},{helmetData:b}=y;if(r&&(x=this.mapChildrenToProps(r,x)),b&&!(b instanceof HelmetData)){const R=b;b=new HelmetData(R.context,!0),delete x.helmetData}return b?React3.createElement(HelmetDispatcher,{...x,context:b.value}):React3.createElement(Context.Consumer,null,R=>React3.createElement(HelmetDispatcher,{...x,context:R}))}};const MotionDiv$1=motion.div,Discoverusercomp=()=>{const[r,y]=reactExports.useState(""),[x,b]=reactExports.useState(""),[R,M]=reactExports.useState({remote:!1,fullTime:!1}),[O,z]=reactExports.useState(null),{data:U,isLoading:G}=useQuery({queryKey:["users",x],queryFn:()=>x?getuserbyquery(x):getrandomsimilaruser(),staleTime:1e3*60*5}),q=()=>{b(r)},J=fe=>{fe.key==="Enter"&&q()},X=reactExports.useMemo(()=>U||[],[U,R]);return jsxRuntimeExports.jsxs("div",{className:"flex mt-14 md:mt-0 flex-col h-screen  text-white font-jakarta overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"z-10  backdrop-blur-md border-b border-white/5 pt-6 pb-6 px-4 sm:px-6 lg:px-8",children:jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"relative w-full md:w-96 group",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:jsxRuntimeExports.jsx(FaSearch,{className:"h-4 w-4 text-gray-400 group-focus-within:text-territary transition-colors"})}),jsxRuntimeExports.jsx("input",{type:"text",className:"block w-full pl-10 pr-3 py-3 border border-white/10 rounded-xl leading-5 bg-white/5 placeholder-gray-500 focus:outline-none focus:bg-white/10 focus:ring-1 focus:ring-territary focus:border-territary sm:text-sm transition-all duration-300",placeholder:"Search by name, skill, or role...",value:r,onChange:fe=>y(fe.target.value),onKeyDown:J})]}),jsxRuntimeExports.jsx("button",{onClick:q,className:"md:hidden bg-territary hover:bg-territary/80 text-white font-bold py-3 px-6 rounded-xl transition-colors",children:"SEARCH"}),jsxRuntimeExports.jsx("button",{onClick:q,className:"hidden md:block bg-territary hover:bg-territary/80 text-white font-bold py-3 px-8 rounded-xl transition-all hover:shadow-[0_0_20px_rgba(153,21,235,0.4)] text-sm tracking-wider",children:"SEARCH"})]})})}),jsxRuntimeExports.jsxs("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 lg:px-8 py-8 custom-scrollbar",children:[G?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-20",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-32 h-32"})}):jsxRuntimeExports.jsx("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 pb-20",children:jsxRuntimeExports.jsx(AnimatePresence,{children:X?.map(fe=>jsxRuntimeExports.jsx(MotionDiv$1,{layout:!0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,scale:.9},transition:{duration:.3},children:jsxRuntimeExports.jsx(UserCard,{user:fe,onStartInteract:z})},fe.id))})}),!G&&X.length===0&&jsxRuntimeExports.jsx("div",{className:"text-center py-20 text-gray-500",children:"No users found matching your criteria."})]}),jsxRuntimeExports.jsx(InteractModal,{user2:O,onClose:()=>z(null),onSuccess:()=>z(null)})]})};function Discoveruser(){const r=useAuth();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx(Discoverusercomp,{}):jsxRuntimeExports.jsx(LockedPage,{title:"Profile Locked",subtitle:"Authentication Required",description:"You need to be logged in to view your profile. Please sign in to access your profile information and settings.",buttonText:"Go to Login",buttonPath:"/login"})})}function MdVerified(r){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69L23 12zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48-7.33 7.35z"},child:[]}]})(r)}const Profileuser=()=>{const r=useAuth(),{username:y}=useParams(),[x,b]=reactExports.useState(!1),{data:R,isLoading:M,isError:O}=useQuery({queryKey:["user",y],queryFn:()=>getuserbyusername(y||""),enabled:!!y});return r?.isauthenticated?M?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16 mt-[30vh]",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-[200px] h-[200px]"})}):O||!R?jsxRuntimeExports.jsx("div",{className:"w-full h-screen bg-newcolor2 flex items-center justify-center text-white",children:"User not found"}):jsxRuntimeExports.jsxs("div",{className:"w-full min-h-screen bg-newcolor text-white p-4 md:p-8 font-sans",children:[jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between mb-6"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"bg-white/2 rounded-2xl p-6 flex flex-col items-center text-center border border-gray-800 relative overflow-hidden shadow-2xl",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-full h-32 bg-gradient-to-b from-[#9915eb]/20 to-transparent"}),jsxRuntimeExports.jsxs("div",{className:"relative mb-4 group",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-[#9915eb] to-blue-500 rounded-full blur-md opacity-20 group-hover:opacity-40 transition-opacity duration-300"}),jsxRuntimeExports.jsx("img",{src:R.image||"https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png?20150327203541",alt:
351R.name,className:"relative w-28 h-28 rounded-full object-cover border-4 border-[#1A1D21] shadow-lg group-hover:scale-105 transition-transform duration-300"}),R.isActive&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-2 right-2 w-5 h-5 bg-green-500 rounded-full border-4 border-[#1A1D21]"})]}),jsxRuntimeExports.jsxs("h2",{className:"text-2xl font-bold flex items-center gap-2 mb-1",children:[R.name,R.isCompleted&&jsxRuntimeExports.jsx(MdVerified,{className:"text-blue-400"})]}),jsxRuntimeExports.jsxs("p",{className:"text-gray-400 text-sm mb-6 font-medium",children:["@",R.username]}),R.islinkedin&&jsxRuntimeExports.jsxs("a",{href:"https://linkedin.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-[#0077B5]/10 hover:bg-[#0077B5]/20 text-[#0077B5] px-4 py-1.5 rounded-full text-xs font-bold tracking-wide mb-6 transition-colors duration-300",children:[jsxRuntimeExports.jsx(FaLinkedin,{className:"text-sm"})," LINKEDIN"]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2 w-full border-t border-gray-700/50 pt-5 mb-6",children:[jsxRuntimeExports.jsxs("div",{className:"border-r border-gray-700/50",children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] font-bold text-gray-500 tracking-wider uppercase mb-1",children:"JOINED"}),jsxRuntimeExports.jsx("p",{className:"font-semibold text-sm",children:new Date(R.createdAt).toLocaleDateString("en-US",{month:"short",year:"numeric"})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-[10px] font-bold text-gray-500 tracking-wider uppercase mb-1",children:"STATUS"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),jsxRuntimeExports.jsx("p",{className:"font-semibold text-sm text-green-500",children:"Active"})]})]})]}),jsxRuntimeExports.jsx("button",{onClick:()=>b(!0),className:"w-full bg-westxpurple/80 hover:bg-westxpurple text-white font-bold py-3 px-4 rounded-xl mb-3 flex items-center justify-center gap-2 transition-all duration-300 shadow-lg hover:shadow-purple-500/25 transform hover:-translate-y-0.5",children:"Start Interacting"})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white/2 rounded-2xl p-6 border border-gray-800 space-y-4 shadow-lg hover:border-gray-700/50 transition-colors duration-300",children:[(R.city||R.country)&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-gray-300",children:[jsxRuntimeExports.jsx("div",{className:"w-8 h-8 rounded-full bg-white/5 flex items-center justify-center text-gray-400",children:jsxRuntimeExports.jsx(FaMapMarkerAlt,{})}),jsxRuntimeExports.jsxs("span",{className:"font-medium",children:[R.city,R.city&&R.country?", ":"",R.country]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-gray-300 overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"w-8 h-8 rounded-full bg-gray-800 flex items-center justify-center text-gray-400 shrink-0",children:jsxRuntimeExports.jsx(FaEnvelope,{})}),jsxRuntimeExports.jsx("span",{className:"truncate font-medium",children:R.email})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"bg-white/2 rounded-2xl p-8 border border-gray-800 shadow-xl",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-8",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg",children:jsxRuntimeExports.jsx(FaRocket,{className:"text-purple-400 text-xl"})}),jsxRuntimeExports.jsx("h2",{className:"text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-gray-400",children:"The Blueprint"})]}),jsxRuntimeExports.jsx("span",{className:"text-[10px] font-bold bg-purple-500/10 text-purple-400 px-2 py-1 rounded border border-purple-500/20",children:"V1.0"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[jsxRuntimeExports.jsxs("div",{className:"bg-white/4 p-5 rounded-2xl border border-gray-700/50 hover:border-purple-500/30 hover:bg-white/5 transition-colors duration-300 group",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntimeExports.jsx("span",{className:"text-purple-400 text-[10px] font-bold tracking-widest uppercase",children:"INTENTION"}),jsxRuntimeExports.jsx(FaBullseye,{className:"text-purple-500/20 text-2xl group-hover:text-purple-500/40 transition-colors"})]}),jsxRuntimeExports.jsx("p",{className:"text-gray-300 text-sm leading-relaxed mb-3 line-clamp-4 font-medium",children:R.intention||"No specific intention set."}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-xs italic border-l-2 border-purple-500/30 pl-3",children:R.intention?'"My main goal is..."':"User has not defined an intention."})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white/4 p-5 rounded-2xl border border-gray-700/50 hover:border-purple-500/30 transition-colors duration-300 group",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntimeExports.jsx("span",{className:"text-purple-400 text-[10px] font-bold tracking-widest uppercase",children:"TONE"}),jsxRuntimeExports.jsx(FaMicrophone,{className:"text-purple-500/20 text-2xl group-hover:text-purple-500/40 transition-colors"})]}),jsxRuntimeExports.jsx("h3",{className:"font-bold text-lg mb-2 text-white",children:R.tone||"Professional"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-xs leading-relaxed",children:"Focused on clear, business-oriented communication style."})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white/4 p-5 rounded-2xl border border-gray-700/50 hover:border-purple-500/30 hover:bg-white/5 transition-colors duration-300 group",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntimeExports.jsx("span",{className:"text-purple-400 text-[10px] font-bold tracking-widest uppercase",children:"OUTCOME"}),jsxRuntimeExports.jsx(FaRocket,{className:"text-purple-500/20 text-2xl group-hover:text-purple-500/40 transition-colors"})]}),jsxRuntimeExports.jsx("h3",{className:"font-bold text-lg mb-2 text-white",children:R.outcome?"Defined":"Flexible"}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-xs italic border-l-2 border-purple-500/30 pl-3",children:R.outcome?`"${R.outcome}"`:'"Open to exploring new opportunities."'})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white/2 rounded-2xl p-8 border border-gray-800 shadow-xl",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between mb-6",children:jsxRuntimeExports.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"w-1 h-6 bg-purple-500 rounded-full"}),"Interests"]})}),jsxRuntimeExports.jsx("div",{className:"space-y-3",children:R.interestlist&&R.interestlist.length>0?R.interestlist.slice(0,3).map((z,U)=>jsxRuntimeExports.jsxs("div",{className:"flex items-center p-4 bg-white/4 roun
351ded-xl hover:bg-white/5 transition-all duration-300 cursor-pointer border border-gray-700/30 hover:border-purple-500/30 group",children:[jsxRuntimeExports.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-500/10 flex items-center justify-center mr-4 text-purple-400 group-hover:bg-purple-500/20 group-hover:scale-110 transition-all duration-300",children:jsxRuntimeExports.jsx(FaBriefcase,{className:"text-lg"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"font-bold text-base text-gray-200 group-hover:text-white transition-colors capitalize",children:z}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500 group-hover:text-gray-400",children:"Interest category"})]})]},U)):jsxRuntimeExports.jsx("div",{className:"text-center py-8 text-gray-500 bg-[#24272B]/50 rounded-xl border border-dashed border-gray-700",children:"No interests listed yet."})})]})]})]})]}),x&&jsxRuntimeExports.jsx(InteractModal,{user2:R,onClose:()=>b(!1),onSuccess:()=>b(!1)})]}):jsxRuntimeExports.jsx(LockedPage,{})},Talkdetail=({talkid:r})=>{const y=useNavigate(),{data:x,isLoading:b,isError:R}=useQuery({queryKey:["talk",r],queryFn:()=>gettalkbyid(r),refetchInterval:60*1e3,refetchOnWindowFocus:!0,refetchIntervalInBackground:!0}),O=useAuth()?.user,z=G=>O&&G.user1id===O.id?G.user2:G.user1,U=G=>new Date(G).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});if(x){const G=z(x),q=x.messages||[];return jsxRuntimeExports.jsxs("div",{className:"h-full min-h-0 w-full bg-primary flex overflow-hidden font-montserrat",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 border-r border-[#1F2128] relative overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 h-20 mt-12 md:mt-0 px-6 flex items-center justify-between border-b border-[#1F2128] bg-[#0B0C10]",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntimeExports.jsx("button",{onClick:()=>y(-1),className:"p-2 hover:bg-[#1F2128] rounded-full transition-colors text-gray-400 hover:text-white",children:jsxRuntimeExports.jsx(FaArrowLeft,{})}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[G.image?jsxRuntimeExports.jsx("img",{src:G.image,alt:G.name,className:"w-10 h-10 rounded-full object-cover ring-2 ring-[#0B0C10]"}):jsxRuntimeExports.jsx("div",{className:"w-10 h-10 rounded-full bg-territary/20 flex items-center justify-center text-territary font-bold",children:G.name.charAt(0).toUpperCase()}),jsxRuntimeExports.jsx("div",{className:`absolute bottom-0 right-0 w-2.5 h-2.5 rounded-full border-2 border-[#0B0C10] ${G.isActive?"bg-green-500":"bg-gray-500"}`})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-white font-semibold font-poppins text-base",children:G.name}),jsxRuntimeExports.jsx("p",{className:`text-xs ${G.isActive?"text-green-500":"text-gray-500"}`,children:G.isActive?"Online":"Offline"})]})]})}),jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-y-auto min-h-0 p-6 space-y-8 font-montserrat max-h-[90vh]",children:q.length===0?jsxRuntimeExports.jsx("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:jsxRuntimeExports.jsxs("p",{children:["Start the conversation with ",G.name]})}):q.map(J=>{const X=J.senderid===O?.id;return jsxRuntimeExports.jsxs("div",{className:`flex flex-col ${X?"items-end":"items-start"}`,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-baseline gap-2 mb-2",children:[jsxRuntimeExports.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-widest font-bold",children:X?"YOU":G.name.split(" ")[0].toUpperCase()}),jsxRuntimeExports.jsxs("span",{className:"text-[10px] text-gray-600",children:["• ",U(J.createdAt)]})]}),jsxRuntimeExports.jsx("div",{className:`max-w-[85%] md:max-w-[70%] px-6 py-4 text-sm sm:text-base leading-relaxed shadow-lg backdrop-blur-sm
352                                  ${X?"bg-westxpurple text-white rounded-2xl rounded-tr-sm":"bg-[#1F2128] text-gray-200 rounded-2xl rounded-tl-sm"}`,style:X?{boxShadow:"0 4px 20px rgba(139, 92, 246, 0.2)"}:{},children:J.message})]},J.id)})})]}),jsxRuntimeExports.jsx("div",{className:"w-[360px] bg-[#0B0C10] border-l border-[#1F2128] flex flex-col max-lg:hidden overflow-y-auto",children:jsxRuntimeExports.jsxs("div",{className:"p-8 flex flex-col items-center text-center",children:[jsxRuntimeExports.jsx("div",{className:"relative mb-5 group",children:G.image?jsxRuntimeExports.jsx("img",{src:G.image,alt:G.name,className:"w-28 h-28 rounded-2xl object-cover shadow-2xl ring-4 ring-[#1F2128] group-hover:ring-[#2D303A] transition-all"}):jsxRuntimeExports.jsx("div",{className:"w-28 h-28 rounded-2xl bg-gradient-to-br from-territary/20 to-territary/5 flex items-center justify-center text-territary text-5xl font-bold ring-4 ring-[#1F2128]",children:G.name.charAt(0).toUpperCase()})}),jsxRuntimeExports.jsx("h2",{className:"text-xl font-bold text-white font-poppins mb-1",children:G.name}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 text-sm mb-6 max-w-[80%] leading-relaxed",children:G.intention||"Product Strategy & Ops @ Persist Ventures"}),jsxRuntimeExports.jsx("div",{className:"flex gap-2 flex-wrap justify-center mb-8",children:G.interestlist&&G.interestlist.length>0?G.interestlist.slice(0,2).map((J,X)=>jsxRuntimeExports.jsx("span",{className:`px-3 py-1 text-[10px] font-bold rounded-full uppercase tracking-wider border ${X===0?"bg-[#2D1B4E] text-[#D8B4FE] border-[#583395]/30":"bg-[#1E293B] text-[#94A3B8] border-[#334155]/50"}`,children:J},X)):null}),jsxRuntimeExports.jsx("div",{className:"w-full text-left",children:jsxRuntimeExports.jsx("div",{className:"mb-8",children:jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:G.interestlist&&G.interestlist.map((J,X)=>jsxRuntimeExports.jsxs("span",{className:"px-3 py-2 bg-[#16181C] text-gray-300 text-xs rounded-lg border border-[#2D303A] flex items-center gap-2 hover:border-gray-500 transition-colors",children:[jsxRuntimeExports.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-territary"}),J]},X))})})})]})})]})}return jsxRuntimeExports.jsxs("div",{children:[b&&jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16 mt-[30vh]",children:jsxRuntimeExports.jsx(Lottie,{animationData:loading,loop:!0,className:"w-[200px] h-[200px]"})}),R&&jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-16 mt-[30vh]",children:jsxRuntimeExports.jsx("p",{className:"text-red-500",children:"Error loading talk"})})]})},TalkdetailPage=()=>{const r=useAuth(),y=useParams();return jsxRuntimeExports.jsx("div",{children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Talkdetail,{talkid:Number(y.id)})}):jsxRuntimeExports.jsx(LockedPage,{icon:jsxRuntimeExports.jsx(FaHome,{className:"text-5xl text-territary"}),title:"Talk locked",subtitle:"Authentication Required",description:"You need to be logged in to view talk with other Persona",buttonText:"Go to Login",buttonPath:"/login"})})},MotionDiv=motion.div,AnimatePresenceComp=AnimatePresence;function TypingBubble({name:r}){return jsxRuntimeExports.jsxs(MotionDiv,{initial:{opacity:0,y:8}
352,animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.2},className:"flex flex-col items-start px-1",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[jsxRuntimeExports.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500",children:r??"Twin"}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-0.5 text-[9px] text-territary/50 font-semibold uppercase tracking-wider",children:[jsxRuntimeExports.jsx(BsStars,{className:"text-[8px]"})," twin"]})]}),jsxRuntimeExports.jsx("div",{className:"bg-[#16181D] border border-white/[0.05] px-5 py-4 rounded-2xl rounded-tl-[4px] flex items-center gap-2",children:[0,.18,.36].map((y,x)=>jsxRuntimeExports.jsx(MotionDiv,{animate:{y:[0,-5,0],opacity:[.3,1,.3]},transition:{repeat:1/0,duration:.85,delay:y,ease:"easeInOut"},className:"w-1.5 h-1.5 rounded-full bg-territary/60"},x))})]})}function MessageSkeleton({isMe:r,wide:y}){return jsxRuntimeExports.jsxs("div",{className:`flex flex-col gap-1.5 px-1 ${r?"items-end":"items-start"} animate-pulse`,children:[jsxRuntimeExports.jsx("div",{className:"h-2 w-12 rounded-full bg-white/[0.06]"}),jsxRuntimeExports.jsx("div",{className:`h-10 rounded-2xl bg-white/[0.06] ${y?"w-56 md:w-72":"w-40 md:w-56"} ${r?"rounded-tr-[4px]":"rounded-tl-[4px]"}`})]})}function ConversationSkeleton(){return jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-5 px-1",children:[jsxRuntimeExports.jsx(MessageSkeleton,{isMe:!1,wide:!0}),jsxRuntimeExports.jsx(MessageSkeleton,{isMe:!0}),jsxRuntimeExports.jsx(MessageSkeleton,{isMe:!1}),jsxRuntimeExports.jsx(MessageSkeleton,{isMe:!0,wide:!0}),jsxRuntimeExports.jsx(MessageSkeleton,{isMe:!1,wide:!0}),jsxRuntimeExports.jsx(MessageSkeleton,{isMe:!0})]})}function HeaderSkeleton(){return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 animate-pulse",children:[jsxRuntimeExports.jsx("div",{className:"w-9 h-9 rounded-full bg-white/[0.07] shrink-0"}),jsxRuntimeExports.jsxs("div",{className:"space-y-1.5",children:[jsxRuntimeExports.jsx("div",{className:"h-2.5 w-24 rounded-full bg-white/[0.07]"}),jsxRuntimeExports.jsx("div",{className:"h-2 w-16 rounded-full bg-white/[0.04]"})]})]})}function LiveConversationComp(){const r=usesocket(),x=useAuth()?.user?.name??null,R=[...r?.messages??[]].sort((q,J)=>new Date(q.createdAt).getTime()-new Date(J.createdAt).getTime()),M=r?.otheruser??null,O=r?.live??!1,z=r?.isTyping??!1,U=reactExports.useRef(null),G=O&&R.length===0&&!z;return reactExports.useEffect(()=>{U.current?.scrollIntoView({behavior:"smooth"})},[R,z]),jsxRuntimeExports.jsxs("div",{className:"h-dvh w-full bg-primary flex flex-col font-montserrat overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"flex-shrink-0 h-16 mt-12 md:mt-0 px-4 md:px-6 flex items-center gap-3 border-b border-white/[0.04] bg-[#080A0E]",children:[M?jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[M.image?jsxRuntimeExports.jsx("img",{src:M.image,alt:M.name,className:"w-9 h-9 flex-shrink-0 rounded-full object-cover ring-1 ring-white/10"}):jsxRuntimeExports.jsx("div",{className:"w-9 h-9 flex-shrink-0 rounded-full bg-territary/15 border border-territary/20 flex items-center justify-center text-territary font-bold text-sm",children:M.name.charAt(0).toUpperCase()}),jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-white font-semibold text-[13px] leading-tight truncate tracking-wide",children:M.name}),jsxRuntimeExports.jsx("p",{className:"text-[10px] text-gray-500 flex items-center gap-1 mt-0.5",children:z&&O?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-territary animate-pulse flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-territary/80",children:"typing..."})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BsStars,{className:"text-territary/40 text-[9px] flex-shrink-0"}),jsxRuntimeExports.jsx("span",{children:"AI Twin"})]})})]})]}):G?jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsx(HeaderSkeleton,{})}):jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2.5 flex-1",children:[jsxRuntimeExports.jsx("div",{className:"w-8 h-8 rounded-xl bg-territary/10 border border-territary/20 flex items-center justify-center flex-shrink-0",children:jsxRuntimeExports.jsx(BsStars,{className:"text-territary text-sm"})}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-[13px] tracking-wide",children:"Live Conversation"})]}),jsxRuntimeExports.jsx("div",{className:"flex-shrink-0",children:O?jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 md:px-3 py-1.5 rounded-full bg-territary/10 border border-territary/20",children:[jsxRuntimeExports.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[jsxRuntimeExports.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-territary opacity-75"}),jsxRuntimeExports.jsx("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-territary"})]}),jsxRuntimeExports.jsx("span",{className:"text-[10px] font-bold text-territary uppercase tracking-[0.15em]",children:"Live"})]}):R.length>0?jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 md:px-3 py-1.5 rounded-full bg-white/[0.03] border border-white/[0.06]",children:[jsxRuntimeExports.jsx("span",{className:"inline-flex rounded-full h-1.5 w-1.5 bg-gray-600"}),jsxRuntimeExports.jsx("span",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-[0.15em]",children:"Ended"})]}):null})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 px-3 md:px-8 py-6 md:py-8 space-y-4 md:space-y-5",children:[G?jsxRuntimeExports.jsx(ConversationSkeleton,{}):R.length===0&&!z?jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center gap-4 px-4",children:[jsxRuntimeExports.jsx(MotionDiv,{initial:{opacity:0,scale:.92}
352,animate:{opacity:1,scale:1},transition:{duration:.3},className:"w-12 h-12 md:w-14 md:h-14 rounded-2xl bg-territary/[0.08] border border-territary/15 flex items-center justify-center",children:jsxRuntimeExports.jsx(BsStars,{className:"text-lg md:text-xl text-territary/50"})}),jsxRuntimeExports.jsxs(MotionDiv,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.3,delay:.1},className:"space-y-1.5",children:[jsxRuntimeExports.jsx("p",{className:"text-white font-semibold text-[14px] md:text-[15px] tracking-wide",children:"Waiting to begin"}),jsxRuntimeExports.jsx("p",{className:"text-[12px] md:text-[13px] text-gray-500 leading-relaxed max-w-[260px] md:max-w-xs mx-auto",children:M?`Your AI twin will start talking with ${M.name} shortly`:"Your AI twin will appear here once a live conversation starts"})]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[R.map((q,J)=>{const X=q.sender.name===null||q.sender.name===x;return jsxRuntimeExports.jsxs(MotionDiv,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:`flex flex-col gap-1 px-1 ${X?"items-end":"items-start"}`,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntimeExports.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500",children:X?"You":q.sender.name??M?.name??"Them"}),!X&&jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-0.5 text-[9px] text-territary/50 font-semibold uppercase tracking-wider",children:[jsxRuntimeExports.jsx(BsStars,{className:"text-[8px]"})," twin"]})]}),jsxRuntimeExports.jsx("div",{className:`max-w-[85%] md:max-w-[60%] px-4 py-3 text-[13px] leading-[1.65] rounded-2xl
353                                            ${X?"bg-westxpurple text-white rounded-tr-[4px]":"bg-[#16181D] border border-white/[0.05] text-gray-200 rounded-tl-[4px]"}`,style:X?{boxShadow:"0 4px 24px rgba(139,92,246,0.18)"}:{},children:q.message}),q.createdAt&&jsxRuntimeExports.jsx("span",{className:"text-[9px] md:text-[10px] text-gray-600 tracking-wide",children:new Date(q.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]},J)}),jsxRuntimeExports.jsx(AnimatePresenceComp,{children:z&&O&&jsxRuntimeExports.jsx(TypingBubble,{name:M?.name??null})}),!O&&R.length>0&&jsxRuntimeExports.jsxs(MotionDiv,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.35},className:"flex flex-col items-center gap-2 py-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 w-full max-w-xs mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"flex-1 h-px bg-white/[0.05]"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/[0.03] border border-white/[0.06]",children:[jsxRuntimeExports.jsx("span",{className:"inline-flex rounded-full h-1 w-1 bg-gray-600"}),jsxRuntimeExports.jsx("span",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-[0.15em]",children:"Ended"})]}),jsxRuntimeExports.jsx("div",{className:"flex-1 h-px bg-white/[0.05]"})]}),jsxRuntimeExports.jsxs("p",{className:"text-[11px] text-gray-600 tracking-wide",children:[R.length," message",R.length!==1?"s":""," exchanged"]})]})]}),jsxRuntimeExports.jsx("div",{ref:U})]})]})}function LiveConversation(){const r=useAuth();return jsxRuntimeExports.jsx("div",{children:r?.isauthenticated&&r?.user?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(LiveConversationComp,{})}):jsxRuntimeExports.jsx(LockedPage,{icon:jsxRuntimeExports.jsx(FaHome,{className:"text-5xl text-territary"}),title:"Talk locked",subtitle:"Authentication Required",description:"You need to be logged in to view talk with other Persona",buttonText:"Go to Login",buttonPath:"/login"})})}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,staleTime:300*1e3,gcTime:600*1e3,retry:1}}});function App(){return jsxRuntimeExports.jsxs(HelmetProvider,{children:[jsxRuntimeExports.jsxs(Helmet,{children:[jsxRuntimeExports.jsx("title",{children:"WestX - Where AI will build network for you "}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Let AI handle the conversations that move you forward  Set your intention, and WestX finds the right AI persona to speak on your behalf all while you focus on what matters."}),jsxRuntimeExports.jsx("meta",{name:"keywords",content:"WestX , westx  , ai social media , AI PERSONAS , Digital Twin , "})]}),jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsx(AuthContext,{children:jsxRuntimeExports.jsx(MessageContextProvider,{children:jsxRuntimeExports.jsxs(BrowserRouter,{children:[jsxRuntimeExports.jsx(Fe,{}),jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Landingpage,{})}),jsxRuntimeExports.jsx(Route,{path:"/login",element:jsxRuntimeExports.jsx(Login,{})}),jsxRuntimeExports.jsx(Route,{path:"/linkedin",Component:a}),jsxRuntimeExports.jsx(Route,{path:"/complete-profile",element:jsxRuntimeExports.jsx(ProfileCompletion,{})}),jsxRuntimeExports.jsxs(Route,{element:jsxRuntimeExports.jsx(Layout,{}),children:[jsxRuntimeExports.jsx(Route,{path:"/home",element:jsxRuntimeExports.jsx(Homepage,{})}),jsxRuntimeExports.jsx(Route,{path:"/messages",element:jsxRuntimeExports.jsx(Messagepage,{})}),jsxRuntimeExports.jsx(Route,{path:"/profile",element:jsxRuntimeExports.jsx(ProfilePage,{})}),jsxRuntimeExports.jsx(Route,{path:"/similar-users",element:jsxRuntimeExports.jsx(Similaruserpage,{})}),jsxRuntimeExports.jsx(Route,{path:"/discover",element:jsxRuntimeExports.jsx(Discoveruser,{})}),jsxRuntimeExports.jsx(Route,{path:"/questions",element:jsxRuntimeExports.jsx(QuestionPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/user/:username",element:jsxRuntimeExports.jsx(Profileuser,{})}),jsxRuntimeExports.jsx(Route,{path:"/talk/:id",element:jsxRuntimeExports.jsx(TalkdetailPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/ai/live",element:jsxRuntimeExports.jsx(LiveConversation,{})})]})]})]})})})})]})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.