vendor: 6,687 bytes, lines 1-18
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-LKbkbZtp.js","./index-BPRQI6wt.js","./index-Cv50UKQp.js"])))=>i.map(i=>d[i]); 2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function getDefaultExportFromCjs$1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,a){var l=null;if(a!==void 0&&(l=""+a),s.key!==void 0&&(l=""+s.key),"key"in s){a={};for(var u in s)u!=="key"&&(a[u]=s[u])}else a=s;return s=a.ref,{$$typeof:e,type:n,key:l,ref:s!==void 0?s:null,props:a}}return reactJsxRuntime_production.Fragment=t,reactJsxRuntime_production.jsx=r,reactJsxRuntime_production.jsxs=r,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),react={exports:{}},react_production={};/** 11 * @license React 12 * react.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function E(A,D,_){this.props=A,this.context=D,this.refs=v,this.updater=_||g}E.prototype.isReactComponent={},E.prototype.setState=function(A,D){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,D,"setState")},E.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function j(){}j.prototype=E.prototype;function R(A,D,_){this.props=A,this.context=D,this.refs=v,this.updater=_||g}var T=R.prototype=new j;T.constructor=R,b(T,E.prototype),T.isPureReactComponent=!0;var z=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},V=Object.prototype.hasOwnProperty;function $(A,D,_,M,G,Q){return _=Q.ref,{$$typeof:e,type:A,key:D,ref:_!==void 0?_:null,props:Q}}function U(A,D){return $(A.type,D,void 0,void 0,void 0,A.props)}function B(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function P(A){var D={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(_){return D[_]})}var H=/\/+/g;function Z(A,D){return typeof A=="object"&&A!==null&&A.key!=null?P(""+A.key):D.toString(36)}function O(){}function S(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(O,O):(A.status="pending",A.then(function(D){A.status==="pending"&&(A.status="fulfilled",A.value=D)},function(D){A.status==="pending"&&(A.status="rejected",A.reason=D)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function N(A,D,_,M,G){var Q=typeof A;(Q==="undefined"||Q==="boolean")&&(A=null);var te=!1;if(A===null)te=!0;else switch(Q){case"bigint":case"string":case"number":te=!0;break;case"object":switch(A.$$typeof){case e:case t:te=!0;break;case h:return te=A._init,N(te(A._payload),D,_,M,G)}}if(te)return G=G(A),te=M===""?"."+Z(A,0):M,z(G)?(_="",te!=null&&(_=te.replace(H,"$&/")+"/"),N(G,D,_,"",function(fe){return fe})):G!=null&&(B(G)&&(G=U(G,_+(G.key==null||A&&A.key===G.key?"":(""+G.key).replace(H,"$&/")+"/")+te)),D.push(G)),1;te=0;var ne=M===""?".":M+":";if(z(A))for(var ae=0;ae<A.length;ae++)M=A[ae],Q=ne+Z(M,ae),te+=N(M,D,_,Q,G);else if(ae=w(A),typeof ae=="function")for(A=ae.call(A),ae=0;!(M=A.next()).done;)M=M.value,Q=ne+Z(M,ae++),te+=N(M,D,_,Q,G);else if(Q==="object"){if(typeof A.then=="function")return N(S(A),D,_,M,G);throw D=String(A),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return te}function F(A,D,_){if(A==null)return A;var M=[],G=0;return N(A,M,"","",function(Q){return D.call(_,Q,G++)}),M}function k(A){if(A._status===-1){var D=A._result;D=D(),D.then(function(_){(A._status===0||A._status===-1)&&(A._status=1,A._result=_)},function(_){(A._status===0||A._status===-1)&&(A._status=2,A._result=_)}
vendor: 4,858 bytes, line 18
18),A._status===-1&&(A._status=0,A._result=D)}if(A._status===1)return A._result.default;throw A._result}var W=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function q(){}return react_production.Children={map:F,forEach:function(A,D,_){F(A,function(){D.apply(this,arguments)},_)},count:function(A){var D=0;return F(A,function(){D++}),D},toArray:function(A){return F(A,function(D){return D})||[]},only:function(A){if(!B(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},react_production.Component=E,react_production.Fragment=r,react_production.Profiler=s,react_production.PureComponent=R,react_production.StrictMode=n,react_production.Suspense=d,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(A){return L.H.useMemoCache(A)}},react_production.cache=function(A){return function(){return A.apply(null,arguments)}},react_production.cloneElement=function(A,D,_){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var M=b({},A.props),G=A.key,Q=void 0;if(D!=null)for(te in D.ref!==void 0&&(Q=void 0),D.key!==void 0&&(G=""+D.key),D)!V.call(D,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&D.ref===void 0||(M[te]=D[te]);var te=arguments.length-2;if(te===1)M.children=_;else if(1<te){for(var ne=Array(te),ae=0;ae<te;ae++)ne[ae]=arguments[ae+2];M.children=ne}return $(A.type,G,void 0,void 0,Q,M)},react_production.createContext=function(A){return A={$$typeof:l,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:a,_context:A},A},react_production.createElement=function(A,D,_){var M,G={},Q=null;if(D!=null)for(M in D.key!==void 0&&(Q=""+D.key),D)V.call(D,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(G[M]=D[M]);var te=arguments.length-2;if(te===1)G.children=_;else if(1<te){for(var ne=Array(te),ae=0;ae<te;ae++)ne[ae]=arguments[ae+2];G.children=ne}if(A&&A.defaultProps)for(M in te=A.defaultProps,te)G[M]===void 0&&(G[M]=te[M]);return $(A,Q,void 0,void 0,null,G)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(A){return{$$typeof:u,render:A}},react_production.isValidElement=B,react_production.lazy=function(A){return{$$typeof:h,_payload:{_status:-1,_result:A},_init:k}},react_production.memo=function(A,D){return{$$typeof:p,type:A,compare:D===void 0?null:D}},react_production.startTransition=function(A){var D=L.T,_={};L.T=_;try{var M=A(),G=L.S;G!==null&&G(_,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(q,W)}catch(Q){W(Q)}finally{L.T=D}},react_production.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},react_production.use=function(A){return L.H.use(A)},react_production.useActionState=function(A,D,_){return L.H.useActionState(A,D,_)},react_production.useCallback=function(A,D){return L.H.useCallback(A,D)},react_production.useContext=function(A){return L.H.useContext(A)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(A,D){return L.H.useDeferredValue(A,D)},react_production.useEffect=function(A,D,_){var M=L.H;if(typeof _=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(A,D)},react_production.useId=function(){return L.H.useId()},react_production.useImperativeHandle=function(A,D,_){return L.H.useImperativeHandle(A,D,_)},react_production.useInsertionEffect=function(A,D){return L.H.useInsertionEffect(A,D)},react_production.useLayoutEffect=function(A,D){return L.H.useLayoutEffect(A,D)},react_production.useMemo=function(A,D){return L.H.useMemo(A,D)},react_production.useOptimistic=function(A,D){return L.H.useOptimistic(A,D)},react_production.useReducer=function(A,D,_){return L.H.useReducer(A,D,_)},react_production.useRef=function(A){return L.H.useRef(A)},react_production.useState=function(A){return L.H.useState(A)},react_production.useSyncExternalStore=function(A,D,_){return L.H.useSyncExternalStore(A,D,_)},react_production.useTransition=function(){return L.H.useTransition()},react_production.version="19.1.1",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs$1(reactExports);var client={exports:{}},reactDomClient_production={}
vendor: 11,497 bytes, lines 18-42
18,scheduler={exports:{}},scheduler_production={};/** 19 * @license React 20 * scheduler.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(e){function t(F,k){var W=F.length;F.push(k);e:for(;0<W;){var q=W-1>>>1,A=F[q];if(0<s(A,k))F[q]=k,F[W]=A,W=q;else break e}}function r(F){return F.length===0?null:F[0]}function n(F){if(F.length===0)return null;var k=F[0],W=F.pop();if(W!==k){F[0]=W;e:for(var q=0,A=F.length,D=A>>>1;q<D;){var _=2*(q+1)-1,M=F[_],G=_+1,Q=F[G];if(0>s(M,W))G<A&&0>s(Q,M)?(F[q]=Q,F[G]=W,q=G):(F[q]=M,F[_]=W,q=_);else if(G<A&&0>s(Q,W))F[q]=Q,F[G]=W,q=G;else break e}}return k}function s(F,k){var W=F.sortIndex-k.sortIndex;return W!==0?W:F.id-k.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],p=[],h=1,x=null,w=3,g=!1,b=!1,v=!1,E=!1,j=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function z(F){for(var k=r(p);k!==null;){if(k.callback===null)n(p);else if(k.startTime<=F)n(p),k.sortIndex=k.expirationTime,t(d,k);else break;k=r(p)}}function L(F){if(v=!1,z(F),!b)if(r(d)!==null)b=!0,V||(V=!0,Z());else{var k=r(p);k!==null&&N(L,k.startTime-F)}}var V=!1,$=-1,U=5,B=-1;function P(){return E?!0:!(e.unstable_now()-B<U)}function H(){if(E=!1,V){var F=e.unstable_now();B=F;var k=!0;try{e:{b=!1,v&&(v=!1,R($),$=-1),g=!0;var W=w;try{t:{for(z(F),x=r(d);x!==null&&!(x.expirationTime>F&&P());){var q=x.callback;if(typeof q=="function"){x.callback=null,w=x.priorityLevel;var A=q(x.expirationTime<=F);if(F=e.unstable_now(),typeof A=="function"){x.callback=A,z(F),k=!0;break t}x===r(d)&&n(d),z(F)}else n(d);x=r(d)}if(x!==null)k=!0;else{var D=r(p);D!==null&&N(L,D.startTime-F),k=!1}}break e}finally{x=null,w=W,g=!1}k=void 0}}finally{k?Z():V=!1}}}var Z;if(typeof T=="function")Z=function(){T(H)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,S=O.port2;O.port1.onmessage=H,Z=function(){S.postMessage(null)}}else Z=function(){j(H,0)};function N(F,k){$=j(function(){F(e.unstable_now())},k)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_next=function(F){switch(w){case 1:case 2:case 3:var k=3;break;default:k=w}var W=w;w=k;try{return F()}finally{w=W}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(F,k){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var W=w;w=F;try{return k()}finally{w=W}},e.unstable_scheduleCallback=function(F,k,W){var q=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?q+W:q):W=q,F){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=W+A,F={id:h++,callback:k,priorityLevel:F,startTime:W,expirationTime:A,sortIndex:-1},W>q?(F.sortIndex=W,t(p,F),r(d)===null&&F===r(p)&&(v?(R($),$=-1):v=!0,N(L,W-q))):(F.sortIndex=A,t(d,F),b||g||(b=!0,V||(V=!0,Z()))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var k=w;return function(){var W=w;w=k;try{return F.apply(this,arguments)}finally{w=W}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};/** 27 * @license React 28 * react-dom.production.js 29 * 30 * Copyright (c) Meta Platforms, Inc. and affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var e=requireReact();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)p+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function a(d,p,h){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,children:d,containerInfo:p,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,reactDom_production.createPortal=function(d,p){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return a(d,p,null,h)},reactDom_production.flushSync=function(d){var p=l.T,h=n.p;try{if(l.T=null,n.p=2,d)return d()}finally{l.T=p,n.p=h,n.d.f()}},reactDom_production.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,n.d.C(d,p))},reactDom_production.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},reactDom_production.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var h=p.as,x=u(h,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,g=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;h==="style"?n.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:g}):h==="script"&&n.d.X(d,{crossOrigin:x,integrity:w,fetchPriority:g,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},reactDom_production.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var h=u(p.as,p.crossOrigin);n.d.M(d,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&n.d.M(d)},reactDom_production.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var h=p.as,x=u(h,p.crossOrigin);n.d.L(d,h,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},reactDom_production.preloadModule=function(d,p){if(typeof d=="string")if(p){var h=u(p.as,p.crossOrigin);n.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else n.d.m(d)},reactDom_production.requestFormReset=function(d){n.d.r(d)},reactDom_production.unstable_batchedUpdates=function(d,p){return d(p)},reactDom_production.useFormState=function(d,p,h){return l.H.useFormState(d,p,h)},reactDom_production.useFormStatus=function(){return l.H.useHostTransitionStatus()},reactDom_production.version="19.1.1",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;/** 35 * @license React 36 * react-dom-client.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var e=requireScheduler(),t=requireReact(),r=requireReactDom();function n(o){var c="https://react.dev/errors/"+o;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+o+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var c=o,m=o;if(o.alternate)for(;c.return;)c=c.return;else{o=c;do c=o,(c.flags&4098)!==0&&(m=c.return),o=c.return;while(o)}return c.tag===3?m:null}function l(o){if(o.tag===13){var c=o.memoizedState;if(c===null&&(o=o.alternate,o!==null&&(c=o.memoizedState)),c!==null)return c.dehydrated}return null}function u(o){if(a(o)!==o)throw Error(n(188))}function d(o){var c=o.alternate;if(!c){if(c=a(o),c===null)throw Error(n(188));return c!==o?null:o}for(var m=o,y=c;;){var C=m.return;if(C===null)break;var I=C.alternate;if(I===null){if(y=C.return,y!==null){m=y;continue}break}if(C.child===I.child){for(I=C.child;I;){if(I===m)return u(C),o;if(I===y)return u(C),c;I=I.sibling}throw Error(n(188))}if(m.return!==y.return)m=C,y=I;else{for(var J=!1,re=C.child;re;){if(re===m){J=!0,m=C,y=I;break}if(re===y){J=!0,y=C,m=I;break}re=re.sibling}if(!J){for(re=I.child;re;){if(re===m){J=!0,m=I,y=C;break}if(re===y){J=!0,y=I,m=C;break}re=re.sibling}if(!J)throw Error(n(189))}}if(m.alternate!==y)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?o:c}function p(o){var c=o.tag;if(c===5||c===26||c===27||c===6)return o;for(o=o.child;o!==null;){if(c=p(o),c!==null)return c;o=o.sibling}return null}var h=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Z(o){return o===null||typeof o!="object"?null:(o=H&&o[H]||o["@@iterator"],typeof o=="function"?o:null)}var O=Symbol.for("react.client.reference");function S(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===O?null:o.displayName||o.name||null;
vendor: 15,443 bytes, lines 42-49
42if(typeof o=="string")return o;switch(o){case b:return"Fragment";case E:return"Profiler";case v:return"StrictMode";case L:return"Suspense";case V:return"SuspenseList";case B:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case g:return"Portal";case T:return(o.displayName||"Context")+".Provider";case R:return(o._context.displayName||"Context")+".Consumer";case z:var c=o.render;return o=o.displayName,o||(o=c.displayName||c.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case $:return c=o.displayName||null,c!==null?c:S(o.type)||"Memo";case U:c=o._payload,o=o._init;try{return S(o(c))}catch{}}return null}var N=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},q=[],A=-1;function D(o){return{current:o}}function _(o){0>A||(o.current=q[A],q[A]=null,A--)}function M(o,c){A++,q[A]=o.current,o.current=c}var G=D(null),Q=D(null),te=D(null),ne=D(null);function ae(o,c){switch(M(te,c),M(Q,o),M(G,null),c.nodeType){case 9:case 11:o=(o=c.documentElement)&&(o=o.namespaceURI)?Fd(o):0;break;default:if(o=c.tagName,c=c.namespaceURI)c=Fd(c),o=zd(c,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}_(G),M(G,o)}function fe(){_(G),_(Q),_(te)}function Se(o){o.memoizedState!==null&&M(ne,o);var c=G.current,m=zd(c,o.type);c!==m&&(M(Q,o),M(G,m))}function Ce(o){Q.current===o&&(_(G),_(Q)),ne.current===o&&(_(ne),Ri._currentValue=W)}var _e=Object.prototype.hasOwnProperty,Me=e.unstable_scheduleCallback,ve=e.unstable_cancelCallback,Le=e.unstable_shouldYield,et=e.unstable_requestPaint,Te=e.unstable_now,Be=e.unstable_getCurrentPriorityLevel,Ye=e.unstable_ImmediatePriority,Ie=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,at=e.unstable_LowPriority,qe=e.unstable_IdlePriority,Xe=e.log,ot=e.unstable_setDisableYieldValue,Ze=null,ee=null;function K(o){if(typeof Xe=="function"&&ot(o),ee&&typeof ee.setStrictMode=="function")try{ee.setStrictMode(Ze,o)}catch{}}var Y=Math.clz32?Math.clz32:he,se=Math.log,ce=Math.LN2;function he(o){return o>>>=0,o===0?32:31-(se(o)/ce|0)|0}var ye=256,Ue=4194304;function Ne(o){var c=o&42;if(c!==0)return c;switch(o&-o){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:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Fe(o,c,m){var y=o.pendingLanes;if(y===0)return 0;var C=0,I=o.suspendedLanes,J=o.pingedLanes;o=o.warmLanes;var re=y&134217727;return re!==0?(y=re&~I,y!==0?C=Ne(y):(J&=re,J!==0?C=Ne(J):m||(m=re&~o,m!==0&&(C=Ne(m))))):(re=y&~I,re!==0?C=Ne(re):J!==0?C=Ne(J):m||(m=y&~o,m!==0&&(C=Ne(m)))),C===0?0:c!==0&&c!==C&&(c&I)===0&&(I=C&-C,m=c&-c,I>=m||I===32&&(m&4194048)!==0)?c:C}function Je(o,c){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&c)===0}function Ve(o,c){switch(o){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 mt(){var o=ye;return ye<<=1,(ye&4194048)===0&&(ye=256),o}function Mr(){var o=Ue;return Ue<<=1,(Ue&62914560)===0&&(Ue=4194304),o}function bt(o){for(var c=[],m=0;31>m;m++)c.push(o);return c}function xt(o,c){o.pendingLanes|=c,c!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function zr(o,c,m,y,C,I){var J=o.pendingLanes;o.pendingLanes=m,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=m,o.entangledLanes&=m,o.errorRecoveryDisabledLanes&=m,o.shellSuspendCounter=0;var re=o.entanglements,ie=o.expirationTimes,me=o.hiddenUpdates;for(m=J&~m;0<m;){var be=31-Y(m),we=1<<be;re[be]=0,ie[be]=-1;var xe=me[be];if(xe!==null)for(me[be]=null,be=0;be<xe.length;be++){var ge=xe[be];ge!==null&&(ge.lane&=-536870913)}m&=~we}y!==0&<(o,y,0),I!==0&&C===0&&o.tag!==0&&(o.suspendedLanes|=I&~(J&~c))}function lt(o,c,m){o.pendingLanes|=c,o.suspendedLanes&=~c;var y=31-Y(c);o.entangledLanes|=c,o.entanglements[y]=o.entanglements[y]|1073741824|m&4194090}function _t(o,c){var m=o.entangledLanes|=c;for(o=o.entanglements;m;){var y=31-Y(m),C=1<<y;C&c|o[y]&c&&(o[y]|=c),m&=~C}}function Cr(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Tt(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function At(){var o=k.p;return o!==0?o:(o=window.event,o===void 0?32:ih(o.type))}function Vr(o,c){var m=k.p;try{return k.p=o,c()}finally{k.p=m}}var ct=Math.random().toString(36).slice(2),Qe="__reactFiber$"+ct,Ot="__reactProps$"+ct,dt="__reactContainer$"+ct,gt="__reactEvents$"+ct,Nr="__reactListeners$"+ct,kt="__reactHandles$"+ct,Mt="__reactResources$"+ct,gr="__reactMarker$"+ct;function Et(o){delete o[Qe],delete o[Ot],delete o[gt],delete o[Nr],delete o[kt]}function ht(o){var c=o[Qe];if(c)return c;for(var m=o.parentNode;m;){if(c=m[dt]||m[Qe]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(o=$d(o);o!==null;){if(m=o[Qe])return m;o=$d(o)}return c}o=m,m=o.parentNode}return null}function lr(o){if(o=o[Qe]||o[dt]){var c=o.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return o}return null}function vt(o){var c=o.tag;if(c===5||c===26||c===27||c===6)return o.stateNode;throw Error(n(33))}function ft(o){var c=o[Mt];return c||(c=o[Mt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Pt(o){o[gr]=!0}var Wr=new Set,Ur={};function rr(o,c){cr(o,c),cr(o+"Capture",c)}function cr(o,c){for(Ur[o]=c,o=0;o<c.length;o++)Wr.add(c[o])}var Bn=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]*$"),hn={},_r={};function fn(o){return _e.call(_r,o)?!0:_e.call(hn,o)?!1:Bn.test(o)?_r[o]=!0:(hn[o]=!0,!1)}function Pr(o,c,m){if(fn(c))if(m===null)o.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":o.removeAttribute(c);return;case"boolean":var y=c.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){o.removeAttribute(c);return}}o.setAttribute(c,""+m)}}function Lr(o,c,m){if(m===null)o.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttribute(c,""+m)}}function er(o,c,m,y){if(y===null)o.removeAttribute(m);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(m);return}o.setAttributeNS(c,m,""+y)}}var $r,pn;function yr(o){if($r===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);$r=c&&c[1]||"",pn=-1<m.stack.indexOf(` 43 at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return` 44`+$r+o+pn}var Hr=!1;function qr(o,c){if(!o||Hr)return"";Hr=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(c){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(ge){var xe=ge}Reflect.construct(o,[],we)}else{try{we.call()}catch(ge){xe=ge}o.call(we.prototype)}}else{try{throw Error()}catch(ge){xe=ge}(we=o())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(ge){if(ge&&xe&&typeof ge.stack=="string")return[ge.stack,xe.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=y.DetermineComponentFrameRoot(),J=I[0],re=I[1];if(J&&re){var ie=J.split(` 45`),me=re.split(` 46`);for(C=y=0;y<ie.length&&!ie[y].includes("DetermineComponentFrameRoot");)y++;for(;C<me.length&&!me[C].includes("DetermineComponentFrameRoot");)C++;if(y===ie.length||C===me.length)for(y=ie.length-1,C=me.length-1;1<=y&&0<=C&&ie[y]!==me[C];)C--;for(;1<=y&&0<=C;y--,C--)if(ie[y]!==me[C]){if(y!==1||C!==1)do if(y--,C--,0>C||ie[y]!==me[C]){var be=` 47`+ie[y].replace(" at new "," at ");return o.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",o.displayName)),be}while(1<=y&&0<=C);break}}}finally{Hr=!1,Error.prepareStackTrace=m}return(m=o?o.displayName||o.name:"")?yr(m):""}function Fn(o){switch(o.tag){case 26:case 27:case 5:return yr(o.type);case 16:return yr("Lazy");case 13:return yr("Suspense");case 19:return yr("SuspenseList");case 0:case 15:return qr(o.type,!1);case 11:return qr(o.type.render,!1);case 1:return qr(o.type,!0);case 31:return yr("Activity");default:return""}}function Gr(o){try{var c="";do c+=Fn(o),o=o.return;while(o);return c}catch(m){return` 48Error generating stack: `+m.message+` 49`+m.stack}}function nr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ns(o){var c=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Oa(o){var c=ns(o)?"checked":"value",m=Object.getOwnPropertyDescriptor(o.constructor.prototype,c),y=""+o[c];if(!o.hasOwnProperty(c)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var C=m.get,I=m.set;return Object.defineProperty(o,c,{configurable:!0,get:function(){return C.call(this)},set:function(J){y=""+J,I.call(this,J)}}),Object.defineProperty(o,c,{enumerable:m.enumerable}),{getValue:function(){return y},setValue:function(J){y=""+J},stopTracking:function(){o._valueTracker=null,delete o[c]}}}}function ss(o){o._valueTracker||(o._valueTracker=Oa(o))}function Pe(o){if(!o)return!1;var c=o._valueTracker;if(!c)return!0;var m=c.getValue(),y="";return o&&(y=ns(o)?o.checked?"true":"false":o.value),o=y,o!==m?(c.setValue(o),!0):!1}function Re(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var de=/[\n"\\]/g;function le(o){return o.replace(de,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function je(o,c,m,y,C,I,J,re){o.name="",J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?o.type=J:o.removeAttribute("type"),c!=null?J==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+nr(c)):o.value!==""+nr(c)&&(o.value=""+nr(c)):J!=="submit"&&J!=="reset"||o.removeAttribute("value"),c!=null?Ae(o,J,nr(c)):m!=null?Ae(o,J,nr(m)):y!=null&&o.removeAttribute("value"),C==null&&I!=null&&(o.defaultChecked=!!I),C!=null&&(o.checked=C&&typeof C!="function"&&typeof C!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?o.name=""+nr(re):o.removeAttribute("name")}function ke(o,c,m,y,C,I,J,re){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.type=I),c!=null||m!=null){if(!(I!=="submit"&&I!=="reset"||c!=null))return;m=m!=null?""+nr(m):"",c=c!=null?""+nr(c):m,re||c===o.value||(o.value=c),o.defaultValue=c}y=y??C,y=typeof y!="function"&&typeof y!="symbol"&&!!y,o.checked=re?o.checked:!!y,o.defaultChecked=!!y,J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"&&(o.name=J)}function Ae(o,c,m){c==="number"&&Re(o.ownerDocument)===o||o.defaultValue===""+m||(o.defaultValue=""+m)}function De(o,c,m,y){if(o=o.options,c){c={};for(var C=0;C<m.length;C++)c["$"+m[C]]=!0;for(m=0;m<o.length;m++)C=c.hasOwnProperty("$"+o[m].value),o[m].selected!==C&&(o[m].selected=C),C&&y&&(o[m].defaultSelected=!0)}else{for(m=""+nr(m),c=null,C=0;C<o.length;C++){if(o[C].value===m){o[C].selected=!0,y&&(o[C].defaultSelected=!0);return}c!==null||o[C].disabled||(c=o[C])}c!==null&&(c.selected=!0)}}function Ke(o,c,m){if(c!=null&&(c=""+nr(c),c!==o.value&&(o.value=c),m==null)){o.defaultValue!==c&&(o.defaultValue=c);return}o.defaultValue=m!=null?""+nr(m):""}function rt(o,c,m,y){if(c==null){if(y!=null){if(m!=null)throw Error(n(92));if(N(y)){if(1<y.length)throw Error(n(93));y=y[0]}m=y}m==null&&(m=""),c=m}m=nr(c),o.defaultValue=m,y=o.textContent,y===m&&y!==""&&y!==null&&(o.value=y)}function It(o,c){if(c){var m=o.firstChild;if(m&&m===o.lastChild&&m.nodeType===3){m.nodeValue=c;return}}o.textContent=c}var zn=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 Ai(o,c,m){var y=c.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?y?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="":y?o.setProperty(c,m):typeof m!="number"||m===0||zn.has(c)?c==="float"?o.cssFloat=m:o[c]=(""+m).trim():o[c]=m+"px"}function ki(o,c,m){if(c!=null&&typeof c!="object")throw Error(n(62));if(o=o.style,m!=null){for(var y in m)!m.hasOwnProperty(y)||c!=null&&c.hasOwnProperty(y)||(y.indexOf("--")===0?o.setProperty(y,""):y==="float"?o.cssFloat="":o[y]="");for(var C in c)y=c[C],c.hasOwnProperty(C)&&m[C]!==y&&Ai(o,C,y)}else for(var I in c)c.hasOwnProperty(I)&&Ai(o,I,c[I])}function Ba(o){if(o.indexOf("-")===-1)return!1;switch(o){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 hh=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
49dering","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"]]),fh=/^[\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 Mi(o){return fh.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Fa=null;function za(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var as=null,os=null;function zl(o){var c=lr(o);if(c&&(o=c.stateNode)){var m=o[Ot]||null;e:switch(o=c.stateNode,c.type){case"input":if(je(o,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),c=m.name,m.type==="radio"&&c!=null){for(m=o;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+le(""+c)+'"][type="radio"]'),c=0;c<m.length;c++){var y=m[c];if(y!==o&&y.form===o.form){var C=y[Ot]||null;if(!C)throw Error(n(90));je(y,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(c=0;c<m.length;c++)y=m[c],y.form===o.form&&Pe(y)}break e;case"textarea":Ke(o,m.value,m.defaultValue);break e;case"select":c=m.value,c!=null&&De(o,!!m.multiple,c,!1)}}}var Va=!1;function Vl(o,c,m){if(Va)return o(c,m);Va=!0;try{var y=o(c);return y}finally{if(Va=!1,(as!==null||os!==null)&&(xa(),as&&(c=as,o=os,os=as=null,zl(c),o)))for(c=0;c<o.length;c++)zl(o[c])}}function Os(o,c){var m=o.stateNode;if(m===null)return null;var y=m[Ot]||null;if(y===null)return null;m=y[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(o=o.type,y=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!y;break e;default:o=!1}if(o)return null;if(m&&typeof m!="function")throw Error(n(231,c,typeof m));return m}var Kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wa=!1;if(Kr)try{var Bs={};Object.defineProperty(Bs,"passive",{get:function(){Wa=!0}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{Wa=!1}var mn=null,Ua=null,Ni=null;function Wl(){if(Ni)return Ni;var o,c=Ua,m=c.length,y,C="value"in mn?mn.value:mn.textContent,I=C.length;for(o=0;o<m&&c[o]===C[o];o++);var J=m-o;for(y=1;y<=J&&c[m-y]===C[I-y];y++);return Ni=C.slice(o,1<y?1-y:void 0)}function Pi(o){var c=o.keyCode;
vendor: 2,826 bytes, line 49
49return"charCode"in o?(o=o.charCode,o===0&&c===13&&(o=13)):o=c,o===10&&(o=13),32<=o||o===13?o:0}function Li(){return!0}function Ul(){return!1}function sr(o){function c(m,y,C,I,J){this._reactName=m,this._targetInst=C,this.type=y,this.nativeEvent=I,this.target=J,this.currentTarget=null;for(var re in o)o.hasOwnProperty(re)&&(m=o[re],this[re]=m?m(I):I[re]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Li:Ul,this.isPropagationStopped=Ul,this}return h(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Li)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Li)},persist:function(){},isPersistent:Li}),c}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=sr(Vn),Fs=h({},Vn,{view:0,detail:0}),ph=sr(Fs),$a,Ha,zs,Di=h({},Fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ga,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==zs&&(zs&&o.type==="mousemove"?($a=o.screenX-zs.screenX,Ha=o.screenY-zs.screenY):Ha=$a=0,zs=o),$a)},movementY:function(o){return"movementY"in o?o.movementY:Ha}}),$l=sr(Di),mh=h({},Di,{dataTransfer:0}),xh=sr(mh),gh=h({},Fs,{relatedTarget:0}),qa=sr(gh),yh=h({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),bh=sr(yh),Eh=h({},Vn,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),wh=sr(Eh),Sh=h({},Vn,{data:0}),Hl=sr(Sh),Rh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jh={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"},Ch={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _h(o){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(o):(o=Ch[o])?!!c[o]:!1}function Ga(){return _h}var Th=h({},Fs,{key:function(o){if(o.key){var c=Rh[o.key]||o.key;if(c!=="Unidentified")return c}
vendor: 5,147 bytes, line 49
49return o.type==="keypress"?(o=Pi(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?jh[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ga,charCode:function(o){return o.type==="keypress"?Pi(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Pi(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Ah=sr(Th),kh=h({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ql=sr(kh),Mh=h({},Fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ga}),Nh=sr(Mh),Ph=h({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lh=sr(Ph),Ih=h({},Di,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Dh=sr(Ih),Oh=h({},Vn,{newState:0,oldState:0}),Bh=sr(Oh),Fh=[9,13,27,32],Ka=Kr&&"CompositionEvent"in window,Vs=null;Kr&&"documentMode"in document&&(Vs=document.documentMode);var zh=Kr&&"TextEvent"in window&&!Vs,Gl=Kr&&(!Ka||Vs&&8<Vs&&11>=Vs),Kl=" ",Yl=!1;function Zl(o,c){switch(o){case"keyup":return Fh.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ls=!1;function Vh(o,c){switch(o){case"compositionend":return Xl(c);case"keypress":return c.which!==32?null:(Yl=!0,Kl);case"textInput":return o=c.data,o===Kl&&Yl?null:o;default:return null}}function Wh(o,c){if(ls)return o==="compositionend"||!Ka&&Zl(o,c)?(o=Wl(),Ni=Ua=mn=null,ls=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Gl&&c.locale!=="ko"?null:c.data;default:return null}}var Uh={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 Ql(o){var c=o&&o.nodeName&&o.nodeName.toLowerCase();return c==="input"?!!Uh[o.type]:c==="textarea"}function Jl(o,c,m,y){as?os?os.push(y):os=[y]:as=y,c=wa(c,"onChange"),0<c.length&&(m=new Ii("onChange","change",null,m,y),o.push({event:m,listeners:c}))}var Ws=null,Us=null;function $h(o){Ld(o,0)}function Oi(o){var c=vt(o);if(Pe(c))return o}function ec(o,c){if(o==="change")return c}var tc=!1;if(Kr){var Ya;if(Kr){var Za="oninput"in document;if(!Za){var rc=document.createElement("div");rc.setAttribute("oninput","return;"),Za=typeof rc.oninput=="function"}Ya=Za}else Ya=!1;tc=Ya&&(!document.documentMode||9<document.documentMode)}function nc(){Ws&&(Ws.detachEvent("onpropertychange",sc),Us=Ws=null)}function sc(o){if(o.propertyName==="value"&&Oi(Us)){var c=[];Jl(c,Us,o,za(o)),Vl($h,c)}}function Hh(o,c,m){o==="focusin"?(nc(),Ws=c,Us=m,Ws.attachEvent("onpropertychange",sc)):o==="focusout"&&nc()}function qh(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Oi(Us)}function Gh(o,c){if(o==="click")return Oi(c)}function Kh(o,c){if(o==="input"||o==="change")return Oi(c)}function Yh(o,c){return o===c&&(o!==0||1/o===1/c)||o!==o&&c!==c}var ur=typeof Object.is=="function"?Object.is:Yh;function $s(o,c){if(ur(o,c))return!0;if(typeof o!="object"||o===null||typeof c!="object"||c===null)return!1;var m=Object.keys(o),y=Object.keys(c);if(m.length!==y.length)return!1;for(y=0;y<m.length;y++){var C=m[y];if(!_e.call(c,C)||!ur(o[C],c[C]))return!1}return!0}function ic(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function ac(o,c){var m=ic(o);o=0;for(var y;m;){if(m.nodeType===3){if(y=o+m.textContent.length,o<=c&&y>=c)return{node:m,offset:c-o};o=y}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=ic(m)}}function oc(o,c){return o&&c?o===c?!0:o&&o.nodeType===3?!1:c&&c.nodeType===3?oc(o,c.parentNode):"contains"in o?o.contains(c):o.compareDocumentPosition?!!(o.compareDocumentPosition(c)&16):!1:!1}function lc(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var c=Re(o.document);c instanceof o.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)o=c.contentWindow;else break;c=Re(o.document)}return c}function Xa(o){var c=o&&o.nodeName&&o.nodeName.toLowerCase();return c&&(c==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||c==="textarea"||o.contentEditable==="true")}var Zh=Kr&&"documentMode"in document&&11>=document.documentMode,cs=null,Qa=null,Hs=null,Ja=!1;function cc(o,c,m){var y=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Ja||cs==null||cs!==Re(y)||(y=cs,"selectionStart"in y&&Xa(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anch
vendor: 77,522 bytes, line 49
49orNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Hs&&$s(Hs,y)||(Hs=y,y=wa(Qa,"onSelect"),0<y.length&&(c=new Ii("onSelect","select",null,c,m),o.push({event:c,listeners:y}),c.target=cs)))}function Wn(o,c){var m={};return m[o.toLowerCase()]=c.toLowerCase(),m["Webkit"+o]="webkit"+c,m["Moz"+o]="moz"+c,m}var us={animationend:Wn("Animation","AnimationEnd"),animationiteration:Wn("Animation","AnimationIteration"),animationstart:Wn("Animation","AnimationStart"),transitionrun:Wn("Transition","TransitionRun"),transitionstart:Wn("Transition","TransitionStart"),transitioncancel:Wn("Transition","TransitionCancel"),transitionend:Wn("Transition","TransitionEnd")},eo={},uc={};Kr&&(uc=document.createElement("div").style,"AnimationEvent"in window||(delete us.animationend.animation,delete us.animationiteration.animation,delete us.animationstart.animation),"TransitionEvent"in window||delete us.transitionend.transition);function Un(o){if(eo[o])return eo[o];if(!us[o])return o;var c=us[o],m;for(m in c)if(c.hasOwnProperty(m)&&m in uc)return eo[o]=c[m];return o}var dc=Un("animationend"),hc=Un("animationiteration"),fc=Un("animationstart"),Xh=Un("transitionrun"),Qh=Un("transitionstart"),Jh=Un("transitioncancel"),pc=Un("transitionend"),mc=new Map,to="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(" ");to.push("scrollEnd");function Tr(o,c){mc.set(o,c),rr(c,[o])}var xc=new WeakMap;function br(o,c){if(typeof o=="object"&&o!==null){var m=xc.get(o);return m!==void 0?m:(c={value:o,source:c,stack:Gr(c)},xc.set(o,c),c)}return{value:o,source:c,stack:Gr(c)}}var vr=[],ds=0,ro=0;function Bi(){for(var o=ds,c=ro=ds=0;c<o;){var m=vr[c];vr[c++]=null;var y=vr[c];vr[c++]=null;var C=vr[c];vr[c++]=null;var I=vr[c];if(vr[c++]=null,y!==null&&C!==null){var J=y.pending;J===null?C.next=C:(C.next=J.next,J.next=C),y.pending=C}I!==0&&gc(m,C,I)}}function Fi(o,c,m,y){vr[ds++]=o,vr[ds++]=c,vr[ds++]=m,vr[ds++]=y,ro|=y,o.lanes|=y,o=o.alternate,o!==null&&(o.lanes|=y)}function no(o,c,m,y){return Fi(o,c,m,y),zi(o)}function hs(o,c){return Fi(o,null,null,c),zi(o)}function gc(o,c,m){o.lanes|=m;var y=o.alternate;y!==null&&(y.lanes|=m);for(var C=!1,I=o.return;I!==null;)I.childLanes|=m,y=I.alternate,y!==null&&(y.childLanes|=m),I.tag===22&&(o=I.stateNode,o===null||o._visibility&1||(C=!0)),o=I,I=I.return;return o.tag===3?(I=o.stateNode,C&&c!==null&&(C=31-Y(m),o=I.hiddenUpdates,y=o[C],y===null?o[C]=[c]:y.push(c),c.lane=m|536870912),I):null}function zi(o){if(50<xi)throw xi=0,ul=null,Error(n(185));for(var c=o.return;c!==null;)o=c,c=o.return;return o.tag===3?o.stateNode:null}var fs={};function ef(o,c,m,y){this.tag=o,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(o,c,m,y){return new ef(o,c,m,y)}function so(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Yr(o,c){var m=o.alternate;return m===null?(m=dr(o.tag,c,o.key,o.mode),m.elementType=o.elementType,m.type=o.type,m.stateNode=o.stateNode,m.alternate=o,o.alternate=m):(m.pendingProps=c,m.type=o.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=o.flags&65011712,m.childLanes=o.childLanes,m.lanes=o.lanes,m.child=o.child,m.memoizedProps=o.memoizedProps,m.memoizedState=o.memoizedState,m.updateQueue=o.updateQueue,c=o.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=o.sibling,m.index=o.index,m.ref=o.ref,m.refCleanup=o.refCleanup,m}function yc(o,c){o.flags&=65011714;var m=o.alternate;return m===null?(o.childLanes=0,o.lanes=c,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=m.childLanes,o.lanes=m.lanes,o.child=m.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=m.memoizedProps,o.memoizedState=m.memoizedState,o.updateQueue=m.updateQueue,o.type=m.type,c=m.dependencies,o.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),o}function Vi(o,c,m,y,C,I){var J=0;if(y=o,typeof o=="function")so(o)&&(J=1);else if(typeof o=="string")J=np(o,m,G.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case B:return o=dr(31,m,c,C),o.elementType=B,o.lanes=I,o;case b:return $n(m.children,C,I,c);case v:J=8,C|=24;break;case E:return o=dr(12,m,c,C|2),o.elementType=E,o.lanes=I,o;case L:return o=dr(13,m,c,C),o.elementType=L,o.lanes=I,o;case V:return o=dr(19,m,c,C),o.elementType=V,o.lanes=I,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:case T:J=10;break e;case R:J=9;break e;case z:J=11;break e;case $:J=14;break e;case U:J=16,y=null;break e}J=29,m=Error(n(130,o===null?"null":typeof o,"")),y=null}return c=dr(J,m,c,C),c.elementType=o,c.type=y,c.lanes=I,c}function $n(o,c,m,y){return o=dr(7,o,y,c),o.lanes=m,o}function io(o,c,m){return o=dr(6,o,null,c),o.lanes=m,o}function ao(o,c,m){return c=dr(4,o.children!==null?o.children:[],o.key,c),c.lanes=m,c.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},c}var ps=[],ms=0,Wi=null,Ui=0,Er=[],wr=0,Hn=null,Zr=1,Xr="";function qn(o,c){ps[ms++]=Ui,ps[ms++]=Wi,Wi=o,Ui=c}function bc(o,c,m){Er[wr++]=Zr,Er[wr++]=Xr,Er[wr++]=Hn,Hn=o;var y=Zr;o=Xr;var C=32-Y(y)-1;y&=~(1<<C),m+=1;var I=32-Y(c)+C;if(30<I){var J=C-C%5;I=(y&(1<<J)-1).toString(32),y>>=J,C-=J,Zr=1<<32-Y(c)+C|m<<C|y,Xr=I+o}else Zr=1<<I|m<<C|y,Xr=o}function oo(o){o.return!==null&&(qn(o,1),bc(o,1,0))}function lo(o){for(;o===Wi;)Wi=ps[--ms],ps[ms]=null,Ui=ps[--ms],ps[ms]=null;for(;o===Hn;)Hn=Er[--wr],Er[wr]=null,Xr=Er[--wr],Er[wr]=null,Zr=Er[--wr],Er[wr]=null}var tr=null,Ft=null,yt=!1,Gn=null,Ir=!1,co=Error(n(519));function Kn(o){var c=Error(n(418,""));throw Ks(br(c,o)),co}function vc(o){var c=o.stateNode,m=o.type,y=o.memoizedProps;switch(c[Qe]=o,c[Ot]=y,m){case"dialog":it("cancel",c),it("close",c);break;case"iframe":case"object":case"embed":it("load",c);break;case"video":case"audio":for(m=0;m<yi.length;m++)it(yi[m],c);break;case"source":it("error",c);break;case"img":case"image":case"link":it("error",c),it("load",c);break;case"details":it("toggle",c);break;case"input":it("invalid",c),ke(c,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0),ss(c);break;case"select":it("invalid",c);break;case"textarea":it("invalid",c),rt(c,y.value,y.defaultValue,y.children),ss(c)}m=y.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||c.textContent===""+m||y.suppressHydrationWarning===!0||Bd(c.textContent,m)?(y.popover!=null&&(it("beforetoggle",c),it("toggle",c)),y.onScroll!=null&&it("scroll",c),y.onScrollEnd!=null&&it("scrollend",c),y.onClick!=null&&(c.onclick=Sa),c=!0):c=!1,c||Kn(o)}function Ec(o){for(tr=o.return;tr;)switch(tr.tag){case 5:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:tr=tr.return}}function qs(o){if(o!==tr)return!1;if(!yt)return Ec(o),yt=!0,!1;var c=o.tag,m;if((m=c!==3&&c!==27)&&((m=c===5)&&(m=o.type,m=!(m!=="form"&&m!=="button")||Cl(o.type,o.memoizedProps)),m=!m),m&&Ft&&Kn(o),Ec(o),c===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,c=0;o;){if(o.nodeType===8)if(m=o.data,m==="/$"){if(c===0){Ft=kr(o.nextSibling);break e}c--}else m!=="$"&&m!=="$!"&&m!=="$?"||c++;o=o.nextSibling}Ft=null}}else c===27?(c=Ft,Nn(o.type)?(o=kl,kl=null,Ft=o):Ft=c):Ft=tr?kr(o.stateNode.nextSibling):null;return!0}function Gs(){Ft=tr=null,yt=!1}function wc(){var o=Gn;return o!==null&&(or===null?or=o:or.push.apply(or,o),Gn=null),o}function Ks(o){Gn===null?Gn=[o]:Gn.push(o)}var uo=D(null),Yn=null,Qr=null;function xn(o,c,m){M(uo,c._currentValue),c._currentValue=m}function Jr(o){o._currentValue=uo.current,_(uo)}function ho(o,c,m){for(;o!==null;){var y=o.alternate;if((o.childLanes&c)!==c?(o.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),o===m)break;o=o.return}}function fo(o,c,m,y){var C=o.child;for(C!==null&&(C.return=o);C!==null;){var I=C.dependencies;if(I!==null){var J=C.child;I=I.firstContext;e:for(;I!==null;){var re=I;I=C;for(var ie=0;ie<c.length;ie++)if(re.context===c[ie]){I.lanes|=m,re=I.alternate,re!==null&&(re.lanes|=m),ho(I.return,m,o),y||(J=null);break e}I=re.next}}else if(C.tag===18){if(J=C.return,J===null)throw Error(n(341));J.lanes|=m,I=J.alternate,I!==null&&(I.lanes|=m),ho(J,m,o),J=null}else J=C.child;if(J!==null)J.return=C;else for(J=C;J!==null;){if(J===o){J=null;break}if(C=J.sibling,C!==null){C.return=J.return,J=C;break}J=J.return}C=J}}function Ys(o,c,m,y){o=null;for(var C=c,I=!1;C!==null;){if(!I){if((C.flags&524288)!==0)I=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var J=C.alternate;if(J===null)throw Error(n(387));if(J=J.memoizedProps,J!==null){var re=C.type;ur(C.pendingProps.value,J.value)||(o!==null?o.push(re):o=[re])}}else if(C===ne.current){if(J=C.alternate,J===null)throw Error(n(387));J.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(o!==null?o.push(Ri):o=[Ri])}C=C.return}o!==null&&fo(c,o,m,y),c.flags|=262144}function $i(o){for(o=o.firstContext;o!==null;){if(!ur(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Zn(o){Yn=o,Qr=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Jt(o){return Sc(Yn,o)}function Hi(o,c){return Yn===null&&Zn(o),Sc(o,c)}function Sc(o,c){var m=c._currentValue;if(c={context:c,memoizedValue:m,next:null},Qr===null){if(o===null)throw Error(n(308));Qr=c,o.dependencies={lanes:0,firstContext:c},o.flags|=524288}else Qr=Qr.next=c;return m}var tf=typeof AbortController<"u"?AbortController:function(){var o=[],c=this.signal={aborted:!1,addEventListener:function(m,y){o.push(y)}};this.abort=function(){c.aborted=!0,o.forEach(function(m){return m()})}},rf=e.unstable_scheduleCallback,nf=e.unstable_NormalPriority,Ht={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function po(){return{controller:new tf,data:new Map,refCount:0}}function Zs(o){o.refCount--,o.refCount===0&&rf(nf,function(){o.controller.abort()})}var Xs=null,mo=0,xs=0,gs=null;function sf(o,c){if(Xs===null){var m=Xs=[];mo=0,xs=gl(),gs={status:"pending",value:void 0,then:function(y){m.push(y)}}}return mo++,c.then(Rc,Rc),c}function Rc(){if(--mo===0&&Xs!==null){gs!==null&&(gs.status="fulfilled");var o=Xs;Xs=null,xs=0,gs=null;for(var c=0;c<o.length;c++)(0,o[c])()}}function af(o,c){var m=[],y={status:"pending",value:null,reason:null,then:function(C){m.push(C)}};return o.then(function(){y.status="fulfilled",y.value=c;for(var C=0;C<m.length;C++)(0,m[C])(c)},function(C){for(y.status="rejected",y.reason=C,C=0;C<m.length;C++)(0,m[C])(void 0)}),y}var jc=F.S;F.S=function(o,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&sf(o,c),jc!==null&&jc(o,c)};var Xn=D(null);function xo(){var o=Xn.current;return o!==null?o:Lt.pooledCache}function qi(o,c){c===null?M(Xn,Xn.current):M(Xn,c.pool)}function Cc(){var o=xo();return o===null?null:{parent:Ht._currentValue,pool:o}}var Qs=Error(n(460)),_c=Error(n(474)),Gi=Error(n(542)),go={then:function(){}};function Tc(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Ki(){}function Ac(o,c,m){switch(m=o[m],m===void 0?o.push(c):m!==c&&(c.then(Ki,Ki),c=m),c.status){case"fulfilled":return c.value;case"rejected":throw o=c.reason,Mc(o),o;default:if(typeof c.status=="string")c.then(Ki,Ki);else{if(o=Lt,o!==null&&100<o.shellSuspendCounter)throw Error(n(482));o=c,o.status="pending",o.then(function(y){if(c.status==="pending"){var C=c;C.status="fulfilled",C.value=y}},function(y){if(c.status==="pending"){var C=c;C.status="rejected",C.reason=y}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw o=c.reason,Mc(o),o}throw Js=c,Qs}}var Js=null;function kc(){if(Js===null)throw Error(n(459));var o=Js;return Js=null,o}function Mc(o){if(o===Qs||o===Gi)throw Error(n(483))}var gn=!1;function yo(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(o,c){o=o.updateQueue,c.updateQueue===o&&(c.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function yn(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function vn(o,c,m){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,(wt&2)!==0){var C=y.pending;return C===null?c.next=c:(c.next=C.next,C.next=c),y.pending=c,c=zi(o),gc(o,null,m),c}return Fi(o,y,c,m),zi(o)}function ei(o,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var y=c.lanes;y&=o.pendingLanes,m|=y,c.lanes=m,_t(o,m)}}function vo(o,c){var m=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,m===y)){var C=null,I=null;if(m=m.firstBaseUpdate,m!==null){do{var J={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};I===null?C=I=J:I=I.next=J,m=m.next}while(m!==null);I===null?C=I=c:I=I.next=c}else C=I=c;m={baseState:y.baseState,firstBaseUpdate:C,lastBaseUpdate:I,shared:y.shared,callbacks:y.callbacks},o.updateQueue=m;return}o=m.lastBaseUpdate,o===null?m.firstBaseUpdate=c:o.next=c,m.lastBaseUpdate=c}var Eo=!1;function ti(){if(Eo){var o=gs;if(o!==null)throw o}}function ri(o,c,m,y){Eo=!1;var C=o.updateQueue;gn=!1;var I=C.firstBaseUpdate,J=C.lastBaseUpdate,re=C.shared.pending;if(re!==null){C.shared.pending=null;var ie=re,me=ie.next;ie.next=null,J===null?I=me:J.next=me,J=ie;var be=o.alternate;be!==null&&(be=be.updateQueue,re=be.lastBaseUpdate,re!==J&&(re===null?be.firstBaseUpdate=me:re.next=me,be.lastBaseUpdate=ie))}if(I!==null){var we=C.baseState;J=0,be=me=ie=null,re=I;do{var xe=re.lane&-536870913,ge=xe!==re.lane;if(ge?(ut&xe)===xe:(y&xe)===xe){xe!==0&&xe===xs&&(Eo=!0),be!==null&&(be=be.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var Ge=o,$e=re;xe=c;var Ct=m;switch($e.tag){case 1:if(Ge=$e.payload,typeof Ge=="function"){we=Ge.call(Ct,we,xe);break e}we=Ge;break e;case 3:Ge.flags=Ge.flags&-65537|128;case 0:if(Ge=$e.payload,xe=typeof Ge=="function"?Ge.call(Ct,we,xe):Ge,xe==null)break e;we=h({},we,xe);break e;case 2:gn=!0}}xe=re.callback,xe!==null&&(o.flags|=64,ge&&(o.flags|=8192),ge=C.callbacks,ge===null?C.callbacks=[xe]:ge.push(xe))}else ge={lane:xe,tag:re.tag,payload:re.payload,callback:re.callback,next:null},be===null?(me=be=ge,ie=we):be=be.next=ge,J|=xe;if(re=re.next,re===null){if(re=C.shared.pending,re===null)break;ge=re,re=ge.next,ge.next=null,C.lastBaseUpdate=ge,C.shared.pending=null}}while(!0);be===null&&(ie=we),C.baseState=ie,C.firstBaseUpdate=me,C.lastBaseUpdate=be,I===null&&(C.shared.lanes=0),Tn|=J,o.lanes=J,o.memoizedState=we}}function Nc(o,c){if(typeof o!="function")throw Error(n(191,o));o.call(c)}function Pc(o,c){var m=o.callbacks;if(m!==null)for(o.callbacks=null,o=0;o<m.length;o++)Nc(m[o],c)}var ys=D(null),Yi=D(0);function Lc(o,c){o=ln,M(Yi,o),M(ys,c),ln=o|c.baseLanes}function wo(){M(Yi,ln),M(ys,ys.current)}function So(){ln=Yi.current,_(ys),_(Yi)}var En=0,tt=null,Rt=null,Ut=null,Zi=!1,bs=!1,Qn=!1,Xi=0,ni=0,vs=null,of=0;function Vt(){throw Error(n(321))}function Ro(o,c){if(c===null)return!1;for(var m=0;m<c.length&&m<o.length;m++)if(!ur(o[m],c[m]))return!1;return!0}function jo(o,c,m,y,C,I){return En=I,tt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,F.H=o===null||o.memoizedState===null?gu:yu,Qn=!1,I=m(y,C),Qn=!1,bs&&(I=Dc(c,m,y,C)),Ic(o),I}function Ic(o){F.H=na;var c=Rt!==null&&Rt.next!==null;if(En=0,Ut=Rt=tt=null,Zi=!1,ni=0,vs=null,c)throw Error(n(300));o===null||Gt||(o=o.dependencies,o!==null&&$i(o)&&(Gt=!0))}function Dc(o,c,m,y){tt=o;var C=0;do{if(bs&&(vs=null),ni=0,bs=!1,25<=C)throw Error(n(301));if(C+=1,Ut=Rt=null,o.updateQueue!=null){var I=o.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}F.H=pf,I=c(m,y)}while(bs);return I}function lf(){var o=F.H,c=o.useState()[0];return c=typeof c.then=="function"?si(c):c,o=o.useState()[0],(Rt!==null?Rt.memoizedState:null)!==o&&(tt.flags|=1024),c}function Co(){var o=Xi!==0;return Xi=0,o}function _o(o,c,m){c.updateQueue=o.updateQueue,c.flags&=-2053,o.lanes&=~m}function To(o){if(Zi){for(o=o.memoizedState;o!==null;){var c=o.queue;c!==null&&(c.pending=null),o=o.next}Zi=!1}En=0,Ut=Rt=tt=null,bs=!1,ni=Xi=0,vs=null}function ir(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?tt.memoizedState=Ut=o:Ut=Ut.next=o,Ut}function $t(){if(Rt===null){var o=tt.alternate;o=o!==null?o.memoizedState:null}else o=Rt.next;var c=Ut===null?tt.memoizedState:Ut.next;if(c!==null)Ut=c,Rt=o;else{if(o===null)throw tt.alternate===null?Error(n(467)):Error(n(310));Rt=o,o={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Ut===null?tt.memoizedState=Ut=o:Ut=Ut.next=o}return Ut}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(o){var c=ni;return ni+=1,vs===null&&(vs=[]),o=Ac(vs,o,c),c=tt,(Ut===null?c.memoizedState:Ut.next)===null&&(c=c.alternate,F.H=c===null||c.memoizedState===null?gu:yu),o}function Qi(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return si(o);if(o.$$typeof===T)return Jt(o)}throw Error(n(438,String(o)))}function ko(o){var c=null,m=tt.updateQueue;if(m!==null&&(c=m.memoCache),c==null){var y=tt.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(c={data:y.data.map(function(C){return C.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),m===null&&(m=Ao(),tt.updateQueue=m),m.memoCache=c,m=c.data[c.index],m===void 0)for(m=c.data[c.index]=Array(o),y=0;y<o;y++)m[y]=P;return c.index++,m}function en(o,c){return typeof c=="function"?c(o):c}function Ji(o){var c=$t();return Mo(c,Rt,o)}function Mo(o,c,m){var y=o.queue;if(y===null)throw Error(n(311));y.lastRenderedReducer=m;var C=o.baseQueue,I=y.pending;if(I!==null){if(C!==null){var J=C.next;C.next=I.next,I.next=J}c.baseQueue=C=I,y.pending=null}if(I=o.baseState,C===null)o.memoizedState=I;else{c=C.next;var re=J=null,ie=null,me=c,be=!1;do{var we=me.lane&-536870913;if(we!==me.lane?(ut&we)===we:(En&we)===we){var xe=me.revertLane;if(xe===0)ie!==null&&(ie=ie.next={lane:0,revertLane:0,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),we===xs&&(be=!0);else if((En&xe)===xe){me=me.next,xe===xs&&(be=!0);continue}else we={lane:0,revertLane:me.revertLane,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null},ie===null?(re=ie=we,J=I):ie=ie.next=we,tt.lanes|=xe,Tn|=xe;we=me.action,Qn&&m(I,we),I=me.hasEagerState?me.eagerState:m(I,we)}else xe={lane:we,revertLane:me.revertLane,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null},ie===null?(re=ie=xe,J=I):ie=ie.next=xe,tt.lanes|=we,Tn|=we;me=me.next}while(me!==null&&me!==c);if(ie===null?J=I:ie.next=re,!ur(I,o.memoizedState)&&(Gt=!0,be&&(m=gs,m!==null)))throw m;o.memoizedState=I,o.baseState=J,o.baseQueue=ie,y.lastRenderedState=I}return C===null&&(y.lanes=0),[o.memoizedState,y.dispatch]}function No(o){var c=$t(),m=c.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=o;var y=m.dispatch,C=m.pending,I=c.memoizedState;if(C!==null){m.pending=null;var J=C=C.next;do I=o(I,J.action),J=J.next;while(J!==C);ur(I,c.memoizedState)||(Gt=!0),c.memoizedState=I,c.baseQueue===null&&(c.baseState=I),m.lastRenderedState=I}return[I,y]}function Oc(o,c,m){var y=tt,C=$t(),I=yt;if(I){if(m===void 0)throw Error(n(407));m=m()}else m=c();var J=!ur((Rt||C).memoizedState,m);J&&(C.memoizedState=m,Gt=!0),C=C.queue;var re=zc.bind(null,y,C,o);if(ii(2048,8,re,[o]),C.getSnapshot!==c||J||Ut!==null&&Ut.memoizedState.tag&1){if(y.flags|=2048,Es(9,ea(),Fc.bind(null,y,C,m,c),null),Lt===null)throw Error(n(349));I||(En&124)!==0||Bc(y,c,m)}return m}function Bc(o,c,m){o.flags|=16384,o={getSnapshot:c,value:m},c=tt.updateQueue,c===null?(c=Ao(),tt.updateQueue=c,c.stores=[o]):(m=c.stores,m===null?c.stores=[o]:m.push(o))}function Fc(o,c,m,y){c.value=m,c.getSnapshot=y,Vc(c)&&Wc(o)}function zc(o,c,m){return m(function(){Vc(c)&&Wc(o)})}function Vc(o){var c=o.getSnapshot;o=o.value;try{var m=c();return!ur(o,m)}catch{return!0}}function Wc(o){var c=hs(o,2);c!==null&&xr(c,o,2)}function Po(o){var c=ir();if(typeof o=="function"){var m=o;if(o=m(),Qn){K(!0);try{m()}finally{K(!1)}}}return c.memoizedState=c.baseState=o,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:o},c}function Uc(o,c,m,y){return o.baseState=m,Mo(o,Rt,typeof y=="function"?y:en)}function cf(o,c,m,y,C){if(ra(o))throw Error(n(485));if(o=c.action,o!==null){var I={payload:C,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(J){I.listeners.push(J)}};F.T!==null?m(!0):I.isTransition=!1,y(I),m=c.pending,m===null?(I.next=c.pending=I,$c(c,I)):(I.next=m.next,c.pending=m.next=I)}}function $c(o,c){var m=c.action,y=c.payload,C=o.state;if(c.isTransition){var I=F.T,J={};F.T=J;try{var re=m(C,y),ie=F.S;ie!==null&&ie(J,re),Hc(o,c,re)}catch(me){Lo(o,c,me)}finally{F.T=I}}else try{I=m(C,y),Hc(o,c,I)}catch(me){Lo(o,c,me)}}function Hc(o,c,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(y){qc(o,c,y)},function(y){return Lo(o,c,y)}):qc(o,c,m)}function qc(o,c,m){c.status="fulfilled",c.value=m,Gc(c),o.state=m,c=o.pending,c!==null&&(m=c.next,m===c?o.pending=null:(m=m.next,c.next=m,$c(o,m)))}function Lo(o,c,m){var y=o.pending;if(o.pending=null,y!==null){y=y.next;do c.status="rejected",c.reason=m,Gc(c),c=c.next;while(c!==y)}o.action=null}function Gc(o){o=o.listeners;for(var c=0;c<o.length;c++)(0,o[c])()}function Kc(o,c){return c}function Yc(o,c){if(yt){var m=Lt.formState;if(m!==null){e:{var y=tt;if(yt){if(Ft){t:{for(var C=Ft,I=Ir;C.nodeType!==8;){if(!I){C=null;break t}if(C=kr(C.nextSibling),C===null){C=null;break t}}I=C.data,C=I==="F!"||I==="F"?C:null}if(C){Ft=kr(C.nextSibling),y=C.data==="F!";break e}}Kn(y)}y=!1}y&&(c=m[0])}}return m=ir(),m.memoizedState=m.baseState=c,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kc,lastRenderedState:c},m.queue=y,m=pu.bind(null,tt,y),y.dispatch=m,y=Po(!1),I=Fo.bind(null,tt,!1,y.queue),y=ir(),C={state:c,dispatch:null,action:o,pending:null},y.queue=C,m=cf.bind(null,tt,C,I,m),C.dispatch=m,y.memoizedState=o,[c,m,!1]}function Zc(o){var c=$t();return Xc(c,Rt,o)}function Xc(o,c,m){if(c=Mo(o,c,Kc)[0],o=Ji(en)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var y=si(c)}catch(J){throw J===Qs?Gi:J}else y=c;c=$t();var C=c.queue,I=C.dispatch;return m!==c.memoizedState&&(tt.flags|=2048,Es(9,ea(),uf.bind(null,C,m),null)),[y,I,o]}function uf(o,c){o.action=c}function Qc(o){var c=$t(),m=Rt;if(m!==null)return Xc(c,m,o);$t(),c=c.memoizedState,m=$t();var y=m.queue.dispatch;return m.memoizedState=o,[c,y,!1]}function Es(o,c,m,y){return o={tag:o,create:m,deps:y,inst:c,next:null},c=tt.updateQueue,c===null&&(c=Ao(),tt.updateQueue=c),m=c.lastEffect,m===null?c.lastEffect=o.next=o:(y=m.next,m.next=o,o.next=y,c.lastEffect=o),o}function ea(){return{destroy:void 0,resource:void 0}}function Jc(){return $t().memoizedState}function ta(o,c,m,y){var C=ir();y=y===void 0?null:y,tt.flags|=o,C.memoizedState=Es(1|c,ea(),m,y)}function ii(o,c,m,y){var C=$t();y=y===void 0?null:y;var I=C.memoizedState.inst;Rt!==null&&y!==null&&Ro(y,Rt.memoizedState.deps)?C.memoizedState=Es(c,I,m,y):(tt.flags|=o,C.memoizedState=Es(1|c,I,m,y))}function eu(o,c){ta(8390656,8,o,c)}function tu(o,c){ii(2048,8,o,c)}function ru(o,c){return ii(4,2,o,c)}function nu(o,c){return ii(4,4,o,c)}function su(o,c){if(typeof c=="function"){o=o();var m=c(o);return function(){typeof m=="function"?m():c(null)}}if(c!=null)return o=o(),c.current=o,function(){c.current=null}}function iu(o,c,m){m=m!=null?m.concat([o]):null,ii(4,4,su.bind(null,c,o),m)}function Io(){}function au(o,c){var m=$t();c=c===void 0?null:c;var y=m.memoizedState;return c!==null&&Ro(c,y[1])?y[0]:(m.memoizedState=[o,c],o)}function ou(o,c){var m=$t();c=c===void 0?null:c;var y=m.memoizedState;if(c!==null&&Ro(c,y[1]))return y[0];if(y=o(),Qn){K(!0);try{o()}finally{K(!1)}}return m.memoizedState=[y,c],y}function Do(o,c,m){return m===void 0||(En&1073741824)!==0?o.memoizedState=c:(o.memoizedState=m,o=dd(),tt.lanes|=o,Tn|=o,m)}function lu(o,c,m,y){return ur(m,c)?m:ys.current!==null?(o=Do(o,m,y),ur(o,c)||(Gt=!0),o):(En&42)===0?(Gt=!0,o.memoizedState=m):(o=dd(),tt.lanes|=o,Tn|=o,c)}function cu(o,c,m,y,C){var I=k.p;k.p=I!==0&&8>I?I:8;var J=F.T,re={};F.T=re,Fo(o,!1,c,m);try{var ie=C(),me=F.S;if(me!==null&&me(re,ie),ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var be=af(ie,y);ai(o,c,be,mr(o))}else ai(o,c,y,mr(o))}catch(we){ai(o,c,{then:function(){},status:"rejected",reason:we},mr())}finally{k.p=I,F.T=J}}function df(){}function Oo(o,c,m,y){if(o.tag!==5)throw Error(n(476));var C=uu(o).queue;cu(o,C,c,W,m===null?df:function(){return du(o),m(y)})}function uu(o){var c=o.memoizedState;if(c!==null)return c;c={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:W},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:m},next:null},o.memoizedState=c,o=o.alternate,o!==null&&(o.memoizedState=c),c}function du(o){var c=uu(o).next.queue;ai(o,c,{},mr())}function Bo(){return Jt(Ri)}function hu(){return $t().memoizedState}function fu(){return $t().memoizedState}function hf(o){for(var c=o.return;c!==null;){switch(c.tag){case 24:case 3:var m=mr();o=yn(m);var y=vn(c,o,m);y!==null&&(xr(y,c,m),ei(y,c,m)),c={cache:po()},o.payload=c;return}c=c.return}}function ff(o,c,m){var y=mr();m={lane:y,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null},ra(o)?mu(c,m):(m=no(o,c,m,y),m!==null&&(xr(m,o,y),xu(m,c,y)))}function pu(o,c,m){var y=mr();ai(o,c,m,y)}function ai(o,c,m,y){var C={lane:y,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(ra(o))mu(c,C);else{var I=o.alternate;if(o.lanes===0&&(I===null||I.lanes===0)&&(I=c.lastRenderedReducer,I!==null))try{var J=c.lastRenderedState,re=I(J,m);if(C.hasEagerState=!0,C.eagerState=re,ur(re,J))return Fi(o,c,C,0),Lt===null&&Bi(),!1}catch{}finally{}if(m=no(o,c,C,y),m!==null)return xr(m,o,y),xu(m,c,y),!0}return!1}function Fo(o,c,m,y){if(y={lane:2,revertLane:gl(),action:y,hasEagerState:!1,eagerState:null,next:null},ra(o)){if(c)throw Error(n(479))}else c=no(o,m,y,2),c!==null&&xr(c,o,2)}function ra(o){var c=o.alternate;return o===tt||c!==null&&c===tt}function mu(o,c){bs=Zi=!0;var m=o.pending;m===null?c.next=c:(c.next=m.next,m.next=c),o.pending=c}function xu(o,c,m){if((m&4194048)!==0){var y=c.lanes;y&=o.pendingLanes,m|=y,c.lanes=m,_t(o,m)}}var na={readContext:Jt,use:Qi,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt},gu={readContext:Jt,use:Qi,useCallback:function(o,c){return ir().memoizedState=[o,c===void 0?null:c],o},useContext:Jt,useEffect:eu,useImperativeHandle:function(o,c,m){m=m!=null?m.concat([o]):null,ta(4194308,4,su.bind(null,c,o),m)},useLayoutEffect:function(o,c){return ta(4194308,4,o,c)},useInsertionEffect:function(o,c){ta(4,2,o,c)},useMemo:function(o,c){var m=ir();c=c===void 0?null:c;var y=o();if(Qn){K(!0);try{o()}finally{K(!1)}}return m.memoizedState=[y,c],y},useReducer:function(o,c,m){var y=ir();if(m!==void 0){var C=m(c);if(Qn){K(!0);try{m(c)}finally{K(!1)}}}else C=c;return y.memoizedState=y.baseState=C,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:C},y.queue=o,o=o.dispatch=ff.bind(null,tt,o),[y.memoizedState,o]},useRef:function(o){var c=ir();return o={current:o},c.memoizedState=o},useState:function(o){o=Po(o);var c=o.queue,m=pu.bind(null,tt,c);return c.dispatch=m,[o.memoizedState,m]},useDebugValue:Io,useDeferredValue:function(o,c){var m=ir();return Do(m,o,c)},useTransition:function(){var o=Po(!1);return o=cu.bind(null,tt,o.queue,!0,!1),ir().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,c,m){var y=tt,C=ir();if(yt){if(m===void 0)throw Error(n(407));m=m()}else{if(m=c(),Lt===null)throw Error(n(349));(ut&124)!==0||Bc(y,c,m)}C.memoizedState=m;var I={value:m,getSnapshot:c};return C.queue=I,eu(zc.bind(null,y,I,o),[o]),y.flags|=2048,Es(9,ea(),Fc.bind(null,y,I,m,c),null),m},useId:function(){var o=ir(),c=Lt.identifierPrefix;if(yt){var m=Xr,y=Zr;m=(y&~(1<<32-Y(y)-1)).toString(32)+m,c="«"+c+"R"+m,m=Xi++,0<m&&(c+="H"+m.toString(32)),c+="»"}else m=of++,c="«"+c+"r"+m.toString(32)+"»";return o.memoizedState=c},useHostTransitionStatus:Bo,useFormState:Yc,useActionState:Yc,useOptimistic:function(o){var c=ir();c.memoizedState=c.baseState=o;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=m,c=Fo.bind(null,tt,!0,m),m.dispatch=c,[o,c]},useMemoCache:ko,useCacheRefresh:function(){return ir().memoizedState=hf.bind(null,tt)}},yu={readContext:Jt,use:Qi,useCallback:au,useContext:Jt,useEffect:tu,useImperativeHandle:iu,useInsertionEffect:ru,useLayoutEffect:nu,useMemo:ou,useReducer:Ji,useRef:Jc,useState:function(){return Ji(en)},useDebugValue:Io,useDeferredValue:function(o,c){var m=$t();return lu(m,Rt.memoizedState,o,c)},useTransition:function(){var o=Ji(en)[0],c=$t().memoizedState;return[typeof o=="boolean"?o:si(o),c]},useSyncExternalStore:Oc,useId:hu,useHostTransitionStatus:Bo,useFormState:Zc,useActionState:Zc,useOptimistic:function(o,c){var m=$t();return Uc(m,Rt,o,c)},useMemoCache:ko,useCacheRefresh:fu},pf={readContext:Jt,use:Qi,useCallback:au,useContext:Jt,useEffect:tu,useImperativeHandle:iu,useInsertionEffect:ru,useLayoutEffect:nu,useMemo:ou,useReducer:No,useRef:Jc,useState:function(){return No(en)},useDebugValue:Io,useDeferredValue:function(o,c){var m=$t();return Rt===null?Do(m,o,c):lu(m,Rt.memoizedState,o,c)},useTransition:function(){var o=No(en)[0],c=$t().memoizedState;return[typeof o=="boolean"?o:si(o),c]},useSyncExternalStore:Oc,useId:hu,useHostTransitionStatus:Bo,useFormState:Qc,useActionState:Qc,useOptimistic:function(o,c){var m=$t();return Rt!==null?Uc(m,Rt,o,c):(m.baseState=o,[o,m.queue.dispatch])},useMemoCache:ko,useCacheRefresh:fu},ws=null,oi=0;function sa(o){var c=oi;return oi+=1,ws===null&&(ws=[]),Ac(ws,o,c)}function li(o,c){c=c.props.ref,o.ref=c!==void 0?c:null}function ia(o,c){throw c.$$typeof===x?Error(n(525)):(o=Object.prototype.toString.call(c),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":o)))}function bu(o){var c=o._init;return c(o._payload)}function vu(o){function c(ue,oe){if(o){var pe=ue.deletions;pe===null?(ue.deletions=[oe],ue.flags|=16):pe.push(oe)}}function m(ue,oe){if(!o)return null;for(;oe!==null;)c(ue,oe),oe=oe.sibling;return null}function y(ue){for(var oe=new Map;ue!==null;)ue.key!==null?oe.set(ue.key,ue):oe.set(ue.index,ue),ue=ue.sibling;return oe}function C(ue,oe){return ue=Yr(ue,oe),ue.index=0,ue.sibling=null,ue}function I(ue,oe,pe){return ue.index=pe,o?(pe=ue.alternate,pe!==null?(pe=pe.index,pe<oe?(ue.flags|=67108866,oe):pe):(ue.flags|=67108866,oe)):(ue.flags|=1048576,oe)}function J(ue){return o&&ue.alternate===null&&(ue.flags|=67108866),ue}function re(ue,oe,pe,Ee){return oe===null||oe.tag!==6?(oe=io(pe,ue.mode,Ee),oe.return=ue,oe):(oe=C(oe,pe),oe.return=ue,oe)}function ie(ue,oe,pe,Ee){var Oe=pe.type;return Oe===b?be(ue,oe,pe.props.children,Ee,pe.key):oe!==null&&(oe.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===U&&bu(Oe)===oe.type)?(oe=C(oe,pe.props),li(oe,pe),oe.return=ue,oe):(oe=Vi(pe.type,pe.key,pe.props,null,ue.mode,Ee),li(oe,pe),oe.return=ue,oe)}function me(ue,oe,pe,Ee){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==pe.containerInfo||oe.stateNode.implementation!==pe.implementation?(oe=ao(pe,ue.mode,Ee),oe.return=ue,oe):(oe=C(oe,pe.children||[]),oe.return=ue,oe)}function be(ue,oe,pe,Ee,Oe){return oe===null||oe.tag!==7?(oe=$n(pe,ue.mode,Ee,Oe),oe.return=ue,oe):(oe=C(oe,pe),oe.return=ue,oe)}function we(ue,oe,pe){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return oe=io(""+oe,ue.mode,pe),oe.return=ue,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case w:return pe=Vi(oe.type,oe.key,oe.props,null,ue.mode,pe),li(pe,oe),pe.return=ue,pe;case g:return oe=ao(oe,ue.mode,pe),oe.return=ue,oe;case U:var Ee=oe._init;return oe=Ee(oe._payload),we(ue,oe,pe)}if(N(oe)||Z(oe))return oe=$n(oe,ue.mode,pe,null),oe.return=ue,oe;if(typeof oe.then=="function")return we(ue,sa(oe),pe);if(oe.$$typeof===T)return we(ue,Hi(ue,oe),pe);ia(ue,oe)}return null}function xe(ue,oe,pe,Ee){var Oe=oe!==null?oe.key:null;if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return Oe!==null?null:re(ue,oe,""+pe,Ee);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case w:return pe.key===Oe?ie(ue,oe,pe,Ee):null;case g:return pe.key===Oe?me(ue,oe,pe,Ee):null;case U:return Oe=pe._init,pe=Oe(pe._payload),xe(ue,oe,pe,Ee)}if(N(pe)||Z(pe))return Oe!==null?null:be(ue,oe,pe,Ee,null);if(typeof pe.then=="function")return xe(ue,oe,sa(pe),Ee);if(pe.$$typeof===T)return xe(ue,oe,Hi(ue,pe),Ee);ia(ue,pe)}return null}function ge(ue,oe,pe,Ee,Oe){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return ue=ue.get(pe)||null,re(oe,ue,""+Ee,Oe);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case w:return ue=ue.get(Ee.key===null?pe:Ee.key)||null,ie(oe,ue,Ee,Oe);case g:return ue=ue.get(Ee.key===null?pe:Ee.key)||null,me(oe,ue,Ee,Oe);case U:var nt=Ee._init;return Ee=nt(Ee._payload),ge(ue,oe,pe,Ee,Oe)}if(N(Ee)||Z(Ee))return ue=ue.get(pe)||null,be(oe,ue,Ee,Oe,null);if(typeof Ee.then=="function")return ge(ue,oe,pe,sa(Ee),Oe);if(Ee.$$typeof===T)return ge(ue,oe,pe,Hi(oe,Ee),Oe);ia(oe,Ee)}return null}function Ge(ue,oe,pe,Ee){for(var Oe=null,nt=null,We=oe,He=oe=0,Yt=null;We!==null&&He<pe.length;He++){We.index>He?(Yt=We,We=null):Yt=We.sibling;var pt=xe(ue,We,pe[He],Ee);if(pt===null){We===null&&(We=Yt);break}o&&We&&pt.alternate===null&&c(ue,We),oe=I(pt,oe,He),nt===null?Oe=pt:nt.sibling=pt,nt=pt,We=Yt}if(He===pe.length)return m(ue,We),yt&&qn(ue,He),Oe;if(We===null){for(;He<pe.length;He++)We=we(ue,pe[He],Ee),We!==null&&(oe=I(We,oe,He),nt===null?Oe=We:nt.sibling=We,nt=We);return yt&&qn(ue,He),Oe}for(We=y(We);He<pe.length;He++)Yt=ge(We,ue,He,pe[He],Ee),Yt!==null&&(o&&Yt.alternate!==null&&We.delete(Yt.key===null?He:Yt.key),oe=I(Yt,oe,He),nt===null?Oe=Yt:nt.sibling=Yt,nt=Yt);return o&&We.forEach(function(On){return c(ue,On)}),yt&&qn(ue,He),Oe}function $e(ue,oe,pe,Ee){if(pe==null)throw Error(n(151));for(var Oe=null,nt=null,We=oe,He=oe=0,Yt=null,pt=pe.next();We!==null&&!pt.done;He++,pt=pe.next()){We.index>He?(Yt=We,We=null):Yt=We.sibling;var On=xe(ue,We,pt.value,Ee);if(On===null){We===null&&(We=Yt);break}o&&We&&On.alternate===null&&c(ue,We),oe=I(On,oe,He),nt===null?Oe=On:nt.sibling=On,nt=On,We=Yt}if(pt.done)return m(ue,We),yt&&qn(ue,He),Oe;if(We===null){for(;!pt.done;He++,pt=pe.next())pt=we(ue,pt.value,Ee),pt!==null&&(oe=I(pt,oe,He),nt===null?Oe=pt:nt.sibling=pt,nt=pt);return yt&&qn(ue,He),Oe}for(We=y(We);!pt.done;He++,pt=pe.next())pt=ge(We,ue,He,pt.value,Ee),pt!==null&&(o&&pt.alternate!==null&&We.delete(pt.key===null?He:pt.key),oe=I(pt,oe,He),nt===null?Oe=pt:nt.sibling=pt,nt=pt);return o&&We.forEach(function(mp){return c(ue,mp)}),yt&&qn(ue,He),Oe}function Ct(ue,oe,pe,Ee){if(typeof pe=="object"&&pe!==null&&pe.type===b&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case w:e:{for(var Oe=pe.key;oe!==null;){if(oe.key===Oe){if(Oe=pe.type,Oe===b){if(oe.tag===7){m(ue,oe.sibling),Ee=C(oe,pe.props.children),Ee.return=ue,ue=Ee;break e}}else if(oe.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===U&&bu(Oe)===oe.type){m(ue,oe.sibling),Ee=C(oe,pe.props),li(Ee,pe),Ee.return=ue,ue=Ee;break e}m(ue,oe);break}else c(ue,oe);oe=oe.sibling}pe.type===b?(Ee=$n(pe.props.children,ue.mode,Ee,pe.key),Ee.return=ue,ue=Ee):(Ee=Vi(pe.type,pe.key,pe.props,null,ue.mode,Ee),li(Ee,pe),Ee.return=ue,ue=Ee)}return J(ue);case g:e:{for(Oe=pe.key;oe!==null;){if(oe.key===Oe)if(oe.tag===4&&oe.stateNode.containerInfo===pe.containerInfo&&oe.stateNode.implementation===pe.implementation){m(ue,oe.sibling),Ee=C(oe,pe.children||[]),Ee.return=ue,ue=Ee;break e}else{m(ue,oe);break}else c(ue,oe);oe=oe.sibling}Ee=ao(pe,ue.mode,Ee),Ee.return=ue,ue=Ee}return J(ue);case U:return Oe=pe._init,pe=Oe(pe._payload),Ct(ue,oe,pe,Ee)}if(N(pe))return Ge(ue,oe,pe,Ee);if(Z(pe)){if(Oe=Z(pe),typeof Oe!="function")throw Error(n(150));return pe=Oe.call(pe),$e(ue,oe,pe,Ee)}if(typeof pe.then=="function")return Ct(ue,oe,sa(pe),Ee);if(pe.$$typeof===T)return Ct(ue,oe,Hi(ue,pe),Ee);ia(ue,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint"?(pe=""+pe,oe!==null&&oe.tag===6?(m(ue,oe.sibling),Ee=C(oe,pe),Ee.return=ue,ue=Ee):(m(ue,oe),Ee=io(pe,ue.mode,Ee),Ee.return=ue,ue=Ee),J(ue)):m(ue,oe)}return function(ue,oe,pe,Ee){try{oi=0;var Oe=Ct(ue,oe,pe,Ee);return ws=null,Oe}catch(We){if(We===Qs||We===Gi)throw We;var nt=dr(29,We,null,ue.mode);return nt.lanes=Ee,nt.return=ue,nt}finally{}}}var Ss=vu(!0),Eu=vu(!1),Sr=D(null),Dr=null;function wn(o){var c=o.alternate;M(qt,qt.current&1),M(Sr,o),Dr===null&&(c===null||ys.current!==null||c.memoizedState!==null)&&(Dr=o)}function wu(o){if(o.tag===22){if(M(qt,qt.current),M(Sr,o),Dr===null){var c=o.alternate;c!==null&&c.memoizedState!==null&&(Dr=o)}}else Sn()}function Sn(){M(qt,qt.current),M(Sr,Sr.current)}function tn(o){_(Sr),Dr===o&&(Dr=null),_(qt)}var qt=D(0);function aa(o){for(var c=o;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||Al(m)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function zo(o,c,m,y){c=o.memoizedState,m=m(y,c),m=m==null?c:h({},c,m),o.memoizedState=m,o.lanes===0&&(o.updateQueue.baseState=m)}var Vo={enqueueSetState:function(o,c,m){o=o._reactInternals;var y=mr(),C=yn(y);C.payload=c,m!=null&&(C.callback=m),c=vn(o,C,y),c!==null&&(xr(c,o,y),ei(c,o,y))},enqueueReplaceState:function(o,c,m){o=o._reactInternals;var y=mr(),C=yn(y);C.tag=1,C.payload=c,m!=null&&(C.callback=m),c=vn(o,C,y),c!==null&&(xr(c,o,y),ei(c,o,y))},enqueueForceUpdate:function(o,c){o=o._reactInternals;var m=mr(),y=yn(m);y.tag=2,c!=null&&(y.callback=c),c=vn(o,y,m),c!==null&&(xr(c,o,m),ei(c,o,m))}};function Su(o,c,m,y,C,I,J){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,I,J):c.prototype&&c.prototype.isPureReactComponent?!$s(m,y)||!$s(C,I):!0}function Ru(o,c,m,y){o=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,y),c.state!==o&&Vo.enqueueReplaceState(c,c.state,null)}function Jn(o,c){var m=c;if("ref"in c){m={};for(var y in c)y!=="ref"&&(m[y]=c[y])}if(o=o.defaultProps){m===c&&(m=h({},m));for(var C in o)m[C]===void 0&&(m[C]=o[C])}return m}var oa=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function ju(o){oa(o)}function Cu(o){console.error(o)}function _u(o){oa(o)}function la(o,c){try{var m=o.onUncaughtError;m(c.value,{componentStack:c.stack})}catch(y){setTimeout(function(){throw y})}}function Tu(o,c,m){try{var y=o.onCaughtError;y(m.value,{componentStack:m.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function Wo(o,c,m){return m=yn(m),m.tag=3,m.payload={element:null},m.callback=function(){la(o,c)},m}function Au(o){return o=yn(o),o.tag=3,o}function ku(o,c,m,y){var C=m.type.getDerivedStateFromError;if(typeof C=="function"){var I=y.value;o.payload=function(){return C(I)},o.callback=function(){Tu(c,m,y)}}var J=m.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(o.callback=function(){Tu(c,m,y),typeof C!="function"&&(An===null?An=new Set([this]):An.add(this));var re=y.stack;this.componentDidCatch(y.value,{componentStack:re!==null?re:""})})}function mf(o,c,m,y,C){if(m.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(c=m.alternate,c!==null&&Ys(c,m,C,!0),m=Sr.current,m!==null){switch(m.tag){case 13:return Dr===null?hl():m.alternate===null&&zt===0&&(zt=3),m.flags&=-257,m.flags|=65536,m.lanes=C,y===go?m.flags|=16384:(c=m.updateQueue,c===null?m.updateQueue=new Set([y]):c.add(y),pl(o,y,C)),!1;case 22:return m.flags|=65536,y===go?m.flags|=16384:(c=m.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([y])},m.updateQueue=c):(m=c.retryQueue,m===null?c.retryQueue=new Set([y]):m.add(y)),pl(o,y,C)),!1}throw Error(n(435,m.tag))}return pl(o,y,C),hl(),!1}if(yt)return c=Sr.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=C,y!==co&&(o=Error(n(422),{cause:y}),Ks(br(o,m)))):(y!==co&&(c=Error(n(423),{cause:y}),Ks(br(c,m))),o=o.current.alternate,o.flags|=65536,C&=-C,o.lanes|=C,y=br(y,m),C=Wo(o.stateNode,y,C),vo(o,C),zt!==4&&(zt=2)),!1;var I=Error(n(520),{cause:y});if(I=br(I,m),mi===null?mi=[I]:mi.push(I),zt!==4&&(zt=2),c===null)return!0;y=br(y,m),m=c;do{switch(m.tag){case 3:return m.flags|=65536,o=C&-C,m.lanes|=o,o=Wo(m.stateNode,y,o),vo(m,o),!1;case 1:if(c=m.type,I=m.stateNode,(m.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(An===null||!An.has(I))))return m.flags|=65536,C&=-C,m.lanes|=C,C=Au(C),ku(C,o,m,y),vo(m,C),!1}m=m.return}while(m!==null);return!1}var Mu=Error(n(461)),Gt=!1;function Zt(o,c,m,y){c.child=o===null?Eu(c,null,m,y):Ss(c,o.child,m,y)}function Nu(o,c,m,y,C){m=m.render;var I=c.ref;if("ref"in y){var J={};for(var re in y)re!=="ref"&&(J[re]=y[re])}else J=y;return Zn(c),y=jo(o,c,m,J,I,C),re=Co(),o!==null&&!Gt?(_o(o,c,C),rn(o,c,C)):(yt&&re&&oo(c),c.flags|=1,Zt(o,c,y,C),c.child)}function Pu(o,c,m,y,C){if(o===null){var I=m.type;return typeof I=="function"&&!so(I)&&I.defaultProps===void 0&&m.compare===null?(c.tag=15,c.type=I,Lu(o,c,I,y,C)):(o=Vi(m.type,null,y,c,c.mode,C),o.ref=c.ref,o.return=c,c.child=o)}if(I=o.child,!Zo(o,C)){var J=I.memoizedProps;if(m=m.compare,m=m!==null?m:$s,m(J,y)&&o.ref===c.ref)return rn(o,c,C)}return c.flags|=1,o=Yr(I,y),o.ref=c.ref,o.return=c,c.child=o}function Lu(o,c,m,y,C){if(o!==null){var I=o.memoizedProps;if($s(I,y)&&o.ref===c.ref)if(Gt=!1,c.pendingProps=y=I,Zo(o,C))(o.flags&131072)!==0&&(Gt=!0);else return c.lanes=o.lanes,rn(o,c,C)}return Uo(o,c,m,y,C)}function Iu(o,c,m){var y=c.pendingProps,C=y.children,I=o!==null?o.memoizedState:null;if(y.mode==="hidden"){if((c.flags&128)!==0){if(y=I!==null?I.baseLanes|m:m,o!==null){for(C=c.child=o.child,I=0;C!==null;)I=I|C.lanes|C.childLanes,C=C.sibling;c.childLanes=I&~y}else c.childLanes=0,c.child=null;return Du(o,c,y,m)}if((m&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},o!==null&&qi(c,I!==null?I.cachePool:null),I!==null?Lc(c,I):wo(),wu(c);else return c.lanes=c.childLanes=536870912,Du(o,c,I!==null?I.baseLanes|m:m,m)}else I!==null?(qi(c,I.cachePool),Lc(c,I),Sn(),c.memoizedState=null):(o!==null&&qi(c,null),wo(),Sn());return Zt(o,c,C,m),c.child}function Du(o,c,m,y){var C=xo();return C=C===null?null:{parent:Ht._currentValue,pool:C},c.memoizedState={baseLanes:m,cachePool:C},o!==null&&qi(c,null),wo(),wu(c),o!==null&&Ys(o,c,y,!0),null}function ca(o,c){var m=c.ref;if(m===null)o!==null&&o.ref!==null&&(c.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(n(284));(o===null||o.ref!==m)&&(c.flags|=4194816)}}function Uo(o,c,m,y,C){return Zn(c),m=jo(o,c,m,y,void 0,C),y=Co(),o!==null&&!Gt?(_o(o,c,C),rn(o,c,C)):(yt&&y&&oo(c),c.flags|=1,Zt(o,c,m,C),c.child)}function Ou(o,c,m,y,C,I){return Zn(c),c.updateQueue=null,m=Dc(c,y,m,C),Ic(o),y=Co(),o!==null&&!Gt?(_o(o,c,I),rn(o,c,I)):(yt&&y&&oo(c),c.flags|=1,Zt(o,c,m,I),c.child)}function Bu(o,c,m,y,C){if(Zn(c),c.stateNode===null){var I=fs,J=m.contextType;typeof J=="object"&&J!==null&&(I=Jt(J)),I=new m(y,I),c.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=Vo,c.stateNode=I,I._reactInternals=c,I=c.stateNode,I.props=y,I.state=c.memoizedState,I.refs={},yo(c),J=m.contextType,I.context=typeof J=="object"&&J!==null?Jt(J):fs,I.state=c.memoizedState,J=m.getDerivedStateFromProps,typeof J=="function"&&(zo(c,m,J,y),I.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(J=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),J!==I.state&&Vo.enqueueReplaceState(I,I.state,null),ri(c,y,I,C),ti(),I.state=c.memoizedState),typeof I.componentDidMount=="function"&&(c.flags|=4194308),y=!0}else if(o===null){I=c.stateNode;var re=c.memoizedProps,ie=Jn(m,re);I.props=ie;var me=I.context,be=m.contextType;J=fs,typeof be=="object"&&be!==null&&(J=Jt(be));var we=m.getDerivedStateFromProps;be=typeof we=="function"||typeof I.getSnapshotBeforeUpdate=="function",re=c.pendingProps!==re,be||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(re||me!==J)&&Ru(c,I,y,J),gn=!1;var xe=c.memoizedState;I.state=xe,ri(c,y,I,C),ti(),me=c.memoizedState,re||xe!==me||gn?(typeof we=="function"&&(zo(c,m,we,y),me=c.memoizedState),(ie=gn||Su(c,m,ie,y,xe,me,J))?(be||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(c.flags|=4194308)):(typeof I.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=me),I.props=y,I.state=me,I.context=J,y=ie):(typeof I.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{I=c.stateNode,bo(o,c),J=c.memoizedProps,be=Jn(m,J),I.props=be,we=c.pendingProps,xe=I.context,me=m.contextType,ie=fs,typeof me=="object"&&me!==null&&(ie=Jt(me)),re=m.getDerivedStateFromProps,(me=typeof re=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(J!==we||xe!==ie)&&Ru(c,I,y,ie),gn=!1,xe=c.memoizedState,I.state=xe,ri(c,y,I,C),ti();var ge=c.memoizedState;J!==we||xe!==ge||gn||o!==null&&o.dependencies!==null&&$i(o.dependencies)?(typeof re=="function"&&(zo(c,m,re,y),ge=c.memoizedState),(be=gn||Su(c,m,be,y,xe,ge,ie)||o!==null&&o.dependencies!==null&&$i(o.dependencies))?(me||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(y,ge,ie),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(y,ge,ie)),typeof I.componentDidUpdate=="function"&&(c.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof I.componentDidUpdate!="function"||J===o.memoizedProps&&xe===o.memoizedState||(c.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||J===o.memoizedProps&&xe===o.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=ge),I.props=y,I.state=ge,I.context=ie,y=be):(typeof I.componentDidUpdate!="function"||J===o.memoizedProps&&xe===o.memoizedState||(c.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||J===o.memoizedProps&&xe===o.memoizedState||(c.flags|=1024),y=!1)}return I=y,ca(o,c),y=(c.flags&128)!==0,I||y?(I=c.stateNode,m=y&&typeof m.getDerivedStateFromError!="function"?null:I.render(),c.flags|=1,o!==null&&y?(c.child=Ss(c,o.child,null,C),c.child=Ss(c,null,m,C)):Zt(o,c,m,C),c.memoizedState=I.state,o=c.child):o=rn(o,c,C),o}function Fu(o,c,m,y){return Gs(),c.flags|=256,Zt(o,c,m,y),c.child}var $o={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ho(o){return{baseLanes:o,cachePool:Cc()}}function qo(o,c,m){return o=o!==null?o.childLanes&~m:0,c&&(o|=Rr),o}function zu(o,c,m){var y=c.pendingProps,C=!1,I=(c.flags&128)!==0,J;if((J=I)||(J=o!==null&&o.memoizedState===null?!1:(qt.current&2)!==0),J&&(C=!0,c.flags&=-129),J=(c.flags&32)!==0,c.flags&=-33,o===null){if(yt){if(C?wn(c):Sn(),yt){var re=Ft,ie;if(ie=re){e:{for(ie=re,re=Ir;ie.nodeType!==8;){if(!re){re=null;break e}if(ie=kr(ie.nextSibling),ie===null){re=null;break e}}re=ie}re!==null?(c.memoizedState={dehydrated:re,treeContext:Hn!==null?{id:Zr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},ie=dr(18,null,null,0),ie.stateNode=re,ie.return=c,c.child=ie,tr=c,Ft=null,ie=!0):ie=!1}ie||Kn(c)}if(re=c.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return Al(re)?c.lanes=32:c.lanes=536870912,null;tn(c)}return re=y.children,y=y.fallback,C?(Sn(),C=c.mode,re=ua({mode:"hidden",children:re},C),y=$n(y,C,m,null),re.return=c,y.return=c,re.sibling=y,c.child=re,C=c.child,C.memoizedState=Ho(m),C.childLanes=qo(o,J,m),c.memoizedState=$o,y):(wn(c),Go(c,re))}if(ie=o.memoizedState,ie!==null&&(re=ie.dehydrated,re!==null)){if(I)c.flags&256?(wn(c),c.flags&=-257,c=Ko(o,c,m)):c.memoizedState!==null?(Sn(),c.child=o.child,c.flags|=128,c=null):(Sn(),C=y.fallback,re=c.mode,y=ua({mode:"visible",children:y.children},re),C=$n(C,re,m,null),C.flags|=2,y.return=c,C.return=c,y.sibling=C,c.child=y,Ss(c,o.child,null,m),y=c.child,y.memoizedState=Ho(m),y.childLanes=qo(o,J,m),c.memoizedState=$o,c=C);else if(wn(c),Al(re)){if(J=re.nextSibling&&re.nextSibling.dataset,J)var me=J.dgst;J=me,y=Error(n(419)),y.stack="",y.digest=J,Ks({value:y,source:null,stack:null}),c=Ko(o,c,m)}else if(Gt||Ys(o,c,m,!1),J=(m&o.childLanes)!==0,Gt||J){if(J=Lt,J!==null&&(y=m&-m,y=(y&42)!==0?1:Cr(y),y=(y&(J.suspendedLanes|m))!==0?0:y,y!==0&&y!==ie.retryLane))throw ie.retryLane=y,hs(o,y),xr(J,o,y),Mu;re.data==="$?"||hl(),c=Ko(o,c,m)}else re.data==="$?"?(c.flags|=192,c.child=o.child,c=null):(o=ie.treeContext,Ft=kr(re.nextSibling),tr=c,yt=!0,Gn=null,Ir=!1,o!==null&&(Er[wr++]=Zr,Er[wr++]=Xr,Er[wr++]=Hn,Zr=o.id,Xr=o.overflow,Hn=c),c=Go(c,y.children),c.flags|=4096);return c}return C?(Sn(),C=y.fallback,re=c.mode,ie=o.child,me=ie.sibling,y=Yr(ie,{mode:"hidden",children:y.children}),y.subtreeFlags=ie.subtreeFlags&65011712,me!==null?C=Yr(me,C):(C=$n(C,re,m,null),C.flags|=2),C.return=c,y.return=c,y.sibling=C,c.child=y,y=C,C=c.child,re=o.child.memoizedState,re===null?re=Ho(m):(ie=re.cachePool,ie!==null?(me=Ht._currentValue,ie=ie.parent!==me?{parent:me,pool:me}:ie):ie=Cc(),re={baseLanes:re.baseLanes|m,cachePool:ie}),C.memoizedState=re,C.childLanes=qo(o,J,m),c.memoizedState=$o,y):(wn(c),m=o.child,o=m.sibling,m=Yr(m,{mode:"visible",children:y.children}),m.return=c,m.sibling=null,o!==null&&(J=c.deletions,J===null?(c.deletions=[o],c.flags|=16):J.push(o)),c.child=m,c.memoizedState=null,m)}function Go(o,c){return c=ua({mode:"visible",children:c},o.mode),c.return=o,o.child=c}function ua(o,c){return o=dr(22,o,null,c),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Ko(o,c,m){return Ss(c,o.child,null,m),o=Go(c,c.pendingProps.children),o.flags|=2,c.memoizedState=null,o}function Vu(o,c,m){o.lanes|=c;var y=o.alternate;y!==null&&(y.lanes|=c),ho(o.return,c,m)}function Yo(o,c,m,y,C){var I=o.memoizedState;I===null?o.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:m,tailMode:C}:(I.isBackwards=c,I.rendering=null,I.renderingStartTime=0,I.last=y,I.tail=m,I.tailMode=C)}function Wu(o,c,m){var y=c.pendingProps,C=y.revealOrder,I=y.tail;if(Zt(o,c,y.children,m),y=qt.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=c.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Vu(o,m,c);else if(o.tag===19)Vu(o,m,c);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===c)break e;for(;o.sibling===null;){if(o.return===null||o.return===c)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}y&=1}switch(M(qt,y),C){case"forwards":for(m=c.child,C=null;m!==null;)o=m.alternate,o!==null&&aa(o)===null&&(C=m),m=m.sibling;m=C,m===null?(C=c.child,c.child=null):(C=m.sibling,m.sibling=null),Yo(c,!1,C,m,I);break;case"backwards":for(m=null,C=c.child,c.child=null;C!==null;){if(o=C.alternate,o!==null&&aa(o)===null){c.child=C;break}o=C.sibling,C.sibling=m,m=C,C=o}Yo(c,!0,m,null,I);break;case"together":Yo(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function rn(o,c,m){if(o!==null&&(c.dependencies=o.dependencies),Tn|=c.lanes,(m&c.childLanes)===0)if(o!==null){if(Ys(o,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(o!==null&&c.child!==o.child)throw Error(n(153));if(c.child!==null){for(o=c.child,m=Yr(o,o.pendingProps),c.child=m,m.return=c;o.sibling!==null;)o=o.sibling,m=m.sibling=Yr(o,o.pendingProps),m.return=c;m.sibling=null}return c.child}function Zo(o,c){return(o.lanes&c)!==0?!0:(o=o.dependencies,!!(o!==null&&$i(o)))}function xf(o,c,m){switch(c.tag){case 3:ae(c,c.stateNode.containerInfo),xn(c,Ht,o.memoizedState.cache),Gs();break;case 27:case 5:Se(c);break;case 4:ae(c,c.stateNode.containerInfo);break;case 10:xn(c,c.type,c.memoizedProps.value);break;case 13:var y=c.memoizedState;if(y!==null)return y.dehydrated!==null?(wn(c),c.flags|=128,null):(m&c.child.childLanes)!==0?zu(o,c,m):(wn(c),o=rn(o,c,m),o!==null?o.sibling:null);wn(c);break;case 19:var C=(o.flags&128)!==0;if(y=(m&c.childLanes)!==0,y||(Ys(o,c,m,!1),y=(m&c.childLanes)!==0),C){if(y)return Wu(o,c,m);c.flags|=128}if(C=c.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),M(qt,qt.current),y)break;return null;case 22:case 23:return c.lanes=0,Iu(o,c,m);case 24:xn(c,Ht,o.memoizedState.cache)}return rn(o,c,m)}function Uu(o,c,m){if(o!==null)if(o.memoizedProps!==c.pendingProps)Gt=!0;else{if(!Zo(o,m)&&(c.flags&128)===0)return Gt=!1,xf(o,c,m);Gt=(o.flags&131072)!==0}else Gt=!1,yt&&(c.flags&1048576)!==0&&bc(c,Ui,c.index);switch(c.lanes=0,c.tag){case 16:e:{o=c.pendingProps;var y=c.elementType,C=y._init;if(y=C(y._payload),c.type=y,typeof y=="function")so(y)?(o=Jn(y,o),c.tag=1,c=Bu(null,c,y,o,m)):(c.tag=0,c=Uo(null,c,y,o,m));else{if(y!=null){if(C=y.$$typeof,C===z){c.tag=11,c=Nu(null,c,y,o,m);break e}else if(C===$){c.tag=14,c=Pu(null,c,y,o,m);break e}}throw c=S(y)||y,Error(n(306,c,""))}}return c;case 0:return Uo(o,c,c.type,c.pendingProps,m);case 1:return y=c.type,C=Jn(y,c.pendingProps),Bu(o,c,y,C,m);case 3:e:{if(ae(c,c.stateNode.containerInfo),o===null)throw Error(n(387));y=c.pendingProps;var I=c.memoizedState;C=I.element,bo(o,c),ri(c,y,null,m);var J=c.memoizedState;if(y=J.cache,xn(c,Ht,y),y!==I.cache&&fo(c,[Ht],m,!0),ti(),y=J.element,I.isDehydrated)if(I={element:y,isDehydrated:!1,cache:J.cache},c.updateQueue.baseState=I,c.memoizedState=I,c.flags&256){c=Fu(o,c,y,m);break e}else if(y!==C){C=br(Error(n(424)),c),Ks(C),c=Fu(o,c,y,m);break e}else{switch(o=c.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Ft=kr(o.firstChild),tr=c,yt=!0,Gn=null,Ir=!0,m=Eu(c,null,y,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Gs(),y===C){c=rn(o,c,m);break e}Zt(o,c,y,m)}c=c.child}return c;case 26:return ca(o,c),o===null?(m=Kd(c.type,null,c.pendingProps,null))?c.memoizedState=m:yt||(m=c.type,o=c.pendingProps,y=Ra(te.current).createElement(m),y[Qe]=c,y[Ot]=o,Qt(y,m,o),Pt(y),c.stateNode=y):c.memoizedState=Kd(c.type,o.memoizedProps,c.pendingProps,o.memoizedState),null;case 27:return Se(c),o===null&&yt&&(y=c.stateNode=Hd(c.type,c.pendingProps,te.current),tr=c,Ir=!0,C=Ft,Nn(c.type)?(kl=C,Ft=kr(y.firstChild)):Ft=C),Zt(o,c,c.pendingProps.children,m),ca(o,c),o===null&&(c.flags|=4194304),c.child;case 5:return o===null&&yt&&((C=y=Ft)&&(y=$f(y,c.type,c.pendingProps,Ir),y!==null?(c.stateNode=y,tr=c,Ft=kr(y.firstChild),Ir=!1,C=!0):C=!1),C||Kn(c)),Se(c),C=c.type,I=c.pendingProps,J=o!==null?o.memoizedProps:null,y=I.children,Cl(C,I)?y=null:J!==null&&Cl(C,J)&&(c.flags|=32),c.memoizedState!==null&&(C=jo(o,c,lf,null,null,m),Ri._currentValue=C),ca(o,c),Zt(o,c,y,m),c.child;case 6:return o===null&&yt&&((o=m=Ft)&&(m=Hf(m,c.pendingProps,Ir),m!==null?(c.stateNode=m,tr=c,Ft=null,o=!0):o=!1),o||Kn(c)),null;case 13:return zu(o,c,m);case 4:return ae(c,c.stateNode.containerInfo),y=c.pendingProps,o===null?c.child=Ss(c,null,y,m):Zt(o,c,y,m),c.child;case 11:return Nu(o,c,c.type,c.pendingProps,m);case 7:return Zt(o,c,c.pendingProps,m),c.child;case 8:return Zt(o,c,c.pendingProps.children,m),c.child;case 12:return Zt(o,c,c.pendingProps.children,m),c.child;case 10:return y=c.pendingProps,xn(c,c.type,y.value),Zt(o,c,y.children,m),c.child;case 9:return C=c.type._context,y=c.pendingProps.children,Zn(c),C=Jt(C),y=y(C),c.flags|=1,Zt(o,c,y,m),c.child;case 14:return Pu(o,c,c.type,c.pendingProps,m);case 15:return Lu(o,c,c.type,c.pendingProps,m);case 19:return Wu(o,c,m);case 31:return y=c.pendingProps,m=c.mode,y={mode:y.mode,children:y.children},o===null?(m=ua(y,m),m.ref=c.ref,c.child=m,m.return=c,c=m):(m=Yr(o.child,y),m.ref=c.ref,c.child=m,m.return=c,c=m),c;case 22:return Iu(o,c,m);case 24:return Zn(c),y=Jt(Ht),o===null?(C=xo(),C===null&&(C=Lt,I=po(),C.pooledCache=I,I.refCount++,I!==null&&(C.pooledCacheLanes|=m),C=I),c.memoizedState={parent:y,cache:C},yo(c),xn(c,Ht,C)):((o.lanes&m)!==0&&(bo(o,c),ri(c,null,null,m),ti()),C=o.memoizedState,I=c.memoizedState,C.parent!==y?(C={parent:y,cache:y},c.memoizedState=C,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=C),xn(c,Ht,y)):(y=I.cache,xn(c,Ht,y),y!==C.cache&&fo(c,[Ht],m,!0))),Zt(o,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error(n(156,c.tag))}function nn(o){o.flags|=4}function $u(o,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Jd(c)){if(c=Sr.current,c!==null&&((ut&4194048)===ut?Dr!==null:(ut&62914560)!==ut&&(ut&536870912)===0||c!==Dr))throw Js=go,_c;o.flags|=8192}}function da(o,c){c!==null&&(o.flags|=4),o.flags&16384&&(c=o.tag!==22?Mr():536870912,o.lanes|=c,_s|=c)}function ci(o,c){if(!yt)switch(o.tailMode){case"hidden":c=o.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?o.tail=null:m.sibling=null;break;case"collapsed":m=o.tail;for(var y=null;m!==null;)m.alternate!==null&&(y=m),m=m.sibling;y===null?c||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function Bt(o){var c=o.alternate!==null&&o.alternate.child===o.child,m=0,y=0;if(c)for(var C=o.child;C!==null;)m|=C.lanes|C.childLanes,y|=C.subtreeFlags&65011712,y|=C.flags&65011712,C.return=o,C=C.sibling;else for(C=o.child;C!==null;)m|=C.lanes|C.childLanes,y|=C.subtreeFlags,y|=C.flags,C.return=o,C=C.sibling;return o.subtreeFlags|=y,o.childLanes=m,c}function gf(o,c,m){var y=c.pendingProps;switch(lo(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(c),null;case 1:return Bt(c),null;case 3:return m=c.stateNode,y=null,o!==null&&(y=o.memoizedState.cache),c.memoizedState.cache!==y&&(c.flags|=2048),Jr(Ht),fe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(o===null||o.child===null)&&(qs(c)?nn(c):o===null||o.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,wc())),Bt(c),null;case 26:return m=c.memoizedState,o===null?(nn(c),m!==null?(Bt(c),$u(c,m)):(Bt(c),c.flags&=-16777217)):m?m!==o.memoizedState?(nn(c),Bt(c),$u(c,m)):(Bt(c),c.flags&=-16777217):(o.memoizedProps!==y&&nn(c),Bt(c),c.flags&=-16777217),null;case 27:Ce(c),m=te.current;var C=c.type;if(o!==null&&c.stateNode!=null)o.memoizedProps!==y&&nn(c);else{if(!y){if(c.stateNode===null)throw Error(n(166));return Bt(c),null}o=G.current,qs(c)?vc(c):(o=Hd(C,y,m),c.stateNode=o,nn(c))}return Bt(c),null;case 5:if(Ce(c),m=c.type,o!==null&&c.stateNode!=null)o.memoizedProps!==y&&nn(c);else{if(!y){if(c.stateNode===null)throw Error(n(166));return Bt(c),null}if(o=G.current,qs(c))vc(c);else{switch(C=Ra(te.current),o){case 1:o=C.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:o=C.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":o=C.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":o=C.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":o=C.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof y.is=="string"?C.createElement("select",{is:y.is}):C.createElement("select"),y.multiple?o.multiple=!0:y.size&&(o.size=y.size);break;default:o=typeof y.is=="string"?C.createElement(m,{is:y.is}):C.createElement(m)}}o[Qe]=c,o[Ot]=y;e:for(C=c.child;C!==null;){if(C.tag===5||C.tag===6)o.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===c)break e;for(;C.sibling===null;){if(C.return===null||C.return===c)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}c.stateNode=o;e:switch(Qt(o,m,y),m){case"button":case"input":case"select":case"textarea":o=!!y.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&nn(c)}}return Bt(c),c.flags&=-16777217,null;case 6:if(o&&c.stateNode!=null)o.memoizedProps!==y&&nn(c);else{if(typeof y!="string"&&c.stateNode===null)throw Error(n(166));if(o=te.current,qs(c)){if(o=c.stateNode,m=c.memoizedProps,y=null,C=tr,C!==null)switch(C.tag){case 27:case 5:y=C.memoizedProps}o[Qe]=c,o=!!(o.nodeValue===m||y!==null&&y.suppressHydrationWarning===!0||Bd(o.nodeValue,m)),o||Kn(c)}else o=Ra(o).createTextNode(y),o[Qe]=c,c.stateNode=o}return Bt(c),null;case 13:if(y=c.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(C=qs(c),y!==null&&y.dehydrated!==null){if(o===null){if(!C)throw Error(n(318));if(C=c.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(n(317));C[Qe]=c}else Gs(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Bt(c),C=!1}else C=wc(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=C),C=!0;if(!C)return c.flags&256?(tn(c),c):(tn(c),null)}if(tn(c),(c.flags&128)!==0)return c.lanes=m,c;if(m=y!==null,o=o!==null&&o.memoizedState!==null,m){y=c.child,C=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(C=y.alternate.memoizedState.cachePool.pool);var I=null;y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(I=y.memoizedState.cachePool.pool),I!==C&&(y.flags|=2048)}return m!==o&&m&&(c.child.flags|=8192),da(c,c.updateQueue),Bt(c),null;case 4:return fe(),o===null&&El(c.stateNode.containerInfo),Bt(c),null;case 10:return Jr(c.type),Bt(c),null;case 19:if(_(qt),C=c.memoizedState,C===null)return Bt(c),null;if(y=(c.flags&128)!==0,I=C.rendering,I===null)if(y)ci(C,!1);else{if(zt!==0||o!==null&&(o.flags&128)!==0)for(o=c.child;o!==null;){if(I=aa(o),I!==null){for(c.flags|=128,ci(C,!1),o=I.updateQueue,c.updateQueue=o,da(c,o),c.subtreeFlags=0,o=m,m=c.child;m!==null;)yc(m,o),m=m.sibling;return M(qt,qt.current&1|2),c.child}o=o.sibling}C.tail!==null&&Te()>pa&&(c.flags|=128,y=!0,ci(C,!1),c.lanes=4194304)}else{if(!y)if(o=aa(I),o!==null){if(c.flags|=128,y=!0,o=o.updateQueue,c.updateQueue=o,da(c,o),ci(C,!0),C.tail===null&&C.tailMode==="hidden"&&!I.alternate&&!yt)return Bt(c),null}else 2*Te()-C.renderingStartTime>pa&&m!==536870912&&(c.flags|=128,y=!0,ci(C,!1),c.lanes=4194304);C.isBackwards?(I.sibling=c.child,c.child=I):(o=C.last,o!==null?o.sibling=I:c.child=I,C.last=I)}return C.tail!==null?(c=C.tail,C.rendering=c,C.tail=c.sibling,C.renderingStartTime=Te(),c.sibling=null,o=qt.current,M(qt,y?o&1|2:o&1),c):(Bt(c),null);case 22:case 23:return tn(c),So(),y=c.memoizedState!==null,o!==null?o.memoizedState!==null!==y&&(c.flags|=8192):y&&(c.flags|=8192),y?(m&536870912)!==0&&(c.flags&128)===0&&(Bt(c),c.subtreeFlags&6&&(c.flags|=8192)):Bt(c),m=c.updateQueue,m!==null&&da(c,m.retryQueue),m=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==m&&(c.flags|=2048),o!==null&&_(Xn),null;case 24:return m=null,o!==null&&(m=o.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),Jr(Ht),Bt(c),null;case 25:return null;case 30:return null}throw Error(n(156,c.tag))}function yf(o,c){switch(lo(c),c.tag){case 1:return o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 3:return Jr(Ht),fe(),o=c.flags,(o&65536)!==0&&(o&128)===0?(c.flags=o&-65537|128,c):null;case 26:case 27:case 5:return Ce(c),null;case 13:if(tn(c),o=c.memoizedState,o!==null&&o.dehydrated!==null){if(c.alternate===null)throw Error(n(340));Gs()}return o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 19:return _(qt),null;case 4:return fe(),null;case 10:return Jr(c.type),null;case 22:case 23:return tn(c),So(),o!==null&&_(Xn),o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 24:return Jr(Ht),null;case 25:return null;default:return null}}function Hu(o,c){switch(lo(c),c.tag){case 3:Jr(Ht),fe();break;case 26:case 27:case 5:Ce(c);break;case 4:fe();break;case 13:tn(c);break;case 19:_(qt);break;case 10:Jr(c.type);break;case 22:case 23:tn(c),So(),o!==null&&_(Xn);break;case 24:Jr(Ht)}}function ui(o,c){try{var m=c.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var C=y.next;m=C;do{if((m.tag&o)===o){y=void 0;var I=m.create,J=m.inst;y=I(),J.destroy=y}m=m.next}while(m!==C)}}catch(re){Nt(c,c.return,re)}}function Rn(o,c,m){try{var y=c.updateQueue,C=y!==null?y.lastEffect:null;if(C!==null){var I=C.next;y=I;do{if((y.tag&o)===o){var J=y.inst,re=J.destroy;if(re!==void 0){J.destroy=void 0,C=c;var ie=m,me=re;try{me()}catch(be){Nt(C,ie,be)}}}y=y.next}while(y!==I)}}catch(be){Nt(c,c.return,be)}}function qu(o){var c=o.updateQueue;if(c!==null){var m=o.stateNode;try{Pc(c,m)}catch(y){Nt(o,o.return,y)}}}function Gu(o,c,m){m.props=Jn(o.type,o.memoizedProps),m.state=o.memoizedState;try{m.componentWillUnmount()}catch(y){Nt(o,c,y)}}function di(o,c){try{var m=o.ref;if(m!==null){switch(o.tag){case 26:case 27:case 5:var y=o.stateNode;break;case 30:y=o.stateNode;break;default:y=o.stateNode}typeof m=="function"?o.refCleanup=m(y):m.current=y}}catch(C){Nt(o,c,C)}}function Or(o,c){var m=o.ref,y=o.refCleanup;if(m!==null)if(typeof y=="function")try{y()}catch(C){Nt(o,c,C)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(C){Nt(o,c,C)}else m.current=null}function Ku(o){var c=o.type,m=o.memoizedProps,y=o.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&y.focus();break e;case"img":m.src?y.src=m.src:m.srcSet&&(y.srcset=m.srcSet)}}catch(C){Nt(o,o.return,C)}}function Xo(o,c,m){try{var y=o.stateNode;Ff(y,o.type,m,c),y[Ot]=c}catch(C){Nt(o,o.return,C)}}function Yu(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Nn(o.type)||o.tag===4}function Qo(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Yu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Nn(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Jo(o,c,m){var y=o.tag;if(y===5||y===6)o=o.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(o,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(o),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=Sa));else if(y!==4&&(y===27&&Nn(o.type)&&(m=o.stateNode,c=null),o=o.child,o!==null))for(Jo(o,c,m),o=o.sibling;o!==null;)Jo(o,c,m),o=o.sibling}function ha(o,c,m){var y=o.tag;if(y===5||y===6)o=o.stateNode,c?m.insertBefore(o,c):m.appendChild(o);else if(y!==4&&(y===27&&Nn(o.type)&&(m=o.stateNode),o=o.child,o!==null))for(ha(o,c,m),o=o.sibling;o!==null;)ha(o,c,m),o=o.sibling}function Zu(o){var c=o.stateNode,m=o.memoizedProps;try{for(var y=o.type,C=c.attributes;C.length;)c.removeAttributeNode(C[0]);Qt(c,y,m),c[Qe]=o,c[Ot]=m}catch(I){Nt(o,o.return,I)}}var sn=!1,Wt=!1,el=!1,Xu=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function bf(o,c){if(o=o.containerInfo,Rl=ka,o=lc(o),Xa(o)){if("selectionStart"in o)var m={start:o.selectionStart,end:o.selectionEnd};else e:{m=(m=o.ownerDocument)&&m.defaultView||window;var y=m.getSelection&&m.getSelection();if(y&&y.rangeCount!==0){m=y.anchorNode;var C=y.anchorOffset,I=y.focusNode;y=y.focusOffset;try{m.nodeType,I.nodeType}catch{m=null;break e}var J=0,re=-1,ie=-1,me=0,be=0,we=o,xe=null;t:for(;;){for(var ge;we!==m||C!==0&&we.nodeType!==3||(re=J+C),we!==I||y!==0&&we.nodeType!==3||(ie=J+y),we.nodeType===3&&(J+=we.nodeValue.length),(ge=we.firstChild)!==null;)xe=we,we=ge;for(;;){if(we===o)break t;if(xe===m&&++me===C&&(re=J),xe===I&&++be===y&&(ie=J),(ge=we.nextSibling)!==null)break;we=xe,xe=we.parentNode}we=ge}m=re===-1||ie===-1?null:{start:re,end:ie}}else m=null}m=m||{start:0,end:0}}else m=null;for(jl={focusedElem:o,selectionRange:m},ka=!1,Kt=c;Kt!==null;)if(c=Kt,o=c.child,(c.subtreeFlags&1024)!==0&&o!==null)o.return=c,Kt=o;else for(;Kt!==null;){switch(c=Kt,I=c.alternate,o=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&I!==null){o=void 0,m=c,C=I.memoizedProps,I=I.memoizedState,y=m.stateNode;try{var Ge=Jn(m.type,C,m.elementType===m.type);o=y.getSnapshotBeforeUpdate(Ge,I),y.__reactInternalSnapshotBeforeUpdate=o}catch($e){Nt(m,m.return,$e)}}break;case 3:if((o&1024)!==0){if(o=c.stateNode.containerInfo,m=o.nodeType,m===9)Tl(o);else if(m===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Tl(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(n(163))}if(o=c.sibling,o!==null){o.return=c.return,Kt=o;break}Kt=c.return}}function Qu(o,c,m){var y=m.flags;switch(m.tag){case 0:case 11:case 15:jn(o,m),y&4&&ui(5,m);break;case 1:if(jn(o,m),y&4)if(o=m.stateNode,c===null)try{o.componentDidMount()}catch(J){Nt(m,m.return,J)}else{var C=Jn(m.type,c.memoizedProps);c=c.memoizedState;try{o.componentDidUpdate(C,c,o.__reactInternalSnapshotBeforeUpdate)}catch(J){Nt(m,m.return,J)}}y&64&&qu(m),y&512&&di(m,m.return);break;case 3:if(jn(o,m),y&64&&(o=m.updateQueue,o!==null)){if(c=null,m.child!==null)switch(m.child.tag){case 27:case 5:c=m.child.stateNode;break;case 1:c=m.child.stateNode}try{Pc(o,c)}catch(J){Nt(m,m.return,J)}}break;case 27:c===null&&y&4&&Zu(m);case 26:case 5:jn(o,m),c===null&&y&4&&Ku(m),y&512&&di(m,m.return);break;case 12:jn(o,m);break;case 13:jn(o,m),y&4&&td(o,m),y&64&&(o=m.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(m=Tf.bind(null,m),qf(o,m))));break;case 22:if(y=m.memoizedState!==null||sn,!y){c=c!==null&&c.memoizedState!==null||Wt,C=sn;var I=Wt;sn=y,(Wt=c)&&!I?Cn(o,m,(m.subtreeFlags&8772)!==0):jn(o,m),sn=C,Wt=I}break;case 30:break;default:jn(o,m)}}function Ju(o){var c=o.alternate;c!==null&&(o.alternate=null,Ju(c)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(c=o.stateNode,c!==null&&Et(c)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Dt=null,ar=!1;function an(o,c,m){for(m=m.child;m!==null;)ed(o,c,m),m=m.sibling}function ed(o,c,m){if(ee&&typeof ee.onCommitFiberUnmount=="function")try{ee.onCommitFiberUnmount(Ze,m)}catch{}switch(m.tag){case 26:Wt||Or(m,c),an(o,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Wt||Or(m,c);var y=Dt,C=ar;Nn(m.type)&&(Dt=m.stateNode,ar=!1),an(o,c,m),vi(m.stateNode),Dt=y,ar=C;break;case 5:Wt||Or(m,c);case 6:if(y=Dt,C=ar,Dt=null,an(o,c,m),Dt=y,ar=C,Dt!==null)if(ar)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(m.stateNode)}catch(I){Nt(m,c,I)}else try{Dt.removeChild(m.stateNode)}catch(I){Nt(m,c,I)}break;case 18:Dt!==null&&(ar?(o=Dt,Ud(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,m.stateNode),Ti(o)):Ud(Dt,m.stateNode));break;case 4:y=Dt,C=ar,Dt=m.stateNode.containerInfo,ar=!0,an(o,c,m),Dt=y,ar=C;break;case 0:case 11:case 14:case 15:Wt||Rn(2,m,c),Wt||Rn(4,m,c),an(o,c,m);break;case 1:Wt||(Or(m,c),y=m.stateNode,typeof y.componentWillUnmount=="function"&&Gu(m,c,y)),an(o,c,m);break;case 21:an(o,c,m);break;case 22:Wt=(y=Wt)||m.memoizedState!==null,an(o,c,m),Wt=y;break;default:an(o,c,m)}}function td(o,c){if(c.memoizedState===null&&(o=c.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ti(o)}catch(m){Nt(c,c.return,m)}}function vf(o){switch(o.tag){case 13:case 19:var c=o.stateNode;return c===null&&(c=o.stateNode=new Xu),c;case 22:return o=o.stateNode,c=o._retryCache,c===null&&(c=o._retryCache=new Xu),c;default:throw Error(n(435,o.tag))}}function tl(o,c){var m=vf(o);c.forEach(function(y){var C=Af.bind(null,o,y);m.has(y)||(m.add(y),y.then(C,C))})}function hr(o,c){var m=c.deletions;if(m!==null)for(var y=0;y<m.length;y++){var C=m[y],I=o,J=c,re=J;e:for(;re!==null;){switch(re.tag){case 27:if(Nn(re.type)){Dt=re.stateNode,ar=!1;break e}break;case 5:Dt=re.stateNode,ar=!1;break e;case 3:case 4:Dt=re.stateNode.containerInfo,ar=!0;break e}re=re.return}if(Dt===null)throw Error(n(160));ed(I,J,C),Dt=null,ar=!1,I=C.alternate,I!==null&&(I.return=null),C.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)rd(c,o),c=c.sibling}var Ar=null;function rd(o,c){var m=o.alternate,y=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:hr(c,o),fr(o),y&4&&(Rn(3,o,o.return),ui(3,o),Rn(5,o,o.return));break;case 1:hr(c,o),fr(o),y&512&&(Wt||m===null||Or(m,m.return)),y&64&&sn&&(o=o.updateQueue,o!==null&&(y=o.callbacks,y!==null&&(m=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=m===null?y:m.concat(y))));break;case 26:var C=Ar;if(hr(c,o),fr(o),y&512&&(Wt||m===null||Or(m,m.return)),y&4){var I=m!==null?m.memoizedState:null;if(y=o.memoizedState,m===null)if(y===null)if(o.stateNode===null){e:{y=o.type,m=o.memoizedProps,C=C.ownerDocument||C;t:switch(y){case"title":I=C.getElementsByTagName("title")[0],(!I||I[gr]||I[Qe]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=C.createElement(y),C.head.insertBefore(I,C.querySelector("head > title"))),Qt(I,y,m),I[Qe]=o,Pt(I),y=I;break e;case"link":var J=Xd("link","href",C).get(y+(m.href||""));if(J){for(var re=0;re<J.length;re++)if(I=J[re],I.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&I.getAttribute("rel")===(m.rel==null?null:m.rel)&&I.getAttribute("title")===(m.title==null?null:m.title)&&I.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){J.splice(re,1);break t}}I=C.createElement(y),Qt(I,y,m),C.head.appendChild(I);break;case"meta":if(J=Xd("meta","content",C).get(y+(m.content||""))){for(re=0;re<J.length;re++)if(I=J[re],I.getAttribute("content")===(m.content==null?null:""+m.content)&&I.getAttribute("name")===(m.name==null?null:m.name)&&I.getAttribute("property")===(m.property==null?null:m.property)&&I.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&I.getAttribute("charset")===(m.charSet==null?null:m.charSet)){J.splice(re,1);break t}}I=C.createElement(y),Qt(I,y,m),C.head.appendChild(I);break;default:throw Error(n(468,y))}I[Qe]=o,Pt(I),y=I}o.stateNode=y}else Qd(C,o.type,o.stateNode);else o.stateNode=Zd(C,y,o.memoizedProps);else I!==y?(I===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):I.count--,y===null?Qd(C,o.type,o.stateNode):Zd(C,y,o.memoizedProps)):y===null&&o.stateNode!==null&&Xo(o,o.memoizedProps,m.memoizedProps)}break;case 27:hr(c,o),fr(o),y&512&&(Wt||m===null||Or(m,m.return)),m!==null&&y&4&&Xo(o,o.memoizedProps,m.memoizedProps);break;case 5:if(hr(c,o),fr(o),y&512&&(Wt||m===null||Or(m,m.return)),o.flags&32){C=o.stateNode;try{It(C,"")}catch(ge){Nt(o,o.return,ge)}}y&4&&o.stateNode!=null&&(C=o.memoizedProps,Xo(o,C,m!==null?m.memoizedProps:C)),y&1024&&(el=!0);break;case 6:if(hr(c,o),fr(o),y&4){if(o.stateNode===null)throw Error(n(162));y=o.memoizedProps,m=o.stateNode;try{m.nodeValue=y}catch(ge){Nt(o,o.return,ge)}}break;case 3:if(_a=null,C=Ar,Ar=ja(c.containerInfo),hr(c,o),Ar=C,fr(o),y&4&&m!==null&&m.memoizedState.isDehydrated)try{Ti(c.containerInfo)}catch(ge){Nt(o,o.return,ge)}el&&(el=!1,nd(o));break;case 4:y=Ar,Ar=ja(o.stateNode.containerInfo),hr(c,o),fr(o),Ar=y;break;case 12:hr(c,o),fr(o);break;case 13:hr(c,o),fr(o),o.child.flags&8192&&o.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(ol=Te()),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,tl(o,y)));break;case 22:C=o.memoizedState!==null;var ie=m!==null&&m.memoizedState!==null,me=sn,be=Wt;
vendor: 4,232 bytes, line 49
49if(sn=me||C,Wt=be||ie,hr(c,o),Wt=be,sn=me,fr(o),y&8192)e:for(c=o.stateNode,c._visibility=C?c._visibility&-2:c._visibility|1,C&&(m===null||ie||sn||Wt||es(o)),m=null,c=o;;){if(c.tag===5||c.tag===26){if(m===null){ie=m=c;try{if(I=ie.stateNode,C)J=I.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{re=ie.stateNode;var we=ie.memoizedProps.style,xe=we!=null&&we.hasOwnProperty("display")?we.display:null;re.style.display=xe==null||typeof xe=="boolean"?"":(""+xe).trim()}}catch(ge){Nt(ie,ie.return,ge)}}}else if(c.tag===6){if(m===null){ie=c;try{ie.stateNode.nodeValue=C?"":ie.memoizedProps}catch(ge){Nt(ie,ie.return,ge)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===o)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break e;for(;c.sibling===null;){if(c.return===null||c.return===o)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}y&4&&(y=o.updateQueue,y!==null&&(m=y.retryQueue,m!==null&&(y.retryQueue=null,tl(o,m))));break;case 19:hr(c,o),fr(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,tl(o,y)));break;case 30:break;case 21:break;default:hr(c,o),fr(o)}}function fr(o){var c=o.flags;if(c&2){try{for(var m,y=o.return;y!==null;){if(Yu(y)){m=y;break}y=y.return}if(m==null)throw Error(n(160));switch(m.tag){case 27:var C=m.stateNode,I=Qo(o);ha(o,I,C);break;case 5:var J=m.stateNode;m.flags&32&&(It(J,""),m.flags&=-33);var re=Qo(o);ha(o,re,J);break;case 3:case 4:var ie=m.stateNode.containerInfo,me=Qo(o);Jo(o,me,ie);break;default:throw Error(n(161))}}catch(be){Nt(o,o.return,be)}o.flags&=-3}c&4096&&(o.flags&=-4097)}function nd(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var c=o;nd(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),o=o.sibling}}function jn(o,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Qu(o,c.alternate,c),c=c.sibling}function es(o){for(o=o.child;o!==null;){var c=o;switch(c.tag){case 0:case 11:case 14:case 15:Rn(4,c,c.return),es(c);break;case 1:Or(c,c.return);var m=c.stateNode;typeof m.componentWillUnmount=="function"&&Gu(c,c.return,m),es(c);break;case 27:vi(c.stateNode);case 26:case 5:Or(c,c.return),es(c);break;case 22:c.memoizedState===null&&es(c);break;case 30:es(c);break;default:es(c)}o=o.sibling}}function Cn(o,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var y=c.alternate,C=o,I=c,J=I.flags;switch(I.tag){case 0:case 11:case 15:Cn(C,I,m),ui(4,I);break;case 1:if(Cn(C,I,m),y=I,C=y.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(me){Nt(y,y.return,me)}if(y=I,C=y.updateQueue,C!==null){var re=y.stateNode;try{var ie=C.shared.hiddenCallbacks;if(ie!==null)for(C.shared.hiddenCallbacks=null,C=0;C<ie.length;C++)Nc(ie[C],re)}catch(me){Nt(y,y.return,me)}}m&&J&64&&qu(I),di(I,I.return);break;case 27:Zu(I);case 26:case 5:Cn(C,I,m),m&&y===null&&J&4&&Ku(I),di(I,I.return);break;case 12:Cn(C,I,m);break;case 13:Cn(C,I,m),m&&J&4&&td(C,I);break;case 22:I.memoizedState===null&&Cn(C,I,m),di(I,I.return);break;case 30:break;default:Cn(C,I,m)}c=c.sibling}}function rl(o,c){var m=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),o=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(o=c.memoizedState.cachePool.pool),o!==m&&(o!=null&&o.refCount++,m!=null&&Zs(m))}function nl(o,c){o=null,c.alternate!==null&&(o=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==o&&(c.refCount++,o!=null&&Zs(o))}function Br(o,c,m,y){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)sd(o,c,m,y),c=c.sibling}function sd(o,c,m,y){var C=c.flags;switch(c.tag){case 0:case 11:case 15:Br(o,c,m,y),C&2048&&ui(9,c);break;case 1:Br(o,c,m,y);break;case 3:Br(o,c,m,y),C&2048&&(o=null,c.alternate!==null&&(o=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==o&&(c.refCount++,o!=null&&Zs(o)));break;case 12:if(C&2048){Br(o,c,m,y),o=c.stateNode;try{var I=c.memoizedProps,J=I.id,re=I.onPostCommit;typeof re=="function"&&re(J,c.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ie){Nt(c,c.return,ie)}}else Br(o,c,m,y);break;case 13:Br(o,c,m,y);break;case 23:break;case 22:I=c.stateNode,J=c.alternate,c.memoizedState!==null?I._visibility&2?Br(o,c,m,y):hi(o,c
vendor: 42,481 bytes, lines 49-50
49):I._visibility&2?Br(o,c,m,y):(I._visibility|=2,Rs(o,c,m,y,(c.subtreeFlags&10256)!==0)),C&2048&&rl(J,c);break;case 24:Br(o,c,m,y),C&2048&&nl(c.alternate,c);break;default:Br(o,c,m,y)}}function Rs(o,c,m,y,C){for(C=C&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var I=o,J=c,re=m,ie=y,me=J.flags;switch(J.tag){case 0:case 11:case 15:Rs(I,J,re,ie,C),ui(8,J);break;case 23:break;case 22:var be=J.stateNode;J.memoizedState!==null?be._visibility&2?Rs(I,J,re,ie,C):hi(I,J):(be._visibility|=2,Rs(I,J,re,ie,C)),C&&me&2048&&rl(J.alternate,J);break;case 24:Rs(I,J,re,ie,C),C&&me&2048&&nl(J.alternate,J);break;default:Rs(I,J,re,ie,C)}c=c.sibling}}function hi(o,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=o,y=c,C=y.flags;switch(y.tag){case 22:hi(m,y),C&2048&&rl(y.alternate,y);break;case 24:hi(m,y),C&2048&&nl(y.alternate,y);break;default:hi(m,y)}c=c.sibling}}var fi=8192;function js(o){if(o.subtreeFlags&fi)for(o=o.child;o!==null;)ad(o),o=o.sibling}function ad(o){switch(o.tag){case 26:js(o),o.flags&fi&&o.memoizedState!==null&&ip(Ar,o.memoizedState,o.memoizedProps);break;case 5:js(o);break;case 3:case 4:var c=Ar;Ar=ja(o.stateNode.containerInfo),js(o),Ar=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=fi,fi=16777216,js(o),fi=c):js(o));break;default:js(o)}}function od(o){var c=o.alternate;if(c!==null&&(o=c.child,o!==null)){c.child=null;do c=o.sibling,o.sibling=null,o=c;while(o!==null)}}function pi(o){var c=o.deletions;if((o.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var y=c[m];Kt=y,cd(y,o)}od(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)ld(o),o=o.sibling}function ld(o){switch(o.tag){case 0:case 11:case 15:pi(o),o.flags&2048&&Rn(9,o,o.return);break;case 3:pi(o);break;case 12:pi(o);break;case 22:var c=o.stateNode;o.memoizedState!==null&&c._visibility&2&&(o.return===null||o.return.tag!==13)?(c._visibility&=-3,fa(o)):pi(o);break;default:pi(o)}}function fa(o){var c=o.deletions;if((o.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var y=c[m];Kt=y,cd(y,o)}od(o)}for(o=o.child;o!==null;){switch(c=o,c.tag){case 0:case 11:case 15:Rn(8,c,c.return),fa(c);break;case 22:m=c.stateNode,m._visibility&2&&(m._visibility&=-3,fa(c));break;default:fa(c)}o=o.sibling}}function cd(o,c){for(;Kt!==null;){var m=Kt;switch(m.tag){case 0:case 11:case 15:Rn(8,m,c);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var y=m.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:Zs(m.memoizedState.cache)}if(y=m.child,y!==null)y.return=m,Kt=y;else e:for(m=o;Kt!==null;){y=Kt;var C=y.sibling,I=y.return;if(Ju(y),y===m){Kt=null;break e}if(C!==null){C.return=I,Kt=C;break e}Kt=I}}}var Ef={getCacheForType:function(o){var c=Jt(Ht),m=c.data.get(o);return m===void 0&&(m=o(),c.data.set(o,m)),m}},wf=typeof WeakMap=="function"?WeakMap:Map,wt=0,Lt=null,st=null,ut=0,St=0,pr=null,_n=!1,Cs=!1,sl=!1,ln=0,zt=0,Tn=0,ts=0,il=0,Rr=0,_s=0,mi=null,or=null,al=!1,ol=0,pa=1/0,ma=null,An=null,Xt=0,kn=null,Ts=null,As=0,ll=0,cl=null,ud=null,xi=0,ul=null;function mr(){if((wt&2)!==0&&ut!==0)return ut&-ut;if(F.T!==null){var o=xs;return o!==0?o:gl()}return At()}function dd(){Rr===0&&(Rr=(ut&536870912)===0||yt?mt():536870912);var o=Sr.current;return o!==null&&(o.flags|=32),Rr}function xr(o,c,m){(o===Lt&&(St===2||St===9)||o.cancelPendingCommit!==null)&&(ks(o,0),Mn(o,ut,Rr,!1)),xt(o,m),((wt&2)===0||o!==Lt)&&(o===Lt&&((wt&2)===0&&(ts|=m),zt===4&&Mn(o,ut,Rr,!1)),Fr(o))}function hd(o,c,m){if((wt&6)!==0)throw Error(n(327));var y=!m&&(c&124)===0&&(c&o.expiredLanes)===0||Je(o,c),C=y?jf(o,c):fl(o,c,!0),I=y;do{if(C===0){Cs&&!y&&Mn(o,c,0,!1);break}else{if(m=o.current.alternate,I&&!Sf(m)){C=fl(o,c,!1),I=!1;continue}if(C===2){if(I=c,o.errorRecoveryDisabledLanes&I)var J=0;else J=o.pendingLanes&-536870913,J=J!==0?J:J&536870912?536870912:0;if(J!==0){c=J;e:{var re=o;C=mi;var ie=re.current.memoizedState.isDehydrated;if(ie&&(ks(re,J).flags|=256),J=fl(re,J,!1),J!==2){if(sl&&!ie){re.errorRecoveryDisabledLanes|=I,ts|=I,C=4;break e}I=or,or=C,I!==null&&(or===null?or=I:or.push.apply(or,I))}C=J}if(I=!1,C!==2)continue}}if(C===1){ks(o,0),Mn(o,c,0,!0);break}e:{switch(y=o,I=C,I){case 0:case 1:throw Error(n(345));case 4:if((c&4194048)!==c)break;case 6:Mn(y,c,Rr,!_n);break e;case 2:or=null;break;case 3:case 5:break;default:throw Error(n(329))}if((c&62914560)===c&&(C=ol+300-Te(),10<C)){if(Mn(y,c,Rr,!_n),Fe(y,0,!0)!==0)break e;y.timeoutHandle=Vd(fd.bind(null,y,m,or,ma,al,c,Rr,ts,_s,_n,I,2,-0,0),C);break e}fd(y,m,or,ma,al,c,Rr,ts,_s,_n,I,0,-0,0)}}break}while(!0);Fr(o)}function fd(o,c,m,y,C,I,J,re,ie,me,be,we,xe,ge){if(o.timeoutHandle=-1,we=c.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(Si={stylesheets:null,count:0,unsuspend:sp},ad(c),we=ap(),we!==null)){o.cancelPendingCommit=we(vd.bind(null,o,c,I,m,y,C,J,re,ie,be,1,xe,ge)),Mn(o,I,J,!me);return}vd(o,c,I,m,y,C,J,re,ie)}function Sf(o){for(var c=o;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var y=0;y<m.length;y++){var C=m[y],I=C.getSnapshot;C=C.value;try{if(!ur(I(),C))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Mn(o,c,m,y){c&=~il,c&=~ts,o.suspendedLanes|=c,o.pingedLanes&=~c,y&&(o.warmLanes|=c),y=o.expirationTimes;for(var C=c;0<C;){var I=31-Y(C),J=1<<I;y[I]=-1,C&=~J}m!==0&<(o,m,c)}function xa(){return(wt&6)===0?(gi(0),!1):!0}function dl(){if(st!==null){if(St===0)var o=st.return;else o=st,Qr=Yn=null,To(o),ws=null,oi=0,o=st;for(;o!==null;)Hu(o.alternate,o),o=o.return;st=null}}function ks(o,c){var m=o.timeoutHandle;m!==-1&&(o.timeoutHandle=-1,Vf(m)),m=o.cancelPendingCommit,m!==null&&(o.cancelPendingCommit=null,m()),dl(),Lt=o,st=m=Yr(o.current,null),ut=c,St=0,pr=null,_n=!1,Cs=Je(o,c),sl=!1,_s=Rr=il=ts=Tn=zt=0,or=mi=null,al=!1,(c&8)!==0&&(c|=c&32);var y=o.entangledLanes;if(y!==0)for(o=o.entanglements,y&=c;0<y;){var C=31-Y(y),I=1<<C;c|=o[C],y&=~I}return ln=c,Bi(),m}function pd(o,c){tt=null,F.H=na,c===Qs||c===Gi?(c=kc(),St=3):c===_c?(c=kc(),St=4):St=c===Mu?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,pr=c,st===null&&(zt=1,la(o,br(c,o.current)))}function md(){var o=F.H;return F.H=na,o===null?na:o}function xd(){var o=F.A;return F.A=Ef,o}function hl(){zt=4,_n||(ut&4194048)!==ut&&Sr.current!==null||(Cs=!0),(Tn&134217727)===0&&(ts&134217727)===0||Lt===null||Mn(Lt,ut,Rr,!1)}function fl(o,c,m){var y=wt;wt|=2;var C=md(),I=xd();(Lt!==o||ut!==c)&&(ma=null,ks(o,c)),c=!1;var J=zt;e:do try{if(St!==0&&st!==null){var re=st,ie=pr;switch(St){case 8:dl(),J=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(c=!0);var me=St;if(St=0,pr=null,Ms(o,re,ie,me),m&&Cs){J=0;break e}break;default:me=St,St=0,pr=null,Ms(o,re,ie,me)}}Rf(),J=zt;break}catch(be){pd(o,be)}while(!0);return c&&o.shellSuspendCounter++,Qr=Yn=null,wt=y,F.H=C,F.A=I,st===null&&(Lt=null,ut=0,Bi()),J}function Rf(){for(;st!==null;)gd(st)}function jf(o,c){var m=wt;wt|=2;var y=md(),C=xd();Lt!==o||ut!==c?(ma=null,pa=Te()+500,ks(o,c)):Cs=Je(o,c);e:do try{if(St!==0&&st!==null){c=st;var I=pr;t:switch(St){case 1:St=0,pr=null,Ms(o,c,I,1);break;case 2:case 9:if(Tc(I)){St=0,pr=null,yd(c);break}c=function(){St!==2&&St!==9||Lt!==o||(St=7),Fr(o)},I.then(c,c);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:Tc(I)?(St=0,pr=null,yd(c)):(St=0,pr=null,Ms(o,c,I,7));break;case 5:var J=null;switch(st.tag){case 26:J=st.memoizedState;case 5:case 27:var re=st;if(!J||Jd(J)){St=0,pr=null;var ie=re.sibling;if(ie!==null)st=ie;else{var me=re.return;me!==null?(st=me,ga(me)):st=null}break t}}St=0,pr=null,Ms(o,c,I,5);break;case 6:St=0,pr=null,Ms(o,c,I,6);break;case 8:dl(),zt=6;break e;default:throw Error(n(462))}}Cf();break}catch(be){pd(o,be)}while(!0);return Qr=Yn=null,F.H=y,F.A=C,wt=m,st!==null?0:(Lt=null,ut=0,Bi(),zt)}function Cf(){for(;st!==null&&!Le();)gd(st)}function gd(o){var c=Uu(o.alternate,o,ln);o.memoizedProps=o.pendingProps,c===null?ga(o):st=c}function yd(o){var c=o,m=c.alternate;switch(c.tag){case 15:case 0:c=Ou(m,c,c.pendingProps,c.type,void 0,ut);break;case 11:c=Ou(m,c,c.pendingProps,c.type.render,c.ref,ut);break;case 5:To(c);default:Hu(m,c),c=st=yc(c,ln),c=Uu(m,c,ln)}o.memoizedProps=o.pendingProps,c===null?ga(o):st=c}function Ms(o,c,m,y){Qr=Yn=null,To(c),ws=null,oi=0;var C=c.return;try{if(mf(o,C,c,m,ut)){zt=1,la(o,br(m,o.current)),st=null;return}}catch(I){if(C!==null)throw st=C,I;zt=1,la(o,br(m,o.current)),st=null;return}c.flags&32768?(yt||y===1?o=!0:Cs||(ut&536870912)!==0?o=!1:(_n=o=!0,(y===2||y===9||y===3||y===6)&&(y=Sr.current,y!==null&&y.tag===13&&(y.flags|=16384))),bd(c,o)):ga(c)}function ga(o){var c=o;do{if((c.flags&32768)!==0){bd(c,_n);return}o=c.return;var m=gf(c.alternate,c,ln);if(m!==null){st=m;return}if(c=c.sibling,c!==null){st=c;return}st=c=o}while(c!==null);zt===0&&(zt=5)}function bd(o,c){do{var m=yf(o.alternate,o);if(m!==null){m.flags&=32767,st=m;return}if(m=o.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(o=o.sibling,o!==null)){st=o;return}st=o=m}while(o!==null);zt=6,st=null}function vd(o,c,m,y,C,I,J,re,ie){o.cancelPendingCommit=null;do ya();while(Xt!==0);if((wt&6)!==0)throw Error(n(327));if(c!==null){if(c===o.current)throw Error(n(177));if(I=c.lanes|c.childLanes,I|=ro,zr(o,m,I,J,re,ie),o===Lt&&(st=Lt=null,ut=0),Ts=c,kn=o,As=m,ll=I,cl=C,ud=y,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,kf(ze,function(){return jd(),null})):(o.callbackNode=null,o.callbackPriority=0),y=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||y){y=F.T,F.T=null,C=k.p,k.p=2,J=wt,wt|=4;try{bf(o,c,m)}finally{wt=J,k.p=C,F.T=y}}Xt=1,Ed(),wd(),Sd()}}function Ed(){if(Xt===1){Xt=0;var o=kn,c=Ts,m=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||m){m=F.T,F.T=null;var y=k.p;k.p=2;var C=wt;wt|=4;try{rd(c,o);var I=jl,J=lc(o.containerInfo),re=I.focusedElem,ie=I.selectionRange;if(J!==re&&re&&re.ownerDocument&&oc(re.ownerDocument.documentElement,re)){if(ie!==null&&Xa(re)){var me=ie.start,be=ie.end;if(be===void 0&&(be=me),"selectionStart"in re)re.selectionStart=me,re.selectionEnd=Math.min(be,re.value.length);else{var we=re.ownerDocument||document,xe=we&&we.defaultView||window;if(xe.getSelection){var ge=xe.getSelection(),Ge=re.textContent.length,$e=Math.min(ie.start,Ge),Ct=ie.end===void 0?$e:Math.min(ie.end,Ge);!ge.extend&&$e>Ct&&(J=Ct,Ct=$e,$e=J);var ue=ac(re,$e),oe=ac(re,Ct);if(ue&&oe&&(ge.rangeCount!==1||ge.anchorNode!==ue.node||ge.anchorOffset!==ue.offset||ge.focusNode!==oe.node||ge.focusOffset!==oe.offset)){var pe=we.createRange();pe.setStart(ue.node,ue.offset),ge.removeAllRanges(),$e>Ct?(ge.addRange(pe),ge.extend(oe.node,oe.offset)):(pe.setEnd(oe.node,oe.offset),ge.addRange(pe))}}}}for(we=[],ge=re;ge=ge.parentNode;)ge.nodeType===1&&we.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<we.length;re++){var Ee=we[re];Ee.element.scrollLeft=Ee.left,Ee.element.scrollTop=Ee.top}}ka=!!Rl,jl=Rl=null}finally{wt=C,k.p=y,F.T=m}}o.current=c,Xt=2}}function wd(){if(Xt===2){Xt=0;var o=kn,c=Ts,m=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||m){m=F.T,F.T=null;var y=k.p;k.p=2;var C=wt;wt|=4;try{Qu(o,c.alternate,c)}finally{wt=C,k.p=y,F.T=m}}Xt=3}}function Sd(){if(Xt===4||Xt===3){Xt=0,et();var o=kn,c=Ts,m=As,y=ud;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Xt=5:(Xt=0,Ts=kn=null,Rd(o,o.pendingLanes));var C=o.pendingLanes;if(C===0&&(An=null),Tt(m),c=c.stateNode,ee&&typeof ee.onCommitFiberRoot=="function")try{ee.onCommitFiberRoot(Ze,c,void 0,(c.current.flags&128)===128)}catch{}if(y!==null){c=F.T,C=k.p,k.p=2,F.T=null;try{for(var I=o.onRecoverableError,J=0;J<y.length;J++){var re=y[J];I(re.value,{componentStack:re.stack})}}finally{F.T=c,k.p=C}}(As&3)!==0&&ya(),Fr(o),C=o.pendingLanes,(m&4194090)!==0&&(C&42)!==0?o===ul?xi++:(xi=0,ul=o):xi=0,gi(0)}}function Rd(o,c){(o.pooledCacheLanes&=c)===0&&(c=o.pooledCache,c!=null&&(o.pooledCache=null,Zs(c)))}function ya(o){return Ed(),wd(),Sd(),jd()}function jd(){if(Xt!==5)return!1;var o=kn,c=ll;ll=0;var m=Tt(As),y=F.T,C=k.p;try{k.p=32>m?32:m,F.T=null,m=cl,cl=null;var I=kn,J=As;if(Xt=0,Ts=kn=null,As=0,(wt&6)!==0)throw Error(n(331));var re=wt;if(wt|=4,ld(I.current),sd(I,I.current,J,m),wt=re,gi(0,!1),ee&&typeof ee.onPostCommitFiberRoot=="function")try{ee.onPostCommitFiberRoot(Ze,I)}catch{}return!0}finally{k.p=C,F.T=y,Rd(o,c)}}function Cd(o,c,m){c=br(m,c),c=Wo(o.stateNode,c,2),o=vn(o,c,2),o!==null&&(xt(o,2),Fr(o))}function Nt(o,c,m){if(o.tag===3)Cd(o,o,m);else for(;c!==null;){if(c.tag===3){Cd(c,o,m);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(An===null||!An.has(y))){o=br(m,o),m=Au(2),y=vn(c,m,2),y!==null&&(ku(m,y,c,o),xt(y,2),Fr(y));break}}c=c.return}}function pl(o,c,m){var y=o.pingCache;if(y===null){y=o.pingCache=new wf;var C=new Set;y.set(c,C)}else C=y.get(c),C===void 0&&(C=new Set,y.set(c,C));C.has(m)||(sl=!0,C.add(m),o=_f.bind(null,o,c,m),c.then(o,o))}function _f(o,c,m){var y=o.pingCache;y!==null&&y.delete(c),o.pingedLanes|=o.suspendedLanes&m,o.warmLanes&=~m,Lt===o&&(ut&m)===m&&(zt===4||zt===3&&(ut&62914560)===ut&&300>Te()-ol?(wt&2)===0&&ks(o,0):il|=m,_s===ut&&(_s=0)),Fr(o)}function _d(o,c){c===0&&(c=Mr()),o=hs(o,c),o!==null&&(xt(o,c),Fr(o))}function Tf(o){var c=o.memoizedState,m=0;c!==null&&(m=c.retryLane),_d(o,m)}function Af(o,c){var m=0;switch(o.tag){case 13:var y=o.stateNode,C=o.memoizedState;C!==null&&(m=C.retryLane);break;case 19:y=o.stateNode;break;case 22:y=o.stateNode._retryCache;break;default:throw Error(n(314))}y!==null&&y.delete(c),_d(o,m)}function kf(o,c){return Me(o,c)}var ba=null,Ns=null,ml=!1,va=!1,xl=!1,rs=0;function Fr(o){o!==Ns&&o.next===null&&(Ns===null?ba=Ns=o:Ns=Ns.next=o),va=!0,ml||(ml=!0,Nf())}function gi(o,c){if(!xl&&va){xl=!0;do for(var m=!1,y=ba;y!==null;){if(o!==0){var C=y.pendingLanes;if(C===0)var I=0;else{var J=y.suspendedLanes,re=y.pingedLanes;I=(1<<31-Y(42|o)+1)-1,I&=C&~(J&~re),I=I&201326741?I&201326741|1:I?I|2:0}I!==0&&(m=!0,Md(y,I))}else I=ut,I=Fe(y,y===Lt?I:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(I&3)===0||Je(y,I)||(m=!0,Md(y,I));y=y.next}while(m);xl=!1}}function Mf(){Td()}function Td(){va=ml=!1;var o=0;rs!==0&&(zf()&&(o=rs),rs=0);for(var c=Te(),m=null,y=ba;y!==null;){var C=y.next,I=Ad(y,c);I===0?(y.next=null,m===null?ba=C:m.next=C,C===null&&(Ns=m)):(m=y,(o!==0||(I&3)!==0)&&(va=!0)),y=C}gi(o)}function Ad(o,c){for(var m=o.suspendedLanes,y=o.pingedLanes,C=o.expirationTimes,I=o.pendingLanes&-62914561;0<I;){var J=31-Y(I),re=1<<J,ie=C[J];ie===-1?((re&m)===0||(re&y)!==0)&&(C[J]=Ve(re,c)):ie<=c&&(o.expiredLanes|=re),I&=~re}if(c=Lt,m=ut,m=Fe(o,o===c?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y=o.callbackNode,m===0||o===c&&(St===2||St===9)||o.cancelPendingCommit!==null)return y!==null&&y!==null&&ve(y),o.callbackNode=null,o.callbackPriority=0;if((m&3)===0||Je(o,m)){if(c=m&-m,c===o.callbackPriority)return c;switch(y!==null&&ve(y),Tt(m)){case 2:case 8:m=Ie;break;case 32:m=ze;break;case 268435456:m=qe;break;default:m=ze}return y=kd.bind(null,o),m=Me(m,y),o.callbackPriority=c,o.callbackNode=m,c}return y!==null&&y!==null&&ve(y),o.callbackPriority=2,o.callbackNode=null,2}function kd(o,c){if(Xt!==0&&Xt!==5)return o.callbackNode=null,o.callbackPriority=0,null;var m=o.callbackNode;if(ya()&&o.callbackNode!==m)return null;var y=ut;return y=Fe(o,o===Lt?y:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y===0?null:(hd(o,y,c),Ad(o,Te()),o.callbackNode!=null&&o.callbackNode===m?kd.bind(null,o):null)}function Md(o,c){if(ya())return null;hd(o,c,!0)}function Nf(){Wf(function(){(wt&6)!==0?Me(Ye,Mf):Td()})}function gl(){return rs===0&&(rs=mt()),rs}function Nd(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Mi(""+o)}function Pd(o,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,o.id&&m.setAttribute("form",o.id),c.parentNode.insertBefore(m,c),o=new FormData(o),m.parentNode.removeChild(m),o}function Pf(o,c,m,y,C){if(c==="submit"&&m&&m.stateNode===C){var I=Nd((C[Ot]||null).action),J=y.submitter;J&&(c=(c=J[Ot]||null)?Nd(c.formAction):J.getAttribute("formAction"),c!==null&&(I=c,J=null));var re=new Ii("action","action",null,y,C);o.push({event:re,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(rs!==0){var ie=J?Pd(C,J):new FormData(C);Oo(m,{pending:!0,data:ie,method:C.method,action:I},null,ie)}}else typeof I=="function"&&(re.preventDefault(),ie=J?Pd(C,J):new FormData(C),Oo(m,{pending:!0,data:ie,method:C.method,action:I},I,ie))},currentTarget:C}]})}}for(var yl=0;yl<to.length;yl++){var bl=to[yl],Lf=bl.toLowerCase(),If=bl[0].toUpperCase()+bl.slice(1);Tr(Lf,"on"+If)}Tr(dc,"onAnimationEnd"),Tr(hc,"onAnimationIteration"),Tr(fc,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Xh,"onTransitionRun"),Tr(Qh,"onTransitionStart"),Tr(Jh,"onTransitionCancel"),Tr(pc,"onTransitionEnd"),cr("onMouseEnter",["mouseout","mouseover"]),cr("onMouseLeave",["mouseout","mouseover"]),cr("onPointerEnter",["pointerout","pointerover"]),cr("onPointerLeave",["pointerout","pointerover"]),rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="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(" "),Df=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yi));function Ld(o,c){c=(c&4)!==0;for(var m=0;m<o.length;m++){var y=o[m],C=y.event;y=y.listeners;e:{var I=void 0;if(c)for(var J=y.length-1;0<=J;J--){var re=y[J],ie=re.instance,me=re.currentTarget;if(re=re.listener,ie!==I&&C.isPropagationStopped())break e;I=re,C.currentTarget=me;try{I(C)}catch(be){oa(be)}C.currentTarget=null,I=ie}else for(J=0;J<y.length;J++){if(re=y[J],ie=re.instance,me=re.currentTarget,re=re.listener,ie!==I&&C.isPropagationStopped())break e;I=re,C.currentTarget=me;try{I(C)}catch(be){oa(be)}C.currentTarget=null,I=ie}}}}function it(o,c){var m=c[gt];m===void 0&&(m=c[gt]=new Set);var y=o+"__bubble";m.has(y)||(Id(c,o,2,!1),m.add(y))}function vl(o,c,m){var y=0;c&&(y|=4),Id(m,o,y,c)}var Ea="_reactListening"+Math.random().toString(36).slice(2);function El(o){if(!o[Ea]){o[Ea]=!0,Wr.forEach(function(m){m!=="selectionchange"&&(Df.has(m)||vl(m,!1,o),vl(m,!0,o))});var c=o.nodeType===9?o:o.ownerDocument;c===null||c[Ea]||(c[Ea]=!0,vl("selectionchange",!1,c))}}function Id(o,c,m,y){switch(ih(c)){case 2:var C=cp;break;case 8:C=up;break;default:C=Il}m=C.bind(null,c,m,o),C=void 0,!Wa||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(C=!0),y?C!==void 0?o.addEventListener(c,m,{capture:!0,passive:C}):o.addEventListener(c,m,!0):C!==void 0?o.addEventListener(c,m,{passive:C}):o.addEventListener(c,m,!1)}function wl(o,c,m,y,C){var I=y;if((c&1)===0&&(c&2)===0&&y!==null)e:for(;;){if(y===null)return;var J=y.tag;if(J===3||J===4){var re=y.stateNode.containerInfo;if(re===C)break;if(J===4)for(J=y.return;J!==null;){var ie=J.tag;if((ie===3||ie===4)&&J.stateNode.containerInfo===C)return;J=J.return}for(;re!==null;){if(J=ht(re),J===null)return;if(ie=J.tag,ie===5||ie===6||ie===26||ie===27){y=I=J;continue e}re=re.parentNode}}y=y.return}Vl(function(){var me=I,be=za(m),we=[];e:{var xe=mc.get(o);if(xe!==void 0){var ge=Ii,Ge=o;switch(o){case"keypress":if(Pi(m)===0)break e;case"keydown":case"keyup":ge=Ah;break;case"focusin":Ge="focus",ge=qa;break;case"focusout":Ge="blur",ge=qa;break;case"beforeblur":case"afterblur":ge=qa;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=$l;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=xh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=Nh;break;case dc:case hc:case fc:ge=bh;break;case pc:ge=Lh;break;case"scroll":case"scrollend":ge=ph;break;case"wheel":ge=Dh;break;case"copy":case"cut":case"paste":ge=wh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=ql;break;case"toggle":case"beforetoggle":ge=Bh}var $e=(c&4)!==0,Ct=!$e&&(o==="scroll"||o==="scrollend"),ue=$e?xe!==null?xe+"Capture":null:xe;$e=[];for(var oe=me,pe;oe!==null;){var Ee=oe;if(pe=Ee.stateNode,Ee=Ee.tag,Ee!==5&&Ee!==26&&Ee!==27||pe===null||ue===null||(Ee=Os(oe,ue),Ee!=null&&$e.push(bi(oe,Ee,pe))),Ct)break;oe=oe.return}0<$e.length&&(xe=new ge(xe,Ge,null,m,be),we.push({event:xe,listeners:$e}))}}if((c&7)===0){e:{if(xe=o==="mouseover"||o==="pointerover",ge=o==="mouseout"||o==="pointerout",xe&&m!==Fa&&(Ge=m.relatedTarget||m.fromElement)&&(ht(Ge)||Ge[dt]))break e;if((ge||xe)&&(xe=be.window===be?be:(xe=be.ownerDocument)?xe.defaultView||xe.parentWindow:window,ge?(Ge=m.relatedTarget||m.toElement,ge=me,Ge=Ge?ht(Ge):null,Ge!==null&&(Ct=a(Ge),$e=Ge.tag,Ge!==Ct||$e!==5&&$e!==27&&$e!==6)&&(Ge=null)):(ge=null,Ge=me),ge!==Ge)){if($e=$l,Ee="onMouseLeave",ue="onMouseEnter",oe="mouse",(o==="pointerout"||o==="pointerover")&&($e=ql,Ee="onPointerLeave",ue="onPointerEnter",oe="pointer"),Ct=ge==null?xe:vt(ge),pe=Ge==null?xe:vt(Ge),xe=new $e(Ee,oe+"leave",ge,m,be),xe.target=Ct,xe.relatedTarget=pe,Ee=null,ht(be)===me&&($e=new $e(ue,oe+"enter",Ge,m,be),$e.target=pe,$e.relatedTarget=Ct,Ee=$e),Ct=Ee,ge&&Ge)t:{for($e=ge,ue=Ge,oe=0,pe=$e;pe;pe=Ps(pe))oe++;for(pe=0,Ee=ue;Ee;Ee=Ps(Ee))pe++;for(;0<oe-pe;)$e=Ps($e),oe--;for(;0<pe-oe;)ue=Ps(ue),pe--;for(;oe--;){if($e===ue||ue!==null&&$e===ue.alternate)break t;$e=Ps($e),ue=Ps(ue)}$e=null}else $e=null;ge!==null&&Dd(we,xe,ge,$e,!1),Ge!==null&&Ct!==null&&Dd(we,Ct,Ge,$e,!0)}}e:{if(xe=me?vt(me):window,ge=xe.nodeName&&xe.nodeName.toLowerCase(),ge==="select"||ge==="input"&&xe.type==="file")var Oe=ec;else if(Ql(xe))if(tc)Oe=Kh;else{Oe=qh;var nt=Hh}else ge=xe.nodeName,!ge||ge.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?me&&Ba(me.elementType)&&(Oe=ec):Oe=Gh;if(Oe&&(Oe=Oe(o,me))){Jl(we,Oe,m,be);break e}nt&&nt(o,xe,me),o==="focusout"&&me&&xe.type==="number"&&me.memoizedProps.value!=null&&Ae(xe,"number",xe.value)}switch(nt=me?vt(me):window,o){case"focusin":(Ql(nt)||nt.contentEditable==="true")&&(cs=nt,Qa=me,Hs=null);break;case"focusout":Hs=Qa=cs=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,cc(we,m,be);break;case"selectionchange":if(Zh)break;case"keydown":case"keyup":cc(we,m,be)}var We;if(Ka)e:{switch(o){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else ls?Zl(o,m)&&(He="onCompositionEnd"):o==="keydown"&&m.keyCode===229&&(He="onCompositionStart");He&&(Gl&&m.locale!=="ko"&&(ls||He!=="onCompositionStart"?He==="onCompositionEnd"&&ls&&(We=Wl()):(mn=be,Ua="value"in mn?mn.value:mn.textContent,ls=!0)),nt=wa(me,He),0<nt.length&&(He=new Hl(He,o,null,m,be),we.push({event:He,listeners:nt}),We?He.data=We:(We=Xl(m),We!==null&&(He.data=We)))),(We=zh?Vh(o,m):Wh(o,m))&&(He=wa(me,"onBeforeInput"),0<He.length&&(nt=new Hl("onBeforeInput","beforeinput",null,m,be),we.push({event:nt,listeners:He}),nt.data=We)),Pf(we,o,me,m,be)}Ld(we,c)})}function bi(o,c,m){return{instance:o,listener:c,currentTarget:m}}function wa(o,c){for(var m=c+"Capture",y=[];o!==null;){var C=o,I=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||I===null||(C=Os(o,m),C!=null&&y.unshift(bi(o,C,I)),C=Os(o,c),C!=null&&y.push(bi(o,C,I))),o.tag===3)return y;o=o.return}return[]}function Ps(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Dd(o,c,m,y,C){for(var I=c._reactName,J=[];m!==null&&m!==y;){var re=m,ie=re.alternate,me=re.stateNode;if(re=re.tag,ie!==null&&ie===y)break;re!==5&&re!==26&&re!==27||me===null||(ie=me,C?(me=Os(m,I),me!=null&&J.unshift(bi(m,me,ie))):C||(me=Os(m,I),me!=null&&J.push(bi(m,me,ie)))),m=m.return}J.length!==0&&o.push({event:c,listeners:J})}var Of=/\r\n?/g,Bf=/\u0000|\uFFFD/g;function Od(o){return(typeof o=="string"?o:""+o).replace(Of,` 50`).replace(Bf,"")}function Bd(o,c){return c=Od(c),Od(o)===c}function Sa(){}function jt(o,c,m,y,C,I){switch(m){case"children":typeof y=="string"?c==="body"||c==="textarea"&&y===""||It(o,y):(typeof y=="number"||typeof y=="bigint")&&c!=="body"&&It(o,""+y);break;case"className":Lr(o,"class",y);break;case"tabIndex":Lr(o,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Lr(o,m,y);break;case"style":ki(o,y,I);break;case"data":if(c!=="object"){Lr(o,"data",y);break}case"src":case"href":if(y===""&&(c!=="a"||m!=="href")){o.removeAttribute(m);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(m);break}y=Mi(""+y),o.setAttribute(m,y);break;case"action":case"formAction":if(typeof y=="function"){o.setAttribute(m,"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 I=="function"&&(m==="formAction"?(c!=="input"&&jt(o,c,"name",C.name,C,null),jt(o,c,"formEncType",C.formEncType,C,null),jt(o,c,"formMethod",C.formMethod,C,null),jt(o,c,"formTarget",C.formTarget,C,null)):(jt(o,c,"encType",C.encType,C,null),jt(o,c,"method",C.method,C,null),jt(o,c,"target",C.target,C,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(m);break}y=Mi(""+y),o.setAttribute(m,y);break;case"onClick":y!=null&&(o.onclick=Sa);break;case"onScroll":y!=null&&it("scroll",o);break;case"onScrollEnd":y!=null&&it("scrollend",o);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(n(61));if(m=y.__html,m!=null){if(C.children!=null)throw Error(n(60));o.innerHTML=m}}break;case"multiple":o.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":o.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){o.removeAttribute("xlink:href");break}m=Mi(""+y),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,""+y):o.removeAttribute(m);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":y&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,""):o.removeAttribute(m);break;case"capture":case"download":y===!0?o.setAttribute(m,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,y):o.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?o.setAttribute(m,y):o.removeAttribute(m);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?o.removeAttribute(m):o.setAttribute(m,y);break;case"popover":it("beforetoggle",o),it("toggle",o),Pr(o,"popover",y);break;case"xlinkActuate":er(o,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":er(o,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":er(o,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":er(o,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":er(o,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":er(o,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":er(o,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":er(o,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":er(o,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":Pr(o,"is",y);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=hh.get(m)||m,Pr(o,m,y))}}function Sl(o,c,m,y,C,I){switch(m){case"style":ki(o,y,I);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(n(61));if(m=y.__html,m!=null){if(C.children!=null)throw Error(n(60));o.innerHTML=m}}break;case"children":typeof y=="string"?It(o,y):(typeof y=="number"||typeof y=="bigint")&&It(o,""+y);break;case"onScroll":y!=null&&it("scroll",o);break;case"onScrollEnd":y!=null&&it("scrollend",o);break;case"onClick":y!=null&&(o.onclick=Sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ur.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(C=m.endsWith("Capture"),c=m.slice(2,C?m.length-7:void 0),I=o[Ot]||null,I=I!=null?I[m]:null,typeof I=="function"&&o.removeEventListener(c,I,C),typeof y=="function")){typeof I!="function"&&I!==null&&(m in o?o[m]=null:o.hasAttribute(m)&&o.removeAttribute(m)),o.addEventListener(c,y,C);break e}m in o?o[m]=y:y===!0?o.setAttribute(m,""):Pr(o,m,y)}}}function Qt(o,c,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",o),it("load",o);var y=!1,C=!1,I;for(I in m)if(m.hasOwnProperty(I)){var J=m[I];if(J!=null)switch(I){case"src":y=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,c));default:jt(o,c,I,J,m,null)}}C&&jt(o,c,"srcSet",m.srcSet,m,null),y&&jt(o,c,"src",m.src,m,null);return;case"input":it("invalid",o);var re=I=J=C=null,ie=null,me=null;for(y in m)if(m.hasOwnProperty(y)){var be=m[y];if(be!=null)switch(y){case"name":C=be;break;case"type":J=be;break;case"checked":ie=be;break;case"defaultChecked":me=be;break;case"value":I=be;break;case"defaultValue":re=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(n(137,c));break;default:jt(o,c,y,be,m,null)}}ke(o,I,re,ie,me,J,C,!1),ss(o);return;case"select":it("invalid",o),y=J=I=null;for(C in m)if(m.hasOwnProperty(C)&&(re=m[C],re!=null))switch(C){case"value":I=re;break;case"defaultValue":J=re;break;case"multiple":y=re;default:jt(o,c,C,re,m,null)}c=I,m=J,o.multiple=!!y,c!=null?De(o,!!y,c,!1):m!=null&&De(o,!!y,m,!0);return;case"textarea":it("invalid",o),I=C=y=null;for(J in m)if(m.hasOwnProperty(J)&&(re=m[J],re!=null))switch(J){case"value":y=re;break;case"defaultValue":C=re;break;case"children":I=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(n(91));break;default:jt(o,c,J,re,m,null)}rt(o,y,C,I),ss(o);return;case"option":for(ie in m)if(m.hasOwnProperty(ie)&&(y=m[ie],y!=null))switch(ie){case"selected":o.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:jt(o,c,ie,y,m,null)}return;case"dialog":it("beforetoggle",o),it("toggle",o),it("cancel",o),it("close",o);break;case"iframe":case"object":it("load",o);break;case"video":case"audio":for(y=0;y<yi.length;y++)it(yi[y],o);break;case"image":it("error",o),it("load",o);break;case"details":it("toggle",o);break;case"embed":case"source":case"link":it("error",o),it("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(me in m)if(m.hasOwnProperty(me)&&(y=m[me],y!=null))switch(me){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,c));default:jt(o,c,me,y,m,null)}return;default:if(Ba(c)){for(be in m)m.hasOwnProperty(be)&&(y=m[be],y!==void 0&&Sl(o,c,be,y,m,void 0));return}}for(re in m)m.hasOwnProperty(re)&&(y=m[re],y!=null&&jt(o,c,re,y,m,null))}function Ff(o,c,m,y){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,I=null,J=null,re=null,ie=null,me=null,be=null;for(ge in m){var we=m[ge];if(m.hasOwnProperty(ge)&&we!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":ie=we;default:y.hasOwnProperty(ge)||jt(o,c,ge,null,y,we)}}for(var xe in y){var ge=y[xe];if(we=m[xe],y.hasOwnProperty(xe)&&(ge!=null||we!=null))switch(xe){case"type":I=ge;break;case"name":C=ge;break;case"checked":me=ge;break;case"defaultChecked":be=ge;break;case"value":J=ge;break;case"defaultValue":re=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(n(137,c));break;default:ge!==we&&jt(o,c,xe,ge,y,we)}}je(o,J,re,ie,me,be,I,C);return;case"select":ge=J=re=xe=null;for(I in m)if(ie=m[I],m.hasOwnProperty(I)&&ie!=null)switch(I){case"value":break;case"multiple":ge=ie;default:y.hasOwnProperty(I)||jt(o,c,I,null,y,ie)}for(C in y)if(I=y[C],ie=m[C],y.hasOwnProperty(C)&&(I!=null||ie!=null))switch(C){case"value":xe=I;break;case"defaultValue":re=I;break;case"multiple":J=I;default:I!==ie&&jt(o,c,C,I,y,ie)}c=re,m=J,y=ge,xe!=null?De(o,!!m,xe,!1):!!y!=!!m&&(c!=null?De(o,!!m,c,!0):De(o,!!m,m?[]:"",!1));return;case"textarea":ge=xe=null;for(re in m)if(C=m[re],m.hasOwnProperty(re)&&C!=null&&!y.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:jt(o,c,re,null,y,C)}for(J in y)if(C=y[J],I=m[J],y.hasOwnProperty(J)&&(C!=null||I!=null))switch(J){case"value":xe=C;break;case"defaultValue":ge=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(n(91));break;default:C!==I&&jt(o,c,J,C,y,I)}Ke(o,xe,ge);return;case"option":for(var Ge in m)if(xe=m[Ge],m.hasOwnProperty(Ge)&&xe!=null&&!y.hasOwnProperty(Ge))switch(Ge){case"selected":o.selected=!1;break;default:jt(o,c,Ge,null,y,xe)}for(ie in y)if(xe=y[ie],ge=m[ie],y.hasOwnProperty(ie)&&xe!==ge&&(xe!=null||ge!=null))switch(ie){case"selected":o.selected=xe&&typeof xe!="function"&&typeof xe!="symbol";break;default:jt(o,c,ie,xe,y,ge)}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 $e in m)xe=m[$e],m.hasOwnProperty($e)&&xe!=null&&!y.hasOwnProperty($e)&&jt(o,c,$e,null,y,xe);for(me in y)if(xe=y[me],ge=m[me],y.hasOwnProperty(me)&&xe!==ge&&(xe!=null||ge!=null))switch(me){case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(n(137,c));break;default:jt(o,c,me,xe,y,ge)}return;default:if(Ba(c)){for(var Ct in m)xe=m[Ct],m.hasOwnProperty(Ct)&&xe!==void 0&&!y.hasOwnProperty(Ct)&&Sl(o,c,Ct,void 0,y,xe);for(be in y)xe=y[be],ge=m[be],!y.hasOwnProperty(be)||xe===ge||xe===void 0&&ge===void 0||Sl(o,c,be,xe,y,ge);return}}for(var ue in m)xe=m[ue],m.hasOwnProperty(ue)&&xe!=null&&!y.hasOwnProperty(ue)&&jt(o,c,ue,null,y,xe);for(we in y)xe=y[we],ge=m[we],!y.hasOwnProperty(we)||xe===ge||xe==null&&ge==null||jt(o,c,we,xe,y,ge)}var Rl=null,jl=null;function Ra(o){return o.nodeType===9?o:o.ownerDocument}function Fd(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zd(o,c){if(o===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&c==="foreignObject"?0:o}function Cl(o,c){return o==="textarea"||o==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var _l=null;function zf(){var o=window.event;return o&&o.type==="popstate"?o===_l?!1:(_l=o,!0):(_l=null,!1)}var Vd=typeof setTimeout=="function"?setTimeout:void 0,Vf=typeof clearTimeout=="function"?clearTimeout:void 0,Wd=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Wd<"u"?function(o){return Wd.resolve(null).then(o).catch(Uf)}:Vd;function Uf(o){setTimeout(function(){throw o})}function Nn(o){return o==="head"}function Ud(o,c){var m=c,y=0,C=0;do{var I=m.nextSibling;if(o.removeChild(m),I&&I.nodeType===8)if(m=I.data,m==="/$"){if(0<y&&8>y){m=y;var J=o.ownerDocument;if(m&1&&vi(J.documentElement),m&2&&vi(J.body),m&4)for(m=J.head,vi(m),J=m.firstChild;J;){var re=J.nextSibling,ie=J.nodeName;J[gr]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&J.rel.toLowerCase()==="stylesheet"||m.removeChild(J),J=re}}if(C===0){o.removeChild(I),Ti(c);return}C--}else m==="$"||m==="$?"||m==="$!"?C++:y=m.charCodeAt(0)-48;else y=0;m=I}while(m);Ti(c)}function Tl(o){var c=o.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Tl(m),Et(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}o.removeChild(m)}}function $f(o,c,m,y){for(;o.nodeType===1;){var C=m;if(o.nodeName.toLowerCase()!==c.toLowerCase()){if(!y&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(y){if(!o[gr])switch(c){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(I=o.getAttribute("rel"),I==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(I!==C.rel||o.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||o.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||o.getAttribute("title")!==(C.title==null?null:C.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(I=o.getAttribute("src"),(I!==(C.src==null?null:C.src)||o.getAttribute("type")!==(C.type==null?null:C.type)||o.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&I&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(c==="input"&&o.type==="hidden"){var I=C.name==null?null:""+C.name;if(C.type==="hidden"&&o.getAttribute("name")===I)return o}else return o;if(o=kr(o.nextSibling),o===null)break}return null}function Hf(o,c,m){if(c==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!m||(o=kr(o.nextSibling),o===null))return null;return o}function Al(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function qf(o,c){var m=o.ownerDocument;if(o.data!=="$?"||m.readyState==="complete")c();else{var y=function(){c(),m.removeEventListener("DOMContentLoaded",y)};m.addEventListener("DOMContentLoaded",y),o._reactRetry=y}}function kr(o){for(;o!=null;o=o.nextSibling){var c=o.nodeType;if(c===1||c===3)break;if(c===8){if(c=o.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return o}var kl=null;function $d(o){o=o.previousSibling;for(var c=0;o;){if(o.nodeType===8){var m=o.data;if(m==="$"||m==="$!"||m==="$?"){if(c===0)return o;c--}else m==="/$"&&c++}o=o.previousSibling}return null}function Hd(o,c,m){switch(c=Ra(m),o){case"html":if(o=c.documentElement,!o)throw Error(n(452));return o;case"head":if(o=c.head,!o)throw Error(n(453));return o;case"body":if(o=c.body,!o)throw Error(n(454));return o;default:throw Error(n(451))}}function vi(o){for(var c=o.attributes;c.length;)o.removeAttributeNode(c[0]);Et(o)}var jr=new Map,qd=new Set;function ja(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var un=k.d;k.d={f:Gf,r:Kf,D:Yf,C:Zf,L:Xf,m:Qf,X:ep,S:Jf,M:tp};function Gf(){var o=un.f(),c=xa();return o||c}function Kf(o){var c=lr(o);c!==null&&c.tag===5&&c.type==="form"?du(c):un.r(o)}var Ls=typeof document>"u"?null:document;function Gd(o,c,m){var y=Ls;if(y&&typeof c=="string"&&c){var C=le(c);C='link[rel="'+o+'"][href="'+C+'"]',typeof m=="string"&&(C+='[crossorigin="'+m+'"]'),qd.has(C)||(qd.add(C),o={rel:o,crossOrigin:m,href:c},y.querySelector(C)===null&&(c=y.createElement("link"),Qt(c,"link",o),Pt(c),y.head.appendChild(c)))}}function Yf(o){un.D(o),Gd("dns-prefetch",o,null)}function Zf(o,c){un.C(o,c),Gd("preconnect",o,c)}function Xf(o,c,m){un.L(o,c,m);var y=Ls;if(y&&o&&c){var C='link[rel="preload"][as="'+le(c)+'"]';c==="image"&&m&&m.imageSrcSet?(C+='[imagesrcset="'+le(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(C+='[imagesizes="'+le(m.imageSizes)+'"]')):C+='[href="'+le(o)+'"]';var I=C;switch(c){case"style":I=Is(o);break;case"script":I=Ds(o)}jr.has(I)||(o=h({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:o,as:c},m),jr.set(I,o),y.querySelector(C)!==null||c==="style"&&y.querySelector(Ei(I))||c==="script"&&y.querySelector(wi(I))||(c=y.createElement("link"),Qt(c,"link",o),Pt(c),y.head.appendChild(c)))}}function Qf(o,c){un.m(o,c);var m=Ls;if(m&&o){var y=c&&typeof c.as=="string"?c.as:"script",C='link[rel="modulepreload"][as="'+le(y)+'"][href="'+le(o)+'"]',I=C;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=Ds(o)}if(!jr.has(I)&&(o=h({rel:"modulepreload",href:o},c),jr.set(I,o),m.querySelector(C)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(wi(I)))return}y=m.createElement("link"),Qt(y,"link",o),Pt(y),m.head.appendChild(y)}}}function Jf(o,c,m){un.S(o,c,m);var y=Ls;if(y&&o){var C=ft(y).hoistableStyles,I=Is(o);c=c||"default";var J=C.get(I);if(!J){var re={loading:0,preload:null};if(J=y.querySelector(Ei(I)))re.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":c},m),(m=jr.get(I))&&Ml(o,m);var ie=J=y.createElement("link");Pt(ie),Qt(ie,"link",o),ie._p=new Promise(function(me,be){ie.onload=me,ie.onerror=be}),ie.addEventListener("load",function(){re.loading|=1}),ie.addEventListener("error",function(){re.loading|=2}),re.loading|=4,Ca(J,c,y)}J={type:"stylesheet",instance:J,count:1,state:re},C.set(I,J)}}}function ep(o,c){un.X(o,c);var m=Ls;
vendor: 4,357 bytes, line 50
50if(m&&o){var y=ft(m).hoistableScripts,C=Ds(o),I=y.get(C);I||(I=m.querySelector(wi(C)),I||(o=h({src:o,async:!0},c),(c=jr.get(C))&&Nl(o,c),I=m.createElement("script"),Pt(I),Qt(I,"link",o),m.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},y.set(C,I))}}function tp(o,c){un.M(o,c);var m=Ls;if(m&&o){var y=ft(m).hoistableScripts,C=Ds(o),I=y.get(C);I||(I=m.querySelector(wi(C)),I||(o=h({src:o,async:!0,type:"module"},c),(c=jr.get(C))&&Nl(o,c),I=m.createElement("script"),Pt(I),Qt(I,"link",o),m.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},y.set(C,I))}}function Kd(o,c,m,y){var C=(C=te.current)?ja(C):null;if(!C)throw Error(n(446));switch(o){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(c=Is(m.href),m=ft(C).hoistableStyles,y=m.get(c),y||(y={type:"style",instance:null,count:0,state:null},m.set(c,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){o=Is(m.href);var I=ft(C).hoistableStyles,J=I.get(o);if(J||(C=C.ownerDocument||C,J={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(o,J),(I=C.querySelector(Ei(o)))&&!I._p&&(J.instance=I,J.state.loading=5),jr.has(o)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},jr.set(o,m),I||rp(C,o,m,J.state))),c&&y===null)throw Error(n(528,""));return J}if(c&&y!==null)throw Error(n(529,""));return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Ds(m),m=ft(C).hoistableScripts,y=m.get(c),y||(y={type:"script",instance:null,count:0,state:null},m.set(c,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,o))}}function Is(o){return'href="'+le(o)+'"'}function Ei(o){return'link[rel="stylesheet"]['+o+"]"}function Yd(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function rp(o,c,m,y){o.querySelector('link[rel="preload"][as="style"]['+c+"]")?y.loading=1:(c=o.createElement("link"),y.preload=c,c.addEventListener("load",function(){return y.loading|=1}),c.addEventListener("error",function(){return y.loading|=2}),Qt(c,"link",m),Pt(c),o.head.appendChild(c))}function Ds(o){return'[src="'+le(o)+'"]'}function wi(o){return"script[async]"+o}function Zd(o,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var y=o.querySelector('style[data-href~="'+le(m.href)+'"]');if(y)return c.instance=y,Pt(y),y;var C=h({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return y=(o.ownerDocument||o).createElement("style"),Pt(y),Qt(y,"style",C),Ca(y,m.precedence,o),c.instance=y;case"stylesheet":C=Is(m.href);var I=o.querySelector(Ei(C));if(I)return c.state.loading|=4,c.instance=I,Pt(I),I;y=Yd(m),(C=jr.get(C))&&Ml(y,C),I=(o.ownerDocument||o).createElement("link"),Pt(I);var J=I;return J._p=new Promise(function(re,ie){J.onload=re,J.onerror=ie}),Qt(I,"link",y),c.state.loading|=4,Ca(I,m.precedence,o),c.instance=I;case"script":return I=Ds(m.src),(C=o.querySelector(wi(I)))?(c.instance=C,Pt(C),C):(y=m,(C=jr.get(I))&&(y=h({},m),Nl(y,C)),o=o.ownerDocument||o,C=o.createElement("script"),Pt(C),Qt(C,"link",y),o.head.appendChild(C),c.instance=C);case"void":return null;default:throw Error(n(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(y=c.instance,c.state.loading|=4,Ca(y,m.precedence,o));return c.instance}function Ca(o,c,m){for(var y=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=y.length?y[y.length-1]:null,I=C,J=0;J<y.length;J++){var re=y[J];if(re.dataset.precedence===c)I=re;else if(I!==C)break}I?I.parentNode.insertBefore(o,I.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(o,c.firstChild))}function Ml(o,c){o.crossOrigin==null&&(o.crossOrigin=c.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=c.referrerPolicy),o.title==null&&(o.title=c.title)}function Nl(o,c){o.crossOrigin==null&&(o.crossOrigin=c.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=c.referrerPolicy),o.integrity==null&&(o.integrity=c.integrity)}var _a=null;function Xd(o,c,m){if(_a===null){var y=new Map,C=_a=new Map;C.set(m,y)}else C=_a,y=C.get(m),y||(y=new Map,C.set(m,y));if(y.has(o))return y;
vendor: 9,968 bytes, line 50
50for(y.set(o,null),m=m.getElementsByTagName(o),C=0;C<m.length;C++){var I=m[C];if(!(I[gr]||I[Qe]||o==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var J=I.getAttribute(c)||"";J=o+J;var re=y.get(J);re?re.push(I):y.set(J,[I])}}return y}function Qd(o,c,m){o=o.ownerDocument||o,o.head.insertBefore(m,c==="title"?o.querySelector("head > title"):null)}function np(o,c,m){if(m===1||c.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return o=c.disabled,typeof c.precedence=="string"&&o==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function Jd(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var Si=null;function sp(){}function ip(o,c,m){if(Si===null)throw Error(n(475));var y=Si;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var C=Is(m.href),I=o.querySelector(Ei(C));if(I){o=I._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(y.count++,y=Ta.bind(y),o.then(y,y)),c.state.loading|=4,c.instance=I,Pt(I);return}I=o.ownerDocument||o,m=Yd(m),(C=jr.get(C))&&Ml(m,C),I=I.createElement("link"),Pt(I);var J=I;J._p=new Promise(function(re,ie){J.onload=re,J.onerror=ie}),Qt(I,"link",m),c.instance=I}y.stylesheets===null&&(y.stylesheets=new Map),y.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(y.count++,c=Ta.bind(y),o.addEventListener("load",c),o.addEventListener("error",c))}}function ap(){if(Si===null)throw Error(n(475));var o=Si;return o.stylesheets&&o.count===0&&Pl(o,o.stylesheets),0<o.count?function(c){var m=setTimeout(function(){if(o.stylesheets&&Pl(o,o.stylesheets),o.unsuspend){var y=o.unsuspend;o.unsuspend=null,y()}},6e4);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(m)}}:null}function Ta(){if(this.count--,this.count===0){if(this.stylesheets)Pl(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Aa=null;function Pl(o,c){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Aa=new Map,c.forEach(op,o),Aa=null,Ta.call(o))}function op(o,c){if(!(c.state.loading&4)){var m=Aa.get(o);if(m)var y=m.get(null);else{m=new Map,Aa.set(o,m);for(var C=o.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<C.length;I++){var J=C[I];(J.nodeName==="LINK"||J.getAttribute("media")!=="not all")&&(m.set(J.dataset.precedence,J),y=J)}y&&m.set(null,y)}C=c.instance,J=C.getAttribute("data-precedence"),I=m.get(J)||y,I===y&&m.set(null,C),m.set(J,C),this.count++,y=Ta.bind(this),C.addEventListener("load",y),C.addEventListener("error",y),I?I.parentNode.insertBefore(C,I.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(C,o.firstChild)),c.state.loading|=4}}var Ri={$$typeof:T,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function lp(o,c,m,y,C,I,J,re){this.tag=1,this.containerInfo=o,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=bt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.hiddenUpdates=bt(null),this.identifierPrefix=y,this.onUncaughtError=C,this.onCaughtError=I,this.onRecoverableError=J,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=re,this.incompleteTransitions=new Map}function eh(o,c,m,y,C,I,J,re,ie,me,be,we){return o=new lp(o,c,m,J,re,ie,me,we),c=1,I===!0&&(c|=24),I=dr(3,null,null,c),o.current=I,I.stateNode=o,c=po(),c.refCount++,o.pooledCache=c,c.refCount++,I.memoizedState={element:y,isDehydrated:m,cache:c},yo(I),o}function th(o){return o?(o=fs,o):fs}function rh(o,c,m,y,C,I){C=th(C),y.context===null?y.context=C:y.pendingContext=C,y=yn(c),y.payload={element:m},I=I===void 0?null:I,I!==null&&(y.callback=I),m=vn(o,y,c),m!==null&&(xr(m,o,c),ei(m,o,c))}function nh(o,c){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var m=o.retryLane;o.retryLane=m!==0&&m<c?m:c}}function Ll(o,c){nh(o,c),(o=o.alternate)&&nh(o,c)}function sh(o){if(o.tag===13){var c=hs(o,67108864);c!==null&&xr(c,o,67108864),Ll(o,67108864)}}var ka=!0;function cp(o,c,m,y){var C=F.T;F.T=null;var I=k.p;try{k.p=2,Il(o,c,m,y)}finally{k.p=I,F.T=C}}function up(o,c,m,y){var C=F.T;F.T=null;var I=k.p;try{k.p=8,Il(o,c,m,y)}finally{k.p=I,F.T=C}}function Il(o,c,m,y){if(ka){var C=Dl(y);if(C===null)wl(o,c,y,Ma,m),ah(o,y);else if(hp(C,o,c,m,y))y.stopPropagation();else if(ah(o,y),c&4&&-1<dp.indexOf(o)){for(;C!==null;){var I=lr(C);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var J=Ne(I.pendingLanes);if(J!==0){var re=I;for(re.pendingLanes|=2,re.entangledLanes|=2;J;){var ie=1<<31-Y(J);re.entanglements[1]|=ie,J&=~ie}Fr(I),(wt&6)===0&&(pa=Te()+500,gi(0))}}break;case 13:re=hs(I,2),re!==null&&xr(re,I,2),xa(),Ll(I,2)}if(I=Dl(y),I===null&&wl(o,c,y,Ma,m),I===C)break;C=I}C!==null&&y.stopPropagation()}else wl(o,c,y,null,m)}}function Dl(o){return o=za(o),Ol(o)}var Ma=null;function Ol(o){if(Ma=null,o=ht(o),o!==null){var c=a(o);if(c===null)o=null;else{var m=c.tag;if(m===13){if(o=l(c),o!==null)return o;o=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;o=null}else c!==o&&(o=null)}}return Ma=o,null}function ih(o){switch(o){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(Be()){case Ye:return 2;case Ie:return 8;case ze:case at:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Bl=!1,Pn=null,Ln=null,In=null,ji=new Map,Ci=new Map,Dn=[],dp="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 ah(o,c){switch(o){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":Ln=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":ji.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ci.delete(c.pointerId)}}function _i(o,c,m,y,C,I){return o===null||o.nativeEvent!==I?(o={blockedOn:c,domEventName:m,eventSystemFlags:y,nativeEvent:I,targetContainers:[C]},c!==null&&(c=lr(c),c!==null&&sh(c)),o):(o.eventSystemFlags|=y,c=o.targetContainers,C!==null&&c.indexOf(C)===-1&&c.push(C),o)}function hp(o,c,m,y,C){switch(c){case"focusin":return Pn=_i(Pn,o,c,m,y,C),!0;case"dragenter":return Ln=_i(Ln,o,c,m,y,C),!0;case"mouseover":return In=_i(In,o,c,m,y,C),!0;case"pointerover":var I=C.pointerId;return ji.set(I,_i(ji.get(I)||null,o,c,m,y,C)),!0;case"gotpointercapture":return I=C.pointerId,Ci.set(I,_i(Ci.get(I)||null,o,c,m,y,C)),!0}return!1}function oh(o){var c=ht(o.target);if(c!==null){var m=a(c);if(m!==null){if(c=m.tag,c===13){if(c=l(m),c!==null){o.blockedOn=c,Vr(o.priority,function(){if(m.tag===13){var y=mr();y=Cr(y);var C=hs(m,y);C!==null&&xr(C,m,y),Ll(m,y)}});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){o.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Na(o){if(o.blockedOn!==null)return!1;for(var c=o.targetContainers;0<c.length;){var m=Dl(o.nativeEvent);if(m===null){m=o.nativeEvent;var y=new m.constructor(m.type,m);Fa=y,m.target.dispatchEvent(y),Fa=null}else return c=lr(m),c!==null&&sh(c),o.blockedOn=m,!1;c.shift()}return!0}function lh(o,c,m){Na(o)&&m.delete(c)}function fp(){Bl=!1,Pn!==null&&Na(Pn)&&(Pn=null),Ln!==null&&Na(Ln)&&(Ln=null),In!==null&&Na(In)&&(In=null),ji.forEach(lh),Ci.forEach(lh)}function Pa(o,c){o.blockedOn===c&&(o.blockedOn=null,Bl||(Bl=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fp)))}var La=null;function ch(o){La!==o&&(La=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){La===o&&(La=null);for(var c=0;c<o.length;c+=3){var m=o[c],y=o[c+1],C=o[c+2];if(typeof y!="function"){if(Ol(y||m)===null)continue;break}var I=lr(m);I!==null&&(o.splice(c,3),c-=3,Oo(I,{pending:!0,data:C,method:m.method,action:y},y,C))}}))}function Ti(o){function c(ie){return Pa(ie,o)}Pn!==null&&Pa(Pn,o),Ln!==null&&Pa(Ln,o),In!==null&&Pa(In,o),ji.forEach(c),Ci.forEach(c);for(var m=0;m<Dn.length;m++){var y=Dn[m];y.blockedOn===o&&(y.blockedOn=null)}for(;0<Dn.length&&(m=Dn[0],m.blockedOn===null);)oh(m),m.blockedOn===null&&Dn.shift();if(m=(o.ownerDocument||o).$$reactFormReplay,m!=null)for(y=0;y<m.length;
50y+=3){var C=m[y],I=m[y+1],J=C[Ot]||null;if(typeof I=="function")J||ch(m);else if(J){var re=null;if(I&&I.hasAttribute("formAction")){if(C=I,J=I[Ot]||null)re=J.formAction;else if(Ol(C)!==null)continue}else re=J.action;typeof re=="function"?m[y+1]=re:(m.splice(y,3),y-=3),ch(m)}}}function Fl(o){this._internalRoot=o}Ia.prototype.render=Fl.prototype.render=function(o){var c=this._internalRoot;if(c===null)throw Error(n(409));var m=c.current,y=mr();rh(m,y,o,c,null,null)},Ia.prototype.unmount=Fl.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var c=o.containerInfo;rh(o.current,2,null,o,null,null),xa(),c[dt]=null}};function Ia(o){this._internalRoot=o}Ia.prototype.unstable_scheduleHydration=function(o){if(o){var c=At();o={blockedOn:null,target:o,priority:c};for(var m=0;m<Dn.length&&c!==0&&c<Dn[m].priority;m++);Dn.splice(m,0,o),m===0&&oh(o)}};var uh=t.version;if(uh!=="19.1.1")throw Error(n(527,uh,"19.1.1"));k.findDOMNode=function(o){var c=o._reactInternals;if(c===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=d(c),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var pp={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Da=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Da.isDisabled&&Da.supportsFiber)try{Ze=Da.inject(pp),ee=Da}catch{}}return reactDomClient_production.createRoot=function(o,c){if(!s(o))throw Error(n(299));var m=!1,y="",C=ju,I=Cu,J=_u,re=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(C=c.onUncaughtError),c.onCaughtError!==void 0&&(I=c.onCaughtError),c.onRecoverableError!==void 0&&(J=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(re=c.unstable_transitionCallbacks)),c=eh(o,1,!1,null,null,m,y,C,I,J,re,null),o[dt]=c.current,El(o),new Fl(c)},reactDomClient_production.hydrateRoot=function(o,c,m){if(!s(o))throw Error(n(299));var y=!1,C="",I=ju,J=Cu,re=_u,ie=null,me=null;return m!=null&&(m.unstable_strictMode===!0&&(y=!0),m.identifierPrefix!==void 0&&(C=m.identifierPrefix),m.onUncaughtError!==void 0&&(I=m.onUncaughtError),m.onCaughtError!==void 0&&(J=m.onCaughtError),m.onRecoverableError!==void 0&&(re=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(ie=m.unstable_transitionCallbacks),m.formState!==void 0&&(me=m.formState)),c=eh(o,1,!0,c,m??null,y,C,I,J,re,ie,me),c.context=th(null),m=c.current,y=mr(),y=Cr(y),C=yn(y),C.callback=null,vn(m,C,y),m=y,c.current.lanes=m,xt(c,m),Fr(c),o[dt]=c.current,El(o),new Ia(c)},reactDomClient_production.version="19.1.1",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();/** 51 * react-router v7.9.3 52 * 53 * Copyright (c) Remix Software Inc. 54 * 55 * This source code is licensed under the MIT license found in the 56 * LICENSE.md file in the root directory of this source tree. 57 * 58 * @license MIT 59 */var PopStateEventType="popstate";function createBrowserHistory(e={}){function t(n,s){let{pathname:a,search:l,hash:u}=n.location;return createLocation("",{pathname:a,search:l,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:createPath(s)}return getUrlBasedHistory(t,r,null,e)}function invariant$1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function warning(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function createKey(){return Math.random().toString(36).substring(2,10)}function getHistoryState(e,t){return{usr:e.state,key:e.key,idx:t}}function createLocation(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?parsePath(t):t,state:r,key:t&&t.key||n||createKey()}}function createPath({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function parsePath(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function getUrlBasedHistory(e,t,r,n={}){let{window:s=document.defaultView,v5Compat:a=!1}=n,l=s.history,u="POP",d=null,p=h();p==null&&(p=0,l.replaceState({...l.state,idx:p},""));function h(){return(l.state||{idx:null}).idx}function x(){u="POP";let E=h(),j=E==null?null:E-p;p=E,d&&d({action:u,location:v.location,delta:j})}function w(E,j){u="PUSH";let R=createLocation(v.location,E,j);p=h()+1;let T=getHistoryState(R,p),z=v.createHref(R);try{l.pushState(T,"",z)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(z)}a&&d&&d({action:u,location:v.location,delta:1})}function g(E,j){u="REPLACE";let R=createLocation(v.location,E,j);p=h();let T=getHistoryState(R,p),z=v.createHref(R);l.replaceState(T,"",z),a&&d&&d({action:u,location:v.location,delta:0})}function b(E){return createBrowserURLImpl(E)}let v={get action(){return u},get location(){return e(s,l)},listen(E){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(PopStateEventType,x),d=E,()=>{s.removeEventListener(PopStateEventType,x),d=null}},createHref(E){return t(s,E)},createURL:b,encodeLocation(E){let j=b(E);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:w,replace:g,go(E){return l.go(E)}};return v}function createBrowserURLImpl(e,t=!1){let r="http://localhost";
59typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),invariant$1(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:createPath(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function matchRoutes(e,t,r="/"){return matchRoutesImpl(e,t,r,!1)}function matchRoutesImpl(e,t,r,n){let s=typeof t=="string"?parsePath(t):t,a=stripBasename(s.pathname||"/",r);if(a==null)return null;let l=flattenRoutes(e);rankRouteBranches(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let p=decodePath(a);u=matchRouteBranch(l[d],p,n)}return u}function flattenRoutes(e,t=[],r=[],n="",s=!1){let a=(l,u,d=s,p)=>{let h={relativePath:p===void 0?l.path||"":p,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&d)return;invariant$1(h.relativePath.startsWith(n),`Absolute route path "${h.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(n.length)}let x=joinPaths([n,h.relativePath]),w=r.concat(h);l.children&&l.children.length>0&&(invariant$1(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),flattenRoutes(l.children,t,w,x,d)),!(l.path==null&&!l.index)&&t.push({path:x,score:computeScore(x,l.index),routesMeta:w})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))a(l,u);
vendor: 1,456 bytes, line 59
59else for(let d of explodeOptionalSegments(l.path))a(l,u,!0,d)}),t}function explodeOptionalSegments(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return s?[a,""]:[a];let l=explodeOptionalSegments(n.join("/")),u=[];return u.push(...l.map(d=>d===""?a:[a,d].join("/"))),s&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function rankRouteBranches(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:compareIndexes(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=e=>e==="*";function computeScore(e,t){let r=e.split("/"),n=r.length;return r.some(isSplat)&&(n+=splatPenalty),t&&(n+=indexRouteValue),r.filter(s=>!isSplat(s)).reduce((s,a)=>s+(paramRe.test(a)?dynamicSegmentValue:a===""?emptySegmentValue:staticSegmentValue),n)}function compareIndexes(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function matchRouteBranch(e,t,r=!1){let{routesMeta:n}=e,s={},a="/",l=[];for(let u=0;u<n.length;++u){let d=n[u],p=u===n.length-1,h=a==="/"?t:t.slice(a.length)||"/",x=matchPath({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},h),w=d.route;if(!x&&p&&r&&!n[n.length-1].route.index&&(x=matchPath({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},h)),!x)return null;
59Object.assign(s,x.params),l.push({params:s,pathname:joinPaths([a,x.pathname]),pathnameBase:normalizePathname(joinPaths([a,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(a=joinPaths([a,x.pathnameBase]))}return l}function matchPath(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=compilePath(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let a=s[0],l=a.replace(/(.)\/+$/,"$1"),u=s.slice(1);return{params:n.reduce((p,{paramName:h,isOptional:x},w)=>{if(h==="*"){let b=u[w]||"";l=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=u[w];return x&&!g?p[h]=void 0:p[h]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:l,pattern:e}}function compilePath(e,t=!1,r=!0){warning(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(n.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function decodePath(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return warning(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function stripBasename(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function resolvePath(e,t="/"){let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?parsePath(e):e;return{pathname:r?r.startsWith("/")?r:resolvePathname(r,t):t,search:normalizeSearch(n),hash:normalizeHash(s)}}function resolvePathname(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function getInvalidPathError(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function getPathContributingMatches(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function getResolveToMatches(e){let t=getPathContributingMatches(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function resolveTo(e,t,r,n=!1){let s;typeof e=="string"?s=parsePath(e):(s={...e},invariant$1(!s.pathname||!s.pathname.includes("?"),getInvalidPathError("?","pathname","search",s)),invariant$1(!s.pathname||!s.pathname.includes("#"),getInvalidPathError("#","pathname","hash",s)),invariant$1(!s.search||!s.search.includes("#"),getInvalidPathError("#","search","hash",s)));let a=e===""||s.pathname==="",l=a?"/":s.pathname,u;if(l==null)u=r;else{let x=t.length-1;if(!n&&l.startsWith("..")){let w=l.split("/");for(;w[0]==="..";)w.shift(),x-=1;s.pathname=w.join("/")}u=x>=0?t[x]:"/"}let d=resolvePath(s,u),p=l&&l!=="/"&&l.endsWith("/"),h=(a||l===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||h)&&(d.pathname+="/"),d}var joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),normalizePathname=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,normalizeHash=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function isRouteErrorResponse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}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";reactExports.createContext(!1);var 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";function useHref(e,{relative:t}={}){invariant$1(useInRouterContext(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=reactExports.useContext(NavigationContext),{hash:s,pathname:a,search:l}=useResolvedPath(e,{relative:t}),u=a;return r!=="/"&&(u=a==="/"?r:joinPaths([r,a])),n.createHref({pathname:u,search:l,hash:s})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant$1(useInRouterContext(),"useLocation() may be used only in the context of a <Router> component."),reactExports.useContext(LocationContext).location}
59var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect$2(e){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(e)}function useNavigate(){let{isDataRoute:e}=reactExports.useContext(RouteContext);return e?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant$1(useInRouterContext(),"useNavigate() may be used only in the context of a <Router> component.");let e=reactExports.useContext(DataRouterContext),{basename:t,navigator:r}=reactExports.useContext(NavigationContext),{matches:n}=reactExports.useContext(RouteContext),{pathname:s}=useLocation(),a=JSON.stringify(getResolveToMatches(n)),l=reactExports.useRef(!1);return useIsomorphicLayoutEffect$2(()=>{l.current=!0}),reactExports.useCallback((d,p={})=>{if(warning(l.current,navigateEffectWarning),!l.current)return;if(typeof d=="number"){r.go(d);return}let h=resolveTo(d,JSON.parse(a),s,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:joinPaths([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,a,s,e])}reactExports.createContext(null);function useParams(){let{matches:e}=reactExports.useContext(RouteContext),t=e[e.length-1];return t?t.params:{}}function useResolvedPath(e,{relative:t}={}){let{matches:r}=reactExports.useContext(RouteContext),{pathname:n}=useLocation(),s=JSON.stringify(getResolveToMatches(r));return reactExports.useMemo(()=>resolveTo(e,JSON.parse(s),n,t==="path"),[e,s,n,t])}function useRoutes(e,t){return useRoutesImpl(e,t)}function useRoutesImpl(e,t,r,n,s){invariant$1(useInRouterContext(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=reactExports.useContext(NavigationContext),{matches:l}=reactExports.useContext(RouteContext),u=l[l.length-1],d=u?u.params:{},p=u?u.pathname:"/",h=u?u.pathnameBase:"/",x=u&&u.route;{let R=x&&x.path||"";warningOnce(p,!x||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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. 60 61Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let w=useLocation(),g;if(t){let R=typeof t=="string"?parsePath(t):t;invariant$1(h==="/"||R.pathname?.startsWith(h),`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 "${h}" but pathname "${R.pathname}" was given in the \`location\` prop.`),g=R}else g=w;let b=g.pathname||"/",v=b;if(h!=="/"){let R=h.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(R.length).join("/")}let E=matchRoutes(e,{pathname:v});warning(x||E!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),warning(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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 j=_renderMatches(E&&E.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:joinPaths([h,a.encodeLocation?a.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?h:joinPaths([h,a.encodeLocation?a.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),l,r,n,s);return t&&j?reactExports.createElement(LocationContext.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},j):j}function DefaultErrorComponent(){let e=useRouteError(),t=isRouteErrorResponse(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=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:a},"ErrorBoundary")," or"," ",reactExports.createElement("code",{style:a},"errorElement")," prop on your route.")),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application
61Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},t),r?reactExports.createElement("pre",{style:s},r):null,l)}var defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null),RenderErrorBoundary=class extends reactExports.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function RenderedRoute({routeContext:e,match:t,children:r}){let n=reactExports.useContext(DataRouterContext);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),reactExports.createElement(RouteContext.Provider,{value:e},r)}function _renderMatches(e,t=[],r=null,n=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=r?.errors;if(l!=null){let p=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);invariant$1(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,p+1))}let u=!1,d=-1;if(r)for(let p=0;p<a.length;p++){let h=a[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=p),h.route.id){let{loaderData:x,errors:w}=r,g=h.route.loader&&!x.hasOwnProperty(h.route.id)&&(!w||w[h.route.id]===void 0);if(h.route.lazy||g){u=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((p,h,x)=>{let w,g=!1,b=null,v=null;r&&(w=l&&h.route.id?l[h.route.id]:void 0,b=h.route.errorElement||defaultErrorElement,u&&(d<0&&x===0?(warningOnce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):d===x&&(g=!0,v=h.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,x+1)),j=()=>{let R;return w?R=b:g?R=v:h.route.Component?R=reactExports.createElement(h.route.Component,null):h.route.element?R=h.route.element:R=p,reactExports.createElement(RenderedRoute,{match:h,routeContext:{outlet:p,matches:E,isDataRoute:r!=null},children:R})};return r&&(h.route.ErrorBoundary||h.route.errorElement||x===0)?reactExports.createElement(RenderErrorBoundary,{location:r.location,revalidation:r.revalidation,component:b,error:w,children:j(),routeContext:{outlet:null,matches:E,isDataRoute:!0},unstable_onError:n}):j()},null)}function getDataRouterConsoleError(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext(e){let t=reactExports.useContext(DataRouterContext);return invariant$1(t,getDataRouterConsoleError(e)),t}function useDataRouterState(e){let t=reactExports.useContext(DataRouterStateContext);return invariant$1(t,getDataRouterConsoleError(e)),t}function useRouteContext(e){let t=reactExports.useContext(RouteContext);return invariant$1(t,getDataRouterConsoleError(e)),t}function useCurrentRouteId(e){let t=useRouteContext(e),r=t.matches[t.matches.length-1];return invariant$1(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function useRouteId(){return useCurrentRouteId("useRouteId")}function useRouteError(){let e=reactExports.useContext(RouteErrorContext),t=useDataRouterState("useRouteError"),r=useCurrentRouteId("useRouteError");return e!==void 0?e:t.errors?.[r]}function useNavigateStable(){let{router:e}=useDataRouterContext("useNavigate"),t=useCurrentRouteId("useNavigate"),r=reactExports.useRef(!1);return useIsomorphicLayoutEffect$2(()=>{r.current=!0}),reactExports.useCallback(async(s,a={})=>
61{warning(r.current,navigateEffectWarning),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...a}))},[e,t])}var alreadyWarned={};function warningOnce(e,t,r){!t&&!alreadyWarned[e]&&(alreadyWarned[e]=!0,warning(!1,r))}reactExports.memo(DataRoutes);function DataRoutes({routes:e,future:t,state:r,unstable_onError:n}){return useRoutesImpl(e,void 0,r,n,t)}function Route(e){invariant$1(!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:e="/",children:t=null,location:r,navigationType:n="POP",navigator:s,static:a=!1}){invariant$1(!useInRouterContext(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=reactExports.useMemo(()=>({basename:l,navigator:s,static:a,future:{}}),[l,s,a]);typeof r=="string"&&(r=parsePath(r));let{pathname:d="/",search:p="",hash:h="",state:x=null,key:w="default"}=r,g=reactExports.useMemo(()=>{let b=stripBasename(d,l);return b==null?null:{location:{pathname:b,search:p,hash:h,state:x,key:w},navigationType:n}},[l,d,p,h,x,w,n]);return warning(g!=null,`<Router basename="${l}"> is not able to match the URL "${d}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:reactExports.createElement(NavigationContext.Provider,{value:u},reactExports.createElement(LocationContext.Provider,{children:t,value:g}))}function Routes({children:e,location:t}){return useRoutes(createRoutesFromChildren(e),t)}function createRoutesFromChildren(e,t=[]){let r=[];return reactExports.Children.forEach(e,(n,s)=>{if(!reactExports.isValidElement(n))return;let a=[...t,s];if(n.type===reactExports.Fragment){r.push.apply(r,createRoutesFromChildren(n.props.children,a));return}invariant$1(n.type===Route,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),invariant$1(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=createRoutesFromChildren(n.props.children,a)),r.push(l)}),r}var defaultMethod="get",defaultEncType="application/x-www-form-urlencoded";function isHtmlElement(e){return e!=null&&typeof e.tagName=="string"}function isButtonElement(e){return isHtmlElement(e)&&e.tagName.toLowerCase()==="button"}function isFormElement(e){return isHtmlElement(e)&&e.tagName.toLowerCase()==="form"}function isInputElement(e){return isHtmlElement(e)&&e.tagName.toLowerCase()==="input"}function isModifiedEvent(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function shouldProcessLinkClick(e,t){return e.button===0&&(!t||t==="_self")&&!isModifiedEvent(e)}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(e){return e!=null&&!supportedFormEncTypes.has(e)?(warning(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`),null):e}function getFormSubmissionInfo(e,t){let r,n,s,a,l;if(isFormElement(e)){let u=e.getAttribute("action");n=u?stripBasename(u,t):null,r=e.getAttribute("method")||defaultMethod,s=getFormEncType(e.getAttribute("enctype"))||defaultEncType,a=new FormData(e)}else if(isButtonElement(e)||isInputElement(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(n=d?stripBasename(d,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||defaultMethod,s=getFormEncType(e.getAttribute("formenctype"))||getFormEncType(u.getAttribute("enctype"))||defaultEncType,a=new FormData(u,e),!isFormDataSubmitterSupported()){let{name:p,type:h,value:x}=e;if(h==="image"){let w=p?`${p}.`:"";a.append(`${w}x`,"0"),a.append(`${w}y`,"0")}else p&&a.append(p,x)}}else{if(isHtmlElement(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=defaultMethod,n=null,s=defaultEncType,l=e}return a&&s==="text/plain"&&(l=a,a=void 0),{action:n,method:r.toLowerCase(),encType:s,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function invariant2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function singleFetchUrl(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&stripBasename(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function loadRouteModule(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
61isSpaMode,window.location.reload(),new Promise(()=>{})}}function isHtmlLinkDescriptor(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function getKeyedPrefetchLinks(e,t,r){let n=await Promise.all(e.map(async s=>{let a=t.routes[s.route.id];if(a){let l=await loadRouteModule(a,r);return l.links?l.links():[]}return[]}));return dedupeLinkDescriptors(n.flat(1).filter(isHtmlLinkDescriptor).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function getNewMatchesForLinks(e,t,r,n,s,a){let l=(d,p)=>r[p]?d.route.id!==r[p].route.id:!0,u=(d,p)=>r[p].pathname!==d.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==d.params["*"];return a==="assets"?t.filter((d,p)=>l(d,p)||u(d,p)):a==="data"?t.filter((d,p)=>{let h=n.routes[d.route.id];if(!h||!h.hasLoader)return!1;if(l(d,p)||u(d,p))return!0;if(d.route.shouldRevalidate){let x=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function getModuleLinkHrefs(e,t,{includeHydrateFallback:r}={}){return dedupeHrefs(e.map(n=>{let s=t.routes[n.route.id];if(!s)return[];let a=[s.module];return s.clientActionModule&&(a=a.concat(s.clientActionModule)),s.clientLoaderModule&&(a=a.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(a=a.concat(s.hydrateFallbackModule)),s.imports&&(a=a.concat(s.imports)),a}).flat(1))}function dedupeHrefs(e){return[...new Set(e)]}function sortKeys(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function dedupeLinkDescriptors(e,t){let r=new Set;return new Set(t),e.reduce((n,s)=>{let a=JSON.stringify(sortKeys(s));return r.has(a)||(r.add(a),n.push({key:a,link:s})),n},[])}function useDataRouterContext2(){let e=reactExports.useContext(DataRouterContext);return invariant2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function useDataRouterStateContext(){let e=reactExports.useContext(DataRouterStateContext);return invariant2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var FrameworkContext=reactExports.createContext(void 0);FrameworkContext.displayName="FrameworkContext";function useFrameworkContext(){let e=reactExports.useContext(FrameworkContext);return invariant2(e,"You must render this element inside a <HydratedRouter> element"),e}function usePrefetchBehavior(e,t){let r=reactExports.useContext(FrameworkContext),[n,s]=reactExports.useState(!1),[a,l]=reactExports.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:p,onMouseLeave:h,onTouchStart:x}=t,w=reactExports.useRef(null);reactExports.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let v=j=>{j.forEach(R=>{l(R.isIntersecting)})},E=new IntersectionObserver(v,{threshold:.5});return w.current&&E.observe(w.current),()=>{E.disconnect()}}},[e]),reactExports.useEffect(()=>{if(n){let v=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(v)}}},[n]);let g=()=>{s(!0)},b=()=>{s(!1),l(!1)};return r?e!=="intent"?[a,w,{}]:[a,w,{onFocus:composeEventHandlers(u,g),onBlur:composeEventHandlers(d,b),onMouseEnter:composeEventHandlers(p,g),onMouseLeave:composeEventHandlers(h,b),onTouchStart:composeEventHandlers(x,g)}]:[!1,w,{}]}function composeEventHandlers(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function PrefetchPageLinks({page:e,...t}){let{router:r}=useDataRouterContext2(),n=reactExports.useMemo(()=>matchRoutes(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?reactExports.createElement(PrefetchPageLinksImpl,{page:e,matches:n,...t}):null}function useKeyedPrefetchLinks(e){let{manifest:t,routeModules:r}=useFrameworkContext(),[n,s]=reactExports.useState([]);return reactExports.useEffect(()=>{let a=!1;return getKeyedPrefetchLinks(e,t,r).then(l=>{a||s(l)}),()=>{a=!0}},[e,t,r]),n}function PrefetchPageLinksImpl({page:e,matches:t,...r}){let n=useLocation(),{manifest:s,routeModules:a}=useFrameworkContext(),{basename:l}=useDataRouterContext2(),{loaderData:u,matches:d}=useDataRouterStateContext(),p=reactExports.useMemo(()=>getNewMatchesForLinks(e,t,d,s,n,"data"),[e,t,d,s,n]),h=reactExports.useMemo(()=>getNewMatchesForLinks(e,t,d,s,n,"assets"),[e,t,d,s,n]),x=reactExports.useMemo(()=>
61{if(e===n.pathname+n.search+n.hash)return[];let b=new Set,v=!1;if(t.forEach(j=>{let R=s.routes[j.route.id];!R||!R.hasLoader||(!p.some(T=>T.route.id===j.route.id)&&j.route.id in u&&a[j.route.id]?.shouldRevalidate||R.hasClientLoader?v=!0:b.add(j.route.id))}),b.size===0)return[];let E=singleFetchUrl(e,l,"data");return v&&b.size>0&&E.searchParams.set("_routes",t.filter(j=>b.has(j.route.id)).map(j=>j.route.id).join(",")),[E.pathname+E.search]},[l,u,n,s,p,t,e,a]),w=reactExports.useMemo(()=>getModuleLinkHrefs(h,s),[h,s]),g=useKeyedPrefetchLinks(h);return reactExports.createElement(reactExports.Fragment,null,x.map(b=>reactExports.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...r})),w.map(b=>reactExports.createElement("link",{key:b,rel:"modulepreload",href:b,...r})),g.map(({key:b,link:v})=>reactExports.createElement("link",{key:b,nonce:r.nonce,...v})))}function mergeRefs(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var isBrowser$2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{isBrowser$2&&(window.__reactRouterVersion="7.9.3")}catch{}function BrowserRouter({basename:e,children:t,window:r}){let n=reactExports.useRef();n.current==null&&(n.current=createBrowserHistory({window:r,v5Compat:!0}));let s=n.current,[a,l]=reactExports.useState({action:s.action,location:s.location}),u=reactExports.useCallback(d=>{reactExports.startTransition(()=>l(d))},[l]);return reactExports.useLayoutEffect(()=>s.listen(u),[s,u]),reactExports.createElement(Router,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s})}var ABSOLUTE_URL_REGEX2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:s,reloadDocument:a,replace:l,state:u,target:d,to:p,preventScrollReset:h,viewTransition:x,...w},g){let{basename:b}=reactExports.useContext(NavigationContext),v=typeof p=="string"&&ABSOLUTE_URL_REGEX2.test(p),E,j=!1;if(typeof p=="string"&&v&&(E=p,isBrowser$2))try{let B=new URL(window.location.href),P=p.startsWith("//")?new URL(B.protocol+p):new URL(p),H=stripBasename(P.pathname,b);P.origin===B.origin&&H!=null?p=H+P.search+P.hash:j=!0}catch{warning(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=useHref(p,{relative:s}),[T,z,L]=usePrefetchBehavior(n,w),V=useLinkClickHandler(p,{replace:l,state:u,target:d,preventScrollReset:h,relative:s,viewTransition:x});function $(B){t&&t(B),B.defaultPrevented||V(B)}let U=reactExports.createElement("a",{...w,...L,href:E||R,onClick:j||a?t:$,ref:mergeRefs(g,z),target:d,"data-discover":!v&&r==="render"?"true":void 0});return T&&!v?reactExports.createElement(reactExports.Fragment,null,U,reactExports.createElement(PrefetchPageLinks,{page:R})):U});Link.displayName="Link";var NavLink=reactExports.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:s=!1,style:a,to:l,viewTransition:u,children:d,...p},h){let x=useResolvedPath(l,{relative:p.relative}),w=useLocation(),g=reactExports.useContext(DataRouterStateContext),{navigator:b,basename:v}=reactExports.useContext(NavigationContext),E=g!=null&&useViewTransitionState(x)&&u===!0,j=b.encodeLocation?b.encodeLocation(x).pathname:x.pathname,R=w.pathname,T=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(R=R.toLowerCase(),T=T?T.toLowerCase():null,j=j.toLowerCase()),T&&v&&(T=stripBasename(T,v)||T);const z=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let L=R===j||!s&&R.startsWith(j)&&R.charAt(z)==="/",V=T!=null&&(T===j||!s&&T.startsWith(j)&&T.charAt(j.length)==="/"),$={isActive:L,isPending:V,isTransitioning:E},U=L?t:void 0,B;typeof n=="function"?B=n($):B=[n,L?"active":null,V?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let P=typeof a=="function"?a($):a;return reactExports.createElement(Link,{...p,"aria-current":U,className:B,ref:h,style:P,to:l,viewTransition:u},typeof d=="function"?d($):d)});NavLink.displayName="NavLink";var Form=reactExports.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:s,state:a,method:l=defaultMethod,action:u,onSubmit:d,relative:p,preventScrollReset:h,viewTransition:x,...w},g)=>{let b=useSubmit(),v=useFormAction(u,{relative:p}),E=l.toLowerCase()==="get"?"get":"post",j=typeof u=="string"&&ABSOLUTE_URL_REGEX2.test(u),R=T=>{if(d&&d(T),T.defaultPrevented)return;T.preventDefault();let z=T.nativeEvent.submitter,L=z?.getAttribute("formmethod")||l;b(z||T.currentTarget,{fetcherKey:t,method:L,navigate:r,replace:s,state:a,relative:p,preventScrollReset:h,viewTransition:x})};return reactExports.createElement("form",{ref:g,method:E,action:v,onSubmit:n?d:R,...w,"data-discover":!j&&e==="render"?"true":void 0})});Form.displayName="Form";function getDataRouterConsoleError2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext3(e){let t=reactExports.useContext(DataRouterContext);return invariant$1(t,getDataRouterConsoleError2(e)),t}function useLinkClickHandler(e,{target:t,replace:r,state:n,preventScrollReset:s,relative:a,viewTransition:l}={}){let u=useNavigate(),d=useLocation(),p=useResolvedPath(e,{relative:a});return reactExports.useCallback(h=>{if(shouldProcessLinkClick(h,t)){h.preventDefault();let x=r!==void 0?r:createPath(d)===createPath(p);u(e,{replace:x,state:n,preventScrollReset:s,relative:a,viewTransition:l})}},[d,u,p,r,n,t,e,s,a,l])}var fetcherId=0,getUniqueFetcherId=()=>`__${String(++fetcherId)}__`;function useSubmit(){let{router:e}=useDataRouterContext3("useSubmit"),{basename:t}=reactExports.useContext(NavigationContext),r=useRouteId();return reactExports.useCallback(async(n,s={})=>{let{action:a,method:l,encType:u,formData:d,body:p}=getFormSubmissionInfo(n,t);if(s.navigate===!1){let h=s.fetcherKey||getUniqueFetcherId();await e.fetch(h,r,s.action||a,{preventScrollReset:s.preventScrollReset,formData:d,body:p,formMethod:s.method||l,formEncType:s.encType||u,flushSync:s.flushSync})}else await e.navigate(s.action||a,{preventScrollReset:s.preventScrollReset,formData:d,body:p,formMethod:s.method||l,formEncType:s.encType||u,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,r])}function useFormAction(e,{relative:t}={}){let{basename:r}=reactExports.useContext(NavigationContext),n=reactExports.useContext(RouteContext);invariant$1(n,"useFormAction must be used inside a RouteContext");let[s]=n.matches.slice(-1),a={...useResolvedPath(e||".",{relative:t})},l=useLocation();if(e==null){a.search=l.search;let u=new URLSearchParams(a.search),d=u.getAll("index");if(d.some(h=>h==="")){u.delete("index"),d.filter(x=>
61x).forEach(x=>u.append("index",x));let h=u.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:joinPaths([r,a.pathname])),createPath(a)}function useViewTransitionState(e,{relative:t}={}){let r=reactExports.useContext(ViewTransitionContext);invariant$1(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=useDataRouterContext3("useViewTransitionState"),s=useResolvedPath(e,{relative:t});if(!r.isTransitioning)return!1;let a=stripBasename(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=stripBasename(r.nextLocation.pathname,n)||r.nextLocation.pathname;return matchPath(s.pathname,l)!=null||matchPath(s.pathname,a)!=null}var reactDomExports=requireReactDom(),DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),_excluded=["attr","size","title"];function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t),n,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$1.apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(n){_defineProperty(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _defineProperty(e,t,r){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:t+""}function _toPrimitive(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tree2Element(e){return e&&e.map((t,r)=>React.createElement(t.tag,_objectSpread({key:r},t.attr),Tree2Element(t.child)))}function GenIcon(e){return t=>React.createElement(IconBase,_extends$1({attr:_objectSpread({},e.attr)},t),Tree2Element(e.child))}function IconBase(e){var t=r=>{var{attr:n,size:s,title:a}=e,l=_objectWithoutProperties(e,_excluded),u=s||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),React.createElement("svg",_extends$1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:d,style:_objectSpread(_objectSpread({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),a&&React.createElement("title",null,a),e.children)};return IconContext!==void 0?React.createElement(IconContext.Consumer,null,r=>t(r)):t(DefaultContext)}function IoAnalytics(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456 128a40 40 0 0 0-37.23 54.6l-84.17 84.17a39.86 39.86 0 0 0-29.2 0l-60.17-60.17a40 40 0 1 0-74.46 0L70.6 306.77a40 40 0 1 0 22.63 22.63L193.4 229.23a39.86 39.86 0 0 0 29.2 0l60.17 60.17a40 40 0 1 0 74.46 0l84.17-84.17A40 40 0 1 0 456 128z"},child:[]}]})(e)}function IoChatbubbleEllipsesOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M87.48 380c1.2-4.38-1.43-10.47-3.94-14.86a42.63 42.63 0 0 0-2.54-3.8 199.81 199.81 0 0 1-33-110C47.64 139.09 140.72 48 255.82 48 356.2 48 440 117.54 459.57 209.85a199 199 0 0 1 4.43 41.64c0 112.41-89.49 204.93-204.59 204.93-18.31 0-43-4.6-56.47-8.37s-26.92-8.77-30.39-10.11a31.14 31.14 0 0 0-11.13-2.07 30.7 30.7 0 0 0-12.08 2.43L81.5 462.78a15.92 15.92 0 0 1-4.66 1.22 9.61 9.61 0 0 1-9.58-9.74 15.85 15.85 0 0 1 .6-3.29z"},child:[]},{tag:"circle",attr:{cx:"160",cy:"256",r:"32"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"32"},child:[]},{tag:"circle",attr:{cx:"352",cy:"256",r:"32"},child:[]}]})(e)}function IoChevronBack(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}function IoChevronDown(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function IoChevronForward(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(e)}function IoClose(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function IoCodeSlashOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M160 368 32 256l128-112m192 224 128-112-128-112m-48-48-96 320"},child:[]}]})(e)}function IoDocumentTextOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160"},child:[]}]})(e)}function IoMailOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"320",x:"48",y:"96",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"40",ry:"40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m112 160 144 112 144-112"},child:[]}]})(e)}function IoPersonOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z"},child:[]}]})(e)}function IoShieldCheckmark(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M479.07 111.36a16 16 0 0 0-13.15-14.74c-86.5-15.52-122.61-26.74-203.33-63.2a16 16 0 0 0-13.18 0C168.69 69.88 132.58 81.1 46.08 96.62a16 16 0 0 0-13.15 14.74c-3.85 61.11 4.36 118.05 24.43 169.24A349.47 349.47 0 0 0 129 393.11c53.47 56.73 110.24 81.37 121.07 85.73a16 16 0 0 0 12 0c10.83-4.36 67.6-29 121.07-85.73a349.47 349.47 0 0 0 71.5-112.51c20.07-51.19 28.28-108.13 24.43-169.24zm-131 7
615.11-110.8 128a16 16 0 0 1-11.41 5.53h-.66a16 16 0 0 1-11.2-4.57l-49.2-48.2a16 16 0 1 1 22.4-22.86l37 36.29 99.7-115.13a16 16 0 0 1 24.2 20.94z"},child:[]}]})(e)}function IoSparklesOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M259.92 262.91 216.4 149.77a9 9 0 0 0-16.8 0l-43.52 113.14a9 9 0 0 1-5.17 5.17L37.77 311.6a9 9 0 0 0 0 16.8l113.14 43.52a9 9 0 0 1 5.17 5.17l43.52 113.14a9 9 0 0 0 16.8 0l43.52-113.14a9 9 0 0 1 5.17-5.17l113.14-43.52a9 9 0 0 0 0-16.8l-113.14-43.52a9 9 0 0 1-5.17-5.17zM108 68 88 16 68 68 16 88l52 20 20 52 20-52 52-20-52-20zm318.67 49.33L400 48l-26.67 69.33L304 144l69.33 26.67L400 240l26.67-69.33L496 144l-69.33-26.67z"},child:[]}]})(e)}function IoStarOutline(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M480 208H308L256 48l-52 160H32l140 96-54 160 138-100 138 100-54-160z"},child:[]}]})(e)}function IoStar(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M394 480a16 16 0 0 1-9.39-3L256 383.76 127.39 477a16 16 0 0 1-24.55-18.08L153 310.35 23 221.2a16 16 0 0 1 9-29.2h160.38l48.4-148.95a16 16 0 0 1 30.44 0l48.4 149H480a16 16 0 0 1 9.05 29.2L359 310.35l50.13 148.53A16 16 0 0 1 394 480z"},child:[]}]})(e)}function IoWallet(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M95.5 104h320a87.73 87.73 0 0 1 11.18.71 66 66 0 0 0-77.51-55.56L86 94.08h-.3a66 66 0 0 0-41.07 26.13A87.57 87.57 0 0 1 95.5 104zm320 24h-320a64.07 64.07 0 0 0-64 64v192a64.07 64.07 0 0 0 64 64h320a64.07 64.07 0 0 0 64-64V192a64.07 64.07 0 0 0-64-64zM368 320a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]},{tag:"path",attr:{d:"M32 259.5V160c0-21.67 12-58 53.65-65.87C121 87.5 156 87.5 156 87.5s23 16 4 16-18.5 24.5 0 24.5 0 23.5 0 23.5L85.5 236z"},child:[]}]})(e)}function AiFillWechat(e){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z"},child:[]}]})(e)}function AiOutlineScan(e){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function AiOutlineSecurityScan(e){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z"},child:[]}]})(e)}function MdInfoOutline(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function MdInfo(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function MdSearch(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function MdVerified(e){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:[]}]})(e)}function MdBlock(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 0 1 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0 1 20 12c0 4.42-3.58 8-8 8z"},child:[]}]})(e)}function MdShield(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]}
61,{tag:"path",attr:{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"},child:[]}]})(e)}function MdSecurity(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"},child:[]}]})(e)}function MdCrisisAlert(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.5 2.5c0 1.5-1.5 6-1.5 6h-2S9.5 4 9.5 2.5a2.5 2.5 0 0 1 5 0zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4.08-4.89c.18-.75.33-1.47.39-2.06A9.996 9.996 0 0 1 22 12c0 5.52-4.48 10-10 10S2 17.52 2 12c0-3.92 2.25-7.31 5.53-8.95.07.59.21 1.32.39 2.06A8.028 8.028 0 0 0 4 12c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.93-1.58-5.49-3.92-6.89zM18 12c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2 .98-3.77 2.48-4.86.23.81.65 2.07.65 2.07C8.43 9.93 8 10.92 8 12c0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.08-.43-2.07-1.13-2.79 0 0 .41-1.22.65-2.07A5.998 5.998 0 0 1 18 12z"},child:[]}]})(e)}function MdOutlineGeneratingTokens(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm3-7.5h-2v5H8v-5H6V9h6v1.5zm8.25-6.75L23 5l-2.75 1.25L19 9l-1.25-2.75L15 5l2.75-1.25L19 1l1.25 2.75zm0 14L23 19l-2.75 1.25L19 23l-1.25-2.75L15 19l2.75-1.25L19 15l1.25 2.75z"},child:[]}]})(e)}function MdOutlineCrisisAlert(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.5 2.5c0 1.5-1.5 6-1.5 6h-2S9.5 4 9.5 2.5a2.5 2.5 0 0 1 5 0zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4.08-4.89c.18-.75.33-1.47.39-2.06A9.996 9.996 0 0 1 22 12c0 5.52-4.48 10-10 10S2 17.52 2 12c0-3.92 2.25-7.31 5.53-8.95.07.59.21 1.32.39 2.06A8.028 8.028 0 0 0 4 12c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.93-1.58-5.49-3.92-6.89zM18 12c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2 .98-3.77 2.48-4.86.23.81.65 2.07.65 2.07C8.43 9.93 8 10.92 8 12c0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.08-.43-2.07-1.13-2.79 0 0 .41-1.22.65-2.07A5.998 5.998 0 0 1 18 12z"},child:[]}]})(e)}function TbFileTextSpark(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 3v4a1 1 0 0 0 1 1h4"},child:[]},{tag:"path",attr:{d:"M12 21h-5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v3.5"},child:[]},{tag:"path",attr:{d:"M9 9h1"},child:[]},{tag:"path",attr:{d:"M9 13h6"},child:[]},{tag:"path",attr:{d:"M9 17h3"},child:[]},{tag:"path",attr:{d:"M19 22.5a4.75 4.75 0 0 1 3.5 -3.5a4.75 4.75 0 0 1 -3.5 -3.5a4.75 4.75 0 0 1 -3.5 3.5a4.75 4.75 0 0 1 3.5 3.5"},child:[]}]})(e)}function TbLogout2(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2"},child:[]},{tag:"path",attr:{d:"M15 12h-12l3 -3"},child:[]},{tag:"path",attr:{d:"M6 15l-3 -3"},child:[]}]})(e)}function TbSend(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 14l11 -11"},child:[]},{tag:"path",attr:{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"},child:[]}]})(e)}function GiWhaleTail(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M453.004 35.117c-65.314 46.61-189.755 41.018-213.559 125.426C184.41 101.41 98.625 83.031 21.771 63.209c6.532 139.103 71.38 147.437 192.44 194.547 23.71 25.786 29.786 49.93 19.254 82.705 46.403 5.1 71.504 15.468 106.754 27.742-.708-71.67-25.14-108.928-75.518-175.035 11.058 4.233 44.979 37.02 56.578 58.607 109.419-42.421 147.64-112.074 131.725-216.658zM180.178 353.9c-60.89-.24-114.034 19.49-158.426 74.221 167.075-48.84 292.003-13.21 471.893 7.895-118.936-38.752-224.474-81.763-313.467-82.116zm98.043 77.844c-99.28.255-206.34 18.738-256.866 63.139 168.002-26.61 356.801-28.408 470.8-4.967 1.102-35.337-101.418-58.46-213.934-58.172z"},child:[]}]})(e)}function RiNftFill(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"
61currentColor"},child:[{tag:"path",attr:{d:"M9 12C10.1046 12 11 11.1046 11 10 11 8.89543 10.1046 8 9 8 7.89543 8 7 8.89543 7 10 7 11.1046 7.89543 12 9 12ZM12 1 21.5 6.5V17.5L12 23 2.5 17.5V6.5L12 1ZM4.5 7.65311V16.3469L6.8724 17.7204 14.9446 11.8008 19.5 14.534V7.65311L12 3.311 4.5 7.65311Z"},child:[]}]})(e)}function RiTelegram2Line(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.0943 7.14643C17.6874 6.93123 17.9818 6.85378 18.1449 6.82608C18.1461 6.87823 18.1449 6.92051 18.1422 6.94825C17.9096 9.39217 16.8906 15.4048 16.3672 18.2026C16.2447 18.8578 16.1507 19.1697 15.5179 18.798C15.1014 18.5532 14.7245 18.2452 14.3207 17.9805C12.9961 17.1121 11.1 15.8189 11.2557 15.8967C9.95162 15.0373 10.4975 14.5111 11.2255 13.8093C11.3434 13.6957 11.466 13.5775 11.5863 13.4525C11.64 13.3967 11.9027 13.1524 12.2731 12.8081C13.4612 11.7035 15.7571 9.56903 15.8151 9.32202C15.8246 9.2815 15.8334 9.13045 15.7436 9.05068C15.6539 8.97092 15.5215 8.9982 15.4259 9.01989C15.2904 9.05064 13.1326 10.4769 8.95243 13.2986C8.33994 13.7192 7.78517 13.9242 7.28811 13.9134L7.29256 13.9156C6.63781 13.6847 5.9849 13.4859 5.32855 13.286C4.89736 13.1546 4.46469 13.0228 4.02904 12.8812C3.92249 12.8466 3.81853 12.8137 3.72083 12.783C8.24781 10.8109 11.263 9.51243 12.7739 8.884C14.9684 7.97124 16.2701 7.44551 17.0943 7.14643ZM19.5169 5.21806C19.2635 5.01244 18.985 4.91807 18.7915 4.87185C18.5917 4.82412 18.4018 4.80876 18.2578 4.8113C17.7814 4.81969 17.2697 4.95518 16.4121 5.26637C15.5373 5.58382 14.193 6.12763 12.0058 7.03736C10.4638 7.67874 7.39388 9.00115 2.80365 11.001C2.40046 11.1622 2.03086 11.3451 1.73884 11.5619C1.46919 11.7622 1.09173 12.1205 1.02268 12.6714C0.970519 13.0874 1.09182 13.4714 1.33782 13.7738C1.55198 14.037 1.82635 14.1969 2.03529 14.2981C2.34545 14.4483 2.76276 14.5791 3.12952 14.6941C3.70264 14.8737 4.27444 15.0572 4.84879 15.233C6.62691 15.7773 8.09066 16.2253 9.7012 17.2866C10.8825 18.0651 12.041 18.8775 13.2243 19.6531C13.6559 19.936 14.0593 20.2607 14.5049 20.5224C14.9916 20.8084 15.6104 21.0692 16.3636 20.9998C17.5019 20.8951 18.0941 19.8479 18.3331 18.5703C18.8552 15.7796 19.8909 9.68351 20.1332 7.13774C20.1648 6.80544 20.1278 6.433 20.097 6.25318C20.0653 6.068 19.9684 5.58448 19.5169 5.21806Z"},child:[]}]})(e)}function RiRobot2Fill(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM0 10H2V16H0V10ZM24 10H22V16H24V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5C15.8284 14.5 16.5 13.8284 16.5 13Z"},child:[]}]})(e)}function BsDropletHalf(e){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.21.8C7.69.295 8 0 8 0q.164.544.371 1.038c.812 1.946 2.073 3.35 3.197 4.6C12.878 7.096 14 8.345 14 10a6 6 0 0 1-12 0C2 6.668 5.58 2.517 7.21.8m.413 1.021A31 31 0 0 0 5.794 3.99c-.726.95-1.436 2.008-1.96 3.07C3.304 8.133 3 9.138 3 10c0 0 2.5 1.5 5 .5s5-.5 5-.5c0-1.201-.796-2.157-2.181-3.7l-.03-.032C9.75 5.11 8.5 3.72 7.623 1.82z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M4.553 7.776c.82-1.641 1.717-2.753 2.093-3.13l.708.708c-.29.29-1.128 1.311-1.907 2.87z"},child:[]}]})(e)}function BsInstagram(e){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.
61008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334"},child:[]}]})(e)}function BsQuestionCircle(e){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"},child:[]},{tag:"path",attr:{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"},child:[]}]})(e)}function BsShieldCheck(e){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.338 1.59a61 61 0 0 0-2.837.856.48.48 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.7 10.7 0 0 0 2.287 2.233c.346.244.652.42.893.533q.18.085.293.118a1 1 0 0 0 .101.025 1 1 0 0 0 .1-.025q.114-.034.294-.118c.24-.113.547-.29.893-.533a10.7 10.7 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524zM5.072.56C6.157.265 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.596 4.477-.787 7.795-2.465 9.99a11.8 11.8 0 0 1-2.517 2.453 7 7 0 0 1-1.048.625c-.28.132-.581.24-.829.24s-.548-.108-.829-.24a7 7 0 0 1-1.048-.625 11.8 11.8 0 0 1-2.517-2.453C1.928 10.487.545 7.169 1.141 2.692A1.54 1.54 0 0 1 2.185 1.43 63 63 0 0 1 5.072.56"},child:[]},{tag:"path",attr:{d:"M10.854 5.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0"},child:[]}]})(e)}function BsTwitterX(e){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"},child:[]}]})(e)}function BsYoutube(e){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z"},child:[]}]})(e)}function IoMdAnalytics(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M379.4 178.3l-87.2 133.4C299 320 303 330.5 303 342c0 26.5-21.5 48-48 48s-48-21.5-48-48c0-3 .3-6 .8-8.9l-57.6-33.5c-8.6 8.3-20.3 13.4-33.3 13.4-8.6 0-16.6-2.3-23.6-6.2L32 364.2v57.2c0 23.5 19.2 42.7 42.7 42.7h362.7c23.5 0 42.7-19.2 42.7-42.7V208.8l-58.6-38.9c-8.1 6.3-18.3 10.1-29.4 10.1-4.4 0-8.7-.6-12.7-1.7z"},child:[]},{tag:"path",attr:{d:"M117 217c26.5 0 48 21.5 48 48 0 2.1-.2 4.2-.4 6.2l60.1 33.6c8.3-6.8 18.8-10.8 30.4-10.8 3.6 0 7.1.4 10.4 1.1l87.4-135.4c-5.6-7.8-8.9-17.4-8.9-27.8 0-26.5 21.5-48 48-48s48 21.5 48 48c0 3.9-.5 7.7-1.3 11.3l41.3 27.6V90.7c0-23.5-19.2-42.7-42.7-42.7H74.7C51.2 48 32 67.2 32 90.7V320l40-38.3c-1.9-5.2-3-10.8-3-16.7 0-26.5 21.5-48 48-48z"},child:[]}]})(e)}function IoMdArrowDropdown(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M128 192l128 128 128-128z"},child:[]}]})(e)}const AboutCoinguard=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"About Coinguard â AI-Powered Web3 Security & DeFi Protection"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Discover the story behind Coinguard, the AI-powered Web3 security platform. Learn about our mission to protect DeFi users with token scans, audits, whale tracking, and AI security tools."}),jsxRuntimeExports.jsx("meta",{name:"keywords",content:"About Coinguard, Coinguard Mission, Web3 Security Platform, DeFi Security Tools, AI Blockchain Security, Whale Tracking Tools"}),jsxRuntimeExports.jsxs("main",{className:"bg-black text-gray-300 min-h-screen relative overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[jsxRuntimeExports.jsx("div",{className:"absolute -top-20 -right-20 w-40 h-40 sm:w-60 sm:h-60 md:w-80 md:h-80 bg-gradient-to-r from-[#CCFF00]/10 to-[#CCFF00]/5 rounded-full mix-blend-soft-light filter blur-2xl sm:blur-3xl op
61acity-20 animate-pulse"}),jsxRuntimeExports.jsx("div",{className:"absolute -bottom-20 -left-20 w-40 h-40 sm:w-60 sm:h-60 md:w-80 md:h-80 bg-gradient-to-r from-[#CCFF00]/5 to-[#CCFF00]/10 rounded-full mix-blend-soft-light filter blur-2xl sm:blur-3xl opacity-20 animate-pulse delay-1000"}),jsxRuntimeExports.jsx("div",{className:"absolute top-1/4 left-1/4 w-24 h-24 sm:w-32 sm:h-32 md:w-40 md:h-40 bg-[#CCFF00]/10 rounded-full mix-blend-soft-light filter blur-2xl sm:blur-3xl opacity-10 animate-pulse delay-2000"})]}),jsxRuntimeExports.jsx("section",{className:"relative px-4 sm:px-6 lg:px-8 py-8 sm:py-12 lg:py-16",children:jsxRuntimeExports.jsxs("div",{className:"max-w-6xl mx-auto space-y-12 sm:space-y-16",children:[jsxRuntimeExports.jsxs("div",{className:"text-center space-y-6 sm:space-y-8",children:[jsxRuntimeExports.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-white tracking-tight",children:["About"," ",jsxRuntimeExports.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#CCFF00] to-[#aaff00]",children:"Coinguard"})]}),jsxRuntimeExports.jsx("div",{className:"max-w-3xl mx-auto transform transition-all duration-500 hover:scale-[1.02]",children:jsxRuntimeExports.jsxs("div",{className:"text-base sm:text-lg md:text-xl leading-relaxed text-gray-300 bg-gradient-to-b from-white/5 to-white/10 backdrop-blur-sm p-6 sm:p-8 rounded-2xl border border-[#CCFF00]/20 shadow-2xl relative overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#CCFF00]/5 to-transparent opacity-10"}),jsxRuntimeExports.jsx("strong",{className:"text-white relative z-10",children:"Guarding Your Crypto Journey, Every Step of the Way."})," ","At"," ",jsxRuntimeExports.jsx("span",{className:"font-semibold text-[#CCFF00] relative z-10",children:"Coinguard"}),", we believe security is the cornerstone of trust in the blockchain world. Our mission is to empower traders and investors with advanced AI-powered tools to detect scams, rug pulls, and malicious smart contracts before they cause harm."]})})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}),jsxRuntimeExports.jsx(SectionTitle,{children:"Our Mission"}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsx(SectionContent,{children:"Our mission is to build the most reliable and user-friendly crypto security platform, where every investor can verify before they trust. By combining cutting-edge AI algorithms, detailed blockchain analytics, and intuitive design, we detect threats instantly and present them in clear, actionable terms. We aim to eliminate fear from trading, empowering you to make confident, informed investment decisions in a secure environment."})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}),jsxRuntimeExports.jsxs(SectionTitle,{children:["What Makes"," ",jsxRuntimeExports.jsxs("span",{className:"text-[#CCFF00]",children:["Coinguard",jsxRuntimeExports.jsx("span",{className:"sm:hidden",children:jsxRuntimeExports.jsx("br",{})})," ","Unique"]})]}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsx(SectionContent,{children:"Unlike other platforms that focus solely on token analysis, Coinguard safeguards your entire trading experienceâfrom initial research to final execution. We go beyond identifying risks by providing actionable insights that protect your portfolio across DeFi, NFTs, and emerging blockchain projects. Our holistic approach ensures you're equipped with the knowledge and tools to navigate the crypto landscape securely."})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}),jsxRuntimeExports.jsxs(SectionTitle,{children:["Our Core Security ",jsxRuntimeExports.jsx("br",{className:"sm:hidden"}),"Features"]}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col space-y-4 sm:grid sm:grid-cols-2 sm:gap-4 sm:sp
61ace-y-0 mt-6 sm:mt-8",children:[jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(AiOutlineSecurityScan,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Token Scan",description:"Analyze smart contracts using AI to detect potential threats like honeypots, mint functions, and high-risk patterns before you buy."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(BsDropletHalf,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Liquidity Scanner",description:"Check if a token's liquidity is locked or vulnerable, helping you avoid projects that may pull liquidity and disappear."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(IoShieldCheckmark,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"RugShield",description:"Real-time protection against rug pulls. Flags suspicious ownership setups, liquidity unlocks, and sudden fund movements."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(MdOutlineCrisisAlert,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Honeypot Detector",description:"Detect tokens where users can buy but not sell. Protect yourself from deceptive contracts that trap funds."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(GiWhaleTail,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Whale Tracker",description:"Monitor large wallet movements and whale activity in real-time. Track smart money, identify accumulation patterns, and get alerts for significant transactions."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(RiNftFill,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"NFT Generator",description:"Scan upcoming presales for risks like hidden minting, dev backdoors, or fake team wallets â before you commit."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(IoWallet,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Portfolio Overview",description:"Connect your wallet to see real-time holdings, asset risk scores, and wallet health â all in one view."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(RiRobot2Fill,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Coinguard AI",description:"Ask anything. Your personal crypto AI can explain tokens, scan contracts, give safety tips, and track trends in real time."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(IoStarOutline,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Smart Picks",description:"Discover curated token suggestions tailored by AIâfactoring in risk scores, and evolving market trendsâto help you spot smarter opportunities with confidence."}),jsxRuntimeExports.jsx(FeatureItem,{icon:jsxRuntimeExports.jsx(IoMdAnalytics,{className:"h-6 w-6 sm:h-7 sm:w-7 text-[#CCFF00]"}),title:"Insight Hub",description:"Dive into expert blogs, safety guides, and AI-powered market updates, enriched with human research, to stay ahead with deeper insights and practical knowledge."})]})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}),jsxRuntimeExports.jsx(SectionTitle,{children:"Meet Our Team"}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsx(SectionContent,{children:"Our team at Coinguard consists of blockchain experts, AI researchers, and cybersecurity specialists with decades of collective experience. Driven by a passion for innovation and user empowerment, we work tirelessly to stay ahead of evolving threats in the crypto space. Our diverse expertise ensures that Coinguard remains at the forefront of security and usability, delivering tools you can trust."})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}
61),jsxRuntimeExports.jsx(SectionTitle,{children:"Our Core Values"}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6 mt-6 sm:mt-8",children:[jsxRuntimeExports.jsx(ValueItem,{title:"Transparency",description:"All results are presented in clear, jargon-free language for maximum accessibility."}),jsxRuntimeExports.jsx(ValueItem,{title:"User Privacy",description:"We prioritize your security by never storing private keys or sensitive wallet information."}),jsxRuntimeExports.jsx(ValueItem,{title:"Independence",description:"Our analysis remains unbiased, free from external influence or affiliations."}),jsxRuntimeExports.jsx(ValueItem,{title:"Innovation",description:"We continuously adapt to new scam tactics and market trends to keep you protected."})]})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}),jsxRuntimeExports.jsx(SectionTitle,{children:"Our Vision"}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsx(SectionContent,{children:"We envision a crypto ecosystem where investors of all levels have access to accurate, real-time data and robust security tools. By integrating AI, blockchain analytics, and user-centric design, we strive to build a safer, smarter, and more transparent future for digital finance, fostering trust and confidence across the Web3 landscape."})]}),jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4 sm:mb-6",children:[jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-r from-[#CCFF00] to-transparent flex-grow mr-4"}),jsxRuntimeExports.jsxs(SectionTitle,{children:["Why Choose ",jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"Coinguard?"})]}),jsxRuntimeExports.jsx("div",{className:"h-0.5 bg-gradient-to-l from-[#CCFF00] to-transparent flex-grow ml-4"})]}),jsxRuntimeExports.jsxs("ul",{className:"mt-6 sm:mt-8 space-y-4",children:[jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 bg-[#CCFF00] rounded-full mr-3 sm:mr-4 mt-2 flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-gray-300 text-base sm:text-lg",children:"Fast, accurate, and intuitive interface designed for all users."})]}),jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 bg-[#CCFF00] rounded-full mr-3 sm:mr-4 mt-2 flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-gray-300 text-base sm:text-lg",children:"AI-powered insights that evolve with the dynamic crypto market."})]}),jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 bg-[#CCFF00] rounded-full mr-3 sm:mr-4 mt-2 flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-gray-300 text-base sm:text-lg",children:"Comprehensive coverage for DeFi tokens, NFTs, and more."})]}),jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 bg-[#CCFF00] rounded-full mr-3 sm:mr-4 mt-2 flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-gray-300 text-base sm:text-lg",children:"Trusted by traders, analysts, and blockchain developers worldwide."})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"bg-gradient-to-b from-white/5 to-white/10 backdrop-blur p-6 sm:p-8 md:p-10 rounded-3xl border border-[#CCFF00]/20 shadow-2xl text-center relative overflow-hidden transform transition-all duration-500 hover:scale-[1.01]",children:[jsxRuntimeExports.jsx("div",{className:"absolute -top-16 -right-16 w-32 h-32 sm:w-40 sm:h-40 bg-[#CCFF00]/10 rounded-full mix-blend-soft-light filter blur-2xl sm:blur-3xl opacity-10"}),jsxRuntimeExports.jsx("div",{className:"absolute -bottom-16 -left-16 w-32 h-32 sm:w-40 sm:h-40 bg-[#CCFF00]/10 rounded-full mix-blend-soft-light filter blur-2xl sm:blur-3xl op
61acity-10"}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#CCFF00]/5 to-transparent opacity-5"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"inline-flex items-center justify-center p-2 bg-gradient-to-r from-[#CCFF00]/20 to-[#CCFF00]/10 rounded-full mb-4 sm:mb-6 border border-[#CCFF00]/30 mx-auto shadow-lg",children:jsxRuntimeExports.jsx("div",{className:"bg-black rounded-full p-2 sm:p-3",children:jsxRuntimeExports.jsx(IoShieldCheckmark,{className:"h-6 w-6 sm:h-8 sm:w-8 text-[#CCFF00] animate-pulse"})})}),jsxRuntimeExports.jsx("p",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 sm:mb-6 bg-clip-text text-transparent bg-gradient-to-r from-[#CCFF00] to-[#aaff00] leading-[1.2]",style:{paddingBottom:"0.15em",overflow:"visible"},children:"Stay Safe. Stay Smart. Stay Guarded."}),jsxRuntimeExports.jsxs("p",{className:"text-base sm:text-lg md:text-xl text-gray-300 max-w-3xl mx-auto leading-relaxed",children:["Whether you're avoiding honeypots, or verifying liquidity,"," ",jsxRuntimeExports.jsx("span",{className:"font-semibold text-[#CCFF00]",children:"Coinguard"})," ","is your ultimate partner in navigating the fast-paced crypto market with security and confidence."]})]})]})]})})]})]}),SectionCard=({children:e})=>jsxRuntimeExports.jsx("div",{className:"bg-gradient-to-b from-white/5 to-white/10 backdrop-blur-sm p-6 sm:p-8 lg:p-10 rounded-3xl border border-white/20 shadow-xl hover:shadow-2xl transition-all duration-500 hover:border-[#CCFF00]/30 group",children:e}),SectionTitle=({children:e})=>jsxRuntimeExports.jsx("h2",{className:"text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold text-white text-center",children:e}),SectionContent=({children:e})=>jsxRuntimeExports.jsx("p",{className:"text-sm sm:text-base md:text-lg lg:text-xl text-gray-300 leading-relaxed text-center max-w-3xl mx-auto",children:e}),FeatureItem=({icon:e,title:t,description:r,className:n=""})=>jsxRuntimeExports.jsxs("div",{className:`flex items-start p-4 sm:p-5 bg-gradient-to-b from-white/5 to-white/10 rounded-2xl hover:from-[#CCFF00]/5 hover:to-[#CCFF00]/10 transition-all duration-300 w-full ${n}`,children:[jsxRuntimeExports.jsx("div",{className:"p-2 rounded-full mr-3 sm:mr-4 mt-0.5 border border-white/20 transition-all duration-300 group-hover-hover:border-[#CCFF00] group-hover-hover:scale-110 hover:border-[#CCFF00] hover:scale-110",children:jsxRuntimeExports.jsx("div",{className:"bg-black p-1 rounded-full",children:e})}),jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("h4",{className:"font-semibold text-white text-sm sm:text-base md:text-lg transition-colors duration-300 hover:text-[#CCFF00]",children:t}),jsxRuntimeExports.jsx("p",{className:"text-gray-300 mt-1 sm:mt-2 text-xs sm:text-sm md:text-base",children:r})]})]}),ValueItem=({title:e,description:t})=>jsxRuntimeExports.jsxs("div",{className:"flex items-start p-4 sm:p-5 bg-gradient-to-b from-white/5 to-white/10 rounded-2xl hover:from-[#CCFF00]/5 hover:to-[#CCFF00]/10 transition-all duration-300",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 bg-[#CCFF00] rounded-full mr-3 sm:mr-4 mt-2 flex-shrink-0"}),jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("h4",{className:"font-semibold text-white text-sm sm:text-base md:text-lg",children:e}),jsxRuntimeExports.jsx("p",{className:"text-gray-300 mt-1 sm:mt-2 text-xs sm:text-sm md:text-base",children:t})]})]});function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(e=>t=>{const r=toString.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$5=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);
vendor: 5,426 bytes, line 61
61return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(toStringTag in e)&&!(iterator in e)},isEmptyObject=e=>{if(!isObject$5(e)||isBuffer(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$5(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$1(e.append)&&((t=kindOf(e))==="formdata"||t==="object"&&isFunction$1(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),isArray(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(isBuffer(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let u;for(n=0;n<l;n++)u=a[n],t.call(null,e[u],u,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},r={},n=(s,a)=>{const l=e&&findKey(r,a)||a;isPlainObject(r[l])&&isPlainObject(s)?r[l]=merge(r[l],s):isPlainObject(s)?r[l]=merge({},s):isArray(s)?r[l]=s.slice():(!t||!isUndefined(s))&&(r[l]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&forEach(arguments[s],n);return r}const extend$3=(e,t,r,{allOwnKeys:n}={})=>(forEach(t,(s,a)=>{r&&isFunction$1(s)?e[a]=bind(s,r):e[a]=s},{allOwnKeys:n}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,n)=>{let s,a,l;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)l=s[a],(!n||n(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=r!==!1&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const n=(e&&e[iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},matchAll=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,(s,a)=>{let l;(l=t(s,a,e))!==!1&&(n[a]=l||s)}),Object.defineProperties(e,n)},freezeMethods=e=>{reduceDescriptors(e,(t,r)=>{if(isFunction$1(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(isFunction$1(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet=(e,t)=>{const r={},n=s=>{s.forEach(a=>{r[a]=!0})};return isArray(e)?n(e):n(String(e).split(t)),r},noop$1=()=>{},toFiniteNumber=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&e[toStringTag]==="FormData"&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),r=(n,s)=>{if(isObject$5(n)){if(t.indexOf(n)>=0)return;if(isBuffer(n))return n;if(!("toJSON"in n)){t[s]=n;const a=isArray(n)?[]:{};return forEach(n,(l,u)=>{const d=r(l,s+1);!isUndefined(d)&&(a[u]=d)}),t[s]=void 0,a}}return n};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$5(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate=((e,t)=>e?setImmediate:t?((r,n)=>(_global.addEventListener("message",({source:s,data:a})=>{s===_global&&a===r&&n.length&&n.shift()()},!1),s=>{n.push(s),_global.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable$1=e=>e!=null&&isFunction$1(e[iterator]),utils$3={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber:isNumber$1,isBoolean,isObject:isObject$5,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend:extend$3,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLF
vendor: 5,523 bytes, line 61
61orm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable:isIterable$1};function AxiosError$1(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}utils$3.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$3.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(e=>{descriptors[e]={value:e}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(e,t,r,n,s,a)=>{const l=Object.create(prototype$1);utils$3.toFlatObject(e,l,function(h){return h!==Error.prototype},p=>p!=="isAxiosError");const u=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return AxiosError$1.call(l,u,d,r,n,s),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",a&&Object.assign(l,a),l};const httpAdapter=null;function isVisitable(e){return utils$3.isPlainObject(e)||utils$3.isArray(e)}function removeBrackets(e){return utils$3.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map(function(s,a){return s=removeBrackets(s),!r&&a?"["+s+"]":s}).join(r?".":""):t}function isFlatArray(e){return utils$3.isArray(e)&&!e.some(isVisitable)}const predicates=utils$3.toFlatObject(utils$3,{},null,function(t){return/^is[A-Z]/.test(t)});function toFormData$1(e,t,r){if(!utils$3.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=utils$3.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,E){return!utils$3.isUndefined(E[v])});const n=r.metaTokens,s=r.visitor||h,a=r.dots,l=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&utils$3.isSpecCompliantForm(t);if(!utils$3.isFunction(s))throw new TypeError("visitor must be a function");function p(b){if(b===null)return"";if(utils$3.isDate(b))return b.toISOString();if(utils$3.isBoolean(b))return b.toString();if(!d&&utils$3.isBlob(b))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$3.isArrayBuffer(b)||utils$3.isTypedArray(b)?d&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,v,E){let j=b;if(b&&!E&&typeof b=="object"){if(utils$3.endsWith(v,"{}"))v=n?v:v.slice(0,-2),b=JSON.stringify(b);else if(utils$3.isArray(b)&&isFlatArray(b)||(utils$3.isFileList(b)||utils$3.endsWith(v,"[]"))&&(j=utils$3.toArray(b)))return v=removeBrackets(v),j.forEach(function(T,z){!(utils$3.isUndefined(T)||T===null)&&t.append(l===!0?renderKey([v],z,a):l===null?v:v+"[]",p(T))}),!1}return isVisitable(b)?!0:(t.append(renderKey(E,v,a),p(b)),!1)}const x=[],w=Object.assign(predicates,{defaultVisitor:h,convertValue:p,isVisitable});function g(b,v){if(!utils$3.isUndefined(b)){if(x.indexOf(b)!==-1)throw Error("Circular reference detected in "+v.join("."));x.push(b),utils$3.forEach(b,function(j,R){(!(utils$3.isUndefined(j)||j===null)&&s.call(t,j,utils$3.isString(R)?R.trim():R,v,w))===!0&&g(j,v?v.concat(R):[R])}),x.pop()}}if(!utils$3.isObject(e))throw new TypeError("data must be an object");return g(e),t}function encode$2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(t,r){this._pairs.push([t,r])};prototype.toString=function(t){const r=t?function(n){return t.call(this,n,encode$2)}:encode$2;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function encode$1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode$1;utils$3.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(t,r):a=utils$3.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils$3.forEach(this.handlers,function(n){n!==null&&t(n)})}}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:{
vendor: 17,096 bytes, lines 61-63
61URLSearchParams: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$2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils$2,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,{visitor:function(r,n,s,a){return platform.isNode&&utils$3.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$3.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},r=Object.keys(e);let n;const s=r.length;let a;for(n=0;n<s;n++)a=r[n],t[a]=e[a];return t}function formDataToJSON(e){function t(r,n,s,a){let l=r[a++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),d=a>=r.length;return l=!l&&utils$3.isArray(s)?s.length:l,d?(utils$3.hasOwnProp(s,l)?s[l]=[s[l],n]:s[l]=n,!u):((!s[l]||!utils$3.isObject(s[l]))&&(s[l]=[]),t(r,n,s[l],a)&&utils$3.isArray(s[l])&&(s[l]=arrayToObject(s[l])),!u)}if(utils$3.isFormData(e)&&utils$3.isFunction(e.entries)){const r={};return utils$3.forEachEntry(e,(n,s)=>{t(parsePropPath(n),s,r,0)}),r}return null}function stringifySafely(e,t,r){if(utils$3.isString(e))try{return(t||JSON.parse)(e),utils$3.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,a=utils$3.isObject(t);if(a&&utils$3.isHTMLForm(t)&&(t=new FormData(t)),utils$3.isFormData(t))return s?JSON.stringify(formDataToJSON(t)):t;if(utils$3.isArrayBuffer(t)||utils$3.isBuffer(t)||utils$3.isStream(t)||utils$3.isFile(t)||utils$3.isBlob(t)||utils$3.isReadableStream(t))return t;if(utils$3.isArrayBufferView(t))return t.buffer;if(utils$3.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((u=utils$3.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return toFormData$1(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function(t){const r=this.transitional||defaults$1.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(utils$3.isResponse(t)||utils$3.isReadableStream(t))return t;if(t&&utils$3.isString(t)&&(n&&!this.responseType||s)){const l=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?AxiosError$1.from(u,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$3.forEach(["delete","get","head","post","put","patch"],e=>{defaults$1.headers[e]={}});const ignoreDuplicateOf=utils$3.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=e=>{const t={};let r,n,s;return e&&e.split(` 62`).forEach(function(l){s=l.indexOf(":"),r=l.substring(0,s).trim().toLowerCase(),n=l.substring(s+1).trim(),!(!r||t[r]&&ignoreDuplicateOf[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$3.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,s){if(utils$3.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!utils$3.isString(t)){if(utils$3.isString(n))return t.indexOf(n)!==-1;if(utils$3.isRegExp(n))return n.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function buildAccessors(e,t){const r=utils$3.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,a,l){return this[n].call(this,t,s,a,l)},configurable:!0})})}let AxiosHeaders$1=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function a(u,d,p){const h=normalizeHeader(d);if(!h)throw new Error("header name must be a non-empty string");const x=utils$3.findKey(s,h);(!x||s[x]===void 0||p===!0||p===void 0&&s[x]!==!1)&&(s[x||d]=normalizeValue(u))}const l=(u,d)=>utils$3.forEach(u,(p,h)=>a(p,h,d));if(utils$3.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(utils$3.isString(t)&&(t=t.trim())&&!isValidHeaderName(t))l(parseHeaders(t),r);else if(utils$3.isObject(t)&&utils$3.isIterable(t)){let u={},d,p;for(const h of t){if(!utils$3.isArray(h))throw TypeError("Object iterator must return a key-value pair");u[p=h[0]]=(d=u[p])?utils$3.isArray(d)?[...d,h[1]]:[d,h[1]]:h[1]}l(u,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=normalizeHeader(t),t){const n=utils$3.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return parseTokens(s);if(utils$3.isFunction(r))return r.call(this,s,n);if(utils$3.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=normalizeHeader(t),t){const n=utils$3.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||matchHeaderValue(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function a(l){if(l=normalizeHeader(l),l){const u=utils$3.findKey(n,l);u&&(!r||matchHeaderValue(n,n[u],u,r))&&(delete n[u],s=!0)}}return utils$3.isArray(t)?t.forEach(a):a(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const a=r[n];(!t||matchHeaderValue(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const r=this,n={};return utils$3.forEach(this,(s,a)=>{const l=utils$3.findKey(n,a);if(l){r[l]=normalizeValue(s),delete r[a];return}const u=t?formatHeader(a):String(a).trim();u!==a&&delete r[a],r[u]=normalizeValue(s),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return utils$3.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&utils$3.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 63`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[$internals]=this[$internals]={accessors:{}}).accessors,s=this.prototype;function a(l){const u=normalizeHeader(l);n[u]||(buildAccessors(s,l),n[u]=!0)}return utils$3.isArray(t)?t.forEach(a):a(t),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$3.reduceDescriptors(AxiosHeaders$1.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});utils$3.freezeMethods(AxiosHeaders$1);function transformData(e,t){const r=this||defaults$1,n=t||r,s=AxiosHeaders$1.from(n.headers);let a=n.data;return utils$3.forEach(e,function(u){a=u.call(r,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function isCancel$1(e){return!!(e&&e.__CANCEL__)}function CanceledError$1(e,t,r){AxiosError$1.call(this,e??"canceled",AxiosError$1.ERR_CANCELED,t,r),this.name="CanceledError"}utils$3.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new AxiosError$1("Request failed with status code "+r.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,a=0,l;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),h=n[a];l||(l=p),r[s]=d,n[s]=p;let x=a,w=0;for(;x!==s;)w+=r[x++],x=x%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),p-l<t)return;const g=h&&p-h;return g?Math.round(w*1e3/g):void 0}}function throttle$1(e,t){let r=0,n=1e3/t,s,a;const l=(p,h=Date.now())=>{r=h,s=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const h=Date.now(),x=h-r;x>=n?l(p,h):(s=p,a||(a=setTimeout(()=>{a=null,l(s)},n-x)))},()=>s&&l(s)]}const progressEventReducer=(e,t,r=3)=>{let n=0;const s=speedometer(50,250);return throttle$1(a=>{const l=a.loaded,u=a.lengthComputable?a.total:void 0,d=l-n,p=s(d),h=l<=u;n=l;const x={loaded:l,total:u,progress:u?l/u:void 0,bytes:d,rate:p||void 0,estimated:p&&u&&h?(u-l)/p:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(x)},r)},progressEventDecorator=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>utils$3.asap(()=>e(...t)),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,r,n,s,a){const l=[e+"="+encodeURIComponent(t)];utils$3.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),utils$3.isString(n)&&l.push("path="+n),utils$3.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,r){let n=!isAbsoluteURL(t);return e&&(n||r==!1)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const r={};function n(p,h,x,w){return utils$3.isPlainObject(p)&&utils$3.isPlainObject(h)?utils$3.merge.call({caseless:w},p,h):utils$3.isPlainObject(h)?utils$3.merge({},h):utils$3.isArray(h)?h.slice():h}function s(p,h,x,w){if(utils$3.isUndefined(h)){if(!utils$3.isUndefined(p))return n(void 0,p,x,w)}else return n(p,h,x,w)}function a(p,h){if(!utils$3.isUndefined(h))return n(void 0,h)}function l(p,h){if(utils$3.isUndefined(h)){if(!utils$3.isUndefined(p))return n(void 0,p)}else return n(void 0,h)}function u(p,h,x){if(x in t)return n(p,h);if(x in e)return n(void 0,p)}const d={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(p,h,x)=>s(headersToObject(p),headersToObject(h),x,!0)};return utils$3.forEach(Object.keys({...e,...t}),function(h){const x=d[h]||s,w=x(e[h],t[h],h);utils$3.isUndefined(w)&&x!==u||(r[h]=w)}),r}const resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:a,headers:l,auth:u}=t;if(t.headers=l=AxiosHeaders$1.from(l),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),utils$3.isFormData(r)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(utils$3.isFunction(r.getHeaders)){const d=r.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([h,x])=>{p.includes(h.toLowerCase())&&l.set(h,x)})}}if(platform.hasStandardBrowserEnv&&(n&&utils$3.isFunction(n)&&(n=n(t)),n||n!==!1&&isURLSameOrigin(t.url))){const d=s&&a&&cookies.read(a);d&&l.set(s,d)}return t},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(r,n){const s=resolveConfig(e);let a=s.data;const l=AxiosHeaders$1.from(s.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:p}=s,h,x,w,g,b;function v(){g&&g(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function j(){if(!E)return;const T=AxiosHeaders$1.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),L={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:T,config:e,request:E};settle(function($){r($),v()},function($){n($),v()},L),E=null}"onloadend"in E?E.onloadend=j:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(j)},E.onabort=function(){E&&(n(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,E)),E=null)},E.onerror=function(z){const L=z&&z.message?z.message:"Network Error",V=new AxiosError$1(L,AxiosError$1.ERR_NETWORK,e,E);V.event=z||null,n(V),E=null},E.ontimeout=function(){let z=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||transitionalDefaults;s.timeoutErrorMessage&&(z=s.timeoutErrorMessage),n(new AxiosError$1(z,L.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,E)),E=null},a===void 0&&l.setContentType(null),"setRequestHeader"in E&&utils$3.forEach(l.toJSON(),function(z,L){E.setRequestHeader(L,z)}),utils$3.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),u&&u!=="json"&&(E.responseType=s.responseType),p&&([w,b]=progressEventReducer(p,!0),E.addEventListener("progress",w)),d&&E.upload&&([x,g]=progressEventReducer(d),E.upload.addEventListener("progress",x),E.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=T=>{E&&(n(!T||T.type?new CanceledError$1(null,e,E):T),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const R=parseProtocol(s.url);if(R&&platform.protocols.indexOf(R)===-1){n(new AxiosError$1("Unsupported protocol "+R+":",AxiosError$1.ERR_BAD_REQUEST,e));return}E.send(a||null)})},composeSignals=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const a=function(p){if(!s){s=!0,u();const h=p instanceof Error?p:this.reason;n.abort(h instanceof AxiosError$1?h:new CanceledError$1(h instanceof Error?h.message:h))}};let l=t&&setTimeout(()=>{l=null,a(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:d}=n;return d.unsubscribe=()=>utils$3.asap(u),d}},streamChunk=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},readBytes=async function*(e,t){for await(const r of readStream(e))yield*streamChunk(r,t)},readStream=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,r,n)=>{const s=readBytes(e,t);let a=0,l,u=d=>{l||(l=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:p,value:h}=await s.next();if(p){u(),d.close();return}let x=h.byteLength;if(r){let w=a+=x;r(w)}d.enqueue(new Uint8Array(h))}catch(p){throw u(p),p}},cancel(d){return u(d),s.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$3,globalFetchAPI=(({Request:e,Response:t})=>({Request:e,Response:t}))(utils$3.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$2}
vendor: 10,553 bytes, lines 63-66
63=utils$3.global,test$1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},factory=e=>{e=utils$3.merge.call({skipUndefined:!0},globalFetchAPI,e);const{fetch:t,Request:r,Response:n}=e,s=t?isFunction(t):typeof fetch=="function",a=isFunction(r),l=isFunction(n);if(!s)return!1;const u=s&&isFunction(ReadableStream$1),d=s&&(typeof TextEncoder$2=="function"?(b=>v=>b.encode(v))(new TextEncoder$2):async b=>new Uint8Array(await new r(b).arrayBuffer())),p=a&&u&&test$1(()=>{let b=!1;const v=new r(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!v}),h=l&&u&&test$1(()=>utils$3.isReadableStream(new n("").body)),x={stream:h&&(b=>b.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!x[b]&&(x[b]=(v,E)=>{let j=v&&v[b];if(j)return j.call(v);throw new AxiosError$1(`Response type '${b}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,E)})});const w=async b=>{if(b==null)return 0;if(utils$3.isBlob(b))return b.size;if(utils$3.isSpecCompliantForm(b))return(await new r(platform.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(utils$3.isArrayBufferView(b)||utils$3.isArrayBuffer(b))return b.byteLength;if(utils$3.isURLSearchParams(b)&&(b=b+""),utils$3.isString(b))return(await d(b)).byteLength},g=async(b,v)=>{const E=utils$3.toFiniteNumber(b.getContentLength());return E??w(v)};return async b=>{let{url:v,method:E,data:j,signal:R,cancelToken:T,timeout:z,onDownloadProgress:L,onUploadProgress:V,responseType:$,headers:U,withCredentials:B="same-origin",fetchOptions:P}=resolveConfig(b),H=t||fetch;$=$?($+"").toLowerCase():"text";let Z=composeSignals([R,T&&T.toAbortSignal()],z),O=null;const S=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let N;try{if(V&&p&&E!=="get"&&E!=="head"&&(N=await g(U,j))!==0){let D=new r(v,{method:"POST",body:j,duplex:"half"}),_;if(utils$3.isFormData(j)&&(_=D.headers.get("content-type"))&&U.setContentType(_),D.body){const[M,G]=progressEventDecorator(N,progressEventReducer(asyncDecorator(V)));j=trackStream(D.body,DEFAULT_CHUNK_SIZE,M,G)}}utils$3.isString(B)||(B=B?"include":"omit");const F=a&&"credentials"in r.prototype,k={...P,signal:Z,method:E.toUpperCase(),headers:U.normalize().toJSON(),body:j,duplex:"half",credentials:F?B:void 0};O=a&&new r(v,k);let W=await(a?H(O,P):H(v,k));const q=h&&($==="stream"||$==="response");if(h&&(L||q&&S)){const D={};["status","statusText","headers"].forEach(Q=>{D[Q]=W[Q]});const _=utils$3.toFiniteNumber(W.headers.get("content-length")),[M,G]=L&&progressEventDecorator(_,progressEventReducer(asyncDecorator(L),!0))||[];W=new n(trackStream(W.body,DEFAULT_CHUNK_SIZE,M,()=>{G&&G(),S&&S()}),D)}$=$||"text";let A=await x[utils$3.findKey(x,$)||"text"](W,b);return!q&&S&&S(),await new Promise((D,_)=>{settle(D,_,{data:A,headers:AxiosHeaders$1.from(W.headers),status:W.status,statusText:W.statusText,config:b,request:O})})}catch(F){throw S&&S(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,b,O),{cause:F.cause||F}):AxiosError$1.from(F,F&&F.code,b,O)}}},seedCache=new Map,getFetch=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:s}=t,a=[n,s,r];let l=a.length,u=l,d,p,h=seedCache;for(;u--;)d=a[u],p=h.get(d),p===void 0&&h.set(d,p=u?new Map:factory(t)),h=p;return p};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$3.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$3.isFunction(e)||e===null||e===!1,adapters={getAdapter:(e,t)=>{e=utils$3.isArray(e)?e:[e];const{length:r}=e;let n,s;const a={};for(let l=0;l<r;l++){n=e[l];let u;if(s=n,!isResolvedHandle(n)&&(s=knownAdapters[(u=String(n)).toLowerCase()],s===void 0))throw new AxiosError$1(`Unknown adapter '${u}'`);if(s&&(utils$3.isFunction(s)||(s=s.get(t))))break;a[u||"#"+l]=s}if(!s){const l=Object.entries(a).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let u=r?l.length>1?`since : 64`+l.map(renderReason).join(` 65`):" "+renderReason(l[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults$1.adapter,e)(e).then(function(n){return throwIfCancellationRequested(e),n.data=transformData.call(e,e.transformResponse,n),n.headers=AxiosHeaders$1.from(n.headers),n},function(n){return isCancel$1(n)||(throwIfCancellationRequested(e),n&&n.response&&(n.response.data=transformData.call(e,e.transformResponse,n.response),n.response.headers=AxiosHeaders$1.from(n.response.headers))),Promise.reject(n)})}const VERSION$1="1.12.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function(t,r,n){function s(a,l){return"[Axios v"+VERSION$1+"] Transitional option '"+a+"'"+l+(n?". "+n:"")}return(a,l,u)=>{if(t===!1)throw new AxiosError$1(s(l," has been removed"+(r?" in "+r:"")),AxiosError$1.ERR_DEPRECATED);return r&&!deprecatedWarnings[l]&&(deprecatedWarnings[l]=!0,console.warn(s(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,l,u):!0}};validators$1.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function assertOptions(e,t,r){if(typeof e!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const a=n[s],l=t[a];if(l){const u=e[a],d=u===void 0||l(u,a,e);if(d!==!0)throw new AxiosError$1("option "+a+" must be "+d,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new AxiosError$1("Unknown option "+a,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(t){this.defaults=t||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` 66`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mergeConfig$1(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:a}=r;n!==void 0&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!=null&&(utils$3.isFunction(s)?r.paramsSerializer={serialize:s}:validator.assertOptions(s,{encode:validators.function,serialize:validators.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),validator.assertOptions(r,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=a&&utils$3.merge(a.common,a[r.method]);a&&utils$3.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),r.headers=AxiosHeaders$1.concat(l,a);const u=[];let d=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(d=d&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const p=[];this.interceptors.response.forEach(function(v){p.push(v.fulfilled,v.rejected)});let h,x=0,w;if(!d){const b=[dispatchRequest.bind(this),void 0];for(b.unshift(...u),b.push(...p),w=b.length,h=Promise.resolve(r);x<w;)h=h.then(b[x++],b[x++]);return h}w=u.length;let g=r;for(;x<w;){const b=u[x++],v=u[x++];try{g=b(g)}catch(E){v.call(this,E);break}}try{h=dispatchRequest.call(this,g)}catch(b){return Promise.reject(b)}for(x=0,w=p.length;x<w;)h=h.then(p[x++],p[x++]);return h}getUri(t){t=mergeConfig$1(this.defaults,t);const r=buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls);return buildURL(r,t.params,t.paramsSerializer)}};utils$3.forEach(["delete","get","head","options"],function(t){Axios$1.prototype[t]=function(r,n){return this.request(mergeConfig$1(n||{},{method:t,url:r,data:(n||{}).data}))}});utils$3.forEach(["post","put","patch"],function(t){function r(n){return function(a,l,u){return this.request(mergeConfig$1(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}Axios$1.prototype[t]=r(),Axios$1.prototype[t+"Form"]=r(!0)});let CancelToken$1=class dh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(s=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](s);n._listeners=null}),this.promise.then=s=>{let a;const l=new Promise(u=>{n.subscribe(u),a=u}).then(s);return l.cancel=function(){n.unsubscribe(a)},l},t(function(a,l,u){n.reason||(n.reason=new CanceledError$1(a,l,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new dh(function(s){t=s}),cancel:t}}};function spread$1(e){return function(r){return e.apply(null,r)}}function isAxiosError$1(e){return utils$3.isObject(e)&&e.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,Parti
66alContent: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};Object.entries(HttpStatusCode$1).forEach(([e,t])=>{HttpStatusCode$1[t]=e});function createInstance(e){const t=new Axios$1(e),r=bind(Axios$1.prototype.request,t);return utils$3.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$3.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return createInstance(mergeConfig$1(e,s))},r}const axios=createInstance(defaults$1);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(t){return Promise.all(t)};axios.spread=spread$1;axios.isAxiosError=isAxiosError$1;axios.mergeConfig=mergeConfig$1;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=e=>
66formDataToJSON(utils$3.isHTMLForm(e)?new FormData(e):e);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;function FaRegCheckCircle(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(e)}function ImSpinner2(e){return GenIcon({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z"},child:[]}]})(e)}const ContactForm=()=>{const[e,t]=reactExports.useState({name:"",email:"",subject:"",message:""}),[r,n]=reactExports.useState(!1),[s,a]=reactExports.useState(!1),[l,u]=reactExports.useState(""),d=()=>e.name.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)?e.subject.trim()?!e.message.trim()||e.message.length<10?(u("Please enter a message with at least 10 characters."),!1):!0:(u("Please enter a subject."),!1):(u("Please enter a valid email address."),!1):(u("Please enter your name."),!1),p=x=>{const{name:w,value:g}=x.target;t(b=>({...b,[w]:g})),l&&u("")},h=async()=>{if(u(""),!!d()){n(!0);try{const x=await axios.post("undefined/contact",{name:e.name,email:e.email,subject:e.subject,message:e.message});x.status===201?alert("form submitted successfully"):alert("something went wrong, please try again later !!"),console.log(x.status)}catch(x){console.log(x)}setTimeout(()=>{n(!1),a(!0),t({name:"",email:"",subject:"",message:""}),setTimeout(()=>a(!1),2e3)},2e3)}};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"Contact Coinguard â Get in Touch with Our Web3 Security Team"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Have questions about Coinguardâs Web3 security tools? Contact our team today for support on token scans, audits, whale tracking, AI chat, and NFT generation."}),jsxRuntimeExports.jsx("meta",{name:"keywords",content:"Contact Coinguard, Coinguard Support, Web3 Security Contact, Crypto Security Support, DeFi Audit Contact, AI Crypto Security Contact"}),jsxRuntimeExports.jsx("div",{className:"max-w-[1200px] mx-auto px-4 sm:px-6 lg:px-8 py-20",children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black/50 border border-white/30 p-8 lg:p-12 group transition-all duration-300 hover:border-[#CCFF00]/50",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col text-center",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center mb-4",children:[jsxRuntimeExports.jsx(IoMailOutline,{className:"w-7 h-7 text-[#CCFF00] mr-3"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-mono tracking-widest text-[#CCFF00]",children:"CONTACT US"})]}),jsxRuntimeExports.jsxs("h2",{className:"text-3xl sm:text-4xl font-medium text-white mb-4 leading-tight",children:["Get In ",jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"Touch"})]}),jsxRuntimeExports.jsx("p",{className:"text-white/70 mb-8 text-base max-w-[29rem] mx-auto",children:"Have questions about our security solutions or need support? Send us a message and our team will get back to you promptly."}),jsxRuntimeExports.jsxs("div",{className:"space-y-4 w-full max-w-full sm:max-w-xl mx-auto",children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:jsxRuntimeExports.jsx(IoPersonOutline,{className:"w-5 h-5 text-white/40"})}),jsxRuntimeExports.jsx("input",{type:"text",name:"name",placeholder:"Your Name",value:e.name,onChange:p,className:"w-full pl-10 pr-5 py-3 bg-white/5 border border-white/30 focus:border-[#CCFF00] focu
66s:outline-none text-white placeholder-white/40 transition-all text-sm"})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:jsxRuntimeExports.jsx(IoMailOutline,{className:"w-5 h-5 text-white/40"})}),jsxRuntimeExports.jsx("input",{type:"email",name:"email",placeholder:"[email protected]",value:e.email,onChange:p,className:"w-full pl-10 pr-5 py-3 bg-white/5 border border-white/30 focus:border-[#CCFF00] focus:outline-none text-white placeholder-white/40 transition-all text-sm"})]})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:jsxRuntimeExports.jsx(IoDocumentTextOutline,{className:"w-5 h-5 text-white/40"})}),jsxRuntimeExports.jsx("input",{type:"text",name:"subject",placeholder:"Subject",value:e.subject,onChange:p,className:"w-full pl-10 pr-5 py-3 bg-white/5 border border-white/30 focus:border-[#CCFF00] focus:outline-none text-white placeholder-white/40 transition-all text-sm"})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("textarea",{name:"message",placeholder:"Your message...",rows:"3",value:e.message,onChange:p,className:"w-full px-5 py-3 bg-white/5 border border-white/30 focus:border-[#CCFF00] focus:outline-none text-white placeholder-white/40 transition-all text-sm resize-none"})}),jsxRuntimeExports.jsx("div",{className:"flex justify-left",children:jsxRuntimeExports.jsx("button",{onClick:h,disabled:r||s,className:"relative px-6 py-3 bg-transparent text-white font-medium hover:text-[#CCFF00] transition-all flex items-center justify-center border border-white/30 hover:border-[#CCFF00] group/button min-w-[140px]",children:r?jsxRuntimeExports.jsx(ImSpinner2,{className:"animate-spin h-5 w-5 text-[#CCFF00]"}):s?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FaRegCheckCircle,{className:"h-5 w-5 text-[#CCFF00] mr-2"}),jsxRuntimeExports.jsx("span",{className:"relative z-10",children:"Submitted"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"relative z-10",children:"Send Message"}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-[#CCFF00] opacity-0 group-hover/button:opacity-10 transition-opacity duration-300"}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 h-4 w-4 group-hover/button:translate-x-1 group-hover/button:stroke-[#CCFF00] transition-all",children:[jsxRuntimeExports.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),jsxRuntimeExports.jsx("polyline",{points:"12 5 19 12 12 19"})]})]})})}),l&&jsxRuntimeExports.jsx("p",{className:"text-red-500 mt-2 text-sm font-medium text-center",children:l})]})]})]})})]})};function GrMoney(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M16,16 C16,14.8954305 12.8659932,14 9,14 C5.13400675,14 2,14.8954305 2,16 C2,17.1045695 5.13400675,18 9,18 C12.8659932,18 16,17.1045695 16,16 Z M2,16 L2,20.9367547 C2,22.0762536 5.13400675,23 9,23 C12.8659932,23 16,22.0762537 16,20.9367548 L16,16 M9,5 C4.581722,5 1,5.8954305 1,7 C1,8.1045695 4.581722,9 9,9 M1,7 L1,12.0000002 C1,13.0128881 4.581722,14 9,14 M23,4 C23,2.8954305 19.9004329,2 16.0769231,2 C12.2534133,2 9.15384615,2.8954305 9.15384615,4 C9.15384615,5.1045695 12.2534133,6 16.0769231,6 C19.9004329,6 23,5.1045695 23,4 Z M16,16 C19.8235098,16 23.0000002,15.0128879 23.0000002,14 L23,4 M9.15384615,3.99999999 L9.15384615,14.1660042 M8.99999999,9.00000001 C8.99999999,10.0128879 12.2534135,11 16.0769233,11 C19.9004331,11 23.0000004,10.0128879 23.0000004,9.00000001"},child:[]}]})(e)}function GrScan(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M20,14 L20,21 L4,21 L4,14 L4,14 M1,12 L23,12 L1,12 Z M4,11 L4,8 L4,11 Z M20,8 L20,11 L20,8 Z M7,3 L4,3 L4,6 M20,6 L20,3 L17,3 M9,3 L15,3 L9,3 Z",transform:"matrix(1 0 0 -1 0 24)"},child:[]}]})(e)}function SiBinance(e){return GenIcon({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.624 13.9202l2.7175 2.7154-7.353 7.353-7.353-7.352 2.7175-2.7164 4.6355 4.6595 4.6356-4.6595zm4.6366-4.6366L24 12l-2.7154 2.7164L18.5682 12l2.6924-2.7164zm-9.272.001l2.7163 2.6914-2.7164 2.7174v-.001L9.2721 12l2.7164-2.7154zm-9.2722-.001L5.4088 12l-2.6914 2.6924L0 12l2.7164-2.7164zM11.9885.0115l7.353 7.329-2.7174 2.7154-4.6356-4.6356-4.6355 4.6595-2.7174-2.7154 7.353-7.353z"},child:[]}]})(e)}function SiCoinmarketcap(e){return GenIcon({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.738 14.341c-.419.265-.912.298-1.28
666.087-.476-.27-.738-.898-.738-1.774v-2.618c0-1.264-.5-2.164-1.336-2.407-1.416-.413-2.482 1.32-2.882 1.972l-2.498 4.05v-4.95c-.028-1.14-.398-1.821-1.1-2.027-.466-.135-1.161-.081-1.837.953l-5.597 8.987A9.875 9.875 0 0 1 2.326 12c0-5.414 4.339-9.818 9.672-9.818 5.332 0 9.67 4.404 9.67 9.818.004.018.002.034.003.053.05 1.049-.29 1.883-.933 2.29zm3.08-2.34-.001-.055C23.787 5.353 18.497 0 11.997 0 5.48 0 .177 5.383.177 12c0 6.616 5.303 12 11.82 12 2.991 0 5.846-1.137 8.037-3.2.435-.41.46-1.1.057-1.541a1.064 1.064 0 0 0-1.519-.059 9.56 9.56 0 0 1-6.574 2.618c-2.856 0-5.425-1.263-7.197-3.268l5.048-8.105v3.737c0 1.794.696 2.374 1.28 2.544.584.17 1.476.054 2.413-1.468.998-1.614 2.025-3.297 3.023-4.88v2.276c0 1.678.672 3.02 1.843 3.68 1.056.597 2.384.543 3.465-.14 1.312-.828 2.018-2.354 1.944-4.193z"},child:[]}]})(e)}const FeaturesSection=()=>{const[e,t]=reactExports.useState(null),[r,n]=reactExports.useState(0),[s,a]=reactExports.useState(!1),l=reactExports.useRef(null),u=useNavigate(),d=[{title:"Token Scan",icon:jsxRuntimeExports.jsx(AiOutlineSecurityScan,{className:"w-5 h-5"}),description:"Analyze smart contracts using AI to detect potential threats like honeypots, mint functions, and high-risk patterns before you buy.",link:"/app/ai-token-scan"},{title:"Liquidity Scanner",icon:jsxRuntimeExports.jsx(BsDropletHalf,{className:"w-5 h-5"}),description:"Check if a token's liquidity is locked or vulnerable, helping you avoid projects that may pull liquidity and disappear.",link:"/app/liquidity-scanner"},{title:"RugShield",icon:jsxRuntimeExports.jsx(IoShieldCheckmark,{className:"w-5 h-5"}),description:"Real-time protection against rug pulls. Flags suspicious ownership setups, liquidity unlocks, and sudden fund movements.",link:"/app/rugshield"},{title:"Honeypot Detector",icon:jsxRuntimeExports.jsx(MdOutlineCrisisAlert,{className:"w-5 h-5"}),description:"Detect tokens where users can buy but not sell. Protect yourself from deceptive contracts that trap funds.",link:"/app/honeypot-detector"},{title:"NFT Generator",icon:jsxRuntimeExports.jsx(IoMdAnalytics,{className:"w-5 h-5"}),description:"Scan upcoming presales for risks like hidden minting, dev backdoors, or fake team wallets â before you commit.",link:"/app/nft-generator"},{title:"Whale Tracker",icon:jsxRuntimeExports.jsx(GiWhaleTail,{className:"w-5 h-5"}),description:"Monitor large wallets, devs, and whales. See who's buying, selling, or prepping for major moves.",link:"/app/whale-tracker"},{title:"Portfolio Overview",icon:jsxRuntimeExports.jsx(IoWallet,{className:"w-5 h-5"}),description:"Connect your wallet to see real-time holdings, asset risk scores, and wallet health â all in one view.",comingSoon:!0},{title:"Coinguard AI",icon:jsxRuntimeExports.jsx(RiRobot2Fill,{className:"w-5 h-5"}),description:"Ask anything. Your personal crypto AI can explain tokens, scan contracts, give safety tips, and track trends in real time.",link:"/app/ai-chat"},{title:"Smart Picks",icon:jsxRuntimeExports.jsx(MdOutlineGeneratingTokens,{className:"w-5 h-5"}),description:"Get curated token suggestions based on AI risk scores, and market trends â updated daily.",comingSoon:!0},{title:"Insight Hub",icon:jsxRuntimeExports.jsx(IoAnalytics,{className:"w-5 h-5"}),description:"Access expert-written blogs, token safety guides, community updates, and market breakdowns â powered by AI and human research.",comingSoon:!0}],p={sm:1,md:2,lg:3,xl:4},h=()=>{const w=Math.ceil(d.length-(window.innerWidth>=1280?p.xl:window.innerWidth>=1024?p.lg:window.innerWidth>=768?p.md:p.sm));n(g=>g>=w?0:g+1)},x=()=>{n(w=>w<=0?Math.ceil(d.length-(window.innerWidth>=1280?p.xl:window.innerWidth>=1024?p.lg:window.innerWidth>=768?p.md:p.sm)):w-1)};return jsxRuntimeExports.jsxs("div",{className:"max-w-[1200px] mx-auto px-4 sm:px-6 lg:px-8 pt-8 pb-20",children:[jsxRuntimeExports.jsxs("div",{className:window.innerWidth>=1024?"text-center mb-8":"text-center mb-16",children:[jsxRuntimeExports.jsx("span",{className:"inline-block px-3 py-1 text-xs font-mono tracking-widest text-[#CCFF00] bg-[#CCFF00]/10 mb-4",children:"OUR FLAGSHIP PRODUCTS"}),jsxRuntimeExports.jsxs("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:["All Security Tools"," ",jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"Unified in One Platform"})]}),jsxRuntimeExports.jsx("p",{className:"text-white/70 max-w-2xl mx-auto",children:"Safeguard your crypto journey with a complete suite of protection tools â seamless, integrated, and always accessible. No extra installs, no switching tabs, just everything you need in one place."})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[window.innerWidth>=1024&&jsxRuntimeExports.jsx("p",{className:"text-center text-white/70 text-sm mb-0",children:"Click a card to read more details"}),window.innerWidth>=1024?jsxRuntimeExports.jsx("div",{className:"wrapper",children:jsxRuntimeExports.jsx("div",{className:"inner",style:{"--quantity":d.length,animationPlayState:s?"paused":"running"},children:d.map((w,g)=>jsxRuntimeExports.jsx("div",{className:"card",style:{"--index":g},onClick:()=>t(w),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black/50 border border-white/20 p-6 group transition-all duration-300 hover:border-[#CCFF00]/50 cursor-pointer h-full",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsxs("div",{className:"flex items-start",children:[jsxRuntimeExports.jsx("div",{className:"p-2 bg-[#CCFF00]/10 border border-[#CCFF00]/30 mr-3 flex-shrink-0",children:React.cloneElement(w.icon,{className:"w-5 h-5 text-[#CCFF00]"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-medium text-white mb-2",children:w.title}),jsxRuntimeExports.jsx("p",{className:"text-white/60 text-sm line-clamp-2",children:w.description})]})]})]})},g))})}):jsxRuntimeExports.jsx("div",{className:"overflow-hidden",ref:l,children:jsxRuntimeExports.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${r*(100/(window.innerWidth>=1280?p.xl:window.innerWidth>=1024?p.lg:window.innerWidth>=768?p.md:p.sm))}%)`},children:d.map((w,g)=>jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 w-full sm:w-1/2 lg:w-1/3 xl:w-1/4 px-2",onClick:()=>t(w),children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black/50 border border-white/20 p-6 group transition-all duration-300 hover:border-[#CCFF00]/50 cursor-pointer h-full",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsxs("div",{className:"flex items-start",children:[jsxRuntimeExports.jsx("div",{className:"p-2 bg-[#CCFF00]/10 border border-[#CCFF00]/30 mr-3 flex-shrink-0",children:React.cloneElement(w.icon,{className:"w-5 h-5 text-[#CCFF00]"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-medium text-white mb-2",children:w.title}),jsxRuntimeExports.jsx("p",{className:"text-white/60 text-sm line-clamp-2",children:w.description})]})]})]})},g))})}),window.innerWidth<1024&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{onClick:x,className:"absolute top-1/2 left-0 transform -translate-y-1/2 bg-black/50 p-2 text-[#CCFF00] hover:bg-[#CCFF00]/20 transition-colors",children:jsxRuntimeExports.jsx(IoChevronBack,{className:"w-6 h-6"})}),jsxRuntimeExports.jsx("button",{onClick:h,className:"absolute top-1/2 right-0 transform -translate-y-1/2 bg-black/50 p-2 text-[#CCFF00] hover:bg-[#CCFF00]/20 transition-colors",children:jsxRuntimeExports.jsx(IoChevronForward,{className:"w-6 h-6"})}),jsxRuntimeExports.jsx("p",{className:"text-center text-white/70 text-sm mt-6",children:"Tap a card to read more details"})]})]}),e&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4",children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black border border-[#CCFF00]/30 max-w-2xl w-full p-8 max-h-[90vh] overflow-y-auto",children:[jsxRuntimeExports.jsx("button",{onClick:()=>t(null),className:"absolute top-4 right-4 p-1 text-white/70 hover:text-[#CCFF00] transition-colors",children:jsxRuntimeExports.jsx(IoClose,{className:"w-6 h-6"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-start mb-6",children:[jsxRuntimeExports.jsx("div",{className:"p-3 bg-[#CCFF00]/10 border border-[#CCFF00]/30 mr-4 flex-shrink-0",children:React.cloneElement(e.icon,{className:"w-8 h-8 text-[#CCFF00]"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"inline-block px-2 py-1 text-xs font-mono tracking-widest text-[#CCFF00] bg-[#CCFF00]/10 mb-2",children:"FEATURE DETAIL"}),jsxRuntimeExports.jsx("h3",{className:"text-2xl font-bold text-white",children:e.title})]})]}),jsxRuntimeExports.jsxs("div",{className:"prose prose-invert",children:[jsxRuntimeExports.jsx("p",{className:"text-white/80 mb-6",children:e.description}),jsxRuntimeExports.jsxs("div",{className:"bg-black/50 border border-white/10 p-4",children:[jsxRuntimeExports.jsx("h4",{className:"text-[#CCFF00] font-mono text-sm mb-2",children:"HOW IT PROTECTS YOU:"}),jsxRuntimeExports.jsx("ul",{className:"space-y-2",children:e.description.split(". ").filter(
66Boolean).map((w,g)=>jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("span",{className:"inline-block w-1.5 h-1.5 mt-2 mr-2 bg-[#CCFF00] rounded-full flex-shrink-0"}),jsxRuntimeExports.jsxs("span",{className:"text-white/80",children:[w.replace(/\.$/,""),"."]})]},g))})]})]}),e.comingSoon?jsxRuntimeExports.jsx("div",{className:"mt-8 w-full py-3 bg-gray-600/20 border border-gray-500/30 text-gray-400 font-medium text-center rounded",children:"Coming Soon"}):e.link?jsxRuntimeExports.jsx("button",{onClick:()=>{t(null),u(e.link)},className:"mt-8 w-full py-3 bg-[#CCFF00]/10 border border-[#CCFF00]/30 text-[#CCFF00] font-medium hover:bg-[#CCFF00]/20 transition-colors",children:"Early Access"}):null]})}),jsxRuntimeExports.jsx("style",{children:` 67 .wrapper { 68 width: 100%; 69 height: 500px; 70 position: relative; 71 text-align: center; 72 display: flex; 73 align-items: center; 74 justify-content: center; 75 overflow: visible; 76 } 77 78 @media (min-width: 1024px) { 79 .wrapper { 80 margin-top: -3rem; /* Negative margin to pull carousel closer to instruction text */ 81 } 82 83 .inner { 84 --w: 800px; 85 --h: 400px; 86 --translateZ: 600px; 87 --rotateX: -10deg; 88 --perspective: 2000px; 89 position: relative; 90 width: var(--w); 91 height: var(--h); 92 transform-style: preserve-3d; 93 transform: perspective(var(--perspective)); 94 animation: rotating 20s linear infinite; 95 } 96 97 @keyframes rotating { 98 from { 99 transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0); 100 } 101 to { 102 transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(360deg); 103 } 104 } 105 106 .card { 107 position: absolute; 108 width: 250px; 109 height: 200px; 110 border-radius: 20px; /* Increased for more rounded corners */ 111 overflow: hidden; 112 top: 50%; 113 left: 50%; 114 transform: translate(-50%, -50%) rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ)); 115 transition: transform 0.3s ease; 116 } 117 118 .card:hover { 119 transform: translate(-50%, -50%) rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(calc(var(--translateZ) + 50px)) scale(1.05); 120 } 121 } 122 123 @media (max-width: 1023px) { 124 .wrapper { 125 overflow: hidden; 126 } 127 128 .card { 129 border-radius: 20px; /* Consistent rounded corners for mobile */ 130 } 131 } 132 `})]})};function FaQuora(e){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M440.5 386.7h-29.3c-1.5 13.5-10.5 30.8-33 30.8-20.5 0-35.3-14.2-49.5-35.8 44.2-34.2 74.7-87.5 74.7-153C403.5 111.2 306.8 32 205 32 105.3 32 7.3 111.7 7.3 228.7c0 134.1 131.3 221.6 249 189C276 451.3 302 480 351.5 480c81.8 0 90.8-75.3 89-93.3zM297 329.2C277.5 300 253.3 277 205.5 277c-30.5 0-54.3 10-69 22.8l12.2 24.3c6.2-3 13-4 19.8-4 35.5 0 53.7 30.8 69.2 61.3-10 3-20.7 4.2-32.7 4.2-75 0-107.5-53-107.5-156.7C97.5 124.5 130 71 205 71c76.2 0 108.7 53.5 108.7 157.7.1 41.8-5.4 75.6-16.7 100.5z"},child:[]}]})(e)}function FaXTwitter(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}function FaMobileScreenButton(e){return GenIcon({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M16 64C16 28.7 44.7 0 80 0L304 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L80 512c-35.3 0-64-28.7-64-64L16 64zM224 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM304 64L80 64l0 320 224
1320 0-320z"},child:[]}]})(e)}function FaWallet(e){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L80 128c-8.8 0-16-7.2-16-16s7.2-16 16-16l368 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L64 32zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},child:[]}]})(e)}function Footer(){reactExports.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const e=["https://x.com/Coinguard_AI/","https://t.me/coinguardai_official/","https://instagram.com/coinguard.ai/","https://www.binance.com/en/square/profile/coinguardai","https://coinmarketcap.com/community/profile/coinguardai/","https://www.quora.com/profile/Coinguard","https://www.youtube.com/@CoinguardAI/"],t=[BsTwitterX,RiTelegram2Line,BsInstagram,SiBinance,SiCoinmarketcap,FaQuora,BsYoutube];return jsxRuntimeExports.jsxs("div",{className:"w-full border-t border-white/20 bg-black relative overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-transparent via-[#ccff0040] to-transparent blur-[100px] opacity-30 pointer-events-none"}),jsxRuntimeExports.jsxs("footer",{className:"w-full text-gray-300 px-4 sm:px-6 md:px-10 lg:px-20 xl:px-28 relative z-10",children:[jsxRuntimeExports.jsxs("div",{className:"max-w-[1300px] mx-auto py-12 lg:py-16",children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-28",children:[jsxRuntimeExports.jsxs("div",{className:"transform sm:translate-x-4 md:translate-x-8 lg:translate-x-12 xl:translate-x-16",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center mb-4 space-x-2",children:jsxRuntimeExports.jsx(Link,{to:"/",children:jsxRuntimeExports.jsx("h3",{className:"text-white text-4xl sm:text-3xl tracking-wider font-[Righteous] font-semibold transition-all duration-300 ",children:"coinguard"})})}),jsxRuntimeExports.jsx("p",{className:"text-base text-white mb-6 font-[Manrope] w-full sm:w-[15rem]",children:"The ultimate memecoin safety net. Protecting traders from scams, rug pulls, and malicious contracts through advanced AI technology."})]}),jsxRuntimeExports.jsxs("div",{className:"transform sm:translate-x-4 md:translate-x-8 lg:translate-x-12 xl:translate-x-16",children:[jsxRuntimeExports.jsx("h3",{className:"text-white font-semibold mb-4 text-xl sm:text-lg font-['DM_Sans'] relative after:content-[''] after:block after:w-12 after:h-[2px] after:bg-[#CCFF00] after:mt-2 after:rounded-full",children:"Product"}),jsxRuntimeExports.jsxs("ul",{className:"space-y-3 text-base font-[Manrope]",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{to:"/About",className:"text-white hover:text-[#CCFF00] transition-all duration-300 hover:drop-shadow-[0_0_8px_#ccff00]",children:"About"})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{to:"/feature",className:"text-white hover:text-[#CCFF00] transition-all duration-300 hover:drop-shadow-[0_0_8px_#ccff00]",children:"Features"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"transform sm:translate-x-4 md:translate-x-8 lg:translate-x-12 xl:translate-x-16",children:[jsxRuntimeExports.jsx("h3",{className:"text-white font-semibold mb-4 text-xl sm:text-lg font-['DM_Sans'] relative after:content-[''] after:block after:w-16 after:h-[2px] after:bg-[#CCFF00] after:mt-2 after:rounded-full",children:"Resources"}),jsxRuntimeExports.jsxs("ul",{className:"space-y-3 text-base font-[Manrope]",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://docs.coinguard.ai/",className:"text-white hover:text-[#CCFF00] transition-all duration-300 hover:drop-shadow-[0_0_8px_#ccff00]",children:"Documentation"})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://blog.coinguard.ai/",className:"text-white hover:text-[#CCFF00] transition-all duration-300 hover:drop-shadow-[0_0_8px_#ccff00]",children:"Blog"})})]})]})]}),jsxRuntimeExports.jsx("div",{className:"mt-10 flex flex-wrap justify-center gap-5",children:t.map((r,n)=>jsxRuntimeExports.jsx("a",{href:e[n],target:"_blank",rel:"noopener noreferrer",className:"w-11 h-11 flex items-center justify-center text-white border border-white/20 rounded-full hover:text-[#CCFF00] hover:border-[#CCFF00] hover:shadow-[0_0_15px_#ccff00] transition-all duration-300",children:jsxRuntimeExports.jsx(r,{className:"w-5 h-5"})},n))})]}),jsxRuntimeExports.jsx("div",{className:"w-full border-t border-white/20",children:jsxRuntimeExports.jsxs("div",{className:"max-w-[1300px] mx-auto py-6 px-4 sm:px-6 md:px-10 lg:px-20 xl:px-28 flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-white",children:[jsxRuntimeExports.jsx("p",{className:"text-center text-base md:text-left",children:"© 2025 Coinguard. All rights reserved."}),jsxRuntimeExports.jsxs("ul",{className:"flex flex-wrap items-center justify-center md:justify-end gap-4 text-center",children:[jsxRuntimeExports.jsxs("li",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"w-2 h-2 bg-[#CCFF00] rounded-full animate-pulse shadow-[0_0_10px_#ccff00]"}),jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:"All Systems Operational"})]}),jsxRuntimeExports.jsxs("li",{className:"text-white text-base",children:["Built with ",jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"security"})," in mind"]})]})]})})]})]})}/** 133 * @license lucide-react v0.544.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),toPascalCase=e=>{const t=toCamelCase(e);return t.charAt(0).toUpperCase()+t.slice(1)},mergeClasses=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),hasA11yProp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 138 * @license lucide-react v0.544.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 143 * @license lucide-react v0.544.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const Icon=reactExports.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:a,iconNode:l,...u},d)=>reactExports.createElement("svg",{ref:d,...defaultAttributes,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:mergeClasses("lucide",s),...!a&&!hasA11yProp(u)&&{"aria-hidden":"true"},...u},[...l.map(([p,h])=>reactExports.createElement(p,h)),...Array.isArray(a)?a:[a]]));/** 148 * @license lucide-react v0.544.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const createLucideIcon=(e,t)=>{const r=reactExports.forwardRef(({className:n,...s},a)=>reactExports.createElement(Icon,{ref:a,iconNode:t,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(e))}`,`lucide-${e}`,n),...s}));return r.displayName=toPascalCase(e),r};/** 153 * @license lucide-react v0.544.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const __iconNode$7=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Check=createLucideIcon("check",__iconNode$7);/** 158 * @license lucide-react v0.544.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const __iconNode$6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ChevronDown=createLucideIcon("chevron-down",__iconNode$6);/** 163 * @license lucide-react v0.544.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const __iconNode$5=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ChevronUp=createLucideIcon("chevron-up",__iconNode$5);/** 168 * @license lucide-react v0.544.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const __iconNode$4=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Copy=createLucideIcon("copy",__iconNode$4);/** 173 * @license lucide-react v0.544.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const __iconNode$3=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Menu=createLucideIcon("menu",__iconNode$3);/** 178 * @license lucide-react v0.544.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const __iconNode$2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
182y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ShieldCheck=createLucideIcon("shield-check",__iconNode$2);/** 183 * @license lucide-react v0.544.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const __iconNode$1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],TriangleAlert=createLucideIcon("triangle-alert",__iconNode$1);/** 188 * @license lucide-react v0.544.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const __iconNode=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X=createLucideIcon("x",__iconNode),CompanyModel=({onMouseEnter:e,onMouseLeave:t})=>jsxRuntimeExports.jsx("div",{className:"absolute left-[-70px] mt-8 w-[250px] bg-[rgb(17,17,17)] shadow-lg rounded-xl p-6 grid grid-cols-1 gap-4 z-[55] text-white",onMouseEnter:e,onMouseLeave:t,children:jsxRuntimeExports.jsxs("ul",{className:"space-y-4",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{to:"/about",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:jsxRuntimeExports.jsx("p",{className:"font-medium",children:"About"})})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://docs.coinguard.ai/",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Resources"})})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{to:"/contact",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Contact"})})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{to:"/privacy-policy",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Legal"})})})]})}),LaunchAppButton=({className:e=""})=>jsxRuntimeExports.jsxs(Link,{to:"/app",className:`flex justify-center gap-2 items-center mx-auto shadow-lg text-xs sm:text-sm backdrop-blur-md font-semibold isolation-auto border-gray-50 before:absolute before:w-full before:transition-all before:duration-700 before:hover:w-full before:-left-full before:hover:left-0 before:rounded-full before:bg-gradient-to-r from-[#A468DA] to-[#149BF5] hover:text-gray-50 before:-z-10 before:aspect-square before:hover:scale-150 before:hover:duration-700 relative z-10 px-4 py-2 sm:px-5 sm:py-2.5 border rounded-full overflow-hidden group ${e}`,children:[jsxRuntimeExports.jsx("span",{className:"text-white relative z-10",children:"Launch App"}),jsxRuntimeExports.jsx("svg",{className:"w-5 h-5 sm:w-6 sm:h-6 justify-end group-hover:rotate-90 group-hover:bg-gray-50 text-gray-50 ease-linear duration-300 rounded-full border border-gray-700 group-hover:border-none p-1 sm:p-1.5 rotate-45",viewBox:"0 0 16 19",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M7 18C7 18.5523 7.44772 19 8 19C8.55228 19 9 18.5523 9 18H7ZM8.70711 0.292893C8.31658 -0.0976311 7.68342 -0.0976311 7.29289 0.292893L0.928932 6.65685C0.538408 7.04738 0.538408 7.68054 0.928932 8.07107C1.31946 8.46159 1.95262 8.46159 2.34315 8.07107L8 2.41421L13.6569 8.07107C14.0474 8.46159 14.6805 8.46159 15.0711 8.07107C15.4616 7.68054 15.4616 7.04738 15.0711 6.65685L8.70711 0.292893ZM9 18L9 1H7L7 18H9Z",className:"fill-white group-hover:fill-black"})})]}),ProductModel=({onMouseEnter:e,onMouseLeave:t})=>jsxRuntimeExports.jsxs("div",{className:"fixed left-1/2 transform -translate-x-1/2 top-[145px] w-[700px] bg-[rgb(17,17,17)] shadow-lg rounded-xl p-6 grid grid-cols-2 gap-6 z-[55] text-white",onMouseEnter:e,onMouseLeave:t,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"text-gray-600 text-sm font-semibold mb-3",children:"AI Security Tools"}),jsxRuntimeExports.jsxs("ul",{className:"space-y-2",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/ai-token-scan",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(AiOutlineSecurityScan,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Token Scan"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"AI-powered smart contract & token safety assessment"})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/rugshield",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IoShieldCheckmark,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Rugshield"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Early rug-pull detection & prevention system"})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/liquidity-scanner",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(GrMoney,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Liquidity Scan"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Automated liquidity pool health & safety analysis"})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/honeypot-detector",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(MdOutlineCrisisAlert,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Honeypot Detector"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Detect malicious liquidity traps instantly"})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/whale-tracker",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(GiWhaleTail,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Whale Tracker"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Real-time whale tracking & smart money alerts"})]})]})})]}),jsxRuntimeExports.jsx("h4",{className:"text-gray-600 text-sm font-semibold mt-6 mb-3",children:"Communication & Insights"}),jsxRuntimeExports.jsx("ul",{className:"space-y-2",children:jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/ai-chat",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(AiFillWechat,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Coinguard AI"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"24/7 Coinguard AI for crypto market analysis & security alerts"})]})]})})}),jsxRuntimeExports.jsx("h4",{className:"text-gray-600 text-sm font-semibold mt-6 mb-3",children:"Creative AI"}),jsxRuntimeExports.jsx("ul",{className:"space-y-2",children:jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"/app/nft-generator",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(RiNftFill,{className:"w-4 h-5 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"NFT Generator"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"AI-driven NFT creation with customizable art & metadata"})]})]})})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"text-gray-600 text-sm font-semibold mb-3",children:"Flagship Upcoming Products"}),jsxRuntimeExports.jsxs("ul",{className:"space-y-4",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"#",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(FaMobileScreenButton,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Coinguard App (Coming Soon)"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"All-in-one platform for safe memecoin trading â detect scams instantly, monitor wallets, track portfolios, trade with AI-powered protection, explore tokens, and get AI insights, news & trends."})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"#",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(FaWallet,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Coinguard Wallet (Coming Soon)"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Multi-platform wallet with built-in Pro Security Tools â scans any token before purchase, delivers instant safety reports, and provides real-time trading guidance."})]})]})})]}),jsxRuntimeExports.jsx("h4",{className:"text-gray-600 text-sm font-semibold mt-6 mb-3",children:"Other Upcoming Tools"}),jsxRuntimeExports.jsxs("ul",{className:"space-y-2",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"#",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IoWallet,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Portfolio Overview"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Unified dashboard for holdings & risks"})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"#",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IoStar,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Smart Picks"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"AI-curated token recommendations and investment opportunities"})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:"#",className:"flex items-start gap-2 hover:text-[#CCFF00]",children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IoMdAnalytics,{className:"w-4 h-4 mt-1"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-medium",children:"Insight Hub"}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500",children:"Comprehensive market analysis and investment insights"})]})]})})]})]})]}),Navbar=()=>{const[e,t]=reactExports.useState(!1),[r,n]=reactExports.useState(!1),[s,a]=reactExports.useState(!1),[l,u]=reactExports.useState(!1),[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(!1),w=useLocation(),g=reactExports.useRef(null),b=reactExports.useRef(null),v=()=>t(!e);reactExports.useEffect(()=>{(()=>{window.scrollTo({top:0,behavior:"smooth"})})()},[w.pathname]),reactExports.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]);const E=()=>{g.current&&clearTimeout(g.current),n(!0)},j=()=>{g.current=setTimeout(()=>{n(!1)},200)},R=()=>{b.current&&clearTimeout(b.current),a(!0)},T=()=>{b.current=setTimeout(()=>{a(!1)},200)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("nav",{className:"text-white font-['DM_Sans'] fixed top-[45px] left-0 right-0 z-50 pt-2 md:pt-4 pb-2",children:jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center",children:jsxRuntimeExports.jsx("div",{className:"max-w-[96%] w-full",children:jsxRuntimeExports.jsx("div",{className:"bg-[rgb(17,17,17)] rounded-xl shadow-lg mx-auto px-2 sm:px-4 lg:px-6",children:jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center h-16",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center mb-1 space-x-2",children:jsxRuntimeExports.jsx(Link,{to:"/",children:jsxRuntimeExports.jsx("h3",{className:"text-white text-2xl md:text-3xl font-[Righteous] font-medium tracking-wide",children:"coinguard"})})}),jsxRuntimeExports.jsxs("div",{className:"relative hidden md:flex items-center space-x-9",children:[jsxRuntimeExports.jsxs("li",{className:"relative list-none",onMouseEnter:E,onMouseLeave:j,children:[jsxRuntimeExports.jsx("span",{className:"hover:text-gray-300 font-medium cursor-pointer",children:"Product"}),r&&jsxRuntimeExports.jsx(ProductModel,{onMouseEnter:E,onMouseLeave:j})]}),jsxRuntimeExports.jsxs("li",{className:"relative list-none",onMouseEnter:R,onMouseLeave:T,children:[jsxRuntimeExports.jsx("span",{className:"hover:text-gray-300 font-medium cursor-pointer",children:"Company"}),s&&jsxRuntimeExports.jsx(CompanyModel,{onMouseEnter:R,onMouseLeave:T})]}),jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://docs.coinguard.ai/",className:"hover:text-gray-300 font-medium",children:"Docs"}),jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://blog.coinguard.ai/",className:"hover:text-gray-300 font-medium",children:"Blog"})]}),jsxRuntimeExports.jsx("div",{className:"hidden md:flex items-center space-x-6",children:jsxRuntimeExports.jsx(LaunchAppButton,{})}),jsxRuntimeExports.jsx("div",{className:"flex items-center md:hidden",children:jsxRuntimeExports.jsx("button",{onClick:v,className:"text-gray-300 hover:text-white transition duration-200",children:e?jsxRuntimeExports.jsx(X,{className:"h-6 w-6"}):jsxRuntimeExports.jsx(Menu,{className:"h-6 w-6"})})})]})})})})}),jsxRuntimeExports.jsx("div",{className:`fixed inset-0 bg-black bg-opacity-40 backdrop-blur-sm z-30 transition-opacity duration-300 ${e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"} md:hidden`,onClick:()=>t(!1)}),jsxRuntimeExports.jsx("div",{className:`fixed top-[8.5rem] left-1/2 font-['DM_Sans'] bg-[rgb(17,17,17)] rounded-xl shadow-lg z-40 transition-all duration-300 ease-in-out transform -translate-x-1/2 193 max-w-[96%] w-full overflow-hidden md:hidden ${e?"max-h-[80vh] opacity-100":"max-h-0 opacity-0"}`,children:jsxRuntimeExports.jsx("div",{className:"flex flex-col px-6 pt-6 pb-6 overflow-y-auto",style:{maxHeight:"calc(80vh - 3rem)"},children:jsxRuntimeExports.jsxs("ul",{className:"space-y-3 text-left",children:[jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsxs("button",{className:"flex justify-between items-center w-full text-white font-semibold hover:text-[#CCFF00]",onClick:()=>u(!l),children:["Product",l?jsxRuntimeExports.jsx(ChevronUp,{size:18}):jsxRuntimeExports.jsx(ChevronDown,{size:18})]}),jsxRuntimeExports.jsxs("div",{className:`grid grid-cols-1 sm:grid-cols-2 text-sm text-gray-300 gap-y-2 mt-2 pl-3 transition-all duration-300 overflow-hidden ${l?"max-h-[600px]":"max-h-0"}`,children:[jsxRuntimeExports.jsx(Link,{to:"/app/ai-token-scan",onClick:()=>t(!1),children:"Token Scan"}),jsxRuntimeExports.jsx(Link,{to:"/app/rugshield",onClick:()=>t(!1),children:"RugShield"}),jsxRuntimeExports.jsx(Link,{to:"/app/liquidity-scanner",onClick:()=>t(!1),children:"Liquidity Scan"}),jsxRuntimeExports.jsx(Link,{to:"/app/honeypot-detector",onClick:()=>t(!1),children:"Honeypot Detector"}),jsxRuntimeExports.jsx(Link,{to:"/app/whale-tracker",onClick:()=>t(!1),children:"Whale Tracker"}),jsxRuntimeExports.jsx(Link,{to:"/app/ai-chat",onClick:()=>t(!1),children:"Coinguard AI"}),jsxRuntimeExports.jsx(Link,{to:"/app/nft-generator",onClick:()=>t(!1),children:"NFT Generator"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("button",{className:"flex justify-between items-center w-full text-white font-semibold hover:text-[#CCFF00]",onClick:()=>x(!h),children:["Coming Soon",h?jsxRuntimeExports.jsx(ChevronUp,{size:18}):jsxRuntimeExports.jsx(ChevronDown,{
193size:18})]}),jsxRuntimeExports.jsxs("div",{className:`grid grid-cols-1 text-sm text-gray-400 gap-y-2 mt-2 pl-3 transition-all duration-300 overflow-hidden ${h?"max-h-[400px]":"max-h-0"}`,children:[jsxRuntimeExports.jsx("span",{children:"Coinguard App"}),jsxRuntimeExports.jsx("span",{children:"Coinguard Wallet"}),jsxRuntimeExports.jsx("span",{children:"Portfolio Overview"}),jsxRuntimeExports.jsx("span",{children:"Smart Picks"}),jsxRuntimeExports.jsx("span",{children:"Insight Hub"})]})]})]})]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsxs("button",{className:"flex justify-between items-center w-full text-white font-semibold hover:text-[#CCFF00]",onClick:()=>p(!d),children:["Company",d?jsxRuntimeExports.jsx(ChevronUp,{size:18}):jsxRuntimeExports.jsx(ChevronDown,{size:18})]}),jsxRuntimeExports.jsxs("div",{className:`grid grid-cols-1 text-sm text-gray-300 gap-y-2 mt-2 pl-3 transition-all duration-300 overflow-hidden ${d?"max-h-[300px]":"max-h-0"}`,children:[jsxRuntimeExports.jsx(Link,{to:"/about",onClick:()=>t(!1),children:"About"}),jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://docs.coinguard.ai/",children:"Resources"}),jsxRuntimeExports.jsx(Link,{to:"/contact",onClick:()=>t(!1),children:"Contact"}),jsxRuntimeExports.jsx(Link,{to:"/privacy-policy",onClick:()=>t(!1),children:"Legal"})]})]}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://docs.coinguard.ai/",className:"block text-white font-semibold hover:text-[#CCFF00]",children:"Docs"})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://blog.coinguard.ai/",className:"block text-white font-semibold hover:text-[#CCFF00]",children:"Blog"})}),jsxRuntimeExports.jsx("li",{className:"pt-3",children:jsxRuntimeExports.jsx(LaunchAppButton,{})})]})})})]})},NewsletterBox=()=>{const[e,t]=reactExports.useState(""),[r,n]=reactExports.useState(!1),[s,a]=reactExports.useState(!1),[l,u]=reactExports.useState(""),d=h=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h),p=async()=>{if(u(""),!d(e)){u("Please enter a valid email address.");return}n(!0);try{const h=await axios.post("https://coinguardbackend.up.railway.app/api/subscribe",{email:e});console.log(h.status),a(!0),t("")}catch(h){u("email already Registered"),console.log(h)}finally{n(!1)}};return jsxRuntimeExports.jsx("div",{className:"w-full max-w-[1250px] mx-auto px-4 sm:px-6 md:px-8 lg:px-10 xl:px-12 pb-16 sm:pb-20 md:pb-24 lg:pb-28 xl:pb-32",children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black/50 border border-white/30 p-8 lg:p-12 group transition-all duration-300 hover:border-[#CCFF00]/50",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col lg:flex-row gap-10 items-center",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-4",children:[jsxRuntimeExports.jsx(IoMailOutline,{className:"w-7 h-7 text-[#CCFF00] mr-3"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-mono tracking-widest text-[#CCFF00]",children:"SECURITY UPDATES"})]}),jsxRuntimeExports.jsxs("h2",{className:"text-3xl sm:text-4xl font-medium text-white mb-4 leading-tight",children:["Stay ",jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"Informed"})]}),jsxRuntimeExports.jsx("p",{className:"text-white/70 mb-8 text-base max-w-2xl",children:"Get critical security alerts, platform updates, and threat analysis delivered securely to your inbox."}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full max-w-xl",children:[jsxRuntimeExports.jsx("input",{type:"email",placeholder:"[email protected]",value:e,onCh
193ange:h=>t(h.target.value),className:"flex-grow px-5 py-3 bg-white/5 border border-white/30 focus:border-[#CCFF00] focus:outline-none text-white placeholder-white/40 transition-all text-sm"}),jsxRuntimeExports.jsx("button",{onClick:p,disabled:r||s,className:"relative px-6 py-3 bg-transparent text-white font-medium hover:text-[#CCFF00] transition-all flex items-center justify-center border border-white/30 hover:border-[#CCFF00] group/button min-w-[140px]",children:r?jsxRuntimeExports.jsx(ImSpinner2,{className:"animate-spin h-5 w-5 text-[#CCFF00]"}):s?jsxRuntimeExports.jsx(FaRegCheckCircle,{className:"h-5 w-5 text-[#CCFF00]"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"relative z-10",children:"Subscribe"}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-[#CCFF00] opacity-0 group-hover/button:opacity-10 transition-opacity duration-300"}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 h-4 w-4 group-hover/button:translate-x-1 group-hover/button:stroke-[#CCFF00] transition-all",children:[jsxRuntimeExports.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),jsxRuntimeExports.jsx("polyline",{points:"12 5 19 12 12 19"})]})]})})]}),l&&jsxRuntimeExports.jsx("p",{className:"text-red-500 mt-2 text-sm font-medium",children:l}),s&&jsxRuntimeExports.jsx("p",{className:"text-[#CCFF00] mt-2 text-sm font-medium",children:"You're subscribed!"})]}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block relative w-48 h-48",children:jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-80 group-hover:opacity-100 transition-opacity duration-300",children:jsxRuntimeExports.jsx("div",{className:"w-40 h-40 border border-[#CCFF00]/20 group-hover:border-[#CCFF00]/40 rotate-45 transition-all duration-700 flex items-center justify-center",children:jsxRuntimeExports.jsx(IoMailOutline,{className:"w-16 h-16 text-[#CCFF00]/60 group-hover:text-[#CCFF00] -rotate-45 transition-all duration-500"})})})})]})]})})},roadmapData=[{title:"Phase 1: Launchpad Activation ",points:["Official Coinguard landing page goes live","Token Prebuy opens for early backers","Whitepaper and Litepaper released","Community channels activated (X, Telegram, Discord)"],image:"/road-map-gif/1.gif"},{title:"Phase 2: Web App Rollout ",points:["Coinguard Web App launches with early access to core features: Token Scans, Rug Shield, Portfolio Overview, and AI Chat. Closed beta testing begins to gather user feedback and optimize the experience."],image:"/road-map-gif/2.gif"},{title:"Phase 3: Mobile App Launch + Anti-Scam Awareness ",points:["Coinguard App launches on Play Store & Apple Store","Simple, intuitive UI designed like a token swap interface","Full suite of security tools in one place","Global campaign to educate users on avoiding crypto scams with Coinguard"],image:"/road-map-gif/3.gif"},{title:"Phase 4: Coinguard Token (CGT) + Platform Launch ",points:["Coinguard launches publicly with the official listing of $CGT and full access to pro tools like AI Chat, Portfolio Monitoring, Dev Scanner, Tokenomics Dashboard, and Staking."],image:"/road-map-gif/4.gif"},{title:"Phase 5: Cross-Chain Expansion ",points:["Multi-chain integration across Ethereum, BSC, Solana, and more","Optimized user experience for secure DEX trading"],image:"/road-map-gif/5.gif"},{title:"Phase 6: Advanced Feature Upgrade + Verified Token Listing ",points:[" Coinguard introduces upgraded AI tools, improved UX, and a Verified Token Listing Service. Projects are scanned, vetted, and scored before launch, enabling smarter token suggestions based on real risk data."],image:"/road-map-gif/6.gif"},{title:"Phase 7:Enterprise & Developer Tools ",points:[" B2B Coinguard API suite","Exchange integration (Coinguard Scanner API)","Enterprise dashboard for DAOs, funds & aggregators","Whitelabel AI security modules"],image:"/road-map-gif/7.gif"}],roadmapImageSizes={0:{width:180,height:180},1:{width:200,height:200},2:{width:200,height:200},3:{width:150,height:150},4:{width:195,height:205},5:{width:175,height:175},6:{width:190,height:190}},roadmapMobileImageSizes={0:{width:150,height:150},1:{width:170,height:160},2:{width:170,height:160}
193,3:{width:130,height:130},4:{width:145,height:150},5:{width:130,height:130},6:{width:140,height:140}},RoadmapItem=({item:e,index:t,activeIndex:r,itemRefs:n})=>{const s=t===r,a=t%2===0,l=roadmapImageSizes[t]||{width:140,height:140},u=roadmapMobileImageSizes[t]||{width:100,height:100};return jsxRuntimeExports.jsxs("div",{ref:d=>n.current[t]=d,className:"relative mb-16 md:mb-24",style:{minHeight:"140px"},children:[jsxRuntimeExports.jsx("div",{className:`md:hidden absolute left-2 top-1/2 -translate-y-1/2 w-3 h-3 rounded-full border-2 z-10 transition-all duration-300 ${s?"bg-[#CCFF00] border-[#CCFF00] scale-125 shadow-lg shadow-[#CCFF00]/30":"bg-white/30 border-white scale-100"}`}),jsxRuntimeExports.jsx("div",{className:`hidden md:block z-10 w-4 h-4 rounded-full border-2 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-all duration-300 ${s?"bg-[#CCFF00] border-[#CCFF00] scale-125 shadow-lg shadow-[#CCFF00]/30":"bg-white/30 border-white scale-100"}`}),jsxRuntimeExports.jsxs("div",{className:"md:hidden pl-8 pr-4 flex flex-col items-start text-left space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center",children:jsxRuntimeExports.jsx("img",{src:e.image,alt:e.title,style:u,className:"object-contain rounded-lg",loading:"lazy"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-bold text-white mb-2",children:e.title}),jsxRuntimeExports.jsx("ul",{className:"list-disc text-white/70 space-y-1 ml-4",children:e.points.map((d,p)=>jsxRuntimeExports.jsx("li",{children:d},p))})]})]}),jsxRuntimeExports.jsxs("div",{className:"hidden md:flex flex-wrap items-center",children:[a&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4 max-w-md w-1/2 px-2 lg:px-4 -ml-8 lg:-ml-16",children:[jsxRuntimeExports.jsx("img",{src:e.image,alt:e.title,style:l,className:"object-contain rounded-lg flex-shrink-0",loading:"lazy"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-base lg:text-xl font-bold text-white mb-2",children:e.title}),jsxRuntimeExports.jsx("ul",{className:"list-disc text-white/70 space-y-1 ml-4 text-sm lg:text-base",children:e.points.map((d,p)=>jsxRuntimeExports.jsx("li",{children:d},p))})]})]}),jsxRuntimeExports.jsx("div",{className:"w-1/2"}),!a&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4 max-w-md w-1/2 px-2 lg:px-4 justify-end text-left ml-auto -mr-8 lg:-mr-16",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-base lg:text-xl font-bold text-white mb-2",children:e.title}),jsxRuntimeExports.jsx("ul",{className:"list-disc text-white/70 space-y-1 mr-4 text-sm lg:text-base",children:e.points.map((d,p)=>jsxRuntimeExports.jsx("li",{children:d},p))})]}),jsxRuntimeExports.jsx("img",{src:e.image,alt:e.title,style:l,className:"object-contain rounded-lg flex-shrink-0",loading:"lazy"})]})]})]})},Roadmap=()=>{const[e,t]=reactExports.useState(0),r=reactExports.useRef([]);return reactExports.useEffect(()=>{const n=()=>{let s=0,a=1/0;r.current.forEach((l,u)=>{if(!l)return;const d=l.getBoundingClientRect(),p=Math.abs(d.top+d.height/2-window.innerHeight/2);p<a&&(a=p,s=u)}),t(s)};return window.addEventListener("scroll",n,{passive:!0}),n(),()=>{window.removeEventListener("scroll",n)}},[]),jsxRuntimeExports.jsx("section",{className:"py-10 text-white relative",children:jsxRuntimeExports.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[jsxRuntimeExports.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-center mb-20",children:"Roadmap"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"hidden md:block absolute left-1/2 top-0 bottom-0 w-1 bg-white/20 -translate-x-1/2 z-0"}),jsxRuntimeExports.jsx("div",{className:"md:hidden absolute left-3 top-0 bottom-0 w-[2px] bg-white/20 z-0"}),roadmapData.map((n,s)=>jsxRuntimeExports.jsx(RoadmapItem,{item:n,index:s,activeIndex:e,itemRefs:r},s))]})]})})},articles=[{id:"fortress-of-liquidity",title:"The Fortress of Liquidity â Coinguard Liquidity Scan...",description:"The Fortress of Liquidityâ explores how Coinguardâs Liquidity Scan unveils hidden liquidity pools and market dynamics, providing...",image:"/LandingPage/blogimg/whatis.webp",date:"Oct 7, 2025",metaTitle:"The Fortress of Liquidity â Coinguard Liquidity Scan Through Hidden Gates",metaDescription:"The Fortress of Liquidityâ explores how Coinguardâs Liquidity Scan unveils hidden liquidity pools and market dynamics, providing traders.",metaKeywords:"The Fortress of Liquidity, Coinguard Liquidity Scan, Token Liquidity, Security, Transparency, Market Depth, Hidden Liquidity Pools, Vulnerabilities, Crypto Liquidity Scanning, Precision Analysis, DeFi, Web3, Blockchain, DeFi, Web3, Blockchain, fortress of liquidity, coinguard, liquidity scan, hidden gates, liquidity fortress, crypto liquidity, defi liquidity, liquidity security, liquidity analyzer, crypto scan, blockchain scanner, smart contract audit, liquidity protection, token security, rug pull detector, coin liquidity checker, crypto safety, liquidity lock, liquidity proof, liquidity pool, pool scanner, dex liquidity, token audit, token analysis, liquidity risk, blockchain analytics, liquidity defense, liquidity shield, crypto defense, coinguard scan, liquidity watch, liquidity tracking, token liquidity, liquidity insights, liquidity gates, hidden liquidity, crypto monitoring, liquidity health, smart liquidity, crypto intelligence, on-chain analytics, liquidity verification, blockchain security, liquidity scan tool, decentralized liquidity, dex scan, liquidity score, liquidity detection, crypto scanner, blockchain monitor.",projects:[{introduction:`Walk the fortress of DeFi if you dareâa vast citadel built over seas of shimmering tokens, radiant and inviting. From a distance, every gate gleams gold. Every wall looks secure. But step closer, and the shimmer may hide traps: unlocked liquidity, greedy dev hands, ghost volume, and pools so shallow they crack under pressure. 194 In this fortress, one tool pierces the facadeâCoinguard Liquidity Scanâcasting light through locked gates and illuminating the shadowed passageways of risk so that traders may see, decide, and survive.`},{name:"The Quiet Threat Behind the Walls",paragraph:`Liquidity should be a promise: when you buy, you can one day sell. But many gates in the fortress are false. Developers hold the keys but slip them away. Liquidity that was supposed to be locked disappears. Ownership becomes opaque. Flashy metrics draw you in. Then the cracks show. 195Traders across Binance Smart Chain, Ethereum, Polygon, and others face this unseen sabotage. Pools appear deep but betray under volume. Liquidity is unlocked, allowing sudden withdrawals. Majority ownership in few hands means exit without warning. These are the perils Coinguard Liquidity Scan was built to expose. 196`},{name:"Walls, Gates & Guardians: Features That Secure the Keep",paragraph:`Just like ancient fortifications, the fortress needs guards, locks, and watchers. Coinguard Liquidity Scan provides the architecture with: 1971. Liquidity Lock Detection â It verifies if liquidity is secured under lock contracts; if those gates are sealed or free to swing open. 1982. Ownership Transparency â Who holds the keys? If a single wallet or a small clique controls most of the liquidity, that gate is weak. 1993. Pool Depth & Real-Liquidity Analysis â Checks whether the pool is truly deep enough to permit real trade, or merely an illusion of safety. 2004. AI-Powered Risk Signals â Safe, Warning, Danger âsimple visual signals so traders can act fast, without deciphering raw code. 2015. Cross-Chain Coverage â Works across major networks: Ethereum, BSC, Polygon, and more. So wherever the fortress appears, you can scan. 202`},{name:"How Traders Traverse the Fortress",paragraph:`Armed with Coinguard Liquidity Scan, hereâs how the journey goes: 2031. Connect your wallet securely. 2042. Input the tokenâs contract address or search by name. 2053. Activate the Liquidity Scan â observe locked/unlocked status, ownership concentration, pool depth. 2064. Read the risk signal: safe if locked, deep, and transparent; warning if some gates are weak; danger if many red flags. 2075. Only then, decide: step forward, retreat, or circle the wall until youâre sure. 208For many, this transforms risky leaps into measured steps. Itâs the difference between walking blind through the Fortress or navigating b
208y light. 209`},{name:"Why It Matters",paragraph:`New tokens often launch with hypeâflashy websites, social buzz, promise of returns. But when liquidity is weak or under developer control, that promise is empty. Traders get trapped by doors that lock behind them or pools that drain to dust. 210Coinguard Liquidity Scan is more than just a toolâitâs your siege engine in the fortress. It helps you spot faulty gates before you try to pass through them, see if the path is supported, and avoid being caught in collapsing walls. With it, you trade not with fear, but with knowledge and strength.`}]},{id:"honeypot-detector-crypto-scam-shield",title:"Honeypot Detector: Shield Against Crypto Scams",description:"Honeypot Detector is your ultimate shield against crypto scams. Instantly analyze tokens, detect honeypot traps, and verify smart...",image:"/LandingPage/blogimg/webuilt.webp",date:"Oct 6, 2025",metaTitle:"Honeypot Detector: Shield Against Crypto Scams",metaDescription:"Honeypot Detector is your ultimate shield against crypto scams. Instantly analyze tokens, detect honeypot traps, and verify smart contracts before investing. Stay safe with real-time blockchain security, token scanning, and AI-powered crypto fraud detection.",metaKeywords:"Coinguard AI, why we built Coinguard, blockchain security tools, Web3 scam protection, crypto scam detection AI, avoid crypto scams, best token scanner crypto, liquidity scan crypto, honeypot detector tool, rug pull detector, Web3 safety, blockchain audit platform, Coinguard mission, Web3 protection, trust in crypto, crypto security startup, AI crypto tools, decentralized security suite, blockchain protection tools, Coinguard ecosystem honeypot detector, honeypot detection, crypto scams, crypto scam detector, honeypot scan, honeypot check, honeypot analysis, honeypot finder, crypto protection, scam prevention, anti scam crypto, scam shield, crypto shield, honeypot protection, honeypot security, token honeypot, token safety, rug pull detector, rug pull scanner, anti rug pull, smart contract honeypot, smart contract analysis, smart contract audit, token audit, crypto safety, crypto defense, defi safety, blockchain security, crypto fraud detection, scam detector, crypto scam checker, honeypot bot, honeypot alert, honeypot scanner, blockchain honeypot, token scam detector, defi honeypot, defi protection, crypto watchdog, token analyzer, crypto analyzer, blockchain audit, scam analysis, token verification, crypto verification, smart token analysis, scam protection, crypto scam alert, token scam alert, honeypot validator, crypto validator, honeypot tracking, token fraud prevention, crypto fraud prevention, blockchain fraud prevention, token security, honeypot detection ai, honeypot ai scanner, ai honeypot detection, crypto ai detector, blockchain ai detector, honeypot prevention, crypto scam prevention, token scam prevention, crypto risk detector, defi scam detector, blockchain monitoring, crypto monitoring, honeypot detection tool, honeypot scanning tool, token scam checker, honeypot identification, honeypot check tool, scam finder, crypto fraud checker, blockchain fraud checker, honeypot radar, crypto radar, defi radar, token radar, honeypot security system, crypto security system, scam analysis engine, honeypot detection engine, crypto detection engine, token detection engine, blockchain detection, honeypot verification, token verification ai, blockchain verification, crypto verification system, honeypot report, token report, scam report, honeypot analytics, scam analytics, blockchain analytics, crypto analytics, honeypot intelligence, scam intelligence, blockchain intelligence, token intelligence, defi intelligence, honeypot tracker",projects:[{name:"Introduction",paragraph:"The room was silent except for the steady hum of Rajâs laptop. It was 2:00 AM, and while the world slept, the crypto markets were alive. A new token was trendingâposts shouting â100x returns overnight!â filled his feed. Raj leaned forward, his heart racing. He imagined paying off debts, buying a sleek new car, even quitting his job. The temptation was too strong. But deep inside, a flicker of doubt rose. Just last week, his best friend lost $5,000 in a honeypot scam. The cruel setup was simple: you could buy the token, but you could never sell it. It was a trap disguised as opportunity. Rajâs finger hovered over the âBuyâ button. Then he remembered somethingâCoinguard Honeypot Detector."},{name:"The Turning Point",paragraph:`He copied the contract address and pasted it into the scanner. For a moment, silence. Then the results appeared on his screen: 211Honeypot Detected â You Can Buy, But You Cannot Sell! 212His stomach tightened. Relief washed over him. Without Coinguard, he would have lost everything in minutes. That night, the Coinguard Honeypot Detector was more than a toolâit was his lifeline. 213`},{name:"About Coinguard",paragraph:`Coinguard isnât just another crypto appâitâs a shield built for investors. In a world where scams grow daily, Coinguard makes it easy to spot dangers before they strike. Its mission is simple: keep traders safe by exposing hidden traps like honeypots, rug pulls, and liquidity risks. 214`},{name:"Products & Usage",paragraph:`Honeypot Detector: The flagship tool that scans smart contracts and instantly shows whether a token allows you to sell or if itâs a scam waiting to trap you. 215Liquidity Scan: Many rug pulls happen when liquidity is low or unlocked. With Coinguard, you can quickly see if liquidity is locked, giving you confidence before investing. 216Rug Check & Risk Score: One scan. A complete analysis. A risk score that reveals if a project is
216worth your timeâor your money. 217`},{name:"How to Use Coinguard Honeypot Detector",paragraph:`1. Copy the token contract address from a trusted source. 2182. Paste it into the Coinguard search bar. 2193. Instantly see if the token is safeâor a scam. 2204. Trade with confidence, not fear. 221`},{name:"Why Coinguard Matters ",paragraph:`Crypto is full of promise, but also full of predators. Honeypot scams alone have cost traders millions. Most investors never see the danger until itâs too late. 222Coinguard changes that. It gives you the power to see through the hype. To scan, detect, and decide before you risk your money. With the Honeypot Detector, you donât just tradeâyou trade safe. 223`},{name:"Final Thoughts",paragraph:`Rajâs midnight temptation could have ended in heartbreak. Instead, with Coinguard at his side, it ended in relief. His story is every traderâs storyâthe line between profit and loss is razor thin. 224The crypto world can feel like the Wild West. But with Coinguard Honeypot Detector, youâre not riding unprotected. Youâve got a shield that exposes traps before you fall into them. 225Because sometimes, safety doesnât just protect your walletâit protects your future. 226`}]},{id:"coinguard-rugcheck-in-action",title:"The Last Line of Defense: Coinguard Rugcheck in Action",description:"Coinguard Rugcheck is the last line of defense in the fast-moving world of cryptocurrency. Innovation brings opportunityâbut also riskâ¦",image:"/LandingPage/blogimg/avoid.webp",date:"Oct 8, 2025",metaTitle:"The Last Line of Defense: Coinguard Rugcheck in Action",metaDescription:"Coinguard Rugcheck is the last line of defense in the fast-moving world of cryptocurrency. Innovation brings opportunityâbut also riskâ¦",metaKeywords:"the last line of defense, coinguard, coinguard rugcheck, rugcheck, rugcheck in action, crypto defense, crypto protection, rug pull protection, rug pull detector, rug pull prevention, rug pull scanner, crypto rugcheck, defi rugcheck, token rugcheck, smart contract audit, token audit, blockchain audit, smart contract security, crypto safety, crypto scanner, defi safety, defi protection, blockchain defense, last defense, crypto defense system, coinguard defense, coinguard protection, coinguard security, coinguard system, blockchain shield, crypto shield, liquidity defense, token defense, token security, crypto analyzer, token analyzer, blockchain analyzer, defi analyzer, contract analyzer, contract checker, contract scanner, blockchain verification, token verification, liquidity verification, smart contract verification, contract validator, blockchain validator, crypto validator, defi validator, rugcheck validator, rugcheck security, coinguard validator, coinguard audit, crypto audit, defi audit, token audit system, blockchain audit tool, crypto security tool, token security tool, defi security tool, coinguard ai, coinguard ai scanner, ai rugcheck, ai crypto defense, ai rug pull detector, ai blockchain audit, ai contract scan, ai token security, coinguard defense ai, blockchain protection, crypto risk analysis, rugcheck engine, rugcheck technology, coinguard technology, coinguard engine, blockchain engine, crypto defense engine, token defense engine, rugcheck bot, coinguard bot, coinguard monitor, rugcheck monitor, rug pull detection system, crypto detection system, blockchain detection, defi detection, rugcheck detection",projects:[{paragraph:"Coinguard Rugcheck is the last line of defense in the fast-moving world of cryptocurrency. Innovation brings opportunityâbut also risk. In the fast-moving world of cryptocurrency, innovation brings opportunityâbut it also opens the door to risk. Every day, new projects emerge, offering traders promises of wealth and utility. But hidden in the noise are dangerous threats: rug pulls, honeypots, and fraudulent tokens designed to exploit trust. In this chaotic environment, the Coinguard Rugcheck stands as the last line of defense, a powerful shield against scams and bad actors."},{name:"About Coinguard Rugcheck",paragraph:"The Coinguard Rugcheck is more than just a scanning toolâitâs a guardian of transparency. Using a blend of AI-driven analysis, smart contract auditing, and blockchain-backed reporting, Rugcheck helps traders separate legitimate projects from dangerous ones. Its mission is simple: to ensure no trader falls victim to scams that could have been prevented."},{name:"Key Products of Coinguard Rugcheck",paragraph:`1. Smart Contract Scanner â Detects hidden functions like unlimited minting or transfer locks. 2272. Liquidity Pool Verification â Confirms if liquidity is locked or removable at any time. 2283. Honeypot Detector â Alerts traders if tokens can be bought but not sold.
2294. Ownership Check â Scans for centralization risks, such as excessive token supply held by creators. 2305. Rugcheck Score â A clear rating system (Safe / Risky / Dangerous) for quick decision-making. 2316. Community Sentiment Monitor â Analyzes online chatter for scam warnings or trust signals. 2327. Whale & Trading Tracker â Keeps traders informed of unusual wallet movements. 233`},{name:"Usage of Coinguard Rugcheck",paragraph:`Using Rugcheck is designed to be seamless for traders of all experience levels: 234⢠Step 1: Enter a tokenâs contract address into Rugcheck. 235⢠Step 2: The system scans smart contracts, liquidity pools, and supply distribution. 236⢠Step 3: Rugcheck generates a detailed report with risk percentages and explanations. 237⢠Step 4: Traders review the Rugcheck Score and red-flag alerts before investing. 238⢠Step 5: Advanced users can set up alerts for risky contract changes or whale dumps. 239This simple process ensures traders stay protected and make informed decisions, even in fast-moving markets. 240`},{name:"Why Rugcheck Matters",paragraph:"Rug pulls have cost the crypto world billions in lost value. Many scams share similar traitsâunlocked liquidity, centralization, or code trapsâthat can be detected ahead of time. The Coinguard Rugcheck empowers traders by providing insights that cut through the hype and expose the truth. Instead of relying on rumors or influencer promotions, investors gain access to verifiable data."},{name:"Real-World Applications",paragraph:`Scams arenât going away, but you donât have to be a victim. By spotting red flags and using tools like Coinguard, you can avoid crypto scams in 2025 and trade safer. 241⢠For Experienced Traders: Advanced analytics and contract reports. 242⢠For Communities: Shared tools to protect members from scams. 243⢠For Brands: Reputation-building by passing Rugcheck audits before launch. 244`},{name:"Conclusion",paragraph:`In an ecosystem where opportunity and risk walk side by side, the Coinguard Rugcheck remains the last line of defense. It ensures transparency, enforces accountability, and arms traders with the knowledge to avoid costly mistakes. For those navigating the blockchain frontier, Rugcheck is not just a toolâitâs a guardian. 245Shield your trades with Coinguard Rugcheck â 246`}]}],BlogDetail=()=>{const{id:e}=useParams(),t=useNavigate(),r=articles.find(a=>String(a.id)===e);if(!r)return jsxRuntimeExports.jsx("div",{className:"min-h-screen bg-black text-white flex items-center justify-center px-4",children:jsxRuntimeExports.jsx("p",{className:"text-xl font-medium text-center",children:"Blog not found."})});const n=articles.findIndex(a=>String(a.id)===e),s=a=>{a>=0&&a<articles.length&&t(`/blog/${articles[a].id}`)};return jsxRuntimeExports.jsxs("div",{className:"min-h-screen bg-black text-white px-4 md:px-8 py-10",children:[jsxRuntimeExports.jsx("title",{children:r.metaTitle||r.title}),jsxRuntimeExports.jsx("meta",{name:"description",content:r.metaDescription||r.description}),jsxRuntimeExports.jsx("meta",{name:"keywords",content:r.metaKeywords||""}),jsxRuntimeExports.jsxs("div",{className:"max-w-5xl mx-auto",children:[jsxRuntimeExports.jsxs("div",{className:"text-center mb-8",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl md:text-5xl font-bold font-['DM_Sans']",children:r.title}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 mt-2 font-['Manrope']",children:r.date})]}),jsxRuntimeExports.jsx("div",{className:"mb-10 font-['DM_Sans']",children:jsxRuntimeExports.jsx("img",{src:r.image,alt:r.title,className:"w-full h-72 md:h-[30rem] object-cover rounded-lg shadow-md"})}),r.projects?.map((a,l)=>jsxRuntimeExports.jsxs("div",{className:"mb-6 space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("p",{className:"text-white mt-2 font-['Manrope']",children:a.introduction}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white",children:a.name}),jsxRuntimeExports.jsx("p",{className:"italic text-gray-400",children:a.category}),a.paragraph&&jsxRuntimeExports.jsx("ul",{className:" list-inside",children:a.paragraph.split(` 247`).map((u,d)=>jsxRuntimeExports.jsx("li",{dangerouslySetInnerHTML:{__html:u}},d))}),a.description&&jsxRuntimeExports.jsx("ul",{className:" list-inside space-y-0 text-white",children:a.description.split(` 248`).map((u,d)=>jsxRuntimeExports.jsx("li",{children:u},d))}),a.link&&jsxRuntimeExports.jsx("p",{className:"mt-2",children:jsxRuntimeExports.jsx("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",className:"text-[#007bff] font-medium underline hover:text-white",children:a.link})}),a.whyHot&&jsxRuntimeExports.jsx("ul",{className:" list-inside text-white/90 space-y-0 font-medium",children:a.whyHot.split(` 249`).map((u,d)=>jsxRuntimeExports.jsx("li",{dangerouslySetInnerHTML:{__html:u}},d))}),a.additionalNotes&&jsxRuntimeExports.jsxs("p",{className:"text-sm text-white/70",children:["Note: ",a.additionalNotes]})]},l)),r.projects?.map((a,l)=>a.heading&&a.text&&jsxRuntimeExports.jsxs("div",{className:"space-y-4 mb-12",children:[jsxRuntimeExports.jsx("h3",{className:"text-2xl font-bold",children:a.heading}),jsxRuntimeExports.jsx("p",{className:"text-white/80 whitespace-pre-line",children:a.text}),a.heading1&&a.text1&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"text-2xl font-bold mt-6",children:a.heading1}),jsxRuntimeExports.jsx("p",{className:"text-white/80",children:a.text1})]})]},`heading-${l}`)),jsxRuntimeExports.jsxs("div",{className:"flex justify-between mt-10 gap-4",children:[jsxRuntimeExports.jsx("button",{onClick:()=>s(n-1),disabled:n===0,className:"px-4 py-2 border rounded text-white hover:text-[#CCFF00] hover:border-[#CCFF00] disabled:opacity-30",children:"â Previous"}),jsxRuntimeExports.jsx("button",{onClick:()=>s(n+1),disabled:n===articles.length-1,className:"px-4 py-2 border rounded text-white hover:text-[#CCFF00] hover:border-[#CCFF00] disabled:opacity-30",children:"Next â"})]})]})]})},ArticleCard=({article:e})=>jsxRuntimeExports.jsxs("div",{className:"relative bg-white/5 border border-transparent roun
249ded-lg shadow-sm hover:border-white/20 transition-all duration-300 group overflow-hidden flex flex-col h-full",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white/0 via-white/0 to-white/0 group-hover:via-white/5 group-hover:to-white/10 transition-all duration-500 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t-2 border-l-2 border-white/20 group-hover:border-[#CCFF00] rounded-tl-md transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t-2 border-r-2 border-white/20 group-hover:border-[#CCFF00] rounded-tr-md transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b-2 border-l-2 border-white/20 group-hover:border-[#CCFF00] rounded-bl-md transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b-2 border-r-2 border-white/20 group-hover:border-[#CCFF00] rounded-br-md transition-all duration-300"}),jsxRuntimeExports.jsx(Link,{to:`/blog/${e.id}`,children:jsxRuntimeExports.jsx("img",{className:"rounded-t-lg w-full h-48 object-cover",src:e.image,alt:e.title})}),jsxRuntimeExports.jsxs("div",{className:"p-5 flex flex-col flex-grow",children:[jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-400 mb-1 font-['Manrope']",children:e.date}),jsxRuntimeExports.jsx(Link,{to:`/blog/${e.id}`,children:jsxRuntimeExports.jsx("h5",{className:"mb-3 text-2xl font-bold tracking-tight font-['DM_Sans'] text-white",children:e.title})}),jsxRuntimeExports.jsx("p",{className:"mb-6 font-normal font-['Manrope'] text-white/70",children:e.description}),jsxRuntimeExports.jsx("div",{className:"mt-auto font-['Manrope']",children:jsxRuntimeExports.jsxs(Link,{to:`/blog/${e.id}`,className:"inline-flex items-center px-4 py-2 text-sm font-medium text-white group-hover:text-[#CCFF00] transition-colors duration-300 border border-white/20 rounded-full group-hover:border-[#CCFF00]/50",children:["Read more",jsxRuntimeExports.jsx("svg",{className:"rtl:rotate-180 w-3.5 h-3.5 ms-2 group-hover:stroke-[#CCFF00] transition-transform duration-300 group-hover:translate-x-1","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 10",children:jsxRuntimeExports.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M1 5h12m0 0L9 1m4 4L9 9"})})]})})]})]}),ViewMoreButton=()=>jsxRuntimeExports.jsx("div",{className:"mt-6 flex justify-center mb-8",children:jsxRuntimeExports.jsxs("div",{className:"relative group",children:[jsxRuntimeExports.jsx("button",{className:"px-8 py-3 bg-white/5 border border-white/20 text-white font-medium hover:bg-white/10 transition-all duration-300",children:jsxRuntimeExports.jsx(Link,{target:"_blank",to:"https://blog.coinguard.ai/",children:"View More"})}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-2 h-2 border-t border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-2 h-2 border-t border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-2 h-2 border-b border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 border-b border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"})]})}),BlogList=()=>{const[e,t]=reactExports.useState(0),r=reactExports.useRef(null);return reactExports.useEffect(()=>{const n=()=>
249{if(r.current){const a=r.current.scrollLeft,l=r.current.scrollWidth/articles.length,u=Math.round(a/l);t(u)}},s=r.current;if(s)return s.addEventListener("scroll",n),()=>s.removeEventListener("scroll",n)},[]),jsxRuntimeExports.jsxs("div",{className:"max-w-[1300px] mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[jsxRuntimeExports.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-center mb-20 text-white font-['DM_Sans']",children:"Latest Updates"}),jsxRuntimeExports.jsxs("div",{className:"lg:hidden",children:[jsxRuntimeExports.jsxs("div",{ref:r,className:"flex gap-4 overflow-x-auto pb-4 snap-x snap-mandatory",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[jsxRuntimeExports.jsx("style",{children:` 250 div::-webkit-scrollbar { 251 display: none; 252 } 253 `}),articles.map((n,s)=>jsxRuntimeExports.jsx("div",{className:"relative w-[calc(100vw-32px)] flex-shrink-0 snap-center px-2",children:jsxRuntimeExports.jsx(ArticleCard,{article:n})},n.id))]}),jsxRuntimeExports.jsx("div",{className:"flex justify-center gap-3 mt-4",children:articles.map((n,s)=>jsxRuntimeExports.jsx("button",{className:`w-2 h-2 rounded-full transition-colors duration-300 ${s===e?"bg-[#CCFF00]":"bg-white"}`,onClick:()=>{if(r.current){const a=r.current.scrollWidth/articles.length;r.current.scrollTo({left:a*s,behavior:"smooth"})}}},s))}),jsxRuntimeExports.jsx(ViewMoreButton,{})]}),jsxRuntimeExports.jsx("div",{className:"hidden lg:grid grid-cols-3 gap-6",children:articles.map(n=>jsxRuntimeExports.jsx(ArticleCard,{article:n},n.id))}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block",children:jsxRuntimeExports.jsx(ViewMoreButton,{})})]})};function Cookiepolicy(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"Coinguard: Cookie Policy"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Coinguard: AI-driven DeFi security platform protects traders from memecoin scams, rug pulls, and risks with real-time analytics and contract audits."}),jsxRuntimeExports.jsx("div",{className:"bg-black text-white px-6 py-10 max-w-5xl mx-auto ",children:jsxRuntimeExports.jsxs("div",{className:"max-w-4xl mx-auto space-y-0",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold mb-4 font-['DM Sans']",children:"Cookie Policy"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-400 font-['Manrope']",children:"Effective Date: June 2025 ⢠Last Updated: June 9, 2025"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-400 mb-4 font-['Manrope']",children:"This Cookie Policy explains how Coinguard uses cookies and similar technologies to improve user experience."}),jsxRuntimeExports.jsxs("div",{className:"space-y-0 py-4 text-white",children:[jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"1. What Are Cookies?"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Cookies are small text files placed on your device to store data about your browsing session, such as preferences, login sessions, or analytics."})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"2. Types of Cookies We Use"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("strong",{children:"Essential Cookies:"})," Required for core platform features (e.g., wallet connectivity, security sessions)"]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("strong",{children:"Performance Cookies:"})," Analyze how users interact with Coinguard to improve functionality"]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("strong",{children:"Functional Cookies:"})," Store user settings like dark mode or dashboard layout"]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("strong",{children:"Analytics Cookies:"})," Collect anonymous usage patterns (e.g., Google Analytics)"]})]})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"3. Third-Party Cookies"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Coinguard may use cookies from third parties, such as: Google Analytics, Twitter API, Stripe, Moralis / QuickNode, OpenAI APIs. These parties may use their cookies according to their privacy terms."})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"4. Cookie Duration"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Some cookies expire after your session ends, while others remain on your browser until manually deleted or until their expiration date."})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"5. Managing Cookies"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("li",{children:"Adjust browser settings to block cookies"}),jsxRuntimeExports.jsx("li",{children:"Delete cookies at any time"}),jsxRuntimeExports.jsx("li",{children:"Disable specific cookies via our cookie banner"})]})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"6. Consent"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"By using Coinguard, you consent to the use of cookies as described unless you opt out via your browser or our settings banner."})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"7. Updates"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"We may revise this Cookie Policy occasionally. Changes will be posted here with the latest date."})]})]})]})})]})}function Disclaimer(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"Coinguard: Disclaimer"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Coinguard: AI-driven DeFi security platform protects traders from memecoin scams, rug pulls, and risks with real-time analytics and contract audits."}),jsxRuntimeExports.jsx("div",{className:"bg-black text-white px-6 py-10 max-w-5xl mx-auto",children:jsxRuntimeExports.jsxs("div",{className:"max-w-5xl mx-auto
253space-y-2",children:[jsxRuntimeExports.jsxs("header",{children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold mb-2 font-['DM Sans']",children:"Coinguard Disclaimer"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-400 mb-4 font-['Manrope']",children:"Effective Date: June 2025 ⢠Last Updated: June 9, 2025"}),jsxRuntimeExports.jsx("p",{className:"mt-4 font-['Manrope']",children:'This Disclaimer governs the use of Coinguardâs web platform, mobile application, browser extension, and all associated products and services (collectively, the "Platform" or "Services"). By using Coinguard, you acknowledge and accept the limitations outlined below.'})]}),[{title:"1. Informational Purposes Only",content:["All content, analytics, tools, reports, visualizations, and AI-generated insights on Coinguard are strictly for educational and informational purposes. They are not intended to constitute financial, investment, legal, tax, or accounting advice.","Coinguard does not recommend or endorse any cryptocurrency, token, wallet, or blockchain project. Any reliance on Coinguardâs data, risk assessments, or suggestions is at your sole discretion and risk."]},{title:"2. No Investment Advice or Professional Counsel",content:["Nothing presented on Coinguard should be interpreted as personalized investment advice. Our AI models and human-curated data provide informational alerts, community scores, risk indicators, and sentiment analysis without offering guarantees of accuracy, future performance, or market behavior.","Users should always perform their own research (DYOR) and consult with licensed financial advisors or legal professionals before making financial decisions."]},{title:"3. Use at Your Own Risk",content:["By using Coinguard, you acknowledge:","⢠Crypto markets are highly volatile and speculative","⢠Risk factors such as rug pulls, honeypots, and malicious smart contracts are prevalent","⢠Coinguard cannot eliminate, predict, or prevent malicious activity","⢠You are solely responsible for the decisions you make based on Coinguardâs tools","Coinguard disclaims all liability for any loss, including without limitation to loss of digital assets, missed profits, or reputational harm."]},{title:"4. Limitations of AI Technology",content:["Our platform integrates machine learning and artificial intelligence (AI) to scan tokens, flag suspicious wallet behavior, analyze developer activity, and identify potential fraud indicators.","However, AI has known limitations, including:","⢠False positives and false negatives in token evaluations","⢠Incomplete or outdated on-chain data","⢠Limited understanding of evolving scam tactics","⢠Susceptibility to adversarial inputs","Coinguardâs algorithms and models are continuously evolving, but cannot offer guarantees of precision. Users must not treat AI outputs as infallible."]},{title:"5. CGT Token Disclaimer",content:["The Coinguard Token ($CGT) is a utility token intended for accessing premium features, staking, community voting, and other functional aspects of the platform.","Holding, staking, or interacting with CGT:","⢠Does not confer ownership, equity, or governance rights over Coinguard Inc.","⢠Does not promise or imply profit, yield, dividends, or appreciation","⢠Does not exempt users from tax or compliance responsibilities in their jurisdiction","⢠Does not imply Coinguardâs endorsement of any other token or project","Always review your countryâs regulations before engaging in any crypto token activity."]},{title:"6. Wallet and Portfolio Analysis",content:["When connecting a wallet to Coinguard:","⢠We do not access, store, or request your private keys","⢠Our system reads only publicly available on-chain data","⢠You are responsible for ensuring your wallet security and avoiding phishing attempts","⢠We cannot recover stolen funds or assets from malicious contracts","Coinguard is not a wallet provider or custody solution and assumes no liability for any wallet breach or compromise."]},{title:"7. Community Contributions & Crowdsourced Flags",content:["Coinguard enables users to:","⢠Report suspicious tokens or wallet behaviors","⢠Comment on developer reputation","⢠Contribute to sentiment scores and flag tokens","These community-driven inputs are subject to moderation, but may
253not always be accurate, objective, or up to date. Coinguard disclaims any responsibility for damage caused by user-submitted content."]},{title:"8. External Links and Integrations",content:["Our platform may reference or embed:","⢠Third-party APIs (e.g., DexTools, GeckoTerminal, Twitter)","⢠Public dashboards (e.g., WhaleTracker, BSCScan)","⢠Blockchain explorers and data aggregators","⢠Educational content or YouTube videos","We do not control the content, functionality, or accuracy of external sources and are not responsible for any consequences arising from their use."]},{title:"9. Service Availability and Bugs",content:["We strive to maintain a secure and reliable experience, but:","⢠Downtime may occur without notice","⢠Features may be temporarily limited","⢠Data may lag or become temporarily inaccessible","⢠Bugs or inaccuracies may surface despite internal QA","We are not liable for damages resulting from outages, feature rollbacks, failed transactions, or service suspension."]},{title:"10. Regulatory & Jurisdictional Notice",content:["Coinguard operates as a decentralized analytics and educational platform. We are not:","⢠A registered investment advisor","⢠A securities broker or issuer","⢠A tax consultant or fiduciary","⢠A KYC/AML-compliant financial intermediary","Your use of Coinguard is subject to the laws applicable in your jurisdiction. It is your responsibility to ensure compliance with relevant regulations regarding cryptocurrency usage, reporting, and taxation."]},{title:"11. Indemnification",content:["You agree to indemnify, defend, and hold harmless Coinguard, its affiliates, founders, developers, contractors, and contributors from any claims, liabilities, damages, or lossesâincluding legal feesâarising out of your use of the Services, violation of these terms, or interaction with CGT tokens."]},{title:"12. No Warranties",content:["The Coinguard platform and all services are provided âas isâ and âas available,â without warranty of any kind. We expressly disclaim any warranties, express or implied, including:","⢠Fitness for a particular purpose","⢠Accuracy, timeliness, or completeness","⢠Security against viruses or malicious code","⢠Compatibility with your hardware or browser"]},{title:"13. Updates and Revisions",content:["We may update this disclaimer periodically as the platform evolves or as laws change. Updated versions will be made available on our website with a modified effective date. Your continued use after updates signifies acceptance of those changes."]},{title:"14. Contact Us",content:[jsxRuntimeExports.jsxs("span",{children:["ð§ Email:"," ",jsxRuntimeExports.jsx("a",{href:"mailto:[email protected]",className:"text-blue-500 underline",children:"[email protected]"})]},"email"),jsxRuntimeExports.jsxs("span",{children:["ð Website:"," ",jsxRuntimeExports.jsx("a",{href:"https://Coinguard.ai",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline",children:"https://Coinguard.ai"})]},"website")]}].map((e,t)=>jsxRuntimeExports.jsxs("section",{className:"space-y-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:e.title}),e.content.map((r,n)=>jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:r},n))]},t))]})})]})}const LayoutGroupContext=reactExports.createContext({});function useConstant$1(e){const t=reactExports.useRef(null);return t.current===null&&(t.current=e()),t.current}const isBrowser$1=typeof window<"u",useIsomorphicLayoutEffect$1=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect,PresenceContext=reactExports.createContext(null);function addUniqueItem(e,t){e.indexOf(t)===-1&&e.push(t)}function removeItem(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const clamp=(e,t,r)=>r>t?t:r<e?e:r;let invariant=()=>{};const MotionGlobalConfig={},isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function isObject$4(e){return typeof e=="object"&&e!==null}const isZeroValueString=e=>/^0[^.\s]+$/u.test(e);function memo(e){let t;return()=>(t===void 0&&(t=e()),t)}const noop=e=>
vendor: 4,707 bytes, line 253
253e,combineFunctions=(e,t)=>r=>t(e(r)),pipe=(...e)=>e.reduce(combineFunctions),progress=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class SubscriptionManager{constructor(){this.subscriptions=[]}add(t){return addUniqueItem(this.subscriptions,t),()=>removeItem(this.subscriptions,t)}notify(t,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,r,n);else for(let a=0;a<s;a++){const l=this.subscriptions[a];l&&l(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const secondsToMilliseconds=e=>e*1e3,millisecondsToSeconds=e=>e/1e3;function velocityPerSecond(e,t){return t?e*(1e3/t):0}const wrap=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},calcBezier=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(e,t,r,n,s){let a,l,u=0;do l=t+(r-t)/2,a=calcBezier(l,n,s)-e,a>0?r=l:t=l;while(Math.abs(a)>subdivisionPrecision&&++u<subdivisionMaxIterations);return l}function cubicBezier(e,t,r,n){if(e===t&&r===n)return noop;const s=a=>binarySubdivide(a,0,1,e,r);return a=>a===0||a===1?a:calcBezier(s(a),t,n)}const mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=e=>(e*=2)<1?.5*backIn(e):.5*(2-Math.pow(2,-10*(e-1))),circIn=e=>1-Math.sin(Math.acos(e)),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=e=>Array.isArray(e)&&typeof e[0]!="number";function getEasingForSegment(e,t){return isEasingArray(e)?e[wrap(0,e.length,t)]:e}const isBezierDefinition=e=>Array.isArray(e)&&typeof e[0]=="number",easingLookup={linear:noop,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},isValidEasing=e=>typeof e=="string",easingDefinitionToFunction=e=>{if(isBezierDefinition(e)){invariant(e.length===4);const[t,r,n,s]=e;return cubicBezier(t,r,n,s)}else if(isValidEasing(e))return easingLookup[e];return e},stepsOrder=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderStep(e,t){let r=new Set,n=new Set,s=!1,a=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(h){l.has(h)&&(p.schedule(h),e()),h(u)}const p={schedule:(h,x=!1,w=!1)=>{const b=w&&s?r:n;return x&&l.add(h),b.has(h)||b.add(h),h},cancel:h=>{n.delete(h),l.delete(h)},process:h=>{if(u=h,s){a=!0;return}s=!0,[r,n]=[n,r],r.forEach(d),r.clear(),s=!1,a&&(a=!1,p.process(h))}};return p}const maxElapsed=40;function createRenderBatcher(e,t){let r=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,l=stepsOrder.reduce((T,z)=>(T[z]=createRenderStep(a),T),{}),{setup:u,read:d,resolveKeyframes:p,preUpdate:h,update:x,preRender:w,render:g,postRender:b}=l,v=()=>{const T=MotionGlobalConfig.useManualTiming?s.timestamp:performance.now();r=!1,MotionGlobalConfig.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(T-s.timestamp,maxElapsed),1)),s.timestamp=T,s.isProcessing=!0,u.process(s),d.process(s),p.process(s),h.process(s),x.process(s),w.process(s),g.process(s),b.process(s),s.isProcessing=!1,r&&t&&(n=!1,e(v))},E=()=>{r=!0,n=!0,s.isProcessing||e(v)};return{schedule:stepsOrder.reduce((T,z)=>{const L=l[z];return T[z]=(V,$=!1,U=!1)=>(r||E(),L.schedule(V,$,U)),T},{}),cancel:T=>{for(let z=0;z<stepsOrder.length;z++)l[stepsOrder[z]].cancel(T)},state:s,steps:l}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps:frameSteps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop,!0);let now$1;function clearTime(){now$1=void 0}const time={now:()=>(now$1===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now$1),set:e=>{now$1=e,queueMicrotask(clearTime)}},checkStringStartsWith=e=>t=>typeof t=="string"&&t.startsWith(e),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=e=>startsAsVariableToken(e)?singleCssVariableRegex.test(e.split("/*")[0].trim()):!1,singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,number$1={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},alpha={...number$1,transform:e=>clamp(0,1,e)},scale={...number$1,default:1},sanitize=e=>Math.round(e*1e5)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(e){return e==null}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>
vendor: 28,337 bytes, line 253
253r=>!!(typeof r=="string"&&singleColorRegex.test(r)&&r.startsWith(e)||t&&!isNullish(r)&&Object.prototype.hasOwnProperty.call(r,t)),splitColor=(e,t,r)=>n=>{if(typeof n!="string")return n;const[s,a,l,u]=n.match(floatRegex);return{[e]:parseFloat(s),[t]:parseFloat(a),[r]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},clampRgbUnit=e=>clamp(0,255,e),rgbUnit={...number$1,transform:e=>Math.round(clampRgbUnit(e))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+rgbUnit.transform(e)+", "+rgbUnit.transform(t)+", "+rgbUnit.transform(r)+", "+sanitize(alpha.transform(n))+")"};function parseHex(e){let t="",r="",n="",s="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,r+=r,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},createUnitType=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:e=>percent.parse(e)/100,transform:e=>percent.transform(e*100)},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+percent.transform(sanitize(t))+", "+percent.transform(sanitize(r))+", "+sanitize(alpha.transform(n))+")"},color={test:e=>rgba.test(e)||hex.test(e)||hsla.test(e),parse:e=>rgba.test(e)?rgba.parse(e):hsla.test(e)?hsla.parse(e):hex.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rgba.transform(e):hsla.transform(e),getAnimatableNone:e=>{const t=color.parse(e);return t.alpha=0,color.transform(t)}},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(e){return isNaN(e)&&typeof e=="string"&&(e.match(floatRegex)?.length||0)+(e.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(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},s=[];let a=0;const u=t.replace(complexRegex,d=>(color.test(d)?(n.color.push(a),s.push(COLOR_TOKEN),r.push(color.parse(d))):d.startsWith(VAR_FUNCTION_TOKEN)?(n.var.push(a),s.push(VAR_TOKEN),r.push(d)):(n.number.push(a),s.push(NUMBER_TOKEN),r.push(parseFloat(d))),++a,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:r,split:u,indexes:n,types:s}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){const{split:t,types:r}=analyseComplexValue(e),n=t.length;return s=>{let a="";for(let l=0;l<n;l++)if(a+=t[l],s[l]!==void 0){const u=r[l];u===NUMBER_TOKEN?a+=sanitize(s[l]):u===COLOR_TOKEN?a+=color.transform(s[l]):a+=s[l]}return a}}const convertNumbersToZero=e=>typeof e=="number"?0:color.test(e)?color.getAnimatableNone(e):e;function getAnimatableNone$1(e){const t=parseComplexValue(e);return createTransformer(e)(t.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function hueToRgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslaToRgba({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let s=0,a=0,l=0;if(!t)s=a=l=r;else{const u=r<.5?r*(1+t):r+t-r*t,d=2*r-u;s=hueToRgb(d,u,e+1/3),a=hueToRgb(d,u,e),l=hueToRgb(d,u,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:n}}function mixImmediate(e,t){return r=>r>0?t:e}const mixNumber$1=(e,t,r)=>e+(t-e)*r,mixLinearColor=(e,t,r)=>{const n=e*e,s=r*(t*t-n)+n;return s<0?0:Math.sqrt(s)},colorTypes=[hex,rgba,hsla],getColorType=e=>colorTypes.find(t=>t.test(e));function asRGBA(e){const t=getColorType(e);if(!t)return!1;let r=t.parse(e);return t===hsla&&(r=hslaToRgba(r)),r}const mixColor=(e,t)=>{const r=asRGBA(e),n=asRGBA(t);if(!r||!n)return mixImmediate(e,t);const s={...r};return a=>(s.red=mixLinearColor(r.red,n.red,a),s.green=mixLinearColor(r.green,n.green,a),s.blue=mixLinearColor(r.blue,n.blue,a),s.alpha=mixNumber$1(r.alpha,n.alpha,a),rgba.transform(s))},invisibleValues=new Set(["none","hidden"]);function mixVisibility(e,t){return invisibleValues.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function mixNumber(e,t){return r=>mixNumber$1(e,t,r)}function getMixer(e){return typeof e=="number"?mixNumber:typeof e=="string"?isCSSVariableToken(e)?mixImmediate:color.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:typeof e=="object"?color.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){const r=[...e],n=r.length,s=e.map((a,l)=>getMixer(a)(a,t[l]));return a=>{for(let l=0;l<n;l++)r[l]=s[l](a);return r}}function mixObject(e,t){const r={...e,...t},n={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(n[s]=getMixer(e[s])(e[s],t[s]));return s=>{for(const a in n)r[a]=n[a](s);return r}}function matchOrder(e,t){const r=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],l=e.indexes[a][n[a]],u=e.values[l]??0;r[s]=u,n[a]++}return r}const mixComplex=(e,t)=>{const r=complex.createTransformer(t),n=analyseComplexValue(e),s=analyseComplexValue(t);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?invisibleValues.has(e)&&!s.values.length||invisibleValues.has(t)&&!n.values.length?mixVisibility(e,t):pipe(mixArray(matchOrder(n,s),s.values),r):mixImmediate(e,t)};function mix(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?mixNumber$1(e,t,r):getMixer(e)(e,t)}const frameloopDriver=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>frame.update(t,r),stop:()=>cancelFrame(t),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generateLinearEasing=(e,t,r=10)=>{let n="";const s=Math.max(Math.round(t/r),2);for(let a=0;a<s;a++)n+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},maxGeneratorDuration=2e4;function calcGeneratorDuration(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<maxGeneratorDuration;)t+=r,n=e.next(t);return t>=maxGeneratorDuration?1/0:t}function createGeneratorEasing(e,t=100,r){const n=r({...e,keyframes:[0,t]}),s=Math.min(calcGeneratorDuration(n),maxGeneratorDuration);return{type:"keyframes",ease:a=>n.next(s*a).value/t,duration:millisecondsToSeconds(s)}}const velocitySampleDuration=5;function calcGeneratorVelocity(e,t,r){const n=Math.max(t-velocitySampleDuration,0);return velocityPerSecond(r-e(n),t-n)}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:e=springDefaults.duration,bounce:t=springDefaults.bounce,velocity:r=springDefaults.velocity,mass:n=springDefaults.mass}){let s,a,l=1-t;l=clamp(springDefaults.minDamping,springDefaults.maxDamping,l),e=clamp(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(e)),l<1?(s=p=>{const h=p*l,x=h*e,w=h-r,g=calcAngularFreq(p,l),b=Math.exp(-x);return safeMin-w/g*b},a=p=>{const x=p*l*e,w=x*r+r,g=Math.pow(l,2)*Math.pow(p,2)*e,b=Math.exp(-x),v=calcAngularFreq(Math.pow(p,2),l);return(-s(p)+safeMin>0?-1:1)*((w-g)*b)/v}):(s=p=>{const h=Math.exp(-p*e),x=(p-r)*e+1;return-safeMin+h*x},a=p=>{const h=Math.exp(-p*e),x=(r-p)*(e*e);return h*x});const u=5/e,d=approximateRoot(s,a,u);if(e=secondsToMilliseconds(e),isNaN(d))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:e};{const p=Math.pow(d,2)*n;return{stiffness:p,damping:l*2*Math.sqrt(n*p),duration:e}}}const rootIterations=12;function approximateRoot(e,t,r){let n=r;for(let s=1;s<rootIterations;s++)n=n-e(n)/t(n);return n}function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(r=>e[r]!==void 0)}function getSpringOptions(e){let t={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...e};if(!isSpringType(e,physicsKeys)&&isSpringType(e,durationKeys))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),s=n*n,a=2*clamp(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:springDefaults.mass,stiffness:s,damping:a}}else{const r=findSpring(e);t={...t,...r,mass:springDefaults.mass},t.isResolvedFromDuration=!0}return t}function spring(e=springDefaults.visualDuration,t=springDefaults.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:s}=r;const a=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],u={done:!1,value:a},{stiffness:d,damping:p,mass:h,duration:x,velocity:w,isResolvedFromDuration:g}=getSpringOptions({...r,velocity:-millisecondsToSeconds(r.velocity||0)}),b=w||0,v=p/(2*Math.sqrt(d*h)),E=l-a,j=millisecondsToSeconds(Math.sqrt(d/h)),R=Math.abs(E)<5;n||(n=R?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),s||(s=R?springDefaults.restDelta.granular:springDefaults.restDelta.default);let T;if(v<1){const L=calcAngularFreq(j,v);T=V=>{const $=Math.exp(-v*j*V);return l-$*((b+v*j*E)/L*Math.sin(L*V)+E*Math.cos(L*V))}}else if(v===1)T=L=>l-Math.exp(-j*L)*(E+(b+j*E)*L);else{const L=j*Math.sqrt(v*v-1);T=V=>{const $=Math.exp(-v*j*V),U=Math.min(L*V,300);return l-$*((b+v*j*E)*Math.sinh(U)+L*E*Math.cosh(U))/L}}const z={calculatedDuration:g&&x||null,next:L=>{const V=T(L);if(g)u.done=L>=x;else{let $=L===0?b:0;v<1&&($=L===0?secondsToMilliseconds(b):calcGeneratorVelocity(T,L,V));const U=Math.abs($)<=n,B=Math.abs(l-V)<=s;u.done=U&&B}return u.value=u.done?l:V,u},toString:()=>{const L=Math.min(calcGeneratorDuration(z),maxGeneratorDuration),V=generateLinearEasing($=>z.next(L*$).value,L,30);return L+"ms "+V},toTransition:()=>{}};return z}spring.applyToOptions=e=>{const t=createGeneratorEasing(e,100,spring);return e.ease=t.ease,e.duration=secondsToMilliseconds(t.duration),e.type="keyframes",e};function inertia({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:d,restDelta:p=.5,restSpeed:h}){const x=e[0],w={done:!1,value:x},g=U=>u!==void 0&&U<u||d!==void 0&&U>d,b=U=>u===void 0?d:d===void 0||Math.abs(u-U)<Math.abs(d-U)?u:d;let v=r*t;const E=x+v,j=l===void 0?E:l(E);j!==E&&(v=j-x);const R=U=>-v*Math.exp(-U/n),T=U=>j+R(U),z=U=>{const B=R(U),P=T(U);w.done=Math.abs(B)<=p,w.value=w.done?j:P};let L,V;const $=U=>{g(w.value)&&(L=U,V=spring({keyframes:[w.value,b(w.value)],velocity:calcGeneratorVelocity(T,U,w.value),damping:s,stiffness:a,restDelta:p,restSpeed:h}))};return $(0),{calculatedDuration:null,next:U=>{let B=!1;return!V&&L===void 0&&(B=!0,z(U),$(U)),L!==void 0&&U>=L?V.next(U-L):(!B&&z(U),w)}}}function createMixers(e,t,r){const n=[],s=r||MotionGlobalConfig.mix||mix,a=e.length-1;for(let l=0;l<a;l++){let u=s(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||noop:t;u=pipe(d,u)}n.push(u)}return n}function interpolate(e,t,{clamp:r=!0,ease:n,mixer:s}={}){const a=e.length;if(invariant(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=createMixers(t,n,s),d=u.length,p=h=>{if(l&&h<e[0])return t[0];let x=0;if(d>1)for(;x<e.length-2&&!(h<e[x+1]);x++);const w=progress(e[x],e[x+1],h);return u[x](w)};return r?h=>p(clamp(e[0],e[a-1],h)):p}function fillOffset(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const s=progress(0,t,n);e.push(mixNumber$1(r,1,s))}}function defaultOffset(e){const t=[0];return fillOffset(t,e.length-1),t}function convertOffsetToTimes(e,t){return e.map(r=>r*t)}function defaultEasing(e,t){return e.map(()=>t||easeInOut).splice(0,e.length-1)}function keyframes({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const s=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),a={done:!1,value:t[0]},l=convertOffsetToTimes(r&&r.length===t.length?r:defaultOffset(t),e),u=interpolate(l,t,{ease:Array.isArray(s)?s:defaultEasing(t,s)});return{calculatedDuration:e,next:d=>(a.value=u(d),a.done=d>=e,a)}}const isNotNull$1=e=>e!==null;function getFinalKeyframe$1(e,{repeat:t,repeatType:r="loop"},n,s=1){const a=e.filter(isNotNull$1),u=s<0||t&&r!=="loop"&&t%2===1?0:a.length-1;return!u||n===void 0?a[u]:n}const transitionTypeMap={decay:inertia,inertia,tween:keyframes,keyframes,spring};function replaceTransitionType(e){typeof e.type=="string"&&(e.type=transitionTypeMap[e.type])}class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const percentToProgress=e=>e/100;class JSAnimation extends WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==time.now()&&this.tick(time.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;replaceTransitionType(t);const{type:r=keyframes,repeat:n=0,repeatDelay:s=0,repeatType:a,velocity:l=0}=t;let{keyframes:u}=t;const d=r||keyframes;d!==keyframes&&typeof u[0]!="number"&&(this.mixKeyframes=pipe(percentToProgress,mix(u[0],u[1])),u=[0,100]);const p=d({...t,keyframes:u});a==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),p.calculatedDuration===null&&(p.calculatedDuration=calcGeneratorDuration(p));const{calculatedDuration:h}=p;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=p}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:s,mixKeyframes:a,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return n.next(0);const{delay:p=0,keyframes:h,repeat:x,repeatType:w,repeatDelay:g,type:b,onUpdate:v,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const j=this.currentTime-p*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?j<0:j>s;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let T=this.currentTime,z=n;if(x){const U=Math.min(this.currentTime,s)/u;let B=Math.floor(U),P=U%1;!P&&U>=1&&(P=1),P===1&&B--,B=Math.min(B,x+1),!!(B%2)&&(w==="reverse"?(P=1-P,g&&(P-=g/u)):w==="mirror"&&(z=l)),T=clamp(0,1,P)*u}const L=R?{done:!1,value:h[0]}:z.next(T);a&&(L.value=a(L.value));let{done:V}=L;!R&&d!==null&&(V=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return $&&b!==inertia&&(L.value=getFinalKeyframe$1(h,this.options,E,this.speed)),v&&v(L.value),$&&this.finish(),L}then(t,r){return this.finished.then(t,r)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+millisecondsToSeconds(t)}get time(){return millisecondsToSeconds(this.currentTime)}set time(t){t=secondsToMilliseconds(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(time.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=frameloopDriver,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function fillWildcards(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const radToDeg=e=>e*180/Math.PI,rotate=e=>{const t=radToDeg(Math.atan2(e[1],e[0]));return rebaseAngle(t)},matrix2dParsers={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate,rotateZ:rotate,skewX:e=>radToDeg(Math.atan(e[1])),skewY:e=>radToDeg(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rebaseAngle=e=>(e=e%360,e<0&&(e+=360),e),rotateZ=rotate,scaleX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),scaleY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),matrix3dParsers={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:e=>(scaleX(e)+scaleY(e))/2,rotateX:e=>rebaseAngle(radToDeg(Math.atan2(e[6],e[5]))),rotateY:e=>rebaseAngle(radToDeg(Math.atan2(-e[2],e[0]))),rotateZ,rotate:rotateZ,skewX:e=>radToDeg(Math.atan(e[4])),skewY:e=>radToDeg(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function defaultTransformValue(e){return e.includes("scale")?1:0}function parseValueFromTransform(e,t){if(!e||e==="none")return defaultTransformValue(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(r)n=matrix3dParsers,s=r;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=matrix2dParsers,s=u}if(!s)return defaultTransformValue(t);const a=n[t],l=s[1].split(",").map(convertTransformToNumber);return typeof a=="function"?a(l):l[a]}const readTransformValue=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return parseValueFromTransform(r,t)};function convertTransformToNumber(e){return parseFloat(e.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=e=>e===number$1||e===px,transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(e=>!transformKeys.has(e));function removeNonTranslationalTransform(e){const t=[];return nonTranslationalTransformKeys.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const positionalValues={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>parseValueFromTransform(t,"x"),y:(e,{transform:t})=>parseValueFromTransform(t,"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 e=Array.from(toResolve).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const s=removeNonTranslationalTransform(n);s.length&&(r.set(n,s),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const s=r.get(n);s&&s.forEach(([a,l])=>{n.getValue(a)?.set(l)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(e=>e.complete(isForced)),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){isForced=!0,readAllKeyframes(),measureAllKeyframes(),isForced=!1}class KeyframeResolver{constructor(t,r,n,s,a,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=s,this.element=a,this.isAsync=l}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:t,name:r,element:n,motionValue:s}=this;if(t[0]===null){const a=s?.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&r){const u=n.readValue(r,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),s&&a===void 0&&s.set(t[0])}fillWildcards(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),toResolve.delete(this)}cancel(){this.state==="scheduled"&&(toResolve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const isCSSVar=e=>e.startsWith("--");function setStyle(e,t,r){isCSSVar(t)?e.style.setProperty(t,r):e.style[t]=r}const supportsScrollTimeline=memo(()=>window.ScrollTimeline!==void 0),supportsFlags={};function memoSupports(e,t){const r=memo(e);return()=>supportsFlags[t]??r()}const supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cubicBezierAsString=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,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(e,t){if(e)return typeof e=="function"?supportsLinearEasing()?generateLinearEasing(e,t):"ease-out":isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(r=>mapEasingToNativeEasing(r,t)||supportedWaapiEasing.easeOut):supportedWaapiEasing[e]}function startWaapiAnimation(e,t,r,{delay:n=0,duration:s=300,repeat:a=0,repeatType:l="loop",ease:u="easeOut",times:d}={},p=void 0){const h={[t]:r};d&&(h.offset=d);const x=mapEasingToNativeEasing(u,s);Array.isArray(x)&&(h.easing=x);const w={delay:n,duration:s,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"};return p&&(w.pseudoElement=p),e.animate(h,w)}function isGenerator(e){return typeof e=="function"&&"applyToOptions"in e}function applyGeneratorOptions({type:e,...t}){return isGenerator(e)&&supportsLinearEasing()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class NativeAnimation extends WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:s,pseudoElement:a,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!a,this.allowFlatten=l,this.options=t,invariant(typeof t.type!="string");const p=applyGeneratorOptions(t);this.animation=startWaapiAnimation(r,n,s,p,a),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=getFinalKeyframe$1(s,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(h):setStyle(r,n,h),this.animation.cancel()}d?.(),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:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+millisecondsToSeconds(t)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&supportsScrollTimeline()?(this.animation.timeline=t,noop):r(this)}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(e){return e in unsupportedEasingFunctions}function replaceStringEasing(e){typeof e.ease=="string"&&isUnsupportedEase(e.ease)&&(e.ease=unsupportedEasingFunctions[e.ease])}const sampleDelta=10;class NativeAnimationExtended extends NativeAnimation{constructor(t){replaceStringEasing(t),replaceTransitionType(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:s,element:a,...l}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const u=new JSAnimation({...l,autoplay:!1}),d=secondsToMilliseconds(this.finishedTime??this.time);r.setWithVelocity(u.sample(d-sampleDelta).value,u.sample(d).value,sampleDelta),u.stop()}}const isAnimatable=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(complex.test(e)||e==="0")&&!e.startsWith("url("));function hasKeyframesChanged(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function canAnimate(e,t,r,n){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],l=isAnimatable(s,t),u=isAnimatable(a,t);return!l||!u?!1:hasKeyframesChanged(e)||(r==="spring"||isGenerator(r))&&n}function makeAnimationInstant(e){e.duration=0,e.type="keyframes"}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]),supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function supportsBrowserAnimation(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:s,damping:a,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=t.owner.getProps();return supportsWaapi()&&r&&acceleratedValues.has(r)&&(r!=="transform"||!p)&&!d&&!n&&s!=="mirror"&&a!==0&&l!=="inertia"}const MAX_RESOLVE_DELAY=40;class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:l="loop",keyframes:u,n
vendor: 4,448 bytes, line 253
253ame:d,motionValue:p,element:h,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=time.now();const w={autoplay:t,delay:r,type:n,repeat:s,repeatDelay:a,repeatType:l,name:d,motionValue:p,element:h,...x},g=h?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new g(u,(b,v,E)=>this.onKeyframesResolved(b,v,w,!E),d,p,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,s){this.keyframeResolver=void 0;const{name:a,type:l,velocity:u,delay:d,isHandoff:p,onUpdate:h}=n;this.resolvedAt=time.now(),canAnimate(t,a,l,u)||((MotionGlobalConfig.instantAnimations||!d)&&h?.(getFinalKeyframe$1(t,n,r)),t[0]=t[t.length-1],makeAnimationInstant(n),n.repeat=0);const w={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},g=!p&&supportsBrowserAnimation(w)?new NativeAnimationExtended({...w,element:w.motionValue.owner.current}):new JSAnimation(w);g.finished.then(()=>this.notifyFinished()).catch(noop),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).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(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class GroupAnimation{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t){const r=this.animations.map(n=>n.attachTimeline(t));return()=>{r.forEach((n,s)=>{n&&n(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return getMax(this.animations,"duration")}get iterationDuration(){return getMax(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function getMax(e,t){let r=0;for(let n=0;n<e.length;n++){const s=e[n][t];s!==null&&s>r&&(r=s)}return r}class GroupAnimationWithThen extends GroupAnimation{then(t,r){return this.finished.finally(t).then(()=>{})}}const splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(e){const t=splitCSSVariableRegex.exec(e);if(!t)return[,];const[,r,n,s]=t;return[`--${r??n}`,s]}function getVariableValue(e,t,r=1){const[n,s]=parseCSSVariable(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const l=a.trim();return isNumericalString(l)?parseFloat(l):l}return isCSSVariableToken(s)?getVariableValue(s,t,r+1):s}function getValueTransition$1(e,t){return e?.[t]??e?.default??e}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]),auto={test:e=>e==="auto",parse:e=>e},testValueType=e=>t=>t.test(e),dimensionValueTypes=[number$1,px,percent,degrees,vw,vh,auto],findDimensionValueType=e=>dimensionValueTypes.find(testValueType(e));function isNone(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||isZeroValueString(e):!0}const maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(floatRegex)||[];
vendor: 3,614 bytes, line 253
253if(!n)return e;const s=r.replace(n,"");let a=maxDefaults.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+s+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter={...complex,getAnimatableNone:e=>{const t=e.match(functionRegex);return t?t.map(applyDefaultFilter).join(" "):e}},int={...number$1,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=e=>defaultValueTypes[e];function getAnimatableNone(e,t){let r=getDefaultValueType(e);return r!==filter&&(r=complex),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(e,t,r){let n=0,s;for(;n<e.length&&!s;){const a=e[n];typeof a=="string"&&!invalidTemplates.has(a)&&analyseComplexValue(a).values.length&&(s=e[n]),n++}if(s&&r)for(const a of t)e[a]=getAnimatableNone(r,s)}class DOMKeyframesResolver extends KeyframeResolver{constructor(t,r,n,s,a){super(t,r,n,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let p=t[d];if(typeof p=="string"&&(p=p.trim(),isCSSVariableToken(p))){const h=getVariableValue(p,r.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(n)||t.length!==2)return;const[s,a]=t,l=findDimensionValueType(s),u=findDimensionValueType(a);if(l!==u)if(isNumOrPxType(l)&&isNumOrPxType(u))for(let d=0;d<t.length;d++){const p=t[d];typeof p=="string"&&(t[d]=parseFloat(p))}else positionalValues[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let s=0;s<t.length;s++)(t[s]===null||isNone(t[s]))&&n.push(s);n.length&&makeNoneKeyframesAnimatable(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&t.getValue(n,s).jump(s,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const s=t.getValue(r);s&&s.jump(this.measuredOrigin,!1);const a=n.length-1,l=n[a];n[a]=positionalValues[r](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 4,637 bytes, line 253
253h(([u,d])=>{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function resolveElements(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const s=r?.[e]??n.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const getValueAsType=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function isHTMLElement(e){return isObject$4(e)&&"offsetHeight"in e}const MAX_VELOCITY_DELTA=30,isFloat=e=>!isNaN(parseFloat(e)),collectMotionValues={current:void 0};class MotionValue{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const s=time.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=time.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new SubscriptionManager);const n=this.events[t].add(r);return t==="change"?()=>{n(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return collectMotionValues.current&&collectMotionValues.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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(e,t){return new MotionValue(e,t)}const{schedule:microtask}=createRenderBatcher(queueMicrotask,!1),isDragging={x:!1,y:!1};function isDragActive(){return isDragging.x||isDragging.y}function setDragLock(e){return e==="x"||e==="y"?isDragging[e]?null:(isDragging[e]=!0,()=>{isDragging[e]=!1}):isDragging.x||isDragging.y?null:(isDragging.x=isDragging.y=!0,()=>{isDragging.x=isDragging.y=!1})}function setupGesture(e,t){const r=resolveElements(e),n=new AbortController,s={passive:!0,...t,signal:n.signal};return[r,s,()=>n.abort()]}function isValidHover(e){return!(e.pointerType==="touch"||isDragActive())}function hover(e,t,r={}){const[n,s,a]=setupGesture(e,r),l=u=>{if(!isValidHover(u))return;const{target:d}=u,p=t(d,u);if(typeof p!="function"||!d)return;const h=x=>{isValidHover(x)&&(p(x),d.removeEventListener("pointerleave",h))};d.addEventListener("pointerleave",h,s)};return n.forEach(u=>{u.addEventListener("pointerenter",l,s)}),a}const isNodeOrChild=(e,t)=>t?e===t?!0:isNodeOrChild(e,t.parentElement):!1,isPrimaryPointer=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,focusableElements=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(e){return focusableElements.has(e.tagName)||e.tabIndex!==-1}const isPressing=new WeakSet;function filterEvents(e){return t=>{t.key==="Enter"&&e(t)}}function firePointerEvent(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const enableKeyboardPress=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=filterEvents(()=>
vendor: 10,736 bytes, lines 253-261
253{if(isPressing.has(r))return;firePointerEvent(r,"down");const s=filterEvents(()=>{firePointerEvent(r,"up")}),a=()=>firePointerEvent(r,"cancel");r.addEventListener("keyup",s,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function isValidPressEvent(e){return isPrimaryPointer(e)&&!isDragActive()}function press(e,t,r={}){const[n,s,a]=setupGesture(e,r),l=u=>{const d=u.currentTarget;if(!isValidPressEvent(u))return;isPressing.add(d);const p=t(d,u),h=(g,b)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",w),isPressing.has(d)&&isPressing.delete(d),isValidPressEvent(g)&&typeof p=="function"&&p(g,{success:b})},x=g=>{h(g,d===window||d===document||r.useGlobalTarget||isNodeOrChild(d,g.target))},w=g=>{h(g,!1)};window.addEventListener("pointerup",x,s),window.addEventListener("pointercancel",w,s)};return n.forEach(u=>{(r.useGlobalTarget?window:u).addEventListener("pointerdown",l,s),isHTMLElement(u)&&(u.addEventListener("focus",p=>enableKeyboardPress(p,s)),!isElementKeyboardAccessible(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),a}function isSVGElement(e){return isObject$4(e)&&"ownerSVGElement"in e}function isSVGSVGElement(e){return isSVGElement(e)&&e.tagName==="svg"}function transform(...e){const t=!Array.isArray(e[0]),r=t?0:-1,n=e[0+r],s=e[1+r],a=e[2+r],l=e[3+r],u=interpolate(s,a,l);return t?u(n):u}const isMotionValue=e=>!!(e&&e.getVelocity),valueTypes=[...dimensionValueTypes,color,complex],findValueType=e=>valueTypes.find(testValueType(e)),MotionConfigContext=reactExports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function setRef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function composeRefs(...e){return t=>{let r=!1;const n=e.map(s=>{const a=setRef(s,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s<n.length;s++){const a=n[s];typeof a=="function"?a():setRef(e[s],null)}}}}function useComposedRefs(...e){return reactExports.useCallback(composeRefs(...e),e)}class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,s=isHTMLElement(n)&&n.offsetWidth||0,a=this.props.sizeRef.current;a.height=r.offsetHeight||0,a.width=r.offsetWidth||0,a.top=r.offsetTop,a.left=r.offsetLeft,a.right=s-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:e,isPresent:t,anchorX:r,root:n}){const s=reactExports.useId(),a=reactExports.useRef(null),l=reactExports.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=reactExports.useContext(MotionConfigContext),d=useComposedRefs(a,e?.ref);return reactExports.useInsertionEffect(()=>{const{width:p,height:h,top:x,left:w,right:g}=l.current;if(t||!a.current||!p||!h)return;const b=r==="left"?`left: ${w}`:`right: ${g}`;a.current.dataset.motionPopId=s;const v=document.createElement("style");u&&(v.nonce=u);const E=n??document.head;return E.appendChild(v),v.sheet&&v.sheet.insertRule(` 254 [data-motion-pop-id="${s}"] { 255 position: absolute !important; 256 width: ${p}px !important; 257 height: ${h}px !important; 258 ${b}px !important; 259 top: ${x}px !important; 260 } 261 `),()=>{E.contains(v)&&E.removeChild(v)}},[t]),jsxRuntimeExports.jsx(PopChildMeasure,{isPresent:t,childRef:a,sizeRef:l,children:reactExports.cloneElement(e,{ref:d})})}const PresenceChild=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:a,mode:l,anchorX:u,root:d})=>{const p=useConstant$1(newChildrenMap),h=reactExports.useId();let x=!0,w=reactExports.useMemo(()=>(x=!1,{id:h,initial:t,isPresent:r,custom:s,onExitComplete:g=>{p.set(g,!0);for(const b of p.values())if(!b)return;n&&n()},register:g=>(p.set(g,!1),()=>p.delete(g))}),[r,p,n]);return a&&x&&(w={...w}),reactExports.useMemo(()=>{p.forEach((g,b)=>p.set(b,!1))},[r]),reactExports.useEffect(()=>{!r&&!p.size&&n&&n()},[r]),l==="popLayout"&&(e=jsxRuntimeExports.jsx(PopChild,{isPresent:r,anchorX:u,root:d,children:e})),jsxRuntimeExports.jsx(PresenceContext.Provider,{value:w,children:e})};function newChildrenMap(){return new Map}function usePresence(e=!0){const t=reactExports.useContext(PresenceContext);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:s}=t,a=reactExports.useId();reactExports.useEffect(()=>{if(e)return s(a)},[e]);const l=reactExports.useCallback(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,l]:[!0]}const getChildKey=e=>e.key||"";function onlyElements(e){const t=[];return reactExports.Children.forEach(e,r=>{reactExports.isValidElement(r)&&t.push(r)}),t}const AnimatePresence=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:a="sync",propagate:l=!1,anchorX:u="left",root:d})=>{const[p,h]=usePresence(l),x=reactExports.useMemo(()=>onlyElements(e),[e]),w=l&&!p?[]:x.map(getChildKey),g=reactExports.useRef(!0),b=reactExports.useRef(x),v=useConstant$1(()=>new Map),[E,j]=reactExports.useState(x),[R,T]=reactExports.useState(x);useIsomorphicLayoutEffect$1(()=>{g.current=!1,b.current=x;for(let V=0;V<R.length;V++){const $=getChildKey(R[V]);w.includes($)?v.delete($):v.get($)!==!0&&v.set($,!1)}},[R,w.length,w.join("-")]);const z=[];if(x!==E){let V=[...x];for(let $=0;$<R.length;$++){const U=R[$],B=getChildKey(U);w.includes(B)||(V.splice($,0,U),z.push(U))}return a==="wait"&&z.length&&(V=z),T(onlyElements(V)),j(x),null}const{forceRender:L}=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:R.map(V=>{const $=getChildKey(V),U=l&&!p?!1:x===R||w.includes($),B=()=>{if(v.has($))v.set($,!0);else return;let P=!0;v.forEach(H=>{H||(P=!1)}),P&&(L?.(),T(b.current),l&&h?.(),n&&n())};return jsxRuntimeExports.jsx(PresenceChild,{isPresent:U,initial:!g.current||r?void 0:!1,custom:t,presenceAffectsLayout:s,mode:a,root:d,onExitComplete:U?void 0:B,anchorX:u,children:V},$)})})},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 e in featureProps)featureDefinitions[e]={isEnabled:t=>featureProps[e].some(r=>!!t[r])};function loadFeatures(e){for(const t in e)featureDefinitions[t]={...featureDefinitions[t],...e[t]}}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(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||validMotionProps.has(e)}let shouldForward=e=>!isValidMotionProp(e);function loadExternalIsValidProp(e){typeof e=="function"&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):e(t))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(e,t,r){const n={};for(const s in e)s==="values"&&typeof e.values=="object"||(shouldForward(s)||r===!0&&isValidMotionProp(s)||!t&&!isValidMotionProp(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}const MotionContext=reactExports.createContext({});function isAnimationControls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function isVariantLabel(e){return typeof e=="string"||Array.isArray(e)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(e){return isAnimationControls(e.animate)||variantProps.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function getCurrentTreeVariants(e,t){if(isControllingVariants(e)){const{initial:r,animate:n}=e;return{initial:r===!1||isVariantLabel(r)?r:void 0,animate:isVariantLabel(n)?n:void 0}}return e.inherit!==!1?t:{}}function useCreateMotionContext(e){const{initial:t,animate:r}=getCurrentTreeVariants(e,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:t,animate:r}),[variantLabelsAsDependency(t),variantLabelsAsDependency(r)])}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}const scaleCorrectors={};function addScaleCorrector(e){for(const t in e)scaleCorrectors[t]=e[t],isCSSVariableName(t)&&(scaleCorrectors[t].isCSSVariable=!0)}function isForcedMotionValue(e,{layout:t,layoutId:r}){return transformProps.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!scaleCorrectors[e]||e==="opacity")}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(e,t,r){let n="",s=!0;for(let a=0;a<numTransforms;a++){const l=transformPropOrder[a],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||r){const p=getValueAsType(u,numberValueTypes[l]);if(!d){s=!1;const h=translateAlias[l]||l;n+=`${h}(${p}) `}r&&(t[l]=p)}}return n=n.trim(),r?n=r(t,s?"":n):s&&(n="none"),n}function buildHTMLStyles(e,t,r){const{style:n,vars:s,transformOrigin:a}=e;let l=!1,u=!1;for(const d in t){const p=t[d];if(transformProps.has(d)){l=!0;continue}else if(isCSSVariableName(d)){s[d]=p;continue}else{const h=getValueAsType(p,numberValueTypes[d]);d.startsWith("origin")?(u=!0,a[d]=h):n[d]=h}}if(t.transform||(l||r?n.transform=buildTransform(t,e.transform,r):n.transform&&(n.transform="none")),u){const{originX:d="50%",originY:p="50%",originZ:h=0}=a;n.transformOrigin=`${d} ${p} ${h}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,r){for(const n in t)!isMotionValue(t[n])&&!isForcedMotionValue(n,r)&&(e[n]=t[n])}function useInitialMotionValues({transformTemplate:e},t){return reactExports.useMemo(()=>{const r=createHtmlRenderState();return buildHTMLStyles(r,t,e),Object.assign({},r.vars,r.style)}
vendor: 5,616 bytes, line 261
261,[t])}function useStyle(e,t){const r=e.style||{},n={};return copyRawValuesOnly(n,r,e),Object.assign(n,useInitialMotionValues(e,t)),n}function useHTMLProps(e,t){const r={},n=useStyle(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(e,t,r=1,n=0,s=!0){e.pathLength=1;const a=s?dashKeys:camelKeys;e[a.offset]=px.transform(-n);const l=px.transform(t),u=px.transform(r);e[a.array]=`${l} ${u}`}function buildSVGAttrs(e,{attrX:t,attrY:r,attrScale:n,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,p,h){if(buildHTMLStyles(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:w}=e;x.transform&&(w.transform=x.transform,delete x.transform),(w.transform||x.transformOrigin)&&(w.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),w.transform&&(w.transformBox=h?.transformBox??"fill-box",delete x.transformBox),t!==void 0&&(x.x=t),r!==void 0&&(x.y=r),n!==void 0&&(x.scale=n),s!==void 0&&buildSVGPath(x,s,a,l,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>typeof e=="string"&&e.toLowerCase()==="svg";function useSVGProps(e,t,r,n){const s=reactExports.useMemo(()=>{const a=createSvgRenderState();return buildSVGAttrs(a,t,isSVGTag(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};copyRawValuesOnly(a,e.style,e),s.style={...a,...s.style}}return s}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(e){return typeof e!="string"||e.includes("-")?!1:!!(lowercaseSVGElements.indexOf(e)>-1||/[A-Z]/u.test(e))}function useRender(e,t,r,{latestValues:n},s,a=!1){const u=(isSVGComponent(e)?useSVGProps:useHTMLProps)(t,n,s,e),d=filterProps(t,typeof e=="string",a),p=e!==reactExports.Fragment?{...d,...u,ref:r}:{},{children:h}=t,x=reactExports.useMemo(()=>isMotionValue(h)?h.get():h,[h]);return reactExports.createElement(e,{...p,children:x})}function getValueState(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function resolveVariantFromProps(e,t,r,n){if(typeof t=="function"){const[s,a]=getValueState(n);t=t(r!==void 0?r:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=getValueState(n);t=t(r!==void 0?r:e.custom,s,a)}return t}function resolveMotionValue(e){return isMotionValue(e)?e.get():e}function makeState({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,s){return{latestValues:makeLatestValues(r,n,s,e),renderState:t()}}function makeLatestValues(e,t,r,n){const s={},a=n(e,{});for(const w in a)s[w]=resolveMotionValue(a[w]);let{initial:l,animate:u}=e;const d=isControllingVariants(e),p=isVariantNode(e);t&&p&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let h=r?r.initial===!1:!1;h=h||l===!1;const x=h?u:l;if(x&&typeof x!="boolean"&&!isAnimationControls(x)){const w=Array.isArray(x)?x:[x];for(let g=0;g<w.length;g++){const b=resolveVariantFromProps(e,w[g]);if(b){const{transitionEnd:v,transition:E,...j}=b;for(const R in j){let T=j[R];if(Array.isArray(T)){const z=h?T.length-1:0;T=T[z]}T!==null&&(s[R]=T)}for(const R in v)s[R]=v[R]}}}return s}const makeUseVisualState=e=>(t,r)=>{const n=reactExports.useContext(MotionContext),s=reactExports.useContext(PresenceContext),a=()=>makeState(e,t,n,s);return r?a():useConstant$1(a)};function scrapeMotionValuesFromProps$1(e,t,r){const{style:n}=e,s={};for(const a in n)(isMotionValue(n[a])||t.style&&isMotionValue(t.style[a])||isForcedMotionValue(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(s[a]=n[a]);return s}const useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState});function scrapeMotionValuesFromProps(e,t,r){const n=scrapeMotionValuesFromProps$1(e,t,r);for(const s in e)if(isMotionValue(e[s])||isMotionValue(t[s])){const a=transformPropOrder.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[a]=e[s]}return n}const useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function isRefObject(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function useMotionRef(e,t,r){return reactExports.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):isRefObject(r)&&(r.current=n))},[t])}const camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),SwitchLayoutGroupContext=reactExports.createContext({});function useVisualElement(e,t,r,n,s){const{visualElement:a}=reactExports.useContext(MotionContext),l=reactExports.useContext(LazyContext),u=reactExports.useContext(PresenceContext),d=reactExports.useContext(MotionConfigContext).reducedMotion,p=reactExports.useRef(null);n=n||l.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:u?u.
vendor: 25,616 bytes, line 261
261initial===!1:!1,reducedMotionConfig:d}));const h=p.current,x=reactExports.useContext(SwitchLayoutGroupContext);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&createProjectionNode$1(p.current,r,s,x);const w=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{h&&w.current&&h.update(r,u)});const g=r[optimizedAppearDataAttribute],b=reactExports.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return useIsomorphicLayoutEffect$1(()=>{h&&(w.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),reactExports.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),b.current=!1),h.enteringChildren=void 0)}),h}function createProjectionNode$1(e,t,r,n){const{layoutId:s,layout:a,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:p,layoutCrossfade:h}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:getClosestProjectingNode(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!l||u&&isRefObject(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:d,layoutRoot:p})}function getClosestProjectingNode(e){if(e)return e.options.allowProjection!==!1?e.projection:getClosestProjectingNode(e.parent)}function createMotionComponent(e,{forwardMotionProps:t=!1}={},r,n){r&&loadFeatures(r);const s=isSVGComponent(e)?useSVGVisualState:useHTMLVisualState;function a(u,d){let p;const h={...reactExports.useContext(MotionConfigContext),...u,layoutId:useLayoutId(u)},{isStatic:x}=h,w=useCreateMotionContext(u),g=s(u,x);if(!x&&isBrowser$1){useStrictMode();const b=getProjectionFunctionality(h);p=b.MeasureLayout,w.visualElement=useVisualElement(e,g,h,n,b.ProjectionNode)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:w,children:[p&&w.visualElement?jsxRuntimeExports.jsx(p,{visualElement:w.visualElement,...h}):null,useRender(e,u,useMotionRef(g,w.visualElement,d),g,x,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=reactExports.forwardRef(a);return l[motionComponentSymbol]=e,l}function useLayoutId({layoutId:e}){const t=reactExports.useContext(LayoutGroupContext).id;return t&&e!==void 0?t+"-"+e:e}function useStrictMode(e,t){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(e){const{drag:t,layout:r}=featureDefinitions;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function createMotionProxy(e,t){if(typeof Proxy>"u")return createMotionComponent;const r=new Map,n=(a,l)=>createMotionComponent(a,l,e,t),s=(a,l)=>n(a,l);return new Proxy(s,{get:(a,l)=>l==="create"?n:(r.has(l)||r.set(l,createMotionComponent(l,void 0,e,t)),r.get(l))})}function convertBoundingBoxToBox({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function convertBoxToBoundingBox({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function transformBoxPoints(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function isIdentityScale(e){return e===void 0||e===1}function hasScale({scale:e,scaleX:t,scaleY:r}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(r)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){return is2DTranslate(e.x)||is2DTranslate(e.y)}function is2DTranslate(e){return e&&e!=="0%"}function scalePoint(e,t,r){const n=e-r,s=t*n;return r+s}function applyPointDelta(e,t,r,n,s){return s!==void 0&&(e=scalePoint(e,s,n)),scalePoint(e,r,n)+t}function applyAxisDelta(e,t=0,r=1,n,s){e.min=applyPointDelta(e.min,t,r,n,s),e.max=applyPointDelta(e.max,t,r,n,s)}function applyBoxDelta(e,{x:t,y:r}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,r.translate,r.scale,r.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(e,t,r,n=!1){const s=r.length;if(!s)return;t.x=t.y=1;let a,l;for(let u=0;u<s;u++){a=r[u],l=a.projectionDelta;const{visualElement:d}=a.options;d&&d.props.style&&d.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&transformBox(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,applyBoxDelta(e,l)),n&&hasTransform(a.latestValues)&&transformBox(e,a.latestValues))}t.x<TREE_SCALE_SNAP_MAX&&t.x>TREE_SCALE_SNAP_MIN&&(t.x=1),t.y<TREE_SCALE_SNAP_MAX&&t.y>TREE_SCALE_SNAP_MIN&&(t.y=1)}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,r,n,s=.5){const a=mixNumber$1(e.min,e.max,s);applyAxisDelta(e,t,r,a,n)}function transformBox(e,t){transformAxis(e.x,t.x,t.scaleX,t.scale,t.originX),transformAxis(e.y,t.y,t.scaleY,t.scale,t.originY)}function measureViewportBox(e,t){return convertBoundingBoxToBox(transformBoxPoints(e.getBoundingClientRect(),t))}function measurePageBox(e,t,r){const n=measureViewportBox(e,r),{scroll:s}=t;return s&&(translateAxis(n.x,s.offset.x),translateAxis(n.y,s.offset.y)),n}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$1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>prefersReducedMotion.current=e.matches;e.addEventListener("change",t),t()}else prefersReducedMotion.current=!1}const visualElementStore=new WeakMap;function updateMotionValuesFromProps(e,t,r){for(const n in t){const s=t[n],a=r[n];if(isMotionValue(s))e.addValue(n,s);else if(isMotionValue(a))e.addValue(n,motionValue(s,{owner:e}));else if(a!==s)if(e.hasValue(n)){const l=e.getValue(n);l.liveStyle===!0?l.jump(s):l.hasAnimated||l.set(s)}else{const l=e.getStaticValue(n);e.addValue(n,motionValue(l!==void 0?l:s,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VisualElement{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:a,visualState:l},u={}){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 w=time.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,frame.render(this.render,!1,!0))};const{latestValues:d,renderState:p}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=p,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=isControllingVariants(r),this.isVariantNode=isVariantNode(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...x}=this.scrapeMotionValuesFromProps(r,{},this);for(const w in x){const g=x[w];d[w]!==void 0&&isMotionValue(g)&&g.set(d[w])}}mount(t){this.current=t,visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),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(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=transformProps.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=r.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{s(),a&&a(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in featureDefinitions){const r=featureDefinitions[t];if(!r)continue;const{isEnabled:n,Feature:s}=r;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<propEventHandlers.length;n++){const s=propEventHandlers[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,l=t[a];l&&(this.propEventSubscriptions[s]=this.on(s,l))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=motionValue(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(isNumericalString(n)||isZeroValueString(n))?n=parseFloat(n):!findValueType(n)&&complex.test(r)&&(n=getAnimatableNone(t,r)),this.setBaseTarget(t,isMotionValue(n)?n.get():n)),isMotionValue(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const a=resolveVariantFromProps(this.props,r,this.presenceContext?.custom);a&&(n=a[t])}if(r&&n!==void 0)return n;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!isMotionValue(s)?s:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new SubscriptionManager),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function renderHTML(e,{style:t,vars:r},n,s){const a=e.style;let l;for(l in t)a[l]=t[l];s?.applyProjectionStyles(a,n);for(l in r)a.setProperty(l,r[l])}function getComputedStyle$2(e){return window.getComputedStyle(e)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,r){if(transformProps.has(r))return this.projection?.isProjecting?defaultTransformValue(r):readTransformValue(t,r);{const n=getComputedStyle$2(t),s=(isCSSVariableName(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:r}){return measureViewportBox(t,r)}build(t,r,n){buildHTMLStyles(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return scrapeMotionValuesFromProps$1(t,r,n)}}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"]);function renderSVG(e,t,r,n){renderHTML(e,t,void 0,n);for(const s in t.attrs)e.setAttribute(camelCaseAttributes.has(s)?s:camelToDash(s),t.attrs[s])}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(transformProps.has(r)){const n=getDefaultValueType(r);return n&&n.default||0}return r=camelCaseAttributes.has(r)?r:camelToDash(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return scrapeMotionValuesFromProps(t,r,n)}build(t,r,n){buildSVGAttrs(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,s){renderSVG(t,r,n,s)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}}const createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==reactExports.Fragment});function resolveVariant(e,t,r){const n=e.getProps();return resolveVariantFromProps(n,t,r!==void 0?r:n.custom,e)}const isKeyframesTarget=e=>Array.isArray(e);function setMotionValue(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,motionValue(r))}function resolveFinalValueInKeyframes(e){return isKeyframesTarget(e)?e[e.length-1]||0:e}function setTarget(e,t){const r=resolveVariant(e,t);let{transitionEnd:n={},transition:s={},...a}=r||{};a={...a,...n};for(const l in a){const u=resolveFinalValueInKeyframes(a[l]);setMotionValue(e,l,u)}}function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}function addValueToWillChange(e,t){const r=e.getValue("willChange");if(isWillChangeMotionValue(r))return r.add(t);if(!r&&MotionGlobalConfig.WillChange){const n=new MotionGlobalConfig.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function getOptimisedAppearId(e){return e.props[optimizedAppearDataAttribute]}const isNotNull=e=>e!==null;function getFinalKeyframe(e,{repeat:t,repeatType:r="loop"},n){const s=e.filter(isNotNull),a=t&&r!=="loop"&&t%2===1?0:s.length-1;return s[a]}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?keyframesTransition:transformProps.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):underDampedSpring:ease;function isTransitionDefined({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:a,repeatType:l,repeatDelay:u,from:d,elapsed:p,...h}){return!!Object.keys(h).length}const animateMotionValue=(e,t,r,n={},s,a)=>l=>{const u=getValueTransition$1(n,e)||{},d=u.delay||n.delay||0;let{elapsed:p=0}=n;p=p-secondsToMilliseconds(d);const h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-p,onUpdate:w=>{t.set(w),u.onUpdate&&u.onUpdate(w)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:s};isTransitionDefined(u)||Object.assign(h,getDefaultTransition(e,h)),h.duration&&(h.duration=secondsToMilliseconds(h.duration)),h.repeatDelay&&(h.repeatDelay=secondsToMilliseconds(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let x=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(makeAnimationInstant(h),h.delay===0&&(x=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations)&&(x=!0,makeAnimationInstant(h),h.delay=0),h.allowFlatten=!u.type&&!u.ease,x&&!a&&t.get()!==void 0){const w=getFinalKeyframe(h.keyframes,u);if(w!==void 0){frame.update(()=>{h.onUpdate(w),h.onComplete()});return}}return u.isSync?new JSAnimation(h):new AsyncMotionValueAnimation(h)};function shouldBlockAnimation({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function animateTarget(e,t,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:l,...u}=t;n&&(a=n);const d=[],p=s&&e.animationState&&e.animationState.getState()[s];for(const h in u){const x=e.getValue(h,e.latestValues[h]??null),w=u[h];if(w===void 0||p&&shouldBlockAnimation(p,h))continue;const g={delay:r,...getValueTransition$1(a||{},h)},b=x.get();if(b!==void 0&&!x.isAnimating&&!Array.isArray(w)&&w===b&&!g.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const j=getOptimisedAppearId(e);if(j){const R=window.MotionHandoffAnimation(j,h,frame);R!==null&&(g.startTime=R,v=!0)}}addValueToWillChange(e,h),x.start(animateMotionValue(h,x,w,e.shouldReduceMotion&&positionalKeys.has(h)?{type:!1}:g,e,v));const E=x.animation;E&&d.push(E)}return l&&Promise.all(d).then(()=>{frame.update(()=>{l&&setTarget(e,l)})}),d}function calcChildStagger(e,t,r,n=0,s=1){const a=Array.from(e).sort((p,h)=>p.sortNodePosition(h)).indexOf(t),l=e.size,u=(l-1)*n;return typeof r=="function"?r(a,l):s===1?a*n:u-a*n}function animateVariant(e,t,r={}){const n=resolveVariant(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const a=n?()=>Promise.all(animateTarget(e,n,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:x}=s;return animateChildren(e,t,d,p,h,x,r)}:()=>Promise.resolve(),{when:u}=s;if(u){const[d,p]=u==="beforeChildren"?[a,l]:[l,a];return d().then(()=>p())}else return Promise.all([a(),l(r.delay)])}function animateChildren(e,t,r=0,n=0,s=0,a=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(animateVariant(d,t,{...l,delay:r+(typeof n=="function"?0:n)+calcChildStagger(e.variantChildren,d,n,s,a)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function animateVisualElement(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const s=t.map(a=>animateVariant(e,a,r));n=Promise.all(s)}else if(typeof t=="string")n=animateVariant(e,t,r);else{const s=typeof t=="function"?resolveVariant(e,t,r.custom):t;n=Promise.all(animateTarget(e,s,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function shallowCompare(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const numVariantProps=variantProps.length;function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?getVariantContext(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<numVariantProps;r++){const n=variantProps[r],s=e.props[n];(isVariantLabel(s)||s===!1)&&(t[n]=s)}return t}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(e){return t=>Promise.all(t.map(({animation:r,options:n})=>animateVisualElement(e,r,n)))}function createAnimationState(e){let t=animateList(e),r=createState(),n=!0;const s=d=>(p,h)=>{const x=resolveVariant(e,h,d==="exit"?e.presenceContext?.custom:void 0);if(x){const{transition:w,transitionEnd:g,...b}=x;p={...p,...b,...g}}return p};function a(d){t=d(e)}function l(d){const{props:p}=e,h=getVariantContext(e.parent)||{},x=[],w=new Set;let g={},b=1/0;for(let E=0;E<numAnimationTypes;E++){const j=reversePriorityOrder[E],R=r[j],T=p[j]!==void 0?p[j]:h[j],z=isVariantLabel(T),L=j===d?R.isActive:null;L===!1&&(b=E);let V=T===h[j]&&T!==p[j]&&z;if(V&&n&&e.manuallyAnimateOnMount&&(V=!1),R.protectedKeys={...g},!R.isActive&&L===null||!T&&!R.prevProp||isAnimationControls(T)||typeof T=="boolean")continue;const $=checkVariantsDidChange(R.prevProp,T);let U=$||j===d&&R.isActive&&!V&&z||E>b&&z,B=!1;const P=Array.isArray(T)?T:[T];let H=P.reduce(s(j),{});L===!1&&(H={});const{prevResolvedValues:Z={}}=R,O={...Z,...H},S=k=>{U=!0,w.has(k)&&(B=!0,w.delete(k)),R.needsAnimating[k]=!0;const W=e.getValue(k);W&&(W.liveStyle=!1)};for(const k in O){const W=H[k],q=Z[k];if(g.hasOwnProperty(k))continue;let A=!1;isKeyframesTarget(W)&&isKeyframesTarget(q)?A=!shallowCompare(W,q):A=W!==q,A?W!=null?S(k):w.add(k):W!==void 0&&w.has(k)?S(k):R.protectedKeys[k]=!0}R.prevProp=T,R.prevResolvedValues=H,R.isActive&&(g={...g,...H}),n&&e.blockInitialAnimation&&(U=!1);const N=V&&$;U&&(!N||B)&&x.push(...P.map(k=>{const W={type:j};if(typeof k=="string"&&n&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,A=resolveVariant(q,k);if(q.enteringChildren&&A){const{delayChildren:D}=A.transition||{};W.delay=calcChildStagger(q.enteringChildren,e,D)}}return{animation:k,options:W}}))}if(w.size){const E={};if(typeof p.initial!="boolean"){const j=resolveVariant(e,Array.isArray(p.initial)?p.initial[0]:p.initial);j&&j.transition&&(E.transition=j.transition)}w.forEach(j=>{const R=e.getBaseTarget(j),T=e.getValue(j);T&&(T.liveStyle=!0),E[j]=R??null}),x.push({animation:E})}let v=!!x.length;return n&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(x):Promise.resolve()}function u(d,p){if(r[d].isActive===p)return Promise.resolve();e.variantChildren?.forEach(x=>x.animationState?.setActive(d,p)),r[d].isActive=p;const h=l(d);for(const x in r)r[x].protectedKeys={};return h}return{animateChanges:l,setActive:u,setAnimateFunction:a,getState:()=>r,reset:()=>{r=createState(),n=!0}}}function checkVariantsDidChange(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!shallowCompare(t,e):!1}function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}}class AnimationFeature extends Feature{constructor(t){super(t),t.animationState||(t.animationState=createAnimationState(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&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:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const s=this.node.animationState.setActive("exit",!t);r&&!t&&s.then(()=>
vendor: 5,741 bytes, line 261
261{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function addDomEvent(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function extractEventInfo(e){return{point:{x:e.pageX,y:e.pageY}}}const addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,r,n){return addDomEvent(e,t,addPointerInfo(r),n)}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(e){return e.max-e.min}function isNear(e,t,r){return Math.abs(e-t)<=r}function calcAxisDelta(e,t,r,n=.5){e.origin=n,e.originPoint=mixNumber$1(t.min,t.max,e.origin),e.scale=calcLength(r)/calcLength(t),e.translate=mixNumber$1(r.min,r.max,e.origin)-e.originPoint,(e.scale>=SCALE_MIN&&e.scale<=SCALE_MAX||isNaN(e.scale))&&(e.scale=1),(e.translate>=TRANSLATE_MIN&&e.translate<=TRANSLATE_MAX||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,r,n){calcAxisDelta(e.x,t.x,r.x,n?n.originX:void 0),calcAxisDelta(e.y,t.y,r.y,n?n.originY:void 0)}function calcRelativeAxis(e,t,r){e.min=r.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeBox(e,t,r){calcRelativeAxis(e.x,t.x,r.x),calcRelativeAxis(e.y,t.y,r.y)}function calcRelativeAxisPosition(e,t,r){e.min=t.min-r.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,r){calcRelativeAxisPosition(e.x,t.x,r.x),calcRelativeAxisPosition(e.y,t.y,r.y)}function eachAxis(e){return[e("x"),e("y")]}const getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,distance=(e,t)=>Math.abs(e-t);function distance2D(e,t){const r=distance(e.x,t.x),n=distance(e.y,t.y);return Math.sqrt(r**2+n**2)}class PanSession{constructor(t,r,{transformPagePoint:n,contextWindow:s=window,dragSnapToOrigin:a=!1,distanceThreshold:l=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 w=getPanInfo(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=distance2D(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!b)return;const{point:v}=w,{timestamp:E}=frameData;this.history.push({...v,timestamp:E});const{onStart:j,onMove:R}=this.handlers;g||(j&&j(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,w)},this.handlePointerMove=(w,g)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=transformPoint(g,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(w,g)=>{this.end();const{onEnd:b,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=getPanInfo(w.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(w,j),v&&v(w,j)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=l,this.contextWindow=s||window;const u=extractEventInfo(t),d=transformPoint(u,this.transformPagePoint),{point:p}=d,{timestamp:h}=frameData;this.history=[{...p,timestamp:h}];const{onSessionStart:x}=r;x&&x(t,getPanInfo(d,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,startDevicePoint(t)),velocity:getVelocity(t,.1)}}function startDevicePoint(e){return e[0]}function lastDevicePoint(e){return e[e.length-1]}function getVelocity(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const s=lastDevicePoint(e);for(;r>=0&&(n=e[r],!(s.timestamp-n.timestamp>secondsToMilliseconds(t)));)r--;if(!n)return{x:0,y:0};const a=millisecondsToSeconds(s.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const l={x:(s.x-n.x)/a,y:(s.y-n.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function applyConstraints(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?mixNumber$1(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?mixNumber$1(r,e,n.max):Math.min(e,r)),e}function calcRelativeAxisConstraints(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function calcRelativeConstraints(e,{top:t,left:r,bottom:n,right:s}){return{x:calcRelativeAxisConstraints(e.x,r,s),y:calcRelativeAxisConstraints(e.y,t,n)}}function calcViewportAxisConstraints(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function calcViewportConstraints(e,t){return{x:calcViewportAxisConstraints(e.x,t.x),y:calcViewportAxisConstraints(e.y,t.y)}}function calcOrigin(e,t){let r=.5;const n=calcLength(e),s=calcLength(t);return s>n?r=progress(t.min,t.max-n,e.min):n>s&&(r=progress(e.min,e.max-s,t.min)),clamp(0,1,r)}function rebaseAxisConstraints(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const defaultElastic=.35;function resolveDragElastic(e=defaultElastic){return e===!1?e=0:e===!0&&(e=defaultElastic),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"to
261p","bottom")}}function resolveAxisElastic(e,t,r){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,r)}}function resolvePointElastic(e,t){return typeof e=="number"?e:e[t]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(t){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=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=x=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(extractEventInfo(x).point)},l=(x,w)=>{const{drag:g,dragPropagation:b,onDragStart:v}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(g),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(j=>{let R=this.getAxisMotionValue(j).get()||0;if(percent.test(R)){const{projection:T}=this.visualElement;if(T&&T.layout){const z=T.layout.layoutBox[j];z&&(R=calcLength(z)*(parseFloat(R)/100))}}this.originPoint[j]=R}),v&&frame.postRender(()=>v(x,w)),addValueToWillChange(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w;const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:v,onDrag:E}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:j}=w;if(b&&this.currentDirection===null){this.currentDirection=getCurrentDirection(j),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",w.point,j),this.updateAxis("y",w.point,j),this.visualElement.render(),E&&E(x,w)},d=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w,this.stop(x,w),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>eachAxis(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:a,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:n,contextWindow:getContextWindow(this.visualElement)})}stop(t,r){const n=t||this.latestPointerEvent,s=r||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!n)return;const{velocity:l}=s;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&frame.postRender(()=>u(n,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:s}=this.getProps();if(!n||!shouldDrag(t,s,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(l=applyConstraints(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=calcRelativeConstraints(n.layoutBox,t):this.constraints=!1,this.elastic=resolveDragElastic(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=rebaseAxisConstraints(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!isRefObject(t))return!1;const n=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=measurePageBox(n,s.root,this.visualElement.getTransformPagePoint());let l=calcViewportConstraints(s.layout.layoutBox,a);if(r){const u=r(convertBoxToBoundingBox(l));this.hasMutatedConstraints=!!u,u&&(l=convertBoundingBoxToBox(u))}return l}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},p=eachAxis(h=>{if(!shouldDrag(h,r,this.currentDirection))return;let x=d&&d[h]||{};l&&(x={min:0,max:0});const w=s?200:1e6,g=s?40:1e7,b={type:"inertia",velocity:n?t[h]:0,bounceStiffness:w,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...x};return this.startAxisValueAnimation(h,b)});return Promise.all(p).then(u)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return addValueToWillChange(this.visualElement,t),n.start(animateMotionValue(t,n,0,r,this.visualElement,!1))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(r=>{const{drag:n}=this.getProps();if(!shouldDrag(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(r);if(s&&s.layout){const{min:l,max:u}=s.layout.layoutBox[r];a.set(t[r]-mixNumber$1(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!isRefObject(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};eachAxis(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();s[l]=calcOrigin({min:d,max:d},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eachAxis(l=>{if(!shouldDrag(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:p}=this.constraints[l];u.set(mixNumber$1(d,p,s[l]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const t=this.visualElement.current,r=addPointerEvent(t,"pointerdown",d=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(d)}),n=()=>{const{dragConstraints:d}=this.getProps();isRefObject(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),frame.read(n);const l=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),u=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(eachAxis(h=>{const x=this.getAxisMotionValue(h);x&&(this.originPoint[h]+=d[h].translate,x.set(x.get()+d[h].translate))}),this.visualElement.render())}));return()=>{l(),r(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:l=defaultElastic,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:a,dragElastic:l,dragMomentum:u}}}function shouldDrag(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function getCurrentDirection(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class DragGesture extends Feature{constructor(t){super(t),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=e=>(t,r)=>{e&&frame.postRender(()=>e(t,r))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(r),onMove:n,onEnd:(a,l)=>{delete this.session,s&&frame.postRender(()=>s(a,l))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const correctBorderRadius={correct:(e,t)=>
vendor: 6,561 bytes, line 261
261{if(!t.target)return e;if(typeof e=="string")if(px.test(e))e=parseFloat(e);else return e;const r=pixelsToPercent(e,t.target.x),n=pixelsToPercent(e,t.target.y);return`${r}% ${n}%`}},correctBoxShadow={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,s=complex.parse(e);if(s.length>5)return n;const a=complex.createTransformer(e),l=typeof s[0]!="number"?1:0,u=r.x.scale*t.x,d=r.y.scale*t.y;s[0+l]/=u,s[1+l]/=d;const p=mixNumber$1(u,d,.5);return typeof s[2+l]=="number"&&(s[2+l]/=p),typeof s[3+l]=="number"&&(s[3+l]/=p),a(s)}};let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:a}=t;addScaleCorrector(defaultScaleCorrectors),a&&(r.group&&r.group.add(a),n&&n.register&&s&&n.register(a),hasTakenAnySnapshot&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:s,isPresent:a}=this.props,{projection:l}=n;return l&&(l.isPresent=a,hasTakenAnySnapshot=!0,s||t.layoutDependency!==r||r===void 0||t.isPresent!==a?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||frame.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=t;hasTakenAnySnapshot=!0,s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function MeasureLayout(e){const[t,r]=usePresence(),n=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...e,layoutGroup:n,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:t,safeToRemove:r})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function animateSingleValue(e,t,r){const n=isMotionValue(e)?e:motionValue(e);return n.start(animateMotionValue("",n,t,r)),n.animation}const compareByDepth=(e,t)=>e.depth-t.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){addUniqueItem(this.children,t),this.isDirty=!0}remove(t){removeItem(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}}function delay(e,t){const r=time.now(),n=({timestamp:s})=>{const a=s-r;a>=t&&(cancelFrame(n),e(a-t))};return frame.setup(n,!0),()=>cancelFrame(n)}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=e=>typeof e=="string"?parseFloat(e):e,isPx=e=>typeof e=="number"||px.test(e);function mixValues(e,t,r,n,s,a){s?(e.opacity=mixNumber$1(0,r.opacity??1,easeCrossfadeIn(n)),e.opacityExit=mixNumber$1(t.opacity??1,0,easeCrossfadeOut(n))):a&&(e.opacity=mixNumber$1(t.opacity??1,r.opacity??1,n));for(let l=0;l<numBorders;l++){const u=`border${borders[l]}Radius`;let d=getRadius(t,u),p=getRadius(r,u);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||isPx(d)===isPx(p)?(e[u]=Math.max(mixNumber$1(asNumber(d),asNumber(p),n),0),(percent.test(p)||percent.test(d))&&(e[u]+="%")):e[u]=p}(t.rotate||r.rotate)&&(e.rotate=mixNumber$1(t.rotate||0,r.rotate||0,n))}function getRadius(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop);function compress(e,t,r){return n=>n<e?0:n>t?1:r(progress(e,t,n))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function removePointDelta(e,t,r,n,s){return e-=t,e=scalePoint(e,1/r,n),s!==void 0&&(e=scalePoint(e,1/s,n)),e}function removeAxisDelta(e,t=0,r=1,n=.5,s,a=e,l=e){if(percent.test(t)&&(t=parseFloat(t),t=mixNumber$1(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=mixNumber$1(a.min,a.max,n);e===a&&(u-=t),e.min=removePointDelta(e.min,t,r,u,s),e.max=removePointDelta(e.max,t,r,u,s)}function removeAxisTransforms(e,t,[r,n,s],a,l){removeAxisDelta(e,t[r],t[n],t[s],t.scale,a,l)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(e,t,r,n){removeAxisTransforms(e.x,t,xKeys,r?r.x:void 0,n?n.x:void 0),removeAxisTransforms(e.y,t,yKeys,r?r.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(e){return e.translate===0&&e.scale===1}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function boxEquals(e,t){return axisEquals(e.x,t.x)&&axisEquals(e.y,t.y)}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NodeStack{constructor(){this.members=[]}add(t){addUniqueItem(this.members,t),t.scheduleRender()}remove(t){if(removeItem(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(s=>t===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&n.hide()}}
vendor: 5,440 bytes, line 261
261exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(e,t,r){let n="";const s=e.x.translate/t.x,a=e.y.translate/t.y,l=r?.z||0;if((s||a||l)&&(n=`translate3d(${s}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:p,rotate:h,rotateX:x,rotateY:w,skewX:g,skewY:b}=r;p&&(n=`perspective(${p}px) ${n}`),h&&(n+=`rotate(${h}deg) `),x&&(n+=`rotateX(${x}deg) `),w&&(n+=`rotateY(${w}deg) `),g&&(n+=`skewX(${g}deg) `),b&&(n+=`skewY(${b}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(n+=`scale(${u}, ${d})`),n||"none"}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;function resetDistortingTransform(e,t,r,n){const{latestValues:s}=t;s[e]&&(r[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=getOptimisedAppearId(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",frame,!(s||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(n)}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(l={},u=t?.()){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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new SubscriptionManager),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=isSVGElement(l)&&!isSVGSVGElement(l),this.instance=l;const{layoutId:u,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let h,x=0;const w=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{x=window.innerWidth}),e(l,()=>{const g=window.innerWidth;g!==x&&(x=g,this.root.updateBlockedByResize=!0,h&&h(),h=delay(w,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:x,hasRelativeLayoutChanged:w,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:v,onLayoutAnimationComplete:E}=p.getProps(),j=!this.targetLayout||!boxEqualsRounded(this.targetLayout,g),R=!x&&w;if(this.options.layoutRoot||this.resumeFrom||R||x&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...getValueTransition$1(b,"layout"),onPlay:v,onComplete:E};(p.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(h,R)}else x||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.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.forEac
vendor: 8,300 bytes, line 261
261h(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!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 h=0;h<this.path.length;h++){const x=this.path[h];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),l&&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 u=time.now();frameData.delta=clamp(0,1e3/60,u-frameData.timestamp),frameData.timestamp=u,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 d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=n(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!s)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!isDeltaZero(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,h=p!==this.prevTransformTemplateValue;l&&this.instance&&(u||hasTransform(this.latestValues)||h)&&(s(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),roundBox(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return createBox();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot))){const{scroll:p}=this.root;p&&(translateAxis(u.x,p.offset.x),translateAxis(u.y,p.offset.y))}return u}removeElementScroll(l){const u=createBox();if(copyBoxInto(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:h,options:x}=p;p!==this.root&&h&&x.layoutScroll&&(h.wasRoot&©BoxInto(u,l),translateAxis(u.x,h.offset.x),translateAxis(u.y,h.offset.y))}return u}applyTransform(l,u=!1){const d=createBox();copyBoxInto(d,l);for(let p=0;p<this.path.length;p++){const h=this.path[p];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&transformBox(d,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hasTransform(h.latestValues)&&transformBox(d,h.latestValues)}return hasTransform(this.latestValues)&&transformBox(d,this.latestValues),d}removeTransform(l){const u=createBox();copyBoxInto(u,l);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!hasTransform(p.latestValues))continue;hasScale(p.latestValues)&&p.updateSnapshot();const h=createBox(),x=p.measurePageBox();copyBoxInto(h,x),removeBoxTransforms(u,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,h)}return hasTransform(this.latestValues)&&removeBoxTransforms(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:x}=this.options;if(!(!this.layout||!(h||x))){if(this.resolvedRelativeTargetAt=frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!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;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,w.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):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)}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;
vendor: 11,996 bytes, line 261
261if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(d=!1),d)return;const{layout:p,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||h))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,w=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=createBox());const{target:g}=l;if(!g){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,g,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==w||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(l,u=!1){const d=this.snapshot,p=d?d.latestValues:{},h={...this.latestValues},x=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const w=createBox(),g=d?d.source:void 0,b=this.layout?this.layout.source:void 0,v=g!==b,E=this.getStack(),j=!E||E.members.length<=1,R=!!(v&&!j&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let T;this.mixTargetDelta=z=>{const L=z/1e3;mixAxisDelta(x.x,l.x,L),mixAxisDelta(x.y,l.y,L),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,w,L),T&&boxEquals(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=createBox()),copyBoxInto(T,this.relativeTarget)),v&&(this.animationValues=h,mixValues(h,p,this.latestValues,L,R,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){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],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.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 l=this.getLead();let{targetWithTransforms:u,target:d,layout:p,latestValues:h}=l;if(!(!u||!d||!p)){if(this!==l&&this.layout&&p&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||createBox();const x=calcLength(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+x;const w=calcLength(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+w}copyBoxInto(u,d),transformBox(u,h),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new NodeStack),this.sharedNodes.get(l).add(u);const p=u.options.initialPromotionConfig;u.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const p={};d.z&&resetDistortingTransform("z",l,p,this.animationValues);for(let h=0;h<transformAxes.length;h++)resetDistortingTransform(`rotate${transformAxes[h]}`,l,p,this.animationValues),resetDistortingTransform(`skew${transformAxes[h]}`,l,p,this.animationValues);l.render();for(const h in p)l.setStaticValue(h,p[h]),this.animationValues&&(this.animationValues[h]=p[h]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=resolveMotionValue(u?.pointerEvents)||"",l.transform=d?d(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=resolveMotionValue(u?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const h=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,h);d&&(x=d(h,x)),l.transform=x;const{x:w,y:g}=this.projectionDelta;l.transformOrigin=`${w.origin*100}% ${g.origin*100}% 0`,p.animationValues?l.opacity=p===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:l.opacity=p===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in scaleCorrectors){if(h[b]===void 0)continue;const{correct:v,applyTo:E,isCSSVariable:j}=scaleCorrectors[b],R=x==="none"?h[b]:v(h[b],p);if(E){const T=E.length;for(let z=0;z<T;z++)l[E[z]]=R}else j?this.options.visualElement.renderState.vars[b]=R:l[b]=R}this.options.layoutId&&(l.pointerEvents=p===this?resolveMotionValue(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?eachAxis(h=>{const x=a?t.measuredBox[h]:t.layoutBox[h],w=calcLength(x);x.min=r[h].min,x.max=x.min+w}):shouldAnimatePositionOnly(s,t.layoutBox,r)&&eachAxis(h=>{const x=a?t.measuredBox[h]:t.layoutBox[h],w=calcLength(r[h]);x.max=x.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+w)});const l=createDelta();calcBoxDelta(l,r,t.layoutBox);const u=createDelta();a?calcBoxDelta(u,e.applyTransform(n,!0),t.measuredBox):calcBoxDelta(u,r,t.layoutBox);const d=!isDeltaZero(l);let p=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:x,layout:w}=h;if(x&&w){const g=createBox();calcRelativePosition(g,t.layoutBox,x.layoutBox);const b=createBox();calcRelativePosition(b,r,w.layoutBox),boxEqualsRounded(g,b)||(p=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function propagateDirtyNodes(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,r){e.translate=mixNumber$1(t.translate,0,r),e.scale=mixNumber$1(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,r,n){e.min=mixNumber$1(t.min,r.min,n),e.max=mixNumber$1(t.max,r.max,n)}function mixBox(e,t,r,n){mixAxis(e.x,t.x,r.x,n),mixAxis(e.y,t.y,r.y,n)}function hasOpacityCrossfade(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(e){e.min=roundPoint(e.min),e.max=roundPoint(e.max)}function roundBox(e){roundAxis(e.x),roundAxis(e.y)}function shouldAnimatePositionOnly(e,t,r){return e==="position"||e==="preserve-aspect"&&!isNear(aspectRatio(t),aspectRatio(r),.2)}function checkNodeWasScrollRoot(e){return e!==e.root&&e.scroll?.wasRoot}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const e=new DocumentProjectionNode({});e.mount(window),e.setOptions({layoutScroll:!0}),rootProjectionNode.current=e}return rootProjectionNode.current},resetTransform:(e,t)=>
vendor: 8,327 bytes, line 261
261{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,a=n[s];a&&frame.postRender(()=>a(t,extractEventInfo(t)))}class HoverGesture extends Feature{mount(){const{current:t}=this.node;t&&(this.unmount=hover(t,(r,n)=>(handleHoverEvent(this.node,n,"Start"),s=>handleHoverEvent(this.node,s,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),a=n[s];a&&frame.postRender(()=>a(t,extractEventInfo(t)))}class PressGesture extends Feature{mount(){const{current:t}=this.node;t&&(this.unmount=press(t,(r,n)=>(handlePressEvent(this.node,n,"Start"),(s,{success:a})=>handlePressEvent(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const observerCallbacks=new WeakMap,observers$1=new WeakMap,fireObserverCallback=e=>{const t=observerCallbacks.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)};function initIntersectionObserver({root:e,...t}){const r=e||document;observers$1.has(r)||observers$1.set(r,{});const n=observers$1.get(r),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),n[s]}function observeIntersection(e,t,r){const n=initIntersectionObserver(t);return observerCallbacks.set(e,r),n.observe(e),()=>{observerCallbacks.delete(e),n.unobserve(e)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=t,l={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:thresholdNames[s]},u=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,a&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:h,onViewportLeave:x}=this.node.getProps(),w=p?h:x;w&&w(d)};return observeIntersection(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(t,r))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}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);function useMotionValue(e){const t=useConstant$1(()=>motionValue(e)),{isStatic:r}=reactExports.useContext(MotionConfigContext);if(r){const[,n]=reactExports.useState(e);reactExports.useEffect(()=>t.on("change",n),[])}return t}function useCombineMotionValues(e,t){const r=useMotionValue(t()),n=()=>r.set(t());return n(),useIsomorphicLayoutEffect$1(()=>{const s=()=>frame.preRender(n,!1,!0),a=e.map(l=>l.on("change",s));return()=>{a.forEach(l=>l()),cancelFrame(n)}}),r}function useComputed(e){collectMotionValues.current=[],e();const t=useCombineMotionValues(collectMotionValues.current,e);return collectMotionValues.current=void 0,t}function useTransform(e,t,r,n){if(typeof e=="function")return useComputed(e);const s=typeof t=="function"?t:transform(t,r,n);return Array.isArray(e)?useListTransform(e,s):useListTransform([e],([a])=>s(a))}function useListTransform(e,t){const r=useConstant$1(()=>[]);return useCombineMotionValues(e,()=>{r.length=0;const n=e.length;for(let s=0;s<n;s++)r[s]=e[s].get();return t(r)})}function isDOMKeyframes(e){return typeof e=="object"&&!Array.isArray(e)}function resolveSubjects(e,t,r,n){return typeof e=="string"&&isDOMKeyframes(t)?resolveElements(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function calculateRepeatDuration(e,t,r){return e*(t+1)}function calcNextTime(e,t,r,n){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):n.get(t)??e}function eraseKeyframes(e,t,r){for(let n=0;n<e.length;n++){const s=e[n];s.at>t&&s.at<r&&(removeItem(e,s),n--)}}function addKeyframes(e,t,r,n,s,a){eraseKeyframes(e,s,a);for(let l=0;l<t.length;l++)e.push({value:t[l],at:mixNumber$1(s,a,n[l]),easing:getEasingForSegment(r,l)})}function normalizeTimes(e,t){for(let r=0;r<e.length;r++)e[r]=e[r]/(t+1)}function compareByTime(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(e,{defaultTransition:t={},...r}={},n,s){const a=t.duration||.3,l=new Map,u=new Map,d={},p=new Map;let h=0,x=0,w=0;for(let g=0;g<e.length;g++){const b=e[g];if(typeof b=="string"){p.set(b,x);continue}else if(!Array.isArray(b)){p.set(b.name,calcNextTime(x,b.at,h,p));continue}let[v,E,j={}]=b;j.at!==void 0&&(x=calcNextTime(x,j.at,h,p));let R=0;const T=(z,L,V,$=0,U=0)=>{const B=keyframesAsList(z),{delay:P=0,times:H=defaultOffset(B),type:Z="keyframes",repeat:O,repeatType:S,repeatDelay:N=0,...F}=L;let{ease:k=t.ease||"easeOut",duration:W}=L;const q=typeof P=="function"?P($,U):P,A=B.length,D=isGenerator(Z)?Z:s?.[Z||"keyframes"];if(A<=2&&D){let Q=100;if(A===2&&isNumberKeyframesArray(B)){const ae=B[1]-B[0];Q=Math.abs(ae)}const te={...F};W!==void 0&&(te.duration=secondsToMilliseconds(W));const ne=createGeneratorEasing(te,Q,D);k=ne.ease,W=ne.duration}W??(W=a);const _=x+q;H.length===1&&H[0]===0&&(H[1]=1);const M=H.length-B.length;if(M>0&&fillOffset(H,M),B.length===1&&B.unshift(null),O){W=calculateRepeatDuration(W,O);const Q=[...B],te=[...H];k=Array.isArray(k)?[...k]:[k];const ne=[...k];for(let ae=0;ae<O;ae++){B.push(...Q);for(let fe=0;fe<Q.length;fe++)H.push(te[fe]+(ae+1)),k.push(fe===0?"linear":getEasingForSegment(ne,fe-1))}normalizeTimes(H,O)}const G=_+W;addKeyframes(V,B,k,H,_,G),R=Math.max(q+W,R),w=Math.max(G,w)};if(isMotionValue(v)){const z=getSubjectSequence(v,u);T(E,j,getValueSequence("default",z))}else{const z=resolveSubjects(v,E,n,d),L=z.length;for(let V=0;V<L;V++){E=E,j=j;const $=z[V],U=getSubjectSequence($,u);for(const B in E)T(E[B],getValueTransition(j,B),getValueSequence(B,U),V,L)}}h=x,x+=R}return u.forEach((g,b)=>{for(const v in g){const E=g[v];E.sort(compareByTime);const j=[],R=[],T=[];for(let L=0;L<E.length;L++){const{at:V,value:$,easing:U}=E[L];j.push($),R.push(progress(0,w,V)),T.push(U||"easeOut")}R[0]!==0&&(R.unshift(0),j.unshift(j[0]),T.unshift(defaultSegmentEasing)),R[R.length-1]!==1&&(R.push(1),j.push(null)),l.has(b)||l.set(b,{keyframes:{},transition:{}});const z=l.get(b);z.keyframes[v]=j,z.transition[v]={...t,duration:w,ease:T,times:R,...r}}}),l}function getSubjectSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}function keyframesAsList(e){return Array.isArray(e)?e:[e]}function getValueTransition(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const isNumber=e=>typeof e=="number",isNumberKeyframesArray=e=>e.every(isNumber);function isObjectKey(e,t){return e in t}class ObjectVisualElement extends VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,r){if(isObjectKey(r,t)){const n=t[r];
261if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,r){delete r.output[t]}measureInstanceViewportBox(){return createBox()}build(t,r){Object.assign(t.output,r)}renderInstance(t,{output:r}){Object.assign(t,r)}sortInstanceNodePosition(){return 0}}function createDOMVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=isSVGElement(e)&&!isSVGSVGElement(e)?new SVGVisualElement(t):new HTMLVisualElement(t);r.mount(e),visualElementStore.set(e,r)}function createObjectVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new ObjectVisualElement(t);r.mount(e),visualElementStore.set(e,r)}function isSingleValue(e,t){return isMotionValue(e)||typeof e=="number"||typeof e=="string"&&!isDOMKeyframes(t)}function animateSubject(e,t,r,n){const s=[];if(isSingleValue(e,t))s.push(animateSingleValue(e,isDOMKeyframes(t)&&t.default||t,r&&(r.default||r)));else{const a=resolveSubjects(e,t,n),l=a.length;for(let u=0;u<l;u++){const d=a[u],p=d instanceof Element?createDOMVisualElement:createObjectVisualElement;visualElementStore.has(d)||p(d);const h=visualElementStore.get(d),x={...r};"delay"in x&&typeof x.delay=="function"&&(x.delay=x.delay(u,l)),s.push(...animateTarget(h,{...t,transition:x},{}))}}return s}function animateSequence(e,t,r){const n=[];return createAnimationsFromSequence(e,t,r,{spring}).forEach(({keyframes:a,transition:l},u)=>{n.push(...animateSubject(u,a,l))}),n}function isSequence(e){return Array.isArray(e)&&e.some(Array.isArray)}function createScopedAnimate(e){function t(r,n,s){let a=[],l;if(isSequence(r))a=animateSequence(r,n,e);else{const{onComplete:d,...p}=s||{};typeof d=="function"&&(l=d),a=animateSubject(r,n,p,e)}const u=new GroupAnimationWithThen(a);return l&&u.finished.then(l),u}return t}const animate=createScopedAnimate();function BiSolidVolumeFull(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 21c3.527-1.547 5.999-4.909 5.999-9S19.527 4.547 16 3v2c2.387 1.386 3.999 4.047 3.999 7S18.387 17.614 16 19v2z"},child:[]},{tag:"path",attr:{d:"M16 7v10c1.225-1.1 2-3.229 2-5s-.775-3.9-2-5zM4 17h2.697L14 21.868V2.132L6.697 7H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2z"},child:[]}]})(e)}function BiSolidVolumeMute(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m7.727 6.313-4.02-4.02-1.414 1.414 18 18 1.414-1.414-2.02-2.02A9.578 9.578 0 0 0 21.999 12c0-4.091-2.472-7.453-5.999-9v2c2.387 1.386 3.999 4.047 3.999 7a8.13 8.13 0 0 1-1.671 4.914l-1.286-1.286C17.644 14.536 18 13.19 18 12c0-1.771-.775-3.9-2-5v7.586l-2-2V2.132L7.727 6.313zM4 17h2.697L14 21.868v-3.747L3.102 7.223A1.995 1.995 0 0 0 2 9v6c0 1.103.897 2 2 2z"},child:[]}]})(e)}const lottieAnimations=["/LandingPage/service-cards-json/a.json","/LandingPage/service-cards-json/b.json","/LandingPage/service-cards-json/c.json","/LandingPage/service-cards-json/d.json","/LandingPage/service-cards-json/e.json","/LandingPage/service-cards-json/f.json"],services=[{title:"Early App Features",subtitle:" Token Scans",description:"Scan smart contracts with AI to detect scams, honeypots, risky permissions, and hidden functions. Integrate real-time token analysis with contextual explanations and actionable alerts.",buttons:["Early Access "],link:"/app/ai-token-scan",align:"left"},{title:"Early App Features",subtitle:"Rug Shield",description:"Instantly scans tokens for rug pull risk by analyzing contract ownership, mint controls, LP status, and hidden dev privileges. Delivers a clear risk score and threat breakdown before you buy.",buttons:["Early Access"],link:"/app/rugshield",align:"right",overlap:"md:-mt-24 md:z-30"},{title:"Early App Features",subtitle:"Honeypot Detector",description:"Scan Solana, Ethereum & BSC tokens with our AI honeypot finder. Instantly check if a token is safe, blacklist/whitelist status & avoid crypto scams.",buttons:["Early Access"],link:"/app/honeypot-detector",align:"left",overlap:"md:-mt-24"},{title:"Early App Features",subtitle:"Coinguard AI",description:"Ask anything â from Is this token safe? â and get smart, real-time answers. Built for safe trading, education, and DeFi co-piloting.",buttons:["Early Access"],link:"/app/ai-chat",align:"right",overlap:"md:-mt-24 md:z-30"},{title:"Early App Features",subtitle:"Liquidity Scanner",description:"Scan Solana, Ethereum, and BSC tokens in seconds. Instantly verify token safety, check blacklist/whitelist status, and dodge crypto scams before they happen.",buttons:["Early Access"],link:"/app/liquidity-scanner",align:"left",overlap:"md:-mt-24"},{title:"Early App Features",subtitle:"Whale Tracker",description:"Monitor large wallet movements and whale activity in real-time. Track smart money, identify accumulation patterns, and get alerts for significant transactions.",buttons:["Early Access"],link:"/app/whale-tracker",align:"right",overlap:"md:-mt-24 md:z-30"}],ServiceCards=()=>{const e=reactExports.useRef([]),t=reactExports.useRef([]),[r,n]=reactExports.useState(Array(services.length).fill(!1)),s=useNavigate();return reactExports.useEffect(()=>
261(services.forEach((a,l)=>{const u=document.getElementById(`lottie-${l}`),d=document.getElementById(`lottie-mobile-${l}`);if(u&&window.lottie){const p=window.lottie.loadAnimation({container:u,renderer:"svg",loop:!0,autoplay:!1,path:lottieAnimations[l]});t.current[l]={desktop:p}}if(d&&window.lottie){const p=window.lottie.loadAnimation({container:d,renderer:"svg",loop:!0,autoplay:!1,path:lottieAnimations[l]});t.current[l]={...t.current[l],mobile:p}}}),()=>{t.current.forEach(a=>{a?.desktop?.destroy(),a?.mobile?.destroy()})}),[]),reactExports.useEffect(()=>{const a=new IntersectionObserver(l=>{const u=[...r];l.forEach(d=>{const p=parseInt(d.target.getAttribute("data-index"));d.isIntersecting?(u[p]=!0,t.current[p]?.desktop?.play(),t.current[p]?.mobile?.play()):(t.current[p]?.desktop?.stop(),t.current[p]?.mobile?.stop())}),n(u)},{threshold:.3});return e.current.forEach(l=>{l&&a.observe(l)}),()=>{e.current.forEach(l=>{l&&a.unobserve(l)})}},[r]),jsxRuntimeExports.jsxs("div",{className:"w-full px-4 py-24 overflow-x-hidden",children:[jsxRuntimeExports.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:jsxRuntimeExports.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-center mb-20 text-white",children:"Current Features"})}),jsxRuntimeExports.jsx("div",{className:"max-w-[1200px] mx-auto flex flex-col gap-y-10 relative",children:services.map((a,l)=>{const u=a.align==="right",d=a.overlap||"",p=l===0||l===1||l===3?"w-72 h-72":"w-40 h-40",h=l===0||l===1||l===3?"w-32 h-32":"w-24 h-24",x=l===0?1.7:l===1?.8:l===2?1:l===3||l===5?1.2:1.3,w=l===0?1.6:l===1?.8:l===2?.9:l===3?1.1:l===5?.9:1,g=r[l];return jsxRuntimeExports.jsxs("div",{ref:b=>e.current[l]=b,"data-index":l,className:`relative rounded-[2rem] border border-white/10 backdrop-blur-md 262 bg-white/5 group overflow-hidden transition-all duration-500 md:duration-300 ease-[cubic-bezier(0.25,1,0.5,1)] 263 w-full md:w-[60%] md:mb-8 264 ${d} 265 ${u?"md:ml-auto md:mr-4":"md:mr-auto md:ml-4"} 266 hover:border-[#CCFF00]/50 md:border-[#CCFF00]/30 md:hover:border-[#CCFF00]/60 267 transform 268 ${g?"opacity-100 blur-0 translate-x-0":`${l%2===0?"-translate-x-16":"translate-x-16"} opacity-0 blur-md`} 269 `,children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white/0 via-white/0 to-white/0 group-hover:via-white/5 group-hover:to-white/10 transition-all duration-500 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-2 h-2 border-t border-l border-[#CCFF00]/30 group-hover:border-[#CCFF00]/60 transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-2 h-2 border-t border-r border-[#CCFF00]/30 group-hover:border-[#CCFF00]/60 transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-2 h-2 border-b border-l border-[#CCFF00]/30 group-hover:border-[#CCFF00]/60 transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 border-b border-r border-[#CCFF00]/30 group-hover:border-[#CCFF00]/60 transition-all duration-300"}),jsxRuntimeExports.jsxs("div",{className:"grid md:grid-cols-5 p-8 md:p-10 gap-8 items-center relative",children:[jsxRuntimeExports.jsxs("div",{className:"md:col-span-3 text-white",children:[jsxRuntimeExports.jsxs("h2",{className:"text-lg md:text-2xl font-light text-gray-300 leading-tight flex items-center justify-between",children:[jsxRuntimeExports.jsxs("span",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"block text-white/70 text-sm md:text-lg pb-2 whitespace-nowrap overflow-hidden text-ellipsis",children:a.title}),jsxRuntimeExports.jsx("span",{className:"block text-white font-bold text-xl md:text-4xl",children:a.subtitle})]}),jsxRuntimeExports.jsx("div",{className:"md:hidden relative flex-shrink-0 ml-4",children:jsxRuntimeExports.jsx("div",{id:`lottie-mobile-${l}`,className:`relative ${h}`,style:{transform:`scale(${w})`,transformOrigin:"center center"}})})]}),jsxRuntimeExports.jsx("p",{className:"text-sm md:text-base text-white/70 mt-4",children:a.description}),jsxRuntimeExports.jsx("div",{className:"mt-6",children:jsxRuntimeExports.jsxs("button",{onClick:()=>s(a.link),className:"flex items-center justify-center px-6 py-2 text-white group-hover:text-[#CCFF00] transition-colors duration-300 border border-white/20 rounded-full group-hover:border-[#CCFF00]/50",children:[a.buttons[0],jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 transition-transform duration-300 group-hover:translate-x-1 group-hover:stroke-[#CCFF00]",children:[jsxRuntimeExports.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),jsxRuntimeExports.jsx("polyline",{points:"12 5 19 12 12 19"})]})]})})]}),jsxRuntimeExports.jsx("div",{className:"hidden md:col-span-2 md:flex justify-end",children:jsxRuntimeExports.jsx("div",{id:`lottie-${l}`,className:`relative ${p}`,style:{transform:`scale(${x})`,transformOrigin:"center center"}})})]})]},l)})})]})};function PiUsersThreeBold(e){return GenIcon({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"},child:[]}]})(e)}const FeatureCards=()=>{const e=[{title:"About Us",description:"Coinguard is an AI-powered crypto security platform designed to protect users from scams, rug pulls and hidden threats through real-time token scans, smart alerts, and in-depth portfolio insights.",icon:jsxRuntimeExports.jsx(PiUsersThreeBold,{className:"w-12 h-12"}),ctaText:"KNOW MORE",visualElement:"whitepaper",link:"/about"},{title:"Developer Docs",description:"Get everything you need to build with Coinguard â from API references and AI model access to integration guides and security tooling. Built for speed, clarity, and scale.",icon:jsxRuntimeExports.jsx(IoCodeSlashOutline,{className:"w-12 h-12"}),ctaText:"EXPLORE DOCS",visualElement:"api",link:"https://docs.coinguard.ai/"},{title:"Blog",description:"Stay informed with real-time market insights, essential trading safety tips, in-depth feature breakdowns, and the latest platform updates â all from Coinguardâs trusted security experts and dedicated research team.",icon:jsxRuntimeExports.jsx(TbFileTextSpark,{className:"w-12 h-12"}),ctaText:"READ POSTS",visualElement:"blog",link:"https://blog.coinguard.ai/"}];return jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[jsxRuntimeExports.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:jsxRuntimeExports.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-center mb-20 text-white",children:"Key Documents"})}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:e.map((t,r)=>jsxRuntimeExports.jsxs("div",{className:"relative p-8 bg-white/5 border border-white/20 transition-all duration-300 group min-h-[400px] flex flex-col overflow-hidden lg:hover:bg-white/10",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white/0 via-white/5 to-white/10 lg:via-white/0 lg:to-white/0 lg:group-hover:via-white/5 lg:group-hover:to-white/10 transition-all duration-500 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-2 h-2 border-t border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-2 h-2 border-t border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-2 h-2 border-b border-l border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 border-b border-r border-white/20 group-hover:border-[#CCFF00] transition-all duration-300"}),jsxRuntimeExports.jsx("h3",{className:"text-lg font-medium text-white mb-4 text-left",children:t.title}),jsxRuntimeExports.jsx("p",{className:"text-white/70 mb-8 text-left",children:t.description}),jsxRuntimeExports.jsx("div",{className:"my-6 flex justify-center",children:jsxRuntimeExports.jsx("div",{className:"p-4 rounded-full bg-white/10 text-white",children:React.cloneElement(t.icon,{className:"w-12 h-12"})})}),jsxRuntimeExports.jsx("div",{className:"mt-auto flex justify-center",children:t.download?jsxRuntimeExports.jsxs("a",{href:t.link,download:!0,className:"flex items-center justify-center px-6 py-2 text-white group-hover:text-[#CCFF00] transition-colors duration-300 border border-white/20 group-hover:border-[#CCFF00] rounded-full",children:[t.ctaText,jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 transition-transform duration-300 group-hover:translate-x-1 group-hover:stroke-[#CCFF00]",children:[jsxRuntimeExports.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),jsxRuntimeExports.jsx("polyline",{points:"12 5 19 12 12 19"})]})]}):jsxRuntimeExports.jsxs("a",{href:t.link,className:"flex items-center justify-center px-6 py-2 text-white group-hover:text-[#CCFF00] transition-colors duration-300 border border-white/20 group-hover:border-[#CCFF00] rounded-full",children:[t.ctaText,jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 transition-transform duration-300 group-hover:translate-x-1 group-hover:stroke-[#CCFF00]",children:[jsxRuntimeExports.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),jsxRuntimeExports.jsx("polyline",{points:"12 5 19 12 12 19"})]})]})})]},r))})]})},cn=(...e)=>e.filter(Boolean).join(" ");function TypingAnimation({children:e,className:t,duration:r=100,delay:n=0,as:s="div",startOnView:a=!1,...l}){const u=motion.create(s,{forwardMotionProps:!0}),[d,p]=reactExports.useState(""),[h,x]=reactExports.useState(!1),w=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!a){const b=setTimeout(()=>{x(!0)},n);return()=>clearTimeout(b)}const g=new IntersectionObserver(([b])=>{b.isIntersecting&&(setTimeout(()=>{x(!0)},n),g.disconnect())},{threshold:.1});return w.current&&g.observe(w.current),()=>g.disconnect()},[n,a]),reactExports.useEffect(()=>{if(!h)return;let g=0;const b=setInterval(()=>{g<e.length?(p(e.substring(0,g+1)),g++):clearInterval(b)}
269,r);return()=>{clearInterval(b)}},[e,r,h]),jsxRuntimeExports.jsx(u,{ref:w,className:cn("text-2xl md:text-3xl lg:text-4xl font-bold text-white",t),...l,children:d})}const VideoCard=()=>{const e=reactExports.useRef(null),[t,r]=reactExports.useState(!0),[n,s]=reactExports.useState(!0);reactExports.useEffect(()=>{const l=()=>{s(!document.hidden)};return document.addEventListener("visibilitychange",l),()=>{document.removeEventListener("visibilitychange",l)}},[]),reactExports.useEffect(()=>{const l=e.current;if(l)return n?(l.currentTime=0,l.muted=!0,r(!0),l.play().catch(()=>{})):l.pause(),()=>{l.pause()}},[n]);const a=()=>{const l=e.current;l&&(t?(l.muted=!1,l.play().then(()=>r(!1)).catch(()=>{l.muted=!0,r(!0)})):(l.muted=!0,r(!0)))};return jsxRuntimeExports.jsxs("div",{className:"relative w-[260px] h-[380px] sm:w-[280px] sm:h-[400px] lg:w-[320px] lg:h-[450px] mx-auto group",children:[jsxRuntimeExports.jsxs("div",{className:"relative w-full h-full bg-black/50 border border-white/30 group-hover:border-[#CCFF00]/50 transition-all duration-300 z-10",children:[jsxRuntimeExports.jsx("video",{ref:e,src:"/LandingPage/video/lily.webm",autoPlay:!0,playsInline:!0,muted:!0,loop:!0,className:"w-full h-full object-cover object-top sm:object-center md:object-contain"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-full h-24 pointer-events-none z-20",children:jsxRuntimeExports.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"block",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"videoFade",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[jsxRuntimeExports.jsx("stop",{offset:"0%",stopColor:"#000000",stopOpacity:"1"}),jsxRuntimeExports.jsx("stop",{offset:"40%",stopColor:"#000000",stopOpacity:"0.9"}),jsxRuntimeExports.jsx("stop",{offset:"60%",stopColor:"#000000",stopOpacity:"0.6"}),jsxRuntimeExports.jsx("stop",{offset:"80%",stopColor:"#000000",stopOpacity:"0.3"}),jsxRuntimeExports.jsx("stop",{offset:"100%",stopColor:"#000000",stopOpacity:"0"})]})}),jsxRuntimeExports.jsx("rect",{x:"0",y:"0",width:"100",height:"100",fill:"url(#videoFade)"})]})}),jsxRuntimeExports.jsxs("div",{className:"absolute w-14 h-14 sm:w-16 sm:h-16 md:w-18 md:h-18 pointer-events-none bottom-4 left-1/2 transform -translate-x-1/2 flex items-center justify-center z-30",children:[jsxRuntimeExports.jsx("img",{src:"/LandingPage/elements/halo.gif",alt:"Overlay GIF",className:"w-full h-full"}),jsxRuntimeExports.jsx("button",{onClick:a,className:"absolute inset-0 m-auto w-7 h-7 sm:w-8 sm:h-8 md:w-9 md:h-9 bg-white bg-opacity-75 backdrop-blur-md rounded-full flex items-center justify-center focus:outline-none pointer-events-auto transition-all duration-200 hover:bg-opacity-90 hover:scale-105","aria-label":t?"Unmute":"Mute",children:t?jsxRuntimeExports.jsx(BiSolidVolumeMute,{className:"text-black text-xs sm:text-sm md:text-base"}):jsxRuntimeExports.jsx(BiSolidVolumeFull,{className:"text-black text-xs sm:text-sm md:text-base"})})]})]}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75 z-0 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75 z-0 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75 z-0 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75 z-0 pointer-events-none"})]})};function HeroSection(){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("header",{className:"bg-black text-white py-6 px-4 sm:py-8 sm:px-6 md:py-10 md:px-8 lg:py-12 lg:px-12",children:jsxRuntimeExports.jsxs("div",{className:"mx-auto max-w-[1200px] flex flex-col items-center justify-between gap-6 md:gap-10 lg:flex-row",children:[jsxRuntimeExports.jsxs("div",{className:"relative w-full lg:w-2/3 bg-white/5 border border-transparent group transition-all duration-300 hover:border-white/20 shadow-xl p-5 md:p-6 lg:p-8 overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white/0 via-white/0 to-white/0 group-hover:via-white/5 group-hover:to-white/10 transition-all duration-500 pointer-events-none"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-2 h-2 border-t border-l border-white/20 group-hover:border-white/50 transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-2 h-2 border-t border-r border-white/20 group-hover:border-white/50 transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-2 h-2 border-b border-l border-white/20 group-hover:border-white/50 transition-all duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 border-b border-r border-white/20 group-hover:border-white/50 transition-all duration-300"}),jsxRuntimeExports.jsx("h1",{className:"text-base sm:text-lg md:text-xl lg:text-2xl font-bold mb-4 font-['DM_Sans'] leading-snug tracking-tight",children:jsxRuntimeExports.jsx(TypingAnimation,{children:"Your First Line of Defense in the Crypto World."})}),jsxRuntimeExports.jsxs("p",{className:"text-xs sm:text-sm md:text-base leading-relaxed font-['Manrope'] text-gray-300",children:[jsxRuntimeExports.jsx("span",{className:"block text-xs sm:text-sm md:text-base font-semibold mb-2 text-white",children:"Coinguard is your AI-powered shield against rug pulls, scams, and hidden threats."}),"Coinguard is an all-in-one AI platform that scans for rug pulls, honeypots, dev backdoors, bots, and presale scams. It tracks dev wallets, flags wash trading, low liquidity, and pump-and-dump risks â all with a real-time portfolio view, AI assistant, token picks, and trending insights to help you trade smarter and safer."]})]}),jsxRuntimeExports.jsx("div",{className:"w-full lg:w-1/3 flex justify-center items-center mt-6 lg:mt-0",children:jsxRuntimeExports.jsx(VideoCard,{})})]})})})}function isObject$3(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function extend$2(e={},t={}){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>
vendor: 4,695 bytes, line 269
269r.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:isObject$3(t[n])&&isObject$3(e[n])&&Object.keys(t[n]).length>0&&extend$2(e[n],t[n])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const e=typeof document<"u"?document:{};return extend$2(e,ssrDocument),e}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function getWindow(){const e=typeof window<"u"?window:{};return extend$2(e,ssrWindow),e}function classesToTokens(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function deleteProps(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function nextTick(e,t=0){return setTimeout(e,t)}function now(){return Date.now()}function getComputedStyle$1(e){const t=getWindow();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function getTranslate(e,t="x"){const r=getWindow();let n,s,a;const l=getComputedStyle$1(e);return r.WebKitCSSMatrix?(s=l.transform||l.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),a=new r.WebKitCSSMatrix(s==="none"?"":s)):(a=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=a.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?s=a.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),t==="y"&&(r.WebKitCSSMatrix?s=a.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function isObject$2(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function isNode(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function extend$1(...e){const t=Object(e[0]),r=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){const s=e[n];if(s!=null&&!isNode(s)){const a=Object.keys(Object(s)).filter(l=>r.indexOf(l)<0);for(let l=0,u=a.length;l<u;l+=1){const d=a[l],p=Object.getOwnPropertyDescriptor(s,d);p!==void 0&&p.enumerable&&(isObject$2(t[d])&&isObject$2(s[d])?s[d].__swiper__?t[d]=s[d]:extend$1(t[d],s[d]):!isObject$2(t[d])&&isObject$2(s[d])?(t[d]={},s[d].__swiper__?t[d]=s[d]:extend$1(t[d],s[d])):t[d]=s[d])}}}return t}function setCSSProperty(e,t,r){e.style.setProperty(t,r)}function animateCSSModeScroll({swiper:e,targetPosition:t,side:r}){const n=getWindow(),s=-e.translate;let a=null,l;const u=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const d=t>s?"next":"prev",p=(x,w)=>d==="next"&&x>=w||d==="prev"&&x<=w,h=()=>{l=new Date().getTime(),a===null&&(a=l);const x=Math.max(Math.min((l-a)/u,1),0),w=.5-Math.cos(x*Math.PI)/2;let g=s+w*(t-s);if(p(g,t)&&(g=t),e.wrapperEl.scrollTo({[r]:g}),p(g,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:g})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(h)};h()}function elementChildren(e,t=""){const r=getWindow(),n=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(s=>s.matches(t)):n}function elementIsChildOfSlot(e,t){const r=[t];for(;r.length>0;){const n=r.shift();if(e===n)return!0;r.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function elementIsChildOf(e,t){const r=getWindow();let n=t.contains(e);return!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=elementIsChildOfSlot(e,t))),n}function showWarning(e){try{console.warn(e);return}catch{}}
vendor: 35,480 bytes, line 269
269function createElement(e,t=[]){const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:classesToTokens(t)),r}function elementPrevAll(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function elementNextAll(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function elementStyle(e,t){return getWindow().getComputedStyle(e,null).getPropertyValue(t)}function elementIndex(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function elementParents(e,t){const r=[];let n=e.parentElement;for(;n;)r.push(n),n=n.parentElement;return r}function elementOuterSize(e,t,r){const n=getWindow();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function setInnerHTML(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}let support;function calcSupport(){const e=getWindow(),t=getDocument();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice({userAgent:e}={}){const t=getSupport(),r=getWindow(),n=r.navigator.platform,s=e||r.navigator.userAgent,a={ios:!1,android:!1},l=r.screen.width,u=r.screen.height,d=s.match(/(Android);?[\s\/]+([\d.]+)?/);let p=s.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const h=s.match(/(iPod)(.*OS\s([\d_]+))?/),x=!p&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),w=n==="Win32";let g=n==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!p&&g&&t.touch&&b.indexOf(`${l}x${u}`)>=0&&(p=s.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),g=!1),d&&!w&&(a.os="android",a.android=!0),(p||x||h)&&(a.os="ios",a.ios=!0),a}function getDevice(e={}){return deviceCached||(deviceCached=calcDevice(e)),deviceCached}let browser$2;function calcBrowser(){const e=getWindow(),t=getDevice();let r=!1;function n(){const u=e.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(n()){const u=String(e.navigator.userAgent);if(u.includes("Version/")){const[d,p]=u.split("Version/")[1].split(" ")[0].split(".").map(h=>Number(h));r=d<16||d===16&&p<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=n(),l=a||s&&t.ios;return{isSafari:r||a,needPerspectiveFix:r,need3dFix:l,isWebView:s}}function getBrowser$1(){return browser$2||(browser$2=calcBrowser()),browser$2}function Resize({swiper:e,on:t,emit:r}){const n=getWindow();let s=null,a=null;const l=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},u=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(h=>{a=n.requestAnimationFrame(()=>{const{width:x,height:w}=e;let g=x,b=w;h.forEach(({contentBoxSize:v,contentRect:E,target:j})=>{j&&j!==e.el||(g=E?E.width:(v[0]||v).inlineSize,b=E?E.height:(v[0]||v).blockSize)}),(g!==x||b!==w)&&l()})}),s.observe(e.el))},d=()=>{a&&n.cancelAnimationFrame(a),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},p=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){u();return}n.addEventListener("resize",l),n.addEventListener("orientationchange",p)}),t("destroy",()=>{d(),n.removeEventListener("resize",l),n.removeEventListener("orientationchange",p)})}function Observer({swiper:e,extendParams:t,on:r,emit:n}){const s=[],a=getWindow(),l=(p,h={})=>{const x=a.MutationObserver||a.WebkitMutationObserver,w=new x(g=>{if(e.__preventObserver__)return;if(g.length===1){n("observerUpdate",g[0]);return}const b=function(){n("observerUpdate",g[0])};a.requestAnimationFrame?a.requestAnimationFrame(b):a.setTimeout(b,0)});w.observe(p,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:e.isElement||(typeof h.childList>"u"?!0:h).childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),s.push(w)},u=()=>{if(e.params.observer){if(e.params.observeParents){const p=elementParents(e.hostEl);for(let h=0;h<p.length;h+=1)l(p[h])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},d=()=>{s.forEach(p=>{p.disconnect()}),s.splice(0,s.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",u),r("destroy",d)}var eventsEmitter={on(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const s=r?"unshift":"push";return e.split(" ").forEach(a=>{n.eventsListeners[a]||(n.eventsListeners[a]=[]),n.eventsListeners[a][s](t)}),n},once(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;function s(...a){n.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(n,a)}return s.__emitterProxy=t,n.on(e,s,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const n=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[n](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||e.split(" ").forEach(n=>{typeof t>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((s,a)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&r.eventsListeners[n].splice(a,1)})}),r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let r,n,s;return typeof e[0]=="string"||Array.isArray(e[0])?(r=e[0],n=e.slice(1,e.length),s=t):(r=e[0].events,n=e[0].data,s=e[0].context||t),n.unshift(s),(Array.isArray(r)?r:r.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(s,[l,...n])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(u=>{u.apply(s,n)})}),t}};function updateSize(){const e=this;let t,r;const n=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=n.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?r=e.params.height:r=n.clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(elementStyle(n,"padding-left")||0,10)-parseInt(elementStyle(n,"padding-right")||0,10),r=r-parseInt(elementStyle(n,"padding-top")||0,10)-parseInt(elementStyle(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function updateSlides(){const e=this;function t(P,H){return parseFloat(P.getPropertyValue(e.getDirectionLabel(H))||0)}const r=e.params,{wrapperEl:n,slidesEl:s,rtlTranslate:a,wrongRTL:l}=e,u=e.virtual&&r.virtual.enabled,d=u?e.virtual.slides.length:e.slides.length,p=elementChildren(s,`.${e.params.slideClass}, swiper-slide`),h=u?e.virtual.slides.length:p.length;let x=[];const w=[],g=[];let b=r.slidesOffsetBefore;typeof b=="function"&&(b=r.slidesOffsetBefore.call(e));let v=r.slidesOffsetAfter;typeof v=="function"&&(v=r.slidesOffsetAfter.call(e));const E=e.snapGrid.length,j=e.slidesGrid.length,R=e.size-b-v;let T=r.spaceBetween,z=-b,L=0,V=0;if(typeof R>"u")return;typeof T=="string"&&T.indexOf("%")>=0?T=parseFloat(T.replace("%",""))/100*R:typeof T=="string"&&(T=parseFloat(T)),e.virtualSize=-T-b-v,p.forEach(P=>{a?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(setCSSProperty(n,"--swiper-centered-offset-before",""),setCSSProperty(n,"--swiper-centered-offset-after",""));const $=r.grid&&r.grid.rows>1&&e.grid;$?e.grid.initSlides(p):e.grid&&e.grid.unsetSlides();let U;const B=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(P=>typeof r.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<h;P+=1){U=0;const H=p[P];if(!(H&&($&&e.grid.updateSlide(P,H,p),elementStyle(H,"display")==="none"))){if(u&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&(U=r.virtual.slidesPerViewAutoSlideSize),U&&H&&(r.roundLengths&&(U=Math.floor(U)),H.style[e.getDirectionLabel("width")]=`${U}px`);else if(r.slidesPerView==="auto"){B&&(H.style[e.getDirectionLabel("width")]="");const Z=getComputedStyle(H),O=H.style.transform,S=H.style.webkitTransform;if(O&&(H.style.transform="none"),S&&(H.style.webkitTransform="none"),r.roundLengths)U=e.isHorizontal()?elementOuterSize(H,"width"):elementOuterSize(H,"height");else{const N=t(Z,"width"),F=t(Z,"padding-left"),k=t(Z,"padding-right"),W=t(Z,"margin-left"),q=t(Z,"margin-right"),A=Z.getPropertyValue("box-sizing");if(A&&A==="border-box")U=N+W+q;else{const{clientWidth:D,offsetWidth:_}=H;U=N+F+k+W+q+(_-D)}}O&&(H.style.transform=O),S&&(H.style.webkitTransform=S),r.roundLengths&&(U=Math.floor(U))}else U=(R-(r.slidesPerView-1)*T)/r.slidesPerView,r.roundLengths&&(U=Math.floor(U)),H&&(H.style[e.getDirectionLabel("width")]=`${U}px`);H&&(H.swiperSlideSize=U),g.push(U),r.centeredSlides?(z=z+U/2+L/2+T,L===0&&P!==0&&(z=z-R/2-T),P===0&&(z=z-R/2-T),Math.abs(z)<1/1e3&&(z=0),r.roundLengths&&(z=Math.floor(z)),V%r.slidesPerGroup===0&&x.push(z),w.push(z)):(r.roundLengths&&(z=Math.floor(z)),(V-Math.min(e.params.slidesPerGroupSkip,V))%e.params.slidesPerGroup===0&&x.push(z),w.push(z),z=z+U+T),e.virtualSize+=U+T,L=U,V+=1}}if(e.virtualSize=Math.max(e.virtualSize,R)+v,a&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(n.style.width=`${e.virtualSize+T}px`),r.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+T}px`),$&&e.grid.updateWrapperSize(U,x),!r.centeredSlides){const P=[];for(let H=0;H<x.length;H+=1){let Z=x[H];r.roundLengths&&(Z=Math.floor(Z)),x[H]<=e.virtualSize-R&&P.push(Z)}x=P,Math.floor(e.virtualSize-R)-Math.floor(x[x.length-1])>1&&x.push(e.virtualSize-R)}if(u&&r.loop){const P=g[0]+T;if(r.slidesPerGroup>1){const H=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),Z=P*r.slidesPerGroup;for(let O=0;O<H;O+=1)x.push(x[x.length-1]+Z)}for(let H=0;H<e.virtual.slidesBefore+e.virtual.slidesAfter;H+=1)r.slidesPerGroup===1&&x.push(x[x.length-1]+P),w.push(w[w.length-1]+P),e.virtualSize+=P}if(x.length===0&&(x=[0]),T!==0){const P=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");p.filter((H,Z)=>!r.cssMode||r.loop?!0:Z!==p.length-1).forEach(H=>{H.style[P]=`${T}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let P=0;g.forEach(Z=>{P+=Z+(T||0)}),P-=T;const H=P>R?P-R:0;x=x.map(Z=>Z<=0?-b:Z>H?H+v:Z)}if(r.centerInsufficientSlides){let P=0;g.forEach(Z=>{P+=Z+(T||0)}),P-=T;const H=(b||0)+(v||0);if(P+H<R){const Z=(R-P-H)/2;x.forEach((O,S)=>{x[S]=O-Z}),w.forEach((O,S)=>{w[S]=O+Z})}}if(Object.assign(e,{slides:p,snapGrid:x,slidesGrid:w,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){setCSSProperty(n,"--swiper-centered-offset-before",`${-x[0]}px`),setCSSProperty(n,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const P=-e.snapGrid[0],H=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(Z=>Z+P),e.slidesGrid=e.slidesGrid.map(Z=>Z+H)}if(h!==d&&e.emit("slidesLengthChange"),x.length!==E&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),w.length!==j&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const P=`${r.containerModifierClass}backface-hidden`,H=e.el.classList.contains(P);h<=r.maxBackfaceHiddenSlides?H||e.el.classList.add(P):H&&e.el.classList.remove(P)}}function updateAutoHeight(e){const t=this,r=[],n=t.virtual&&t.params.virtual.enabled;let s=0,a;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=u=>n?t.slides[t.getSlideIndexByData(u)]:t.slides[u];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(u=>{r.push(u)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const u=t.activeIndex+a;if(u>t.slides.length&&!n)break;r.push(l(u))}else r.push(l(t.activeIndex));for(a=0;a<r.length;a+=1)if(typeof r[a]<"u"){const u=r[a].offsetHeight;s=u>s?u:s}(s||s===0)&&(t.wrapperEl.style.height=`${s}px`)}function updateSlidesOffset(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-r-e.cssOverflowAdjustment()}const toggleSlideClasses$1=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function updateSlidesProgress(e=this&&this.translate||0){const t=this,r=t.params,{slides:n,rtlTranslate:s,snapGrid:a}=t;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;s&&(l=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let u=r.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u));for(let d=0;d<n.length;d+=1){const p=n[d];let h=p.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(h-=n[0].swiperSlideOffset);const x=(l+(r.centeredSlides?t.minTranslate():0)-h)/(p.swiperSlideSize+u),w=(l-a[0]+(r.centeredSlides?t.minTranslate():0)-h)/(p.swiperSlideSize+u),g=-(l-h),b=g+t.slidesSizesGrid[d],v=g>=0&&g<=t.size-t.slidesSizesGrid[d],E=g>=0&&g<t.size-1||b>1&&b<=t.size||g<=0&&b>=t.size;E&&(t.visibleSlides.push(p),t.visibleSlidesIndexes.push(d)),toggleSlideClasses$1(p,E,r.slideVisibleClass),toggleSlideClasses$1(p,v,r.slideFullyVisibleClass),p.progress=s?-x:x,p.originalProgress=s?-w:w}}function updateProgress(e){const t=this;if(typeof e>"u"){const h=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*h||0}const r=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:a,isEnd:l,progressLoop:u}=t;const d=a,p=l;if(n===0)s=0,a=!0,l=!0;else{s=(e-t.minTranslate())/n;const h=Math.abs(e-t.minTranslate())<1,x=Math.abs(e-t.maxTranslate())<1;a=h||s<=0,l=x||s>=1,h&&(s=0),x&&(s=1)}if(r.loop){const h=t.getSlideIndexByData(0),x=t.getSlideIndexByData(t.slides.length-1),w=t.slidesGrid[h],g=t.slidesGrid[x],b=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=w?u=(v-w)/b:u=(v+b-g)/b,u>1&&(u-=1)}Object.assign(t,{progress:s,progressLoop:u,isBeginning:a,isEnd:l}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),a&&!d&&t.emit("reachBeginning toEdge"),l&&!p&&t.emit("reachEnd toEdge"),(d&&!a||p&&!l)&&t.emit("fromEdge"),t.emit("progress",s)}const toggleSlideClasses=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function updateSlidesClasses(){const e=this,{slides:t,params:r,slidesEl:n,activeIndex:s}=e,a=e.virtual&&r.virtual.enabled,l=e.grid&&r.grid&&r.grid.rows>1,u=x=>elementChildren(n,`.${r.slideClass}${x}, swiper-slide${x}`)[0];let d,p,h;if(a)if(r.loop){let x=s-e.virtual.slidesBefore;x<0&&(x=e.virtual.slides.length+x),x>=e.virtual.slides.length&&(x-=e.virtual.slides.length),d=u(`[data-swiper-slide-index="${x}"]`)}else d=u(`[data-swiper-slide-index="${s}"]`);else l?(d=t.find(x=>x.column===s),h=t.find(x=>x.column===s+1),p=t.find(x=>x.column===s-1)):d=t[s];d&&(l||(h=elementNextAll(d,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!h&&(h=t[0]),p=elementPrevAll(d,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!p===0&&(p=t[t.length-1]))),t.forEach(x=>{toggleSlideClasses(x,x===d,r.slideActiveClass),toggleSlideClasses(x,x===h,r.slideNextClass),toggleSlideClasses(x,x===p,r.slidePrevClass)}),e.emitSlidesClasses()}const processLazyPreloader=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,n=t.closest(r());if(n){let s=n.querySelector(`.${e.params.lazyPreloaderClass}`);!s&&e.isElement&&(n.shadowRoot?s=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(s=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},unlazy=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},preload=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const n=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=s,u=[l-t];u.push(...Array.from({length:t}).map((d,p)=>l+n+p)),e.slides.forEach((d,p)=>{u.includes(d.column)&&unlazy(e,p)});return}const a=s+n-1;if(e.params.rewind||e.params.loop)for(let l=s-t;l<=a+t;l+=1){const u=(l%r+r)%r;(u<s||u>a)&&unlazy(e,u)}else for(let l=Math.max(s-t,0);l<=Math.min(a+t,r-1);l+=1)l!==s&&(l>a||l<s)&&unlazy(e,l)};function getActiveIndexByTranslate(e){const{slidesGrid:t,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;let s;for(let a=0;a<t.length;a+=1)typeof t[a+1]<"u"?n>=t[a]&&n<t[a+1]-(t[a+1]-t[a])/2?s=a:n>=t[a]&&n<t[a+1]&&(s=a+1):n>=t[a]&&(s=a);return r.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function updateActiveIndex(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:s,activeIndex:a,realIndex:l,snapIndex:u}=t;let d=e,p;const h=g=>{let b=g-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof d>"u"&&(d=getActiveIndexByTranslate(t)),n.indexOf(r)>=0)p=n.indexOf(r);else{const g=Math.min(s.slidesPerGroupSkip,d);p=g+Math.floor((d-g)/s.slidesPerGroup)}if(p>=n.length&&(p=n.length-1),d===a&&!t.params.loop){p!==u&&(t.snapIndex=p,t.emit("snapIndexChange"));return}if(d===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=h(d);return}const x=t.grid&&s.grid&&s.grid.rows>1;let w;if(t.virtual&&s.virtual.enabled&&s.loop)w=h(d);else if(x){const g=t.slides.find(v=>v.column===d);let b=parseInt(g.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(t.slides.indexOf(g),0)),w=Math.floor(b/s.grid.rows)}else if(t.slides[d]){const g=t.slides[d].getAttribute("data-swiper-slide-index");g?w=parseInt(g,10):w=d}else w=d;Object.assign(t,{previousSnapIndex:u,snapIndex:p,previousRealIndex:l,realIndex:w,previousIndex:a,activeIndex:d}),t.initialized&&preload(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(l!==w&&t.emit("realIndexChange"),t.emit("slideChange"))}function updateClickedSlide(e,t){const r=this,n=r.params;let s=e.closest(`.${n.slideClass}, swiper-slide`);!s&&r.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${n.slideClass}, swiper-slide`)&&(s=u)});let a=!1,l;if(s){for(let u=0;u<r.slides.length;u+=1)if(r.slides[u]===s){a=!0,l=u;break}}if(s&&a)r.clickedSlide=s,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=l;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}n.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:n,translate:s,wrapperEl:a}=t;if(r.virtualTranslate)return n?-s:s;if(r.cssMode)return s;let l=getTranslate(a,e);return l+=t.cssOverflowAdjustment(),n&&(l=-l),l||0}function setTranslate(e,t){const r=this,{rtlTranslate:n,params:s,wrapperEl:a,progress:l}=r;let u=0,d=0;const p=0;r.isHorizontal()?u=n?-e:e:d=e,s.roundLengths&&(u=Math.floor(u),d=Math.floor(d)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?u:d,s.cssMode?a[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-u:-d:s.virtualTranslate||(r.isHorizontal()?u-=r.cssOverflowAdjustment():d-=r.cssOverflowAdjustment(),a.style.transform=`translate3d(${u}px, ${d}px, ${p}px)`);let h;const x=r.maxTranslate()-r.minTranslate();x===0?h=0:h=(e-r.minTranslate())/x,h!==l&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(e=0,t=this.params.speed,r=!0,n=!0,s){const a=this,{params:l,wrapperEl:u}=a;if(a.animating&&l.preventInteractionOnTransition)return!1;const d=a.minTranslate(),p=a.maxTranslate();let h;if(n&&e>d?h=d:n&&e<p?h=p:h=e,a.updateProgress(h),l.cssMode){const x=a.isHorizontal();if(t===0)u[x?"scrollLeft":"scrollTop"]=-h;else{if(!a.support.smoothScroll)return animateCSSModeScroll({swiper:a,targetPosition:-h,side:x?"left":"top"}),!0;u.scrollTo({[x?"left":"top"]:-h,behavior:"smooth"})}return!0}return t===0?(a.setTransition(0),a.setTranslate(h),r&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(h),r&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(w){!a||a.destroyed||w.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,r&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=e===0?"0ms":""),r.emit("setTransition",e,t)}function transitionEmit({swiper:e,runCallbacks:t,direction:r,step:n}){const{activeIndex:s,previousIndex:a}=e;let l=r;l||(s>a?l="next":s<a?l="prev":l="reset"),e.emit(`transition${n}`),t&&l==="reset"?e.emit(`slideResetTransition${n}`):t&&s!==a&&(e.emit(`slideChangeTransition${n}`),l==="next"?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`))}function transitionStart(e=!0,t){const r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),transitionEmit({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function transitionEnd(e=!0,t){const r=this,{params:n}=r;r.animating=!1,!n.cssMode&&(r.setTransition(0),transitionEmit({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(e=0,t,r=!0,n,s){typeof e=="string"&&(e=parseInt(e,10));const a=this;let l=e;l<0&&(l=0);const{params:u,snapGrid:d,slidesGrid:p,previousIndex:h,activeIndex:x,rtlTranslate:w,wrapperEl:g,enabled:b}=a;if(!b&&!n&&!s||a.destroyed||a.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=a.params.speed);const v=Math.min(a.params.slidesPerGroupSkip,l);let E=v+Math.floor((l-v)/a.params.slidesPerGroup);E>=d.length&&(E=d.length-1);const j=-d[E];if(u.normalizeSlideIndex)for(let $=0;$<p.length;$+=1){const U=-Math.floor(j*100),B=Math.floor(p[$]*100),P=Math.floor(p[$+1]*100);typeof p[$+1]<"u"?U>=B&&U<P-(P-B)/2?l=$:U>=B&&U<P&&(l=$+1):U>=B&&(l=$)}if(a.initialized&&l!==x&&(!a.allowSlideNext&&(w?j>a.translate&&j>a.minTranslate():j<a.translate&&j<a.minTranslate())||!a.allowSlidePrev&&j>a.translate&&j>a.maxTranslate()&&(x||0)!==l))return!1;l!==(h||0)&&r&&a.emit("beforeSlideChangeStart"),a.updateProgress(j);let R;l>x?R="next":l<x?R="prev":R="reset";const T=a.virtual&&a.params.virtual.enabled;if(!(T&&s)&&(w&&-j===a.translate||!w&&j===a.translate))return a.updateActiveIndex(l),u.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),u.effect!=="slide"&&a.setTranslate(j),R!=="reset"&&(a.transitionStart(r,R),a.transitionEnd(r,R)),!1;if(u.cssMode){const $=a.isHorizontal(),U=w?j:-j;if(t===0)T&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),T&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{g[$?"scrollLeft":"scrollTop"]=U})):g[$?"scrollLeft":"scrollTop"]=U,T&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return animateCSSModeScroll({swiper:a,targetPosition:U,side:$?"left":"top"}),!0;g.scrollTo({[$?"left":"top"]:U,behavior:"smooth"})}return!0}const V=getBrowser$1().isSafari;return T&&!s&&V&&a.isElement&&a.virtual.update(!1,!1,l),a.setTransition(t),a.setTranslate(j),a.updateActiveIndex(l),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,n),a.transitionStart(r,R),t===0?a.transitionEnd(r,R):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(U){!a||a.destroyed||U.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,R))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(e=0,t,r=!0,n){typeof e=="string"&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);const a=s.grid&&s.params.grid&&s.params.grid.rows>1;let l=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)l=l+s.virtual.slidesBefore;else{let u;if(a){const v=l*s.params.grid.rows;u=s.slides.find(E=>E.getAttribute("data-swiper-slide-index")*1===v).column}else u=s.getSlideIndexByData(l);const d=a?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:p,slidesOffsetBefore:h,slidesOffsetAfter:x}=s.params,w=p||!!h||!!x;let g=s.params.slidesPerView;g==="auto"?g=s.slidesPerViewDynamic():(g=Math.ceil(parseFloat(s.params.slidesPerView,10)),w&&g%2===0&&(g=g+1));let b=d-u<g;if(w&&(b=b||u<Math.ceil(g/2)),n&&w&&s.params.slidesPerView!=="auto"&&!a&&(b=!1),b){const v=w?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:v,slideTo:!0,activeSlideIndex:v==="next"?u+1:u-d+1,slideRealIndex:v==="next"?s.realIndex:void 0})}if(a){const v=l*s.params.grid.rows;l=s.slides.find(E=>E.getAttribute("data-swiper-slide-index")*1===v).column}else l=s.getSlideIndexByData(l)}return requestAnimationFrame(()=>{s.slideTo(l,t,r,n)}),s}function slideNext(e,t=!0,r){const n=this,{enabled:s,params:a,animating:l}=n;if(!s||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);let u=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(u=Math.max(n.slidesPerViewDynamic("current",!0),1));const d=n.activeIndex<a.slidesPerGroupSkip?1:u,p=n.virtual&&a.virtual.enabled;if(a.loop){if(l&&!p&&a.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+d,e,t,r)}),!0}return a.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+d,e,t,r)}function slidePrev(e,t=!0,r){const n=this,{params:s,snapGrid:a,slidesGrid:l,rtlTranslate:u,enabled:d,animating:p}=n;if(!d||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);const h=n.virtual&&s.virtual.enabled;if(s.loop){if(p&&!h&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const x=u?n.translate:-n.translate;function w(R){return R<0?-Math.floor(Math.abs(R)):Math.floor(R)}const g=w(x),b=a.map(R=>w(R)),v=s.freeMode&&s.freeMode.enabled;let E=a[b.indexOf(g)-1];if(typeof E>"u"&&(s.cssMode||v)){let R;a.forEach((T,z)=>{g>=T&&(R=z)}),typeof R<"u"&&(E=v?a[R]:a[R>0?R-1:R])}let j=0;if(typeof E<"u"&&(j=l.indexOf(E),j<0&&(j=n.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(j=j-n.slidesPerViewDynamic("previous",!0)+1,j=Math.max(j,0))),s.rewind&&n.isBeginning){const R=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(R,e,t,r)}else if(s.loop&&n.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(j,e,t,r)}),!0;return n.slideTo(j,e,t,r)}function slideReset(e,t=!0,r){const n=this;if(!n.destroyed)return typeof e>"u"&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,r)}function slideToClosest(e,t=!0,r,n=.5){const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);let a=s.activeIndex;const l=Math.min(s.params.slidesPerGroupSkip,a),u=l+Math.floor((a-l)/s.params.slidesPerGroup),d=s.rtlTranslate?s.translate:-s.translate;if(d>=s.snapGrid[u]){const p=s.snapGrid[u],h=s.snapGrid[u+1];d-p>(h-p)*n&&(a+=s.params.slidesPerGroup)}else{const p=s.snapGrid[u-1],h=s.snapGrid[u];d-p<=(h-p)*n&&(a-=s.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,s.slidesGrid.length-1),s.slideTo(a,e,t,r)}function slideToClickedSlide(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:r}=e,n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.getSlideIndexWhenGrid(e.clickedIndex),a;const l=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):s>(u?(e.slides.length-n)/2-(e.params.grid.rows-1):e.slides.length-n)?(e.loopFix(),s=e.getSlideIndex(elementChildren(r,`${l}[data-swiper-slide-index="${a}"]`)[0]),nextTick(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(e,t){const r=this,{params:n,slidesEl:s}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;const a=()=>{elementChildren(s,`.${n.slideClass}, swiper-slide`).forEach((b,v)=>{b.setAttribute("data-swiper-slide-index",v)})},l=()=>{const g=elementChildren(s,`.${n.slideBlankClass}`);g.forEach(b=>{b.remove()}),g.length>0&&(r.recalcSlides(),r.updateSlides())},u=r.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||u)&&l();const d=n.slidesPerGroup*(u?n.grid.rows:1),p=r.slides.length%d!==0,h=u&&r.slides.length%n.grid.rows!==0,x=g=>{for(let b=0;b<g;b+=1){const v=r.isElement?createElement("swiper-slide",[n.slideBlankClass]):createElement("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(v)}};if(p){if(n.loopAddBlankSlides){const g=d-r.slides.length%d;x(g),r.recalcSlides(),r.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(h){if(n.loopAddBlankSlides){const g=n.grid.rows-r.slides.length%n.grid.rows;x(g),r.recalcSlides(),r.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();const w=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:w?void 0:"next",initial:t})}function loopFix({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:n,activeSlideIndex:s,initial:a,byController:l,byMousewheel:u}={}){const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:p,allowSlidePrev:h,allowSlideNext:x,slidesEl:w,params:g}=d,{centeredSlides:b,slidesOffsetBefore:v,slidesOffsetAfter:E,initialSlide:j}=g,R=b||!!v||!!E;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&g.virtual.enabled){t&&(!R&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):R&&d.snapIndex<g.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=h,d.allowSlideNext=x,d.emit("loopFix");return}let T=g.slidesPerView;T==="auto"?T=d.slidesPerViewDynamic():(T=Math.ceil(parseFloat(g.slidesPerView,10)),R&&T%2===0&&(T=T+1));const z=g.slidesPerGroupAuto?T:g.slidesPerGroup;let L=R?Math.max(z,Math.ceil(T/2)):z;L%z!==0&&(L+=z-L%z),L+=g.loopAdditionalSlides,d.loopedSlides=L;const V=d.grid&&g.grid&&g.grid.rows>1;p.length<T+L||d.params.effect==="cards"&&p.length<T+L*2?showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):V&&g.grid.fill==="row"&&showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const $=[],U=[],B=V?Math.ceil(p.length/g.grid.rows):p.length,P=a&&B-j<T&&!R;let H=P?j:d.activeIndex;typeof s>"u"?s=d.getSlideIndex(p.find(W=>W.classList.contains(g.slideActiveClass))):H=s;const Z=r==="next"||!r,O=r==="prev"||!r;let S=0,N=0;const k=(V?p[s].column:s)+(R&&typeof n>"u"?-T/2+.5:0);if(k<L){S=Math.max(L-k,z);for(let W=0;W<L-k;W+=1){const q=W-Math.floor(W/B)*B;if(V){const A=B-q-1;for(let D=p.length-1;D>=0;D-=1)p[D].column===A&&$.push(D)}else $.push(B-q-1)}}else if(k+T>B-L){N=Math.max(k-(B-L*2),z),P&&(N=Math.max(N,T-B+j+1));for(let W=0;W<N;W+=1){const q=W-Math.floor(W/B)*B;V?p.forEach((A,D)=>{A.column===q&&U.push(D)}):U.push(q)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),d.params.effect==="cards"&&p.length<T+L*2&&(U.includes(s)&&U.splice(U.indexOf(s),1),$.includes(s)&&$.splice($.indexOf(s),1)),O&&$.forEach(W=>{p[W].swiperLoopMoveDOM=!0,w.prepend(p[W]),p[W].swiperLoopMoveDOM=!1}),Z&&U.forEach(W=>{p[W].swiperLoopMoveDOM=!0,w.append(p[W]),p[W].swiperLoopMoveDOM=!1}),d.recalcSlides(),g.slidesPerView==="auto"?d.updateSlides():V&&($.length>0&&O||U.length>0&&Z)&&d.slides.forEach((W,q)=>{d.grid.updateSlide(q,W,d.slides)}),g.watchSlidesProgress&&d.updateSlidesOffset(),t){if($.length>0&&O){if(typeof e>"u"){const W=d.slidesGrid[H],A=d.slidesGrid[H+S]-W;u?d.setTranslate(d.translate-A):(d.slideTo(H+Math.ceil(S),0,!1,!0),n&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-A,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-A))}else if(n){const W=V?$.length/g.grid.rows:$.length;d.slideTo(d.activeIndex+W,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(U.length>0&&Z)if(typeof e>"u"){const W=d.slidesGrid[H],A=d.slidesGrid[H-N]-W;u?d.setTranslate(d.translate-A):(d.slideTo(H-N,0,!1,!0),n&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-A,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-A))}else{const W=V?U.length/g.grid.rows:U.length;d.slideTo(d.activeIndex-W,0,!1,!0)}}if(d.allowSlidePrev=h,d.allowSlideNext=x,d.controller&&d.controller.control&&!l){const W={slideRealIndex:e,direction:r,setTranslate:n,activeSlideIndex:s,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(q=>{!q.destroyed&&q.params.loop&&q.loopFix({...W,slideTo:q.params.slidesPerView===g.slidesPerView?t:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...W,slideTo:d.controller.control.params.slidesPerView===g.slidesPerView?t:!1})}d.emit("loopFix")}function loopDestroy(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];
vendor: 5,324 bytes, line 269
269e.slides.forEach(s=>{const a=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;n[a]=s}),e.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),n.forEach(s=>{r.append(s)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function unsetGrabCursor(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(e,t=this){function r(n){if(!n||n===getDocument()||n===getWindow())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(e);return!s&&!n.getRootNode?null:s||r(n.getRootNode().host)}return r(t)}function preventEdgeSwipe(e,t,r){const n=getWindow(),{params:s}=e,a=s.edgeSwipeDetection,l=s.edgeSwipeThreshold;return a&&(r<=l||r>=n.innerWidth-l)?a==="prevent"?(t.preventDefault(),!0):!1:!0}function onTouchStart(e){const t=this,r=getDocument();let n=e;n.originalEvent&&(n=n.originalEvent);const s=t.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){preventEdgeSwipe(t,n,n.targetTouches[0].pageX);return}const{params:a,touches:l,enabled:u}=t;if(!u||!a.simulateTouch&&n.pointerType==="mouse"||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let d=n.target;if(a.touchEventsTarget==="wrapper"&&!elementIsChildOf(d,t.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const p=!!a.noSwipingClass&&a.noSwipingClass!=="",h=n.composedPath?n.composedPath():n.path;p&&n.target&&n.target.shadowRoot&&h&&(d=h[0]);const x=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,w=!!(n.target&&n.target.shadowRoot);if(a.noSwiping&&(w?closestElement(x,d):d.closest(x))){t.allowClick=!0;return}if(a.swipeHandler&&!d.closest(a.swipeHandler))return;l.currentX=n.pageX,l.currentY=n.pageY;const g=l.currentX,b=l.currentY;if(!preventEdgeSwipe(t,n,g))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=g,l.startY=b,s.touchStartTime=now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(s.allowThresholdMove=!1);let v=!0;d.matches(s.focusableElements)&&(v=!1,d.nodeName==="SELECT"&&(s.isTouched=!1)),r.activeElement&&r.activeElement.matches(s.focusableElements)&&r.activeElement!==d&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!d.matches(s.focusableElements))&&r.activeElement.blur();const E=v&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||E)&&!d.isContentEditable&&n.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function onTouchMove(e){const t=getDocument(),r=this,n=r.touchEventsData,{params:s,touches:a,rtlTranslate:l,enabled:u}=r;if(!u||!s.simulateTouch&&e.pointerType==="mouse")return;let d=e;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(n.touchId!==null||d.pointerId!==n.pointerId))return;let p;if(d.type==="touchmove"){if(p=[...d.changedTouches].find(L=>L.identifier===n.touchId),!p||p.identifier!==n.touchId)return}else p=d;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",d);return}const h=p.pageX,x=p.pageY;if(d.preventedByNestedSwiper){a.startX=h,a.startY=x;return}if(!r.allowTouchMove){d.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(a,{startX:h,startY:x,currentX:h,currentY:x}),n.touchStartTime=now());return}if(s.touchReleaseOnEdges&&!s.loop)if(r.isVertical()){if(x<a.startY&&r.translate<=r.maxTranslate()||x>a.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(l&&(h>a.startX&&-r.translate<=r.maxTranslate()||h<a.startX&&-r.translate>=r.minTranslate()))return;if(!l&&(h<a.startX&&r.translate<=r.maxTranslate()||h>a.startX&&r.translate>=r.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==d.target&&d.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&d.target===t.activeElement&&d.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",d),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=h,a.currentY=x;const w=a.currentX-a.startX,g=a.currentY-a.startY;if(r.params.threshold&&Math.sqrt(w**2+g**2)<r.params.threshold)return;if(typeof n.isScrolling>"u"){let L;r.isHorizontal()&&a.currentY===a.startY||r.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:w*w+g*g>=25&&(L=Math.atan2(Math.abs(g),Math.abs(w))*180/Math.PI,n.isScrolling=r.isH
vendor: 4,119 bytes, line 269
269orizontal()?L>s.touchAngle:90-L>s.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",d),typeof n.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(n.startMoving=!0),n.isScrolling||d.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation();let b=r.isHorizontal()?w:g,v=r.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;s.oneWayMovement&&(b=Math.abs(b)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),a.diff=b,b*=s.touchRatio,l&&(b=-b,v=-v);const E=r.touchesDirection;r.swipeDirection=b>0?"prev":"next",r.touchesDirection=v>0?"prev":"next";const j=r.params.loop&&!s.cssMode,R=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(j&&R&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const L=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(L)}n.allowMomentumBounce=!1,s.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",d)}if(new Date().getTime(),s._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&E!==r.touchesDirection&&j&&R&&Math.abs(b)>=1){Object.assign(a,{startX:h,startY:x,currentX:h,currentY:x,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",d),n.isMoved=!0,n.currentTranslate=b+n.startTranslate;let T=!0,z=s.resistanceRatio;if(s.touchReleaseOnEdges&&(z=0),b>0?(j&&R&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(s.slidesPerView!=="auto"&&r.slides.length-s.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(T=!1,s.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+b)**z))):b<0&&(j&&R&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(s.slidesPerView!=="auto"&&r.slides.length-s.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(s.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<r.maxTranslate()&&(T=!1,s.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-b)**z))),T&&(d.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),s.threshold>0)if(Math.abs(b)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,a.diff=r.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&r.freeMode||s.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function onTouchEnd(e){const t=this,r=t.touchEventsData;let n=e;n.originalEvent&&(n=n.originalEvent);let s;if(n.type==="touchend"||n.type==="touchcancel"){if(s=[...n.changedTouches].find(L=>L.identifier===r.touchId),!s||s.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.t
vendor: 5,332 bytes, line 269
269ype)&&!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:l,touches:u,rtlTranslate:d,slidesGrid:p,enabled:h}=t;if(!h||!l.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&l.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}l.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const x=now(),w=x-r.touchStartTime;if(t.allowClick){const L=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(L&&L[0]||n.target,L),t.emit("tap click",n),w<300&&x-r.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(r.lastClickTime=now(),nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||u.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let g;if(l.followFinger?g=d?t.translate:-t.translate:g=-r.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:g});return}const b=g>=-t.maxTranslate()&&!t.params.loop;let v=0,E=t.slidesSizesGrid[0];for(let L=0;L<p.length;L+=L<l.slidesPerGroupSkip?1:l.slidesPerGroup){const V=L<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof p[L+V]<"u"?(b||g>=p[L]&&g<p[L+V])&&(v=L,E=p[L+V]-p[L]):(b||g>=p[L])&&(v=L,E=p[p.length-1]-p[p.length-2])}let j=null,R=null;l.rewind&&(t.isBeginning?R=l.virtual&&l.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(j=0));const T=(g-p[v])/E,z=v<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(w>l.longSwipesMs){if(!l.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(T>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?j:v+z):t.slideTo(v)),t.swipeDirection==="prev"&&(T>1-l.longSwipesRatio?t.slideTo(v+z):R!==null&&T<0&&Math.abs(T)>l.longSwipesRatio?t.slideTo(R):t.slideTo(v))}else{if(!l.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(v+z):t.slideTo(v):(t.swipeDirection==="next"&&t.slideTo(j!==null?j:v+z),t.swipeDirection==="prev"&&t.slideTo(R!==null?R:v))}}function onResize(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:a}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const u=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function onClick(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function onScroll(){const e=this,{wrapperEl:t,rtlTranslate:r,enabled:n}=e;if(!n)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const a=e.maxTranslate()-e.minTranslate();a===0?s=0:s=(e.translate-e.minTranslate())/a,s!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function onLoad(e){const t=this;processLazyPreloader(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function onDocumentTouchStart(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const events$1=(e,t)=>{const r=getDocument(),{params:n,el:s,wrapperEl:a,device:l}=e,u=!!n.nested,d=t==="on"?"addEventListener":"removeEventListener",p=t;!s||typeof s=="string"||(r[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:u}),s[d]("touchstart",e.onTouchStart,{passive:!1}),s[d]("pointerdown",e.onTouchStart,{passive:!1}),r[d]("touchmove",e.onTouchMove,{passive:!1,capture:u}),r[d]("pointermove",e.onTouchMove,{passive:!1,capture:u}),r[d]("touchend",e.onTouchEnd,{passive:!0}),r[d]("pointerup",e.onTouchEnd,{passive:!0}),r[d]("pointercancel",e.onTouchEnd,{passive:!0}),r[d]("touchcancel",e.onTouchEnd,{passive:!0}),r[d]("pointerout",e.onTouchEnd,{passive:!0}),r[d]("pointerleave",e.onTouchEnd,{passive:!0}),r[d]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[d]("click",e.onClick,!0),n.cssMode&&a[d]("scroll",e.onScroll),n.updateOnWindowResize?e[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):e[p]("observerUpdate",onResize,!0),s[d]("load",e.onLoad,{capture:!0}))};function attachEvents(){const e=this,{params:t}=e;
vendor: 2,613 bytes, line 269
269e.onTouchStart=onTouchStart.bind(e),e.onTouchMove=onTouchMove.bind(e),e.onTouchEnd=onTouchEnd.bind(e),e.onDocumentTouchStart=onDocumentTouchStart.bind(e),t.cssMode&&(e.onScroll=onScroll.bind(e)),e.onClick=onClick.bind(e),e.onLoad=onLoad.bind(e),events$1(e,"on")}function detachEvents(){events$1(this,"off")}var events$1$1={attachEvents,detachEvents};const isGridEnabled=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function setBreakpoint(){const e=this,{realIndex:t,initialized:r,params:n,el:s}=e,a=n.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const l=getDocument(),u=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",d=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:l.querySelector(n.breakpointsBase),p=e.getBreakpoint(a,u,d);if(!p||e.currentBreakpoint===p)return;const x=(p in a?a[p]:void 0)||e.originalParams,w=isGridEnabled(e,n),g=isGridEnabled(e,x),b=e.params.grabCursor,v=x.grabCursor,E=n.enabled;w&&!g?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!w&&g&&(s.classList.add(`${n.containerModifierClass}grid`),(x.grid.fill&&x.grid.fill==="column"||!x.grid.fill&&n.grid.fill==="column")&&s.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),b&&!v?e.unsetGrabCursor():!b&&v&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(V=>{if(typeof x[V]>"u")return;const $=n[V]&&n[V].enabled,U=x[V]&&x[V].enabled;$&&!U&&e[V].disable(),!$&&U&&e[V].enable()});const j=x.direction&&x.direction!==n.direction,R=n.loop&&(x.slidesPerView!==n.slidesPerView||j),T=n.loop;j&&r&&e.changeDirection(),extend$1(e.params,x);const z=e.params.enabled,L=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),E&&!z?e.disable():!E&&z&&e.enable(),e.currentBreakpoint=p,e.emit("_beforeBreakpoint",x),r&&(R?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!T&&L?(e.loopCreate(t),e.updateSlides()):T&&!L&&e.loopDestroy()),e.emit("breakpoint",x)}function getBreakpoint(e,t="window",r){if(!e||t==="container"&&!r)return;let n=!1;const s=getWindow(),a=t==="window"?s.innerHeight:r.clientHeight,l=Object.keys(e).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const d=parseFloat(u.substr(1));return{value:a*d,point:u}}return{value:u,point:u}});l.sort((u,d)=>parseInt(u.value,10)-parseInt(d.value,10));for(let u=0;u<l.length;u+=1){const{point:d,value:p}=l[u];t==="window"?s.matchMedia(`(min-width: ${p}px)`).matches&&(n=d):p<=r.clientWidth&&(n=d)}return n||"max"}
vendor: 4,641 bytes, line 269
269var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(e,t){const r=[];return e.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(s=>{n[s]&&r.push(t+s)}):typeof n=="string"&&r.push(t+n)}),r}function addClasses(){const e=this,{classNames:t,params:r,rtl:n,el:s,device:a}=e,l=prepareClasses(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...l),s.classList.add(...t),e.emitContainerClasses()}function removeClasses(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var classes={addClasses,removeClasses};function checkOverflow(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){const s=e.slides.length-1,a=e.slidesGrid[s]+e.slidesSizesGrid[s]+n*2;e.isLocked=e.size>a}else e.isLocked=e.snapGrid.length===1;r.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),r.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(e,t){return function(n={}){const s=Object.keys(n)[0],a=n[s];if(typeof a!="object"||a===null){extend$1(t,n);return}if(e[s]===!0&&(e[s]={enabled:!0}),s==="navigation"&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),!(s in e&&"enabled"in a)){extend$1(t,n);return}typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),extend$1(t,n)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};let Swiper$1=class dn{constructor(...t){let r,n;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?n=t[0]:[r,n]=t,n||(n={}),n=extend$1({},n),r&&!n.el&&(n.el=r);const s=getDocument();if(n.el&&typeof n.el=="string"&&s.querySelectorAll(n.el).length>1){const d=[];return s.querySelectorAll(n.el).forEach(p=>{const h=extend$1({},n,{el:p});d.push(new dn(h))}),d}const a=this;a.__swiper__=!0,a.support=getSupport(),a.device=getDevice({userAgent:n.userAgent}),a.browser=getBrowser$1(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};
vendor: 8,573 bytes, line 269
269a.modules.forEach(d=>{d({params:n,swiper:a,extendParams:moduleExtendParams(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=extend$1({},defaults,l);return a.params=extend$1({},u,extendedDefaults,n),a.originalParams=extend$1({},a.params),a.passedParams=extend$1({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:r,params:n}=this,s=elementChildren(r,`.${n.slideClass}, swiper-slide`),a=elementIndex(s[0]);return elementIndex(t)-a}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:r,params:n}=t;t.slides=elementChildren(r,`.${n.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,r){const n=this;t=Math.min(Math.max(t,0),1);const s=n.minTranslate(),l=(n.maxTranslate()-s)*t+s;n.translateTo(l,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=t.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",r.join(" "))}getSlideClasses(t){const r=this;return r.destroyed?"":t.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=[];t.slides.forEach(n=>{const s=t.getSlideClasses(n);r.push({slideEl:n,classNames:s}),t.emit("_slideClass",n,s)}),t.emit("_slideClasses",r)}slidesPerViewDynamic(t="current",r=!1){const n=this,{params:s,slides:a,slidesGrid:l,slidesSizesGrid:u,size:d,activeIndex:p}=n;let h=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let x=a[p]?Math.ceil(a[p].swiperSlideSize):0,w;for(let g=p+1;g<a.length;g+=1)a[g]&&!w&&(x+=Math.ceil(a[g].swiperSlideSize),h+=1,x>d&&(w=!0));for(let g=p-1;g>=0;g-=1)a[g]&&!w&&(x+=a[g].swiperSlideSize,h+=1,x>d&&(w=!0))}else if(t==="current")for(let x=p+1;x<a.length;x+=1)(r?l[x]+u[x]-l[p]<d:l[x]-l[p]<d)&&(h+=1);else for(let x=p-1;x>=0;x-=1)l[p]-l[x]<d&&(h+=1);return h}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:r,params:n}=t;n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&processLazyPreloader(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const l=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let a;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&t.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){const l=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;a=t.slideTo(l.length-1,0,!1,!0)}else a=t.slideTo(t.activeIndex,0,!1,!0);a||s()}n.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,r=!0){const n=this,s=n.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.forEach(a=>{t==="vertical"?a.style.width="":a.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(t){const r=this;r.rtl&&t==="rtl"||!r.rtl&&t==="ltr"||(r.rtl=t==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(t){const r=this;if(r.mounted)return!0;let n=t||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const s=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(s()):elementChildren(n,s())[0];return!l&&r.params.createElements&&(l=createElement("div",r.params.wrapperClass),n.append(l),elementChildren(n,`.${r.params.slideClass}`).forEach(u=>{l.append(u)})),Object.assign(r,{el:n,wrapperEl:l,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:l,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||elementStyle(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||elementStyle(n,"direction")==="rtl"),wrongRTL:elementStyle(l,"display")==="-webkit-box"}),!0}init(t){const r=this;if(r.initialized||r.mount(t)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();const s=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&s.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(a=>{a.complete?processLazyPreloader(r,a):a.addEventListener("load",l=>{processLazyPreloader(r,l.target)})}),preload(r),r.initialized=!0,preload(r),r.emit("init"),r.emit("afterInit"),r}destroy(t=!0,r=!0){const n=this,{params:s,el:a,wrapperEl:l,slides:u}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),r&&(n.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),l&&l.removeAttribute("style"),u&&u.length&&u.forEach(d=>{d.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(d=>{n.off(d)}),t!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),deleteProps(n)),n.destroyed=!0),null}static extendDefaults(t){extend$1(extendedDefaults,t)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(t){dn.prototype.__modules__||(dn.prototype.__modules__=[]);const r=dn.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>dn.installModule(r)),dn):(dn.installModule(t),dn)}};
vendor: 5,649 bytes, line 269
269Object.keys(prototypes).forEach(e=>{Object.keys(prototypes[e]).forEach(t=>{Swiper$1.prototype[t]=prototypes[e][t]})});Swiper$1.use([Resize,Observer]);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function isObject$1(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function extend(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:isObject$1(t[n])&&isObject$1(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:extend(e[n],t[n]):e[n]=t[n]})}function needsNavigation(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function needsPagination(e={}){return e.pagination&&typeof e.pagination.el>"u"}function needsScrollbar(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function uniqueClasses(e=""){const t=e.split(" ").map(n=>n.trim()).filter(n=>!!n),r=[];return t.forEach(n=>{r.indexOf(n)<0&&r.push(n)}),r.join(" ")}function wrapperClass(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function updateSwiper({swiper:e,slides:t,passedParams:r,changedParams:n,nextEl:s,prevEl:a,scrollbarEl:l,paginationEl:u}){const d=n.filter(U=>U!=="children"&&U!=="direction"&&U!=="wrapperClass"),{params:p,pagination:h,navigation:x,scrollbar:w,virtual:g,thumbs:b}=e;let v,E,j,R,T,z,L,V;n.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&p.thumbs&&(!p.thumbs.swiper||p.thumbs.swiper.destroyed)&&(v=!0),n.includes("controller")&&r.controller&&r.controller.control&&p.controller&&!p.controller.control&&(E=!0),n.includes("pagination")&&r.pagination&&(r.pagination.el||u)&&(p.pagination||p.pagination===!1)&&h&&!h.el&&(j=!0),n.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(p.scrollbar||p.scrollbar===!1)&&w&&!w.el&&(R=!0),n.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||s)&&(p.navigation||p.navigation===!1)&&x&&!x.prevEl&&!x.nextEl&&(T=!0);const $=U=>{e[U]&&(e[U].destroy(),U==="navigation"?(e.isElement&&(e[U].prevEl.remove(),e[U].nextEl.remove()),p[U].prevEl=void 0,p[U].nextEl=void 0,e[U].prevEl=void 0,e[U].nextEl=void 0):(e.isElement&&e[U].el.remove(),p[U].el=void 0,e[U].el=void 0))};n.includes("loop")&&e.isElement&&(p.loop&&!r.loop?z=!0:!p.loop&&r.loop?L=!0:V=!0),d.forEach(U=>{if(isObject$1(p[U])&&isObject$1(r[U]))Object.assign(p[U],r[U]),(U==="navigation"||U==="pagination"||U==="scrollbar")&&"enabled"in r[U]&&!r[U].enabled&&$(U);else{const B=r[U];(B===!0||B===!1)&&(U==="navigation"||U==="pagination"||U==="scrollbar")?B===!1&&$(U):p[U]=r[U]}}),d.includes("controller")&&!E&&e.controller&&e.controller.control&&p.controller&&p.controller.control&&(e.controller.control=p.controller.control),n.includes("children")&&t&&g&&p.virtual.enabled?(g.slides=t,g.update(!0)):n.includes("virtual")&&g&&p.virtual.enabled&&(t&&(g.slides=t),g.update(!0)),n.includes("children")&&t&&p.loop&&(V=!0),v&&b.init()&&b.update(!0),E&&(e.controller.control=p.controller.control),j&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),e.el.appendChild(u)),u&&(p.pagination.el=u),h.init(),h.render(),h.update()),R&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),e.el.appendChild(l)),l&&(p.scrollbar.el=l),w.init(),w.updateSize(),w.setTranslate()),T&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),setInnerHTML(s,e.hostEl.constructor.nextButtonSvg),s.part.add("button-next"),e.el.appendChild(s)),(!a||typeof a=="str
269ing")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),setInnerHTML(a,e.hostEl.constructor.prevButtonSvg),a.part.add("button-prev"),e.el.appendChild(a))),s&&(p.navigation.nextEl=s),a&&(p.navigation.prevEl=a),x.init(),x.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),n.includes("direction")&&e.changeDirection(r.direction,!1),(z||V)&&e.loopDestroy(),(L||V)&&e.loopCreate(),e.update()}function getParams(e={},t=!0){const r={on:{}},n={},s={};extend(r,defaults),r._emitClasses=!0,r.init=!1;const a={},l=paramsList.map(d=>d.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(d=>{typeof e[d]>"u"||(l.indexOf(d)>=0?isObject$1(e[d])?(r[d]={},s[d]={},extend(r[d],e[d]),extend(s[d],e[d])):(r[d]=e[d],s[d]=e[d]):d.search(/on[A-Z]/)===0&&typeof e[d]=="function"?t?n[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:r.on[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:a[d]=e[d])}),["navigation","pagination","scrollbar"].forEach(d=>{r[d]===!0&&(r[d]={}),r[d]===!1&&delete r[d]}),{params:r,passedParams:s,rest:a,events:n}}function mountSwiper({el:e,nextEl:t,prevEl:r,paginationEl:n,scrollbarEl:s,swiper:a},l){needsNavigation(l)&&t&&r&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=r,a.originalParams.navigation.prevEl=r),needsPagination(l)&&n&&(a.params.pagination.el=n,a.originalParams.pagination.el=n),needsScrollbar(l)&&s&&(a.params.scrollbar.el=s,a.originalParams.scrollbar.el=s),a.init(e)}function getChangedParams(e,t,r,n,s){const a=[];if(!t)return a;const l=d=>{a.indexOf(d)<0&&a.push(d)};if(r&&n){const d=n.map(s),p=r.map(s);d.join("")!==p.join("")&&l("children"),n.length!==r.length&&l("children")}return paramsList.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in e&&d in t)if(isObject$1(e[d])&&isObject$1(t[d])){const p=Object.keys(e[d]),h=Object.keys(t[d]);p.length!==h.length?l(d):(p.forEach(x=>{e[d][x]!==t[d][x]&&l(d)}),h.forEach(x=>{e[d][x]!==t[d][x]&&l(d)}))}else e[d]!==t[d]&&l(d)}),a}const updateOnVirtualData=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(this,arguments)}function isChildSwiperSlide(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function processChildren(e){const t=[];return React.Children.toArray(e).forEach(r=>{isChildSwiperSlide(r)?t.push(r):r.props&&r.props.children&&processChildren(r.props.children).forEach(n=>t.push(n))}),t}function getChildren(e){const t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return React.Children.toArray(e).forEach(n=>{if(isChildSwiperSlide(n))t.push(n);else if(n.props&&n.props.slot&&r[n.props.slot])r[n.props.slot].push(n);else if(n.props&&n.props.children){const s=processChildren(n.props.children);s.length>0?s.forEach(a=>t.push(a)):r["container-end"].push(n)}else r["container-end"].push(n)}),{slides:t,slots:r}}function renderVirtual(e,t,r){if(!r)return null;const n=h=>{let x=h;return h<0?x=t.length+h:x>=t.length&&(x=x-t.length),x},s=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:a,to:l}=r,u=e.params.loop?-t.length:0,d=e.params.loop?t.length*2:t.length,p=[];for(let h=u;h<d;h+=1)h>=a&&h<=l&&p.push(t[n(h)]);return p.map((h,x)=>React.cloneElement(h,{swiper:e,style:s,key:h.props.virtualIndex||h.key||`slide-${x}`}))}function useIsomorphicLayoutEffect(e,t){return typeof window>"u"?reactExports.useEffect(e,t):reactExports.useLayoutEffect(e,t)}const SwiperSlideContext=reactExports.createContext(null),SwiperContext=reactExports.createContext(null),Swiper=reactExports.forwardRef(({className:e,tag:t="div",wrapperTag:r="div",children:n,onSwiper:s,...a}={},l)=>{let u=!1;const[d,p]=reactExports.useState("swiper"),[h,x]=reactExports.useState(null),[w,g]=reactExports.useState(!1),b=reactExports.useRef(!1),v=reactExports.useRef(null),E=reactExports.useRef(null),j=reactExports.useRef(null),R=reactExports.useRef(null),T=reactExports.useRef(null),z=reactExports.useRef(null),L=reactExports.useRef(null),V=reactExports.useRef(null),{params:$,passedParams:U,rest:B,events:P}=getParams(a),{slides:H,slots:Z}=getChildren(n),O=()=>{g(!w)};
vendor: 2,928 bytes, line 269
269Object.assign($.on,{_containerClasses(W,q){p(q)}});const S=()=>{Object.assign($.on,P),u=!0;const W={...$};if(delete W.wrapperClass,E.current=new Swiper$1(W),E.current.virtual&&E.current.params.virtual.enabled){E.current.virtual.slides=H;const q={cache:!1,slides:H,renderExternal:x,renderExternalUpdate:!1};extend(E.current.params.virtual,q),extend(E.current.originalParams.virtual,q)}};v.current||S(),E.current&&E.current.on("_beforeBreakpoint",O);const N=()=>{u||!P||!E.current||Object.keys(P).forEach(W=>{E.current.on(W,P[W])})},F=()=>{!P||!E.current||Object.keys(P).forEach(W=>{E.current.off(W,P[W])})};reactExports.useEffect(()=>()=>{E.current&&E.current.off("_beforeBreakpoint",O)}),reactExports.useEffect(()=>{!b.current&&E.current&&(E.current.emitSlidesClasses(),b.current=!0)}),useIsomorphicLayoutEffect(()=>{if(l&&(l.current=v.current),!!v.current)return E.current.destroyed&&S(),mountSwiper({el:v.current,nextEl:T.current,prevEl:z.current,paginationEl:L.current,scrollbarEl:V.current,swiper:E.current},$),s&&!E.current.destroyed&&s(E.current),()=>{E.current&&!E.current.destroyed&&E.current.destroy(!0,!1)}},[]),useIsomorphicLayoutEffect(()=>{N();const W=getChangedParams(U,j.current,H,R.current,q=>q.key);return j.current=U,R.current=H,W.length&&E.current&&!E.current.destroyed&&updateSwiper({swiper:E.current,slides:H,passedParams:U,changedParams:W,nextEl:T.current,prevEl:z.current,scrollbarEl:V.current,paginationEl:L.current}),()=>{F()}}),useIsomorphicLayoutEffect(()=>{updateOnVirtualData(E.current)},[h]);function k(){return $.virtual?renderVirtual(E.current,H,h):H.map((W,q)=>React.cloneElement(W,{swiper:E.current,swiperSlideIndex:q}))}return React.createElement(t,_extends({ref:v,className:uniqueClasses(`${d}${e?` ${e}`:""}`)},B),React.createElement(SwiperContext.Provider,{value:E.current},Z["container-start"],React.createElement(r,{className:wrapperClass($.wrapperClass)},Z["wrapper-start"],k(),Z["wrapper-end"]),needsNavigation($)&&React.createElement(React.Fragment,null,React.createElement("div",{ref:z,className:"swiper-button-prev"}),React.createElement("div",{ref:T,className:"swiper-button-next"})),needsScrollbar($)&&React.createElement("div",{ref:V,className:"swiper-scrollbar"}),needsPagination($)&&React.createElement("div",{ref:L,className:"swiper-pagination"}),Z["container-end"]))});Swiper.displayName="Swiper";const SwiperSlide=reactExports.forwardRef(({tag:e="div",children:t,className:r="",swiper:n,zoom:s,lazy:a,virtualIndex:l,swiperSlideIndex:u,...d}={},p)=>{const h=reactExports.useRef(null),[x,w]=reactExports.useState("swiper-slide"),[g,b]=reactExports.useState(!1);function v(T,z,L){z===h.current&&w(L)}useIsomorphicLayoutEffect(()=>{if(typeof u<"u"&&(h.current.swiperSlideIndex=u),p&&(p.current=h.current),!(!h.current||!n)){if(n.destroyed){x!=="swiper-slide"&&w("swiper-slide");return}return n.on("_slideClass",v),()=>{n&&n.off("_slideClass",v)}}}),useIsomorphicLayoutEffect(()=>
269{n&&h.current&&!n.destroyed&&w(n.getSlideClasses(h.current))},[n]);const E={isActive:x.indexOf("swiper-slide-active")>=0,isVisible:x.indexOf("swiper-slide-visible")>=0,isPrev:x.indexOf("swiper-slide-prev")>=0,isNext:x.indexOf("swiper-slide-next")>=0},j=()=>typeof t=="function"?t(E):t,R=()=>{b(!0)};return React.createElement(e,_extends({ref:h,className:uniqueClasses(`${x}${r?` ${r}`:""}`),"data-swiper-slide-index":l,onLoad:R},d),s&&React.createElement(SwiperSlideContext.Provider,{value:E},React.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},j(),a&&!g&&React.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&React.createElement(SwiperSlideContext.Provider,{value:E},j(),a&&!g&&React.createElement("div",{className:"swiper-lazy-preloader"})))});SwiperSlide.displayName="SwiperSlide";function FiArrowDownLeft(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"17",y1:"7",x2:"7",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 17 7 17 7 7"},child:[]}]})(e)}function FiArrowUpRight(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"},child:[]},{tag:"polyline",attr:{points:"7 7 17 7 17 17"},child:[]}]})(e)}function FiChevronDown(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)}function FiDroplet(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"},child:[]}]})(e)}function FiExternalLink(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}function FiMic(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function FiPlus(e){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function FiX(e){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:[]}]})(e)}function VerifiedBy(){const e=[{image:"/LandingPage/verified/1.png",link:"https://www.binance.com/en/square/profile/coinguardai"},{image:"/LandingPage/verified/2.png",link:"https://blog.coinguard.ai/"},{image:"/LandingPage/verified/3.png",link:"https://www.publish0x.com/@Coinguard"},{image:"/LandingPage/verified/4.png",link:"https://x.com/Coinguard_AI/articles"}],t=reactExports.useRef(null),[r,n]=reactExports.useState(0);return reactExports.useEffect(()=>{const s=t.current?.querySelector(".carousel-inner"),a=()=>{if(!s)return;const l=s.scrollLeft,u=s.offsetWidth,d=Math.round(l/u);n(d)};return s&&s.addEventListener("scroll",a),()=>{s&&s.removeEventListener("scroll",a)}},[]),jsxRuntimeExports.jsx("section",{className:"bg-black text-white py-10 px-4 sm:px-6 md:px-8 lg:px-12",children:jsxRuntimeExports.jsxs("div",{className:"max-w-[1200px] mx-auto text-center",children:[jsxRuntimeExports.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-center mb-20 text-white",children:"Our Articles"}),jsxRuntimeExports.jsxs("div",{className:"block sm:hidden",ref:t,children:[jsxRuntimeExports.jsx("div",{className:"-mx-4",children:jsxRuntimeExports.jsxs("div",{className:"carousel-inner flex overflow-x-auto snap-x snap-mandatory gap-4 px-4 pb-4",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[jsxRuntimeExports.jsx("style",{jsx:"true",children:` 270 .carousel-inner::-webkit-scrollbar {
271 display: none; 272 } 273 `}),e.map((s,a)=>jsxRuntimeExports.jsx("div",{className:"snap-center flex-shrink-0 w-full px-2",children:jsxRuntimeExports.jsx("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"bg-white/5 border border-white/10 rounded-xl h-32 flex items-center justify-center shadow-md transition-all duration-300 hover:border-[#CCFF00]/50 hover:shadow-[0_0_15px_#CCFF00]/50",children:jsxRuntimeExports.jsx("div",{className:"aspect-w-16 aspect-h-9 w-full max-w-[160px]",children:jsxRuntimeExports.jsx("img",{src:s.image,alt:"",className:"w-full h-full object-contain"})})})},a))]})}),jsxRuntimeExports.jsx("div",{className:"flex justify-center gap-2 mt-3 mb-[-60px] sm:mb-0",children:e.map((s,a)=>jsxRuntimeExports.jsx("button",{onClick:()=>{const l=t.current?.querySelector(".carousel-inner");if(l){const u=l.offsetWidth;l.scrollTo({left:a*u,behavior:"smooth"})}},className:`w-2 h-2 rounded-full transition-all duration-300 ${a===r?"bg-[#CCFF00]":"bg-white/30"}`},a))})]}),jsxRuntimeExports.jsx("div",{className:"hidden sm:grid grid-cols-2 md:grid-cols-4 justify-center gap-5 sm:gap-6 md:gap-8 place-items-center mt-6",children:e.map((s,a)=>jsxRuntimeExports.jsx("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"bg-white/5 border border-white/10 rounded-xl px-6 py-5 w-full max-w-[220px] h-32 flex items-center justify-center shadow-md transition-all duration-300 hover:border-[#CCFF00]/50 hover:shadow-[0_0_15px_#CCFF00]/50",children:jsxRuntimeExports.jsx("div",{className:"aspect-w-16 aspect-h-9 w-full",children:jsxRuntimeExports.jsx("img",{src:s.image,alt:"",className:"w-full h-full object-contain"})})},a))})]})})}/*! ***************************************************************************** 274Copyright (c) Microsoft Corporation. 275 276Permission to use, copy, modify, and/or distribute this software for any 277purpose with or without fee is hereby granted. 278 279THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 280REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 281AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 282INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 283LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 284OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 285PERFORMANCE OF THIS SOFTWARE. 286***************************************************************************** */var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])})(e,t)};function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function __awaiter$1(e,t,r,n){return new(r||(r=Promise))((function(s,a){function l(p){try{d(n.next(p))}catch(h){a(h)}}function u(p){try{d(n.throw(p))}catch(h){a(h)}}function d(p){var h;p.done?s(p.value):(h=p.value,h instanceof r?h:new r((function(x){x(h)}))).then(l,u)}d((n=n.apply(e,[])).next())}))}function __generator(e,t){var r,n,s,a,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(p){return(function(h){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(s=2&h[0]?n.return:h[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,h[1])).done)return s;switch(n=0,s&&(h=[2&h[0],s.value]),h[0]){case 0:case 1:s=h;break;case 4:return l.label++,{value:h[1],done:!1};case 5:l.label++,n=h[1],h=[0];continue;case 7:h=l.ops.pop(),l.trys.pop();continue;default:if(s=l.trys,!((s=s.length>0&&s[s.length-1])||h[0]!==6&&h[0]!==2)){l=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){l.label=h[1];break}if(h[0]===6&&l.label<s[1]){l.label=s[1],s=h;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(h);break}s[2]&&l.ops.pop(),l.trys.pop();continue}h=t.call(e,l)}catch(x){h=[6,x],n=0}finally{r=s=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}})([d,p])}}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var lottie=createCommonjsModule((function(module,exports){typeof navigator<"u"&&(function(e,t){module.exports=t()})(0,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,s=e.length;for(r=0;r<s;r+=1)for(var a in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,a)&&(t.prototype[a]=n[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].pause()},resume:function(){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].resume()},setRate:function(t){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(t,r){var n,s=0,a=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(s=0;s<r;s+=1)a.push(n);return a}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(t,r){return t==="float32"?new Float32Array(r):t==="int16"?new Int16Array(r):t==="uint8c"?new Uint8ClampedArray(r):e(t,r)}:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e,t=["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"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]})(),BMMath.random=Math.random,BMMath.abs=function(e){if(_typeof$6(e)==="object"&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,s,a,l,u,d,p,h;switch(d=r*(1-t),p=r*(1-(u=6*e-(l=Math.floor(6*e)))*t),h=r*(1-(1-u)*t),l%6){case 0:n=r,s=h,a=d;break;case 1:n=p,s=r,a=d;break;case 2:n=d,s=r,a=h;break;case 3:n=d,s=p,a=r;break;case 4:n=h,s=d,a=r;break;case 5:n=r,s=d,a=p}return[n,s,a]}function RGBtoHSV(e,t,r){var n,s=Math.max(e,t,r),a=Math.min(e,t,r),l=s-a,u=s===0?0:l/s,d=s/255;switch(s){case a:n=0;break;case e:n=t-r+l*(t<r?6:0),n/=6*l;break;case t:n=r-e+2*l,n/=6*l;break;case r:n=e-t+4*l,n/=6*l}return[n,u,d]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=t.length===1?"0"+t:t;return function(n,s,a){return n<0&&(n=0),s<0&&(s=0),a<0&&(a=0),"#"+r[n]+r[s]+r[a]}})(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var dataManager=(function(){var e,t,r=1,n=[],s={onmessage:function(){},postMessage:function(d){e({data:d})}},a={postMessage:function(d){s.onmessage({data:d})}};function l(){t||((t=(function(d){if(window.Worker&&window.Blob&&getWebWorker()){var p=new Blob(["var _workerSelf = self;
286 self.onmessage = ",d.toString()],{type:"text/javascript"}),h=URL.createObjectURL(p);return new Worker(h)}return e=d,s})((function(d){if(a.dataManager||(a.dataManager=(function(){function h($,U){var B,P,H,Z,O,S,N=$.length;for(P=0;P<N;P+=1)if("ks"in(B=$[P])&&!B.completed){if(B.completed=!0,B.hasMask){var F=B.masksProperties;for(Z=F.length,H=0;H<Z;H+=1)if(F[H].pt.k.i)g(F[H].pt.k);else for(S=F[H].pt.k.length,O=0;O<S;O+=1)F[H].pt.k[O].s&&g(F[H].pt.k[O].s[0]),F[H].pt.k[O].e&&g(F[H].pt.k[O].e[0])}B.ty===0?(B.layers=x(B.refId,U),h(B.layers,U)):B.ty===4?w(B.shapes):B.ty===5&&L(B)}}function x($,U){var B=(function(P,H){for(var Z=0,O=H.length;Z<O;){if(H[Z].id===P)return H[Z];Z+=1}return null})($,U);return B?B.layers.__used?JSON.parse(JSON.stringify(B.layers)):(B.layers.__used=!0,B.layers):null}function w($){var U,B,P;for(U=$.length-1;U>=0;U-=1)if($[U].ty==="sh")if($[U].ks.k.i)g($[U].ks.k);else for(P=$[U].ks.k.length,B=0;B<P;B+=1)$[U].ks.k[B].s&&g($[U].ks.k[B].s[0]),$[U].ks.k[B].e&&g($[U].ks.k[B].e[0]);else $[U].ty==="gr"&&w($[U].it)}function g($){var U,B=$.i.length;for(U=0;U<B;U+=1)$.i[U][0]+=$.v[U][0],$.i[U][1]+=$.v[U][1],$.o[U][0]+=$.v[U][0],$.o[U][1]+=$.v[U][1]}function b($,U){var B=U?U.split("."):[100,100,100];return $[0]>B[0]||!(B[0]>$[0])&&($[1]>B[1]||!(B[1]>$[1])&&($[2]>B[2]||!(B[2]>$[2])&&null))}var v,E=(function(){var $=[4,4,14];function U(B){var P,H,Z,O=B.length;for(P=0;P<O;P+=1)B[P].ty===5&&(H=B[P],Z=void 0,Z=H.t.d,H.t.d={k:[{s:Z,t:0}]})}return function(B){if(b($,B.v)&&(U(B.layers),B.assets)){var P,H=B.assets.length;for(P=0;P<H;P+=1)B.assets[P].layers&&U(B.assets[P].layers)}}})(),j=(v=[4,7,99],function($){if($.chars&&!b(v,$.v)){var U,B=$.chars.length;for(U=0;U<B;U+=1){var P=$.chars[U];P.data&&P.data.shapes&&(w(P.data.shapes),P.data.ip=0,P.data.op=99999,P.data.st=0,P.data.sr=1,P.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}},$.chars[U].t||(P.data.shapes.push({ty:"no"}),P.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"})))}}}),R=(function(){var $=[5,7,15];function U(B){var P,H,Z,O=B.length;for(P=0;P<O;P+=1)B[P].ty===5&&(H=B[P],Z=void 0,typeof(Z=H.t.p).a=="number"&&(Z.a={a:0,k:Z.a}),typeof Z.p=="number"&&(Z.p={a:0,k:Z.p}),typeof Z.r=="number"&&(Z.r={a:0,k:Z.r}))}return function(B){if(b($,B.v)&&(U(B.layers),B.assets)){var P,H=B.assets.length;for(P=0;P<H;P+=1)B.assets[P].layers&&U(B.assets[P].layers)}}})(),T=(function(){var $=[4,1,9];function U(P){var H,Z,O,S=P.length;for(H=0;H<S;H+=1)if(P[H].ty==="gr")U(P[H].it);else if(P[H].ty==="fl"||P[H].ty==="st")if(P[H].c.k&&P[H].c.k[0].i)for(O=P[H].c.k.length,Z=0;Z<O;Z+=1)P[H].c.k[Z].s&&(P[H].c.k[Z].s[0]/=255,P[H].c.k[Z].s[1]/=255,P[H].c.k[Z].s[2]/=255,P[H].c.k[Z].s[3]/=255),P[H].c.k[Z].e&&(P[H].c.k[Z].e[0]/=255,P[H].c.k[Z].e[1]/=255,P[H].c.k[Z].e[2]/=255,P[H].c.k[Z].e[3]/=255);else P[H].c.k[0]/=255,P[H].c.k[1]/=255,P[H].c.k[2]/=255,P[H].c.k[3]/=255}function B(P){var H,Z=P.length;for(H=0;H<Z;H+=1)P[H].ty===4&&U(P[H].shapes)}return function(P){if(b($,P.v)&&(B(P.layers),P.assets)){var H,Z=P.assets.length;for(H=0;H<Z;H+=1)P.assets[H].layers&&B(P.assets[H].layers)}}})(),z=(function(){var $=[4,4,18];function U(P){var H,Z,O;for(H=P.length-1;H>=0;H-=1)if(P[H].ty==="sh")if(P[H].ks.k.i)P[H].ks.k.c=P[H].closed;else for(O=P[H].ks.k.length,Z=0;Z<O;Z+=1)P[H].ks.k[Z].s&&(P[H].ks.k[Z].s[0].c=P[H].closed),P[H].ks.k[Z].e&&(P[H].ks.k[Z].e[0].c=P[H].closed);else P[H].ty==="gr"&&U(P[H].it)}function B(P){var H,Z,O,S,N,F,k=P.length;for(Z=0;Z<k;Z+=1){if((H=P[Z]).hasMask){var W=H.masksProperties;for(S=W.length,O=0;O<S;O+=1)if(W[O].pt.k.i)W[O].pt.k.c=W[O].cl;else for(F=W[O].pt.k.length,N=0;N<F;N+=1)W[O].pt.k[N].s&&(W[O].pt.k[N].s[0].c=W[O].cl),W[O].pt.k[N].e&&(W[O].pt.k[N].e[0].c=W[O].cl)}H.ty===4&&U(H.shapes)}}return function(P){if(b($,P.v)&&(B(P.layers),P.assets)){var H,Z=P.assets.length;for(H=0;H<Z;H+=1)P.assets[H].layers&&B(P.assets[H].layers)}}})();function L($){$.t.a.length===0&&$.t.p}var V={completeData:function($){$.__complete||(T($),E($),j($),R($),z($),h($.layers,$.assets),(function(U,B){if(U){var P=0,H=U.length;for(P=0;P<H;P+=1)U[P].t===1&&(U[P].data.layers=x(U[P].data.refId,B),h(U[P].data.layers,B))}})($.chars,$.assets),$.__complete=!0)}};return V.checkColors=T,V.checkChars=j,V.checkPathProperties=R,V.checkShapes=z,V.completeLayers=h,V})()),a.assetLoader||(a.assetLoader=(function(){function h(x){var w=x.getResponseHeader("content-type");return w&&x.responseType==="json"&&w.indexOf("json")!==-1||x.response&&_typeof$5(x.response)==="object"?x.response:x.response&&typeof x.response=="string"?JSON.parse(x.response):x.responseText?JSON.parse(x.responseText):null}return{load:function(x,w,g,b){var v,E=new XMLHttpRequest;try{E.responseType="json"}catch{}E.onreadystatechange=function(){if(E.readyState===4)if(E.status===200)v=h(E),g(v);else try{v=h(E),g(v)}catch(j){b&&b(j)}};try{E.open(["G","E","T"].join(""),x,!0)}catch{E.open(["G","E","T"].join(""),w+"/"+x,!0)}E.send()}}})()),d.data.type==="loadAnimation")a.assetLoader.load(d.data.path,d.data.fullPath,(function(h){a.dataManager.completeData(h),a.postMessage({id:d.data.id,payload:h,status:"success"})}),(function(){a.postMessage({id:d.data.id,status:"error"})}));else if(d.data.type==="complete"){var p=d.data.animation;a.dataManager.completeData(p),a.postMessage({id:d.data.id,payload:p,status:"success"})}
286else d.data.type==="loadData"&&a.assetLoader.load(d.data.path,d.data.fullPath,(function(h){a.postMessage({id:d.data.id,payload:h,status:"success"})}),(function(){a.postMessage({id:d.data.id,status:"error"})}))}))).onmessage=function(d){var p=d.data,h=p.id,x=n[h];n[h]=null,p.status==="success"?x.onComplete(p.payload):x.onError&&x.onError()})}function u(d,p){var h="processId_"+(r+=1);return n[h]={onComplete:d,onError:p},h}return{loadAnimation:function(d,p,h){l();var x=u(p,h);t.postMessage({type:"loadAnimation",path:d,fullPath:window.location.origin+window.location.pathname,id:x})},loadData:function(d,p,h){l();var x=u(p,h);t.postMessage({type:"loadData",path:d,fullPath:window.location.origin+window.location.pathname,id:x})},completeAnimation:function(d,p,h){l();var x=u(p,h);t.postMessage({type:"complete",animation:d,id:x})}}})(),ImagePreloader=(function(){var e=(function(){var u=createTag("canvas");u.width=1,u.height=1;var d=u.getContext("2d");return d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1),u})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(u,d,p){var h="";if(u.e)h=u.p;else if(d){var x=u.p;x.indexOf("images/")!==-1&&(x=x.split("/")[1]),h=d+x}else h=p,h+=u.u?u.u:"",h+=u.p;return h}function s(u){var d=0,p=setInterval((function(){(u.getBBox().width||d>500)&&(this._imageLoaded(),clearInterval(p)),d+=1}).bind(this),50)}function a(u){var d={assetData:u},p=n(u,this.assetsPath,this.path);return dataManager.loadData(p,(function(h){d.img=h,this._footageLoaded()}).bind(this),(function(){d.img={},this._footageLoaded()}).bind(this)),d}function l(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return l.prototype={loadAssets:function(u,d){var p;this.imagesLoadedCb=d;var h=u.length;for(p=0;p<h;p+=1)u[p].layers||(u[p].t&&u[p].t!=="seq"?u[p].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(u[p]))):(this.totalImages+=1,this.images.push(this._createImageData(u[p]))))},setAssetsPath:function(u){this.assetsPath=u||""},setPath:function(u){this.path=u||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(u){for(var d=0,p=this.images.length;d<p;){if(this.images[d].assetData===u)return this.images[d].img;d+=1}return null},createImgData:function(u){var d=n(u,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){h.img=e,this._imageLoaded()}).bind(this),!1),p.src=d;var h={img:p,assetData:u};return h},createImageData:function(u){var d=n(u,this.assetsPath,this.path),p=createNS("image");isSafari?this.testImageLoaded(p):p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){h.img=e,this._imageLoaded()}).bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",d),this._elementHelper.append?this._elementHelper.append(p):this._elementHelper.appendChild(p);var h={img:p,assetData:u};return h},imageLoaded:t,footageLoaded:r,setCacheType:function(u,d){u==="svg"?(this._elementHelper=d,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},l})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),(function(){this.removeEventListener(e,t)}).bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=(function(){function e(t){for(var r,n=t.split(`\r 287`),s={},a=0,l=0;l<n.length;l+=1)(r=n[l].split(":")).length===2&&(s[r[0]]=r[1].trim(),a+=1);if(a===0)throw new Error;return s}return function(t){for(var r=[],n=0;n<t.length;n+=1){var s=t[n],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[n].cm)}catch{try{a.payload=e(t[n].cm)}catch{a.payload={name:t[n].cm}}}r.push(a)}return r}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var n=0,s=this.compositions.length;n<s;){if(this.compositions[n].data&&this.compositions[n].data.nm===r)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=ne
vendor: 7,193 bytes, line 287
287w BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var a=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay=a!=="false",r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"",(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,s=n.length,a=e.layers,l=a.length;for(r=0;r<l;r+=1)for(t=0;t<s;){if(n[t].id===a[r].id){n[t]=a[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(s=e.assets.length,t=0;t<s;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,n=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame
vendor: 4,157 bytes, line 287
287(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(this.isPaused!==!0&&this.isLoaded!==!1){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)}
vendor: 4,391 bytes, line 287
287,AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],r=0,n=0,s=0,a=!0,l=!1;function u(v){for(var E=0,j=v.target;E<n;)t[E].animation===j&&(t.splice(E,1),E-=1,n-=1,j.isPaused||h()),E+=1}function d(v,E){if(!v)return null;for(var j=0;j<n;){if(t[j].elem===v&&t[j].elem!==null)return t[j].animation;j+=1}var R=new AnimationItem;return x(R,v),R.setData(v,E),R}function p(){s+=1,b()}function h(){s-=1}function x(v,E){v.addEventListener("destroy",u),v.addEventListener("_active",p),v.addEventListener("_idle",h),t.push({elem:E,animation:v}),n+=1}function w(v){var E,j=v-r;for(E=0;E<n;E+=1)t[E].animation.advanceTime(j);r=v,s&&!l?window.requestAnimationFrame(w):a=!0}function g(v){r=v,window.requestAnimationFrame(w)}function b(){!l&&s&&a&&(window.requestAnimationFrame(g),a=!1)}return e.registerAnimation=d,e.loadAnimation=function(v){var E=new AnimationItem;return x(E,null),E.setParams(v),E},e.setSpeed=function(v,E){var j;for(j=0;j<n;
vendor: 7,467 bytes, line 287
287j+=1)t[j].animation.setSpeed(v,E)},e.setDirection=function(v,E){var j;for(j=0;j<n;j+=1)t[j].animation.setDirection(v,E)},e.play=function(v){var E;for(E=0;E<n;E+=1)t[E].animation.play(v)},e.pause=function(v){var E;for(E=0;E<n;E+=1)t[E].animation.pause(v)},e.stop=function(v){var E;for(E=0;E<n;E+=1)t[E].animation.stop(v)},e.togglePause=function(v){var E;for(E=0;E<n;E+=1)t[E].animation.togglePause(v)},e.searchAnimations=function(v,E,j){var R,T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),z=T.length;for(R=0;R<z;R+=1)j&&T[R].setAttribute("data-bm-type",j),d(T[R],v);if(E&&z===0){j||(j="svg");var L=document.getElementsByTagName("body")[0];L.innerText="";var V=createTag("div");V.style.width="100%",V.style.height="100%",V.setAttribute("data-bm-type",j),L.appendChild(V),d(V,v)}},e.resize=function(){var v;for(v=0;v<n;v+=1)t[v].animation.resize()},e.goToAndStop=function(v,E,j){var R;for(R=0;R<n;R+=1)t[R].animation.goToAndStop(v,E,j)},e.destroy=function(v){var E;for(E=n-1;E>=0;E-=1)t[E].animation.destroy(v)},e.freeze=function(){l=!0},e.unfreeze=function(){l=!1,b()},e.setVolume=function(v,E){var j;for(j=0;j<n;j+=1)t[j].animation.setVolume(v,E)},e.mute=function(v){var E;for(E=0;E<n;E+=1)t[E].animation.mute(v)},e.unmute=function(v){var E;for(E=0;E<n;E+=1)t[E].animation.unmute(v)},e.getRegisteredAnimations=function(){var v,E=t.length,j=[];for(v=0;v<E;v+=1)j.push(t[v].animation);return j},e})(),BezierFactory=(function(){var e={getBezierEasing:function(p,h,x,w,g){var b=g||("bez_"+p+"_"+h+"_"+x+"_"+w).replace(/\./g,"p");if(t[b])return t[b];var v=new d([p,h,x,w]);return t[b]=v,v}},t={},r=typeof Float32Array=="function";function n(p,h){return 1-3*h+3*p}function s(p,h){return 3*h-6*p}function a(p){return 3*p}function l(p,h,x){return((n(h,x)*p+s(h,x))*p+a(h))*p}function u(p,h,x){return 3*n(h,x)*p*p+2*s(h,x)*p+a(h)}function d(p){this._p=p,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(p){var h=this._p[0],x=this._p[1],w=this._p[2],g=this._p[3];return this._precomputed||this._precompute(),h===x&&w===g?p:p===0?0:p===1?1:l(this._getTForX(p),x,g)},_precompute:function(){var p=this._p[0],h=this._p[1],x=this._p[2],w=this._p[3];this._precomputed=!0,p===h&&x===w||this._calcSampleValues()},_calcSampleValues:function(){for(var p=this._p[0],h=this._p[2],x=0;x<11;++x)this._mSampleValues[x]=l(.1*x,p,h)},_getTForX:function(p){for(var h=this._p[0],x=this._p[2],w=this._mSampleValues,g=0,b=1;b!==10&&w[b]<=p;++b)g+=.1;var v=g+.1*((p-w[--b])/(w[b+1]-w[b])),E=u(v,h,x);return E>=.001?(function(j,R,T,z){for(var L=0;L<4;++L){var V=u(R,T,z);if(V===0)return R;R-=(l(R,T,z)-j)/V}return R})(p,v,h,x):E===0?v:(function(j,R,T,z,L){var V,$,U=0;do(V=l($=R+(T-R)/2,z,L)-j)>0?T=$:R=$;while(Math.abs(V)>1e-7&&++U<10);return $})(p,g,g+.1,h,x)}},e})(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,s=e,a=createSizedArray(s);return{newElement:function(){return n?a[n-=1]:t()},release:function(l){n===s&&(a=pooling.double(a),s*=2),r&&r(l),a[n]=l,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(p,h,x,w,g,b){var v=p*w+h*g+x*b-g*w-b*p-x*h;return v>-.001&&v<.001}var r=function(p,h,x,w){var g,b,v,E,j,R,T=getDefaultCurveSegments(),z=0,L=[],V=[],$=bezierLengthPool.newElement();for(v=x.length,g=0;g<T;g+=1){for(j=g/(T-1),R=0,b=0;b<v;b+=1)E=bmPow(1-j,3)*p[b]+3*bmPow(1-j,2)*j*x[b]+3*(1-j)*bmPow(j,2)*w[b]+bmPow(j,3)*h[b],L[b]=E,V[b]!==null&&(R+=bmPow(L[b]-V[b],2)),V[b]=L[b];R&&(z+=R=bmSqrt(R)),$.percents[g]=j,$.lengths[g]=z}return $.addedLength=z,$};function n(p){this.segmentLength=0,this.points=new Array(p)}function s(p,h){this.partialLength=p,this.point=h}var a,l=(a={},function(p,h,x,w){var g=(p[0]+"_"+p[1]+"_"+h[0]+"_"+h[1]+"_"+x[0]+"_"+x[1]+"_"+w[0]+"_"+w[1]).replace(/\./g,"p");if(!a[g]){var b,v,E,j,R,T,z,L=getDefaultCurveSegments(),V=0,$=null;p.length===2&&(p[0]!==h[0]||p[1]!==h[1])&&t(p[0],p[1],h[0],h[1],p[0]+x[0],p[1]+x[1])&&t(p[0],p[1],h[0],h[1],h[0]+w[0],h[1]+w[1])&&(L=2);var U=new n(L);for(E=x.length,b=0;b<L;b+=1){for(z=createSizedArray(E),R=b/(L-1),T=0,v=0;v<E;v+=1)j=bmPow(1-R,3)*p[v]+3*bmPow(1-R,2)*R*(p[v]+x[v])+3*(1-R)*bmPow(R,2)*(h[v]+w[v])+bmPow(R,3)*h[v],z[v]=j,$!==null&&(T+=bmPow(z[v]-$[v],2));V+=T=bmSqrt(T),U.points[b]=new s(T,z),$=z}U.segmentLength=V,a[g]=U}return a[g]});function u(p,h){var x=h.percents,w=h.lengths,g=x.length,b=bmFloor((g-1)*p),v=p*h.addedLength,E=0;if(b===g-1||b===0||v===w[b])return x[b];for(var j=w[b]>v?-1:1,R=!0;R;)if(w[b]<=v&&w[b+1]>v?(E=(v-w[b])/(w[b+1]-w[b]),R=!1):b+=j,b<0||b>=g-1){if(b===g-1)return x[b];R=!1}return x[b]+(x[b+1]-x[b])*E}var d=createTypedArray("float32",8);return{getSegmentsLength:function(p){var h,x=segmentsLengthPool.newElement(),w=p.c,g=p.v,b=p.o,v=p.i,E=p._length,j=x.lengths,R=0;for(h=0;h<E-1;h+=1)j[h]=r(g[h],g[h+1],b[h],v[h+1]),R+=j[h].addedLength;return w&&E&&(j[h]=r(g[h],g[0],b[h],v[0]),R+=j[h].addedLength),x.totalLength=R,x},getNewSegment:function(p,h,x,w,g,b,v){g<0?g=0:g>1&&(g=1);var E,j=u(g,v),R=u(b=b>1?1:b,v),T=p.length,z=1-j,L=1-R,V=z*z*z,$=j*z*z*3,U=j*j*z*3,B=j*j*j,P=z*z*L,H=j*z*L+z*j*L+z*z*R,Z=j*j*L+z*j*R+j*z*R,O=j*j*R,S=z*L*L,N=j*L*L+z*R*L+z*L*R,F=j*R*L+z*R*R+j*L*R,k=j*R*R,W=L*L*L,q=R*L*L+L*R*L+L*L*R,A=R*R*L+L*R*R+R*L*R,D=R*R*R;for(E=0;E<T;E+=1)d[4*E]=e.round(1e3*(V*p[E]+$*x[E]+U*w[E]+B*h[E]))/1e3,d[4*E+1]=e.round(1e3*(P*p[E]+H*x[E]+Z*w[E]+O*h[E]))/1e3,d[4*E+2]=e.round(1e3*(S*p[E]+N*x[E]+F*w[E]+k*h[E]))/1e3,d[4*E+3]=e.round(1e3*(W*p[E]+q*x[E]+A*w[E]+D*h[E]))/1e3;return d},getPointInSegment:function(p,h,x,w,g,b){var v=u(g,b),E=1-v;return[e.round(1e3*(E*E*E*p[0]+(v*E*E+E*v*E+E*E*v)*x[0]+(v*v*E+E*v*v+v*E*v)*w[0]+v*v*v*h[0]))/1e3,e.round(1e3*(E*E*E*p[1]+(v*E*E+E*v*E+E*E*v)*x[1]+(v*v*E+E*v*v+v*E*v)*w[1]+v*v*v*h[1]))/1e3]},buildBezierData:l,pointOnLine2D:t,pointOnLine3D:function(p,h,x,w,g,b,v,E,j){if(x===0&&b===0&&j===0)return t(p,h,w,g,v,E);var R,T=e.sqrt(e.pow(w-p,2)+e.pow(g-h,2)+e.pow(b-x,2)),z=e.sqrt(e.pow(v-p,2)+e.pow(E-h,2)+e.pow(j-x,2)),L=e.sqrt(e.pow(v-w,2)+e.pow(E-g,2)+e.pow(j-b,2));return(R=T>z?T>L?T-z-L:L-z-T:L>z?L-z-T:z-T-L)>-1e-4&&R<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;this.propType==="multidimensional"&&(r=createTypedArray("float32",this.pv.length));for(var s,a,l,u,d,p,h,x,w,g=t.lastIndex,b=g,v=this.keyframes.length-1,E=!0;E;){if(s=this.keyframes[b],a=this.keyframes[b+1],b===v-1&&e>=a.t-n){s.h&&(s=a),g=0;break}if(a.t-n>e){g=b;break}b<v-1?b+=1:(g=0,E=!1)}l=this.keyframesMetadata[b]||{};var j,R=a.t-n,T=s.t-n;if(s.to){l.bezierData||(l.bezierData=bez.buildBezierData(s.s,a.s||s.e,s.to,s.ti));var z=l.bezierData;if(e>=R||e<T){var L=e>=R?z.points.length-1:0;for(d=z.points[L].point.length,u=0;u<d;u+=1)r[u]=z.points[L].point[u]}else{l.__fnct?w=l.__fnct:(w=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,l.__fnct=w),p=w((e-T)/(R-T));var V,$=z.segmentLength*p,U=t.lastFrame<e&&t._lastKeyframeIndex===b?t._lastAddedLe
vendor: 7,699 bytes, line 287
287ngth:0;for(x=t.lastFrame<e&&t._lastKeyframeIndex===b?t._lastPoint:0,E=!0,h=z.points.length;E;){if(U+=z.points[x].partialLength,$===0||p===0||x===z.points.length-1){for(d=z.points[x].point.length,u=0;u<d;u+=1)r[u]=z.points[x].point[u];break}if($>=U&&$<U+z.points[x+1].partialLength){for(V=($-U)/z.points[x+1].partialLength,d=z.points[x].point.length,u=0;u<d;u+=1)r[u]=z.points[x].point[u]+(z.points[x+1].point[u]-z.points[x].point[u])*V;break}x<h-1?x+=1:E=!1}t._lastPoint=x,t._lastAddedLength=U-z.points[x].partialLength,t._lastKeyframeIndex=b}}else{var B,P,H,Z,O;if(v=s.s.length,j=a.s||s.e,this.sh&&s.h!==1)e>=R?(r[0]=j[0],r[1]=j[1],r[2]=j[2]):e<=T?(r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2]):quaternionToEuler(r,slerp(createQuaternion(s.s),createQuaternion(j),(e-T)/(R-T)));else for(b=0;b<v;b+=1)s.h!==1&&(e>=R?p=1:e<T?p=0:(s.o.x.constructor===Array?(l.__fnct||(l.__fnct=[]),l.__fnct[b]?w=l.__fnct[b]:(B=s.o.x[b]===void 0?s.o.x[0]:s.o.x[b],P=s.o.y[b]===void 0?s.o.y[0]:s.o.y[b],H=s.i.x[b]===void 0?s.i.x[0]:s.i.x[b],Z=s.i.y[b]===void 0?s.i.y[0]:s.i.y[b],w=BezierFactory.getBezierEasing(B,P,H,Z).get,l.__fnct[b]=w)):l.__fnct?w=l.__fnct:(B=s.o.x,P=s.o.y,H=s.i.x,Z=s.i.y,w=BezierFactory.getBezierEasing(B,P,H,Z).get,s.keyframeMetadata=w),p=w((e-T)/(R-T)))),j=a.s||s.e,O=s.h===1?s.s[b]:s.s[b]+(j[b]-s.s[b])*p,this.propType==="multidimensional"?r[b]=O:r=O}return t.lastIndex=g,r}function slerp(e,t,r){var n,s,a,l,u,d=[],p=e[0],h=e[1],x=e[2],w=e[3],g=t[0],b=t[1],v=t[2],E=t[3];return(s=p*g+h*b+x*v+w*E)<0&&(s=-s,g=-g,b=-b,v=-v,E=-E),1-s>1e-6?(n=Math.acos(s),a=Math.sin(n),l=Math.sin((1-r)*n)/a,u=Math.sin(r*n)/a):(l=1-r,u=r),d[0]=l*p+u*g,d[1]=l*h+u*b,d[2]=l*x+u*v,d[3]=l*w+u*E,d}function quaternionToEuler(e,t){var r=t[0],n=t[1],s=t[2],a=t[3],l=Math.atan2(2*n*a-2*r*s,1-2*n*n-2*s*s),u=Math.asin(2*r*n+2*s*a),d=Math.atan2(2*r*a-2*n*s,1-2*r*r-2*s*s);e[0]=l/degToRads,e[1]=u/degToRads,e[2]=d/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(r/2),l=Math.cos(n/2),u=Math.sin(t/2),d=Math.sin(r/2),p=Math.sin(n/2);return[u*d*l+s*a*p,u*a*l+s*d*p,s*d*l-u*a*p,s*a*l-u*d*p]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var s;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var s;this.propType="multidimensional";var a,l,u,d,p=t.k.length;for(s=0;s<p-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(a=t.k[s].s,l=t.k[s+1].s,u=t.k[s].to,d=t.k[s].ti,(a.length===2&&(a[0]!==l[0]||a[1]!==l[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],a[0]+u[0],a[1]+u[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],l[0]+d[0],l[1]+d[1])||a.length===3&&(a[0]!==l[0]||a[1]!==l[1]||a[2]!==l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],a[0]+u[0],a[1]+u[1],a[2]+u[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],l[0]+d[0],l[1]+d[1],l[2]+d[2]))&&(t.k[s].to=null,t.k[s].ti=null),a[0]===l[0]&&a[1]===l[1]&&u[0]===0&&u[1]===0&&d[0]===0&&d[1]===0&&(a.length===2||a[2]===l[2]&&u[2]===0&&d[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=t.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),s=0;s<h;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,s){var a;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if(typeof t.k[0]=="number")a=new MultiDimensionalProperty(e,t,n,s);else switch(r){case 0:a=new KeyframedValueProperty(e,t,n,s);break;case 1:a=new KeyframedMultidimensionalProperty(e,t,n,s)}else a=new ValueProperty(e,t,n,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;
vendor: 6,892 bytes, line 287
287)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,s){var a;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[n]||a[n]&&!s)&&(a[n]=pointPool.newElement()),a[n][0]=e,a[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,s,a,l,u){this.setXYAt(e,t,"v",l,u),this.setXYAt(r,n,"o",l,u),this.setXYAt(s,a,"i",l,u)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),s=1);var a,l=this._length-1,u=this._length;for(a=s;a<u;a+=1)e.setTripleAt(t[l][0],t[l][1],n[l][0],n[l][1],r[l][0],r[l][1],a,!1),l-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=e._length===void 0?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=(function(){function e(w,g,b){var v,E,j,R,T,z,L,V,$,U=b.lastIndex,B=this.keyframes;if(w<B[0].t-this.offsetTime)v=B[0].s[0],j=!0,U=0;else if(w>=B[B.length-1].t-this.offsetTime)v=B[B.length-1].s?B[B.length-1].s[0]:B[B.length-2].e[0],j=!0;else{for(var P,H,Z,O=U,S=B.length-1,N=!0;N&&(P=B[O],!((H=B[O+1]).t-this.offsetTime>w));)O<S-1?O+=1:N=!1;if(Z=this.keyframesMetadata[O]||{},U=O,!(j=P.h===1)){if(w>=H.t-this.offsetTime)V=1;else if(w<P.t-this.offsetTime)V=0;else{var F;Z.__fnct?F=Z.__fnct:(F=BezierFactory.getBezierEasing(P.o.x,P.o.y,P.i.x,P.i.y).get,Z.__fnct=F),V=F((w-(P.t-this.offsetTime))/(H.t-this.offsetTime-(P.t-this.offsetTime)))}E=H.s?H.s[0]:P.e[0]}v=P.s[0]}for(z=g._length,L=v.i[0].length,b.lastIndex=U,R=0;R<z;R+=1)for(T=0;T<L;T+=1)$=j?v.i[R][T]:v.i[R][T]+(E.i[R][T]-v.i[R][T])*V,g.i[R][T]=$,$=j?v.o[R][T]:v.o[R][T]+(E.o[R][T]-v.o[R][T])*V,g.o[R][T]=$,$=j?v.v[R][T]:v.v[R][T]+(E.v[R][T]-v.v[R][T])*V,g.v[R][T]=$}function t(){var w=this.comp.renderedFrame-this.offsetTime,g=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime,v=this._caching.lastFrame;return v!==-999999&&(v<g&&w<g||v>b&&w>b)||(this._caching.lastIndex=v<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function r(){this.paths=this.localShapeCollection}function n(w){(function(g,b){if(g._length!==b._length||g.c!==b.c)return!1;var v,E=g._length;for(v=0;v<E;v+=1)if(g.v[v][0]!==b.v[v][0]||g.v[v][1]!==b.v[v][1]||g.o[v][0]!==b.o[v][0]||g.o[v][1]!==b.o[v][1]||g.i[v][0]!==b.i[v][0]||g.i[v][1]!==b.i[v][1])return!1;return!0})(this.v,w)||(this.v=shapePool.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var w,g;this.lock=!0,this._mdf=!1,w=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var b=this.effectsSequence.length;for(g=0;g<b;g+=1)w=this.effectsSequence[g](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(w,g,b){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=g,this.k=!1,this.kf=!1,this._mdf=!1;var v=b===3?g.pt.k:g.ks.k;this.v=shapePool.clone(v),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}function u(w,g,b){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=b===3?g.pt.k:g.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var v=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,v),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[t.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=n,a.prototype.addEffect=l,u.prototype.getValue=s,u.prototype.interpolateShape=e,u.prototype.setVValue=n,u.prototype.addEffect=l;var d=(function(){var w=roundCorner;function g(b,v){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=v.d,this.elem=b,this.comp=b.comp,this.frameId=-1,this.initDynamicPropertyContainer(b),this.p=PropertyFactory.getProp(b,v.p,1,0,this),this.s=PropertyFactory.getProp(b,v.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return g.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var b=this.p.v[0],v=this.p.v[1],E=this.s.v[0]/2,j=this.s.v[1]/2,R=this.d!==3,T=this.v;T.v[0][0]=b,T.v[0][1]=v-j,T.v[1][0]=R?b+E:b-E,T.v[1][1]=v,T.v[2][0]=b,T.v[2][1]=v+j,T.v[3][0]=R?b-E:b+E,T.v[3][1]=v,T.i[
vendor: 7,159 bytes, line 287
2870][0]=R?b-E*w:b+E*w,T.i[0][1]=v-j,T.i[1][0]=R?b+E:b-E,T.i[1][1]=v-j*w,T.i[2][0]=R?b+E*w:b-E*w,T.i[2][1]=v+j,T.i[3][0]=R?b-E:b+E,T.i[3][1]=v+j*w,T.o[0][0]=R?b+E*w:b-E*w,T.o[0][1]=v-j,T.o[1][0]=R?b+E:b-E,T.o[1][1]=v+j*w,T.o[2][0]=R?b-E*w:b+E*w,T.o[2][1]=v+j,T.o[3][0]=R?b-E:b+E,T.o[3][1]=v-j*w}},extendPrototype([DynamicPropertyContainer],g),g})(),p=(function(){function w(g,b){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=g,this.comp=g.comp,this.data=b,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(g),b.sy===1?(this.ir=PropertyFactory.getProp(g,b.ir,0,0,this),this.is=PropertyFactory.getProp(g,b.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(g,b.pt,0,0,this),this.p=PropertyFactory.getProp(g,b.p,1,0,this),this.r=PropertyFactory.getProp(g,b.r,0,degToRads,this),this.or=PropertyFactory.getProp(g,b.or,0,0,this),this.os=PropertyFactory.getProp(g,b.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 w.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var g,b,v,E,j=2*Math.floor(this.pt.v),R=2*Math.PI/j,T=!0,z=this.or.v,L=this.ir.v,V=this.os.v,$=this.is.v,U=2*Math.PI*z/(2*j),B=2*Math.PI*L/(2*j),P=-Math.PI/2;P+=this.r.v;var H=this.data.d===3?-1:1;for(this.v._length=0,g=0;g<j;g+=1){v=T?V:$,E=T?U:B;var Z=(b=T?z:L)*Math.cos(P),O=b*Math.sin(P),S=Z===0&&O===0?0:O/Math.sqrt(Z*Z+O*O),N=Z===0&&O===0?0:-Z/Math.sqrt(Z*Z+O*O);Z+=+this.p.v[0],O+=+this.p.v[1],this.v.setTripleAt(Z,O,Z-S*E*v*H,O-N*E*v*H,Z+S*E*v*H,O+N*E*v*H,g,!0),T=!T,P+=R*H}},convertPolygonToPath:function(){var g,b=Math.floor(this.pt.v),v=2*Math.PI/b,E=this.or.v,j=this.os.v,R=2*Math.PI*E/(4*b),T=.5*-Math.PI,z=this.data.d===3?-1:1;for(T+=this.r.v,this.v._length=0,g=0;g<b;g+=1){var L=E*Math.cos(T),V=E*Math.sin(T),$=L===0&&V===0?0:V/Math.sqrt(L*L+V*V),U=L===0&&V===0?0:-L/Math.sqrt(L*L+V*V);L+=+this.p.v[0],V+=+this.p.v[1],this.v.setTripleAt(L,V,L-$*R*j*z,V-U*R*j*z,L+$*R*j*z,V+U*R*j*z,g,!0),T+=v*z}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],w),w})(),h=(function(){function w(g,b){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=g,this.comp=g.comp,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(g),this.p=PropertyFactory.getProp(g,b.p,1,0,this),this.s=PropertyFactory.getProp(g,b.s,1,0,this),this.r=PropertyFactory.getProp(g,b.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.prototype={convertRectToPath:function(){var g=this.p.v[0],b=this.p.v[1],v=this.s.v[0]/2,E=this.s.v[1]/2,j=bmMin(v,E,this.r.v),R=j*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(g+v,b-E+j,g+v,b-E+j,g+v,b-E+R,0,!0),this.v.setTripleAt(g+v,b+E-j,g+v,b+E-R,g+v,b+E-j,1,!0),j!==0?(this.v.setTripleAt(g+v-j,b+E,g+v-j,b+E,g+v-R,b+E,2,!0),this.v.setTripleAt(g-v+j,b+E,g-v+R,b+E,g-v+j,b+E,3,!0),this.v.setTripleAt(g-v,b+E-j,g-v,b+E-j,g-v,b+E-R,4,!0),this.v.setTripleAt(g-v,b-E+j,g-v,b-E+R,g-v,b-E+j,5,!0),this.v.setTripleAt(g-v+j,b-E,g-v+j,b-E,g-v+R,b-E,6,!0),this.v.setTripleAt(g+v-j,b-E,g+v-R,b-E,g+v-j,b-E,7,!0)):(this.v.setTripleAt(g-v,b+E,g-v+R,b+E,g-v,b+E,2),this.v.setTripleAt(g-v,b-E,g-v,b-E+R,g-v,b-E,3))):(this.v.setTripleAt(g+v,b-E+j,g+v,b-E+R,g+v,b-E+j,0,!0),j!==0?(this.v.setTripleAt(g+v-j,b-E,g+v-j,b-E,g+v-R,b-E,1,!0),this.v.setTripleAt(g-v+j,b-E,g-v+R,b-E,g-v+j,b-E,2,!0),this.v.setTripleAt(g-v,b-E+j,g-v,b-E+j,g-v,b-E+R,3,!0),this.v.setTripleAt(g-v,b+E-j,g-v,b+E-R,g-v,b+E-j,4,!0),this.v.setTripleAt(g-v+j,b+E,g-v+j,b+E,g-v+R,b+E,5,!0),this.v.setTripleAt(g+v-j,b+E,g+v-R,b+E,g+v-j,b+E,6,!0),this.v.setTripleAt(g+v,b+E-j,g+v,b+E-j,g+v,b+E-R,7,!0)):(this.v.setTripleAt(g-v,b-E,g-v+R,b-E,g-v,b-E,1,!0),this.v.setTripleAt(g-v,b+E,g-v,b+E-R,g-v,b+E,2,!0),this.v.setTripleAt(g+v,b+E,g+v-R,b+E,g+v,b+E,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],w),w})(),x={getShapeProp:function(w,g,b){var v;return b===3||b===4?v=(b===3?g.pt:g.ks).k.length?new u(w,g,b):new a(w,g,b):b===5?v=new h(w,g):b===6?v=new d(w,g):b===7&&(v=new p(w,g)),v.k&&w.addDynamicProperty(v),v},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return u}};return x})(),Matrix=(function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(W){if(W===0)return this;var q=e(W),A=t(W);return this._t(q,-A,0,0,A,q,0,0,0,0,1,0,0,0,0,1)}function l(W){if(W===0)return this;var q=e(W),A=t(W);return this._t(1,0,0,0,0,q,-A,0,0,A,q,0,0,0,0,1)}function u(W){if(W===0)return this;var q=e(W),A=t(W);return this._t(q,0,A,0,0,1,0,0,-A,0,q,0,0,0,0,1)}function d(W){if(W===0)return this;var q=e(W),A=t(W);return this._t(q,-A,0,0,A,q,0,0,0,0,1,0,0,0,0,1)}function p(W,q){return this._t(1,q,W,1,0,0)}function h(W,q){return this.shear(r(W),r(q))}function x(W,q){var A=e(q),D=t(q);return this._t(A,D,0,0,-D,A,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(W),1,0,0,0,0,1,0,0,0,0,1)._t(A,-D,0,0,D,A,0,0,0,0,1,0,0,0,0,1)}function w(W,q,A){return A||A===0||(A=1),W===1&&q===1&&A===1?this:this._t(W,0,0,0,0,q,0,0,0,0,A,0,0,0,0,1)}function g(W,q,A,D,_,M,G,Q,te,ne,ae,fe,Se,Ce,_e,Me){return this.props[0]=W,this.props[1]=q,this.props[2]=A,this.props[3]=D,this.props[4]=_,this.props[5]=M,this.props[6]=G,this.props[7]=Q,this.props[8]=te,this.props[9]=ne,this.props[10]=ae,this.props[11]=fe,this.props[12]=Se,this.props[13]=Ce,this.props[14]=_e,this.props[15]=Me,this}function b(W,q,A){return A=A||0,W!==0||q!==0||A!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,W,q,A,1):this}function v(W,q,A,D,_,M,G,Q,te,ne,ae,fe,Se,Ce,_e,Me){var ve=this.props;if(W===1&&q===0&&A===0&&D===0&&_===0&&M===1&&G===0&&Q===0&&te===0&&ne===0&&ae===1&&fe===0)return ve[12]=ve[12]*W+ve[15]*Se,ve[13]=ve[13]*M+ve[15]*Ce,ve[14]=ve[14]*ae+ve[15]*_e,ve[15]*=Me,this._identityCalculated=!1,this;var Le=ve[0],et=ve[1],Te=ve[2],Be=ve[3],Ye=ve[4],Ie=ve[5],ze=ve[6],at=ve[7],qe=ve[8],Xe=ve[9],ot=ve[10],Ze=ve[11],ee=ve[12],K=ve[13],Y=ve[14],se=ve[15];return ve[0]=Le*W+et*_+Te*te+Be*Se,ve[1]=Le*q+et*M+Te*ne+Be*Ce,ve[2]=Le*A+et*G+Te*ae+Be*_e,ve[3]=Le*D+et*Q+Te*fe+Be*Me,ve[4]=Ye*W+Ie*_+ze*te+at*Se,ve[5]=Ye*q+Ie*M+ze*ne+at*Ce,ve[6]=Ye*A+Ie*G+ze*ae+at*_e,ve[7]=Ye*D+Ie*Q+ze*fe+at*Me,ve[8]=qe*W+Xe*_+ot*te+Ze*Se,ve[9]=qe*q+Xe*M+ot*ne+Ze*Ce,ve[10
vendor: 7,794 bytes, line 287
287]=qe*A+Xe*G+ot*ae+Ze*_e,ve[11]=qe*D+Xe*Q+ot*fe+Ze*Me,ve[12]=ee*W+K*_+Y*te+se*Se,ve[13]=ee*q+K*M+Y*ne+se*Ce,ve[14]=ee*A+K*G+Y*ae+se*_e,ve[15]=ee*D+K*Q+Y*fe+se*Me,this._identityCalculated=!1,this}function E(W){var q=W.props;return this.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15])}function j(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function R(W){for(var q=0;q<16;){if(W.props[q]!==this.props[q])return!1;q+=1}return!0}function T(W){var q;for(q=0;q<16;q+=1)W.props[q]=this.props[q];return W}function z(W){var q;for(q=0;q<16;q+=1)this.props[q]=W[q]}function L(W,q,A){return{x:W*this.props[0]+q*this.props[4]+A*this.props[8]+this.props[12],y:W*this.props[1]+q*this.props[5]+A*this.props[9]+this.props[13],z:W*this.props[2]+q*this.props[6]+A*this.props[10]+this.props[14]}}function V(W,q,A){return W*this.props[0]+q*this.props[4]+A*this.props[8]+this.props[12]}function $(W,q,A){return W*this.props[1]+q*this.props[5]+A*this.props[9]+this.props[13]}function U(W,q,A){return W*this.props[2]+q*this.props[6]+A*this.props[10]+this.props[14]}function B(){var W=this.props[0]*this.props[5]-this.props[1]*this.props[4],q=this.props[5]/W,A=-this.props[1]/W,D=-this.props[4]/W,_=this.props[0]/W,M=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/W,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/W,Q=new Matrix;return Q.props[0]=q,Q.props[1]=A,Q.props[4]=D,Q.props[5]=_,Q.props[12]=M,Q.props[13]=G,Q}function P(W){return this.getInverseMatrix().applyToPointArray(W[0],W[1],W[2]||0)}function H(W){var q,A=W.length,D=[];for(q=0;q<A;q+=1)D[q]=P(W[q]);return D}function Z(W,q,A){var D=createTypedArray("float32",6);if(this.isIdentity())D[0]=W[0],D[1]=W[1],D[2]=q[0],D[3]=q[1],D[4]=A[0],D[5]=A[1];else{var _=this.props[0],M=this.props[1],G=this.props[4],Q=this.props[5],te=this.props[12],ne=this.props[13];D[0]=W[0]*_+W[1]*G+te,D[1]=W[0]*M+W[1]*Q+ne,D[2]=q[0]*_+q[1]*G+te,D[3]=q[0]*M+q[1]*Q+ne,D[4]=A[0]*_+A[1]*G+te,D[5]=A[0]*M+A[1]*Q+ne}return D}function O(W,q,A){return this.isIdentity()?[W,q,A]:[W*this.props[0]+q*this.props[4]+A*this.props[8]+this.props[12],W*this.props[1]+q*this.props[5]+A*this.props[9]+this.props[13],W*this.props[2]+q*this.props[6]+A*this.props[10]+this.props[14]]}function S(W,q){if(this.isIdentity())return W+","+q;var A=this.props;return Math.round(100*(W*A[0]+q*A[4]+A[12]))/100+","+Math.round(100*(W*A[1]+q*A[5]+A[13]))/100}function N(){for(var W=0,q=this.props,A="matrix3d(";W<16;)A+=n(1e4*q[W])/1e4,A+=W===15?")":",",W+=1;return A}function F(W){return W<1e-6&&W>0||W>-1e-6&&W<0?n(1e4*W)/1e4:W}function k(){var W=this.props;return"matrix("+F(W[0])+","+F(W[1])+","+F(W[4])+","+F(W[5])+","+F(W[12])+","+F(W[13])+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=l,this.rotateY=u,this.rotateZ=d,this.skew=h,this.skewFromAxis=x,this.shear=p,this.scale=w,this.setTransform=g,this.translate=b,this.transform=v,this.multiply=E,this.applyToPoint=L,this.applyToX=V,this.applyToY=$,this.applyToZ=U,this.applyToPointArray=O,this.applyToTriplePoints=Z,this.applyToPointStringified=S,this.toCSS=N,this.to2dCSS=k,this.clone=T,this.cloneFromProps=z,this.equals=R,this.inversePoints=H,this.inversePoint=P,this.getInverseMatrix=B,this._t=this.transform,this.isIdentity=j,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};return e.registerModifier=function(r,n){t[r]||(t[r]=n)},e.getModifier=function(r,n,s){return new t[r](n,s)},e})();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 1,572 bytes, line 287
287pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var l,u,d=[],p=a.length;for(l=0;l<p;l+=1){var h,x;(u=a[l]).e*s<n||u.s*s>n+r||(h=u.s*s<=n?0:(u.s*s-n)/r,x=u.e*s>=n+r?1:(u.e*s-n)/r,d.push([h,x]))}return d.length||d.push([0,0]),d},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,s;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(r=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var l=t;t=r,r=l}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var u,d,p,h,x,w=this.shapes.length,g=0;if(r===t)for(s=0;s<w;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(s=0;s<w;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var b,v,E=[];for(s=0;s<w;
vendor: 10,552 bytes, line 287
287s+=1)if((b=this.shapes[s]).shape._mdf||this._mdf||e||this.m===2){if(d=(n=b.shape.paths)._length,x=0,!b.shape._mdf&&b.pathsData.length)x=b.totalShapeLength;else{for(p=this.releasePathsData(b.pathsData),u=0;u<d;u+=1)h=bez.getSegmentsLength(n.shapes[u]),p.push(h),x+=h.totalLength;b.totalShapeLength=x,b.pathsData=p}g+=x,b.shape._mdf=!0}else b.shape.paths=b.localShapeCollection;var j,R=t,T=r,z=0;for(s=w-1;s>=0;s-=1)if((b=this.shapes[s]).shape._mdf){for((v=b.localShapeCollection).releaseShapes(),this.m===2&&w>1?(j=this.calculateShapeEdges(t,r,b.totalShapeLength,z,g),z+=b.totalShapeLength):j=[[R,T]],d=j.length,u=0;u<d;u+=1){R=j[u][0],T=j[u][1],E.length=0,T<=1?E.push({s:b.totalShapeLength*R,e:b.totalShapeLength*T}):R>=1?E.push({s:b.totalShapeLength*(R-1),e:b.totalShapeLength*(T-1)}):(E.push({s:b.totalShapeLength*R,e:b.totalShapeLength}),E.push({s:0,e:b.totalShapeLength*(T-1)}));var L=this.addShapes(b,E[0]);if(E[0].s!==E[0].e){if(E.length>1)if(b.shape.paths.shapes[b.shape.paths._length-1].c){var V=L.pop();this.addPaths(L,v),L=this.addShapes(b,E[1],V)}else this.addPaths(L,v),L=this.addShapes(b,E[1]);this.addPaths(L,v)}}b.shape.paths=v}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,s,a,l){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),l&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,s,a,l,u,d,p,h,x=e.pathsData,w=e.shape.paths.shapes,g=e.shape.paths._length,b=0,v=[],E=!0;for(r?(u=r._length,h=r._length):(r=shapePool.newElement(),u=0,h=0),v.push(r),n=0;n<g;n+=1){for(d=x[n].lengths,r.c=w[n].c,a=w[n].c?d.length:d.length+1,s=1;s<a;s+=1)if(b+(l=d[s-1]).addedLength<t.s)b+=l.addedLength,r.c=!1;else{if(b>t.e){r.c=!1;break}t.s<=b&&t.e>=b+l.addedLength?(this.addSegment(w[n].v[s-1],w[n].o[s-1],w[n].i[s],w[n].v[s],r,u,E),E=!1):(p=bez.getNewSegment(w[n].v[s-1],w[n].v[s],w[n].o[s-1],w[n].i[s],(t.s-b)/l.addedLength,(t.e-b)/l.addedLength,d[s-1]),this.addSegmentFromArray(p,r,u,E),E=!1,r.c=!1),b+=l.addedLength,u+=1}if(w[n].c&&d.length){if(l=d[s-1],b<=t.e){var j=d[s-1].addedLength;t.s<=b&&t.e>=b+j?(this.addSegment(w[n].v[s-1],w[n].o[s-1],w[n].i[0],w[n].v[0],r,u,E),E=!1):(p=bez.getNewSegment(w[n].v[s-1],w[n].v[0],w[n].o[s-1],w[n].i[0],(t.s-b)/j,(t.e-b)/j,d[s-1]),this.addSegmentFromArray(p,r,u,E),E=!1,r.c=!1)}else r.c=!1;b+=l.addedLength,u+=1}if(r._length&&(r.setXYAt(r.v[h][0],r.v[h][1],"i",h),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),b>t.e)break;n<g-1&&(r=shapePool.newElement(),E=!0,v.push(r),u=0)}return v},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=s,n[1]/=s;var l,u,d,p,h,x,w=shapePool.newElement();for(w.c=e.c,a=0;a<s;a+=1)l=e.v[a][0]+(n[0]-e.v[a][0])*r,u=e.v[a][1]+(n[1]-e.v[a][1])*r,d=e.o[a][0]+(n[0]-e.o[a][0])*-r,p=e.o[a][1]+(n[1]-e.o[a][1])*-r,h=e.i[a][0]+(n[0]-e.i[a][0])*-r,x=e.i[a][1]+(n[1]-e.i[a][1])*-r,w.setTripleAt(l,u,d,p,h,x,a);return w},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,s,a,l,u=this.shapes.length,d=this.amount.v;if(d!==0)for(r=0;r<u;r+=1){if(l=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,s=a.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],d));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(r,n,s){if(this.elem=r,this.frameId=-1,this.propType="transform",this.data=n,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(s||r),n.p&&n.p.s?(this.px=PropertyFactory.getProp(r,n.p.x,0,0,this),this.py=PropertyFactory.getProp(r,n.p.y,0,0,this),n.p.z&&(this.pz=PropertyFactory.getProp(r,n.p.z,0,0,this))):this.p=PropertyFactory.getProp(r,n.p||{k:[0,0,0]},1,0,this),n.rx){if(this.rx=PropertyFactory.getProp(r,n.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(r,n.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(r,n.rz,0,degToRads,this),n.or.k[0].ti){var a,l=n.or.k.length;for(a=0;a<l;a+=1)n.or.k[a].to=null,n.or.k[a].ti=null}this.or=PropertyFactory.getProp(r,n.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(r,n.r||{k:0},0,degToRads,this);n.sk&&(this.sk=PropertyFactory.getProp(r,n.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(r,n.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(r,n.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(r,n.s||{k:[100,100,100]},1,.01,this),n.o?this.o=PropertyFactory.getProp(r,n.o,0,.01,r):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(r){var n=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||n,this.a&&r.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&r.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&r.skewFromAxis(-this.sk.v,this.sa.v),this.r?r.rotate(-this.r.v):r.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?r.translate(this.px.v,this.py.v,-this.pz.v):r.translate(this.px.v,this.py.v,0):r.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(r){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||r){var n;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 s,a;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),a=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(s=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],a=[];var l=this.px,u=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(s[0]=l.getValueAtTime((l.keyframes[0].t+.01)/n,0),s[1]=u.getValueAtTime((u.keyframes[0].t+.01)/n,0),a[0]=l.getValueAtTime(l.keyframes[0].t/n,0),a[1]=u.getValueAtTime(u.keyframes[0].t/n,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(s[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/n,0),s[1]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/n,0),a[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/n,0),a[1]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/n,0)):(s=[l.pv,u.pv],a[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/n,l.offsetTime),a[1]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/n,u.offsetTime))}else s=a=e;this.v.rotate(-Math.atan2(s[1]-a[1],s[0]-a[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}},precalculateMatrix:function(){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,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}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)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(r){this._addDynamicProperty(r),this.elem.addDynamicProperty(r),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(r,n,s){return new t(r,n,s)}}})();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var n=t*t-4*e*r;if(n<0)return[];var s=-t/(2*e);if(n===0)return[s];var a=Math.sqrt(n)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),s&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],r[0],n[0]),l=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[a[0],l[0]],this.b=[a[1],l[1]],this.c=[a[2],l[2]],this.d=[a[3],l[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];
vendor: 5,795 bytes, line 287
287if(r>n){var s=n;n=r,r=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),l=0;l<a.length;l+=1)if(a[l]>0&&a[l]<1){var u=e.point(a[l])[t];u<r?r=u:u>n&&(n=u)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,s,a){if(boxIntersect(e,t))if(r>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)s.push([e.t,t.t]);else{var l=splitData(e),u=splitData(t);intersectsImpl(l[0],u[0],r+1,n,s,a),intersectsImpl(l[0],u[1],r+1,n,s,a),intersectsImpl(l[1],u[0],r+1,n,s,a),intersectsImpl(l[1],u[1],r+1,n,s,a)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var s=[e[0],e[1],1],a=[t[0],t[1],1],l=[r[0],r[1],1],u=[n[0],n[1],1],d=crossProduct(crossProduct(s,a),crossProduct(l,u));return floatZero(d[2])?null:[d[0]/d[2],d[1]/d[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,s,a,l){var u=r-Math.PI/2,d=r+Math.PI/2,p=t[0]+Math.cos(r)*n*s,h=t[1]-Math.sin(r)*n*s;e.setTripleAt(p,h,p+Math.cos(u)*a,h-Math.sin(u)*a,p+Math.cos(d)*l,h-Math.sin(d)*l,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,n=(t+1)%e.length(),s=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,t,r,n,s,a,l){var u=getProjectingAngle(t,r),d=t.v[r%t._length],p=t.v[r===0?t._length-1:r-1],h=t.v[(r+1)%t._length],x=a===2?Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)):0,w=a===2?Math.sqrt(Math.pow(d[0]-h[0],2)+Math.pow(d[1]-h[1],2)):0;setPoint(e,t.v[r%t._length],u,l,n,w/(2*(s+1)),x/(2*(s+1)))}function zigZagSegment(e,t,r,n,s,a){for(var l=0;l<n;l+=1){var u=(l+1)/(n+1),d=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,p=t.normalAngle(u);setPoint(e,t.point(u),p,a,r,d/(2*(n+1)),d/(2*(n+1))),a=-a}return a}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,s,a,l,u,d;r=(d=linearOffset(e.points[0],e.points[1],t))[0],n=d[1],s=(d=linearOffset(e.points[1],e.points[2],t))[0],a=d[1],l=(d=linearOffset(e.points[2],e.points[3],t))[0],u=d[1];var p=lineIntersection(r,n,s,a);p===null&&(p=n);var h=lineIntersection(l,u,s,a);return h===null&&(h=l),new PolynomialBezier(r,p,h,u)}function joinLines(e,t,r,n,s){var a=t.points[3],l=r.points[0];if(n===3||pointEqual(a,l))return a;if(n===2){var u=-t.tangentAngle(1),d=-r.tangentAngle(0)+Math.PI,p=lineIntersection(a,polarOffset(a,u+Math.PI/2,100),l,polarOffset(l,u+Math.PI/2,100)),h=p?pointDistance(p,a):pointDistance(a,l)/2,x=polarOffset(a,u,2*h*roundCorner);return e.setXYAt(x[0],x[1],"o",e.length()-1),x=polarOffset(l,d,2*h*roundCorner),e.setTripleAt(l[0],l[1],l[0],l[1],x[0],x[1],e.length()),l}var w=lineIntersection(pointEqual(a,t.points[2])?t.points[0]:t.points[2],a,l,pointEqual(l,r.points[1])?r.points[3]:r.points[1]);return w&&pointDistance(w,a)<s?(e.setTripleAt(w[0],w[1],w[0],w[1],w[0],w[1],e.length()),w):a}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],n[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]))?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,s,a,l=e.inflectionPoints();if(l.length===0)return[offsetSegment(e,t)];if(l.length===1||floatEqual(l[1],1))return r=(s=e.split(l[0]))[0],n=s[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(s=e.split(l[0]))[0];var u=(l[1]-l[0])/(1-l[0]);return a=(s=s[1].split(u))[0],n=s[1],[offsetSegment(r,t),offsetSegment(a,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",s=t.length,a=0;a<s;a+=1)switch(t[a].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,s,a){var l=a?
vendor: 10,372 bytes, line 287
287-1:1,u=n.s.v[0]+(1-n.s.v[0])*(1-s),d=n.s.v[1]+(1-n.s.v[1])*(1-s);e.translate(n.p.v[0]*l*s,n.p.v[1]*l*s,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*l*s),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(a?1/u:u,a?1/d:d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,s,a,l=!1;if(this._mdf||e){var u,d=Math.ceil(this.c.v);if(this._groups.length<d){for(;this._groups.length<d;){var p={it:this.cloneElements(this._elements),ty:"gr"};p.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,p),this._groups.splice(0,0,p),this._currentCopies+=1}this.elem.reloadShapes(),l=!0}for(a=0,n=0;n<=this._groups.length-1;n+=1){if(u=a<d,this._groups[n]._render=u,this.changeGroupRender(this._groups[n].it,u),!u){var h=this.elemsData[n].it,x=h[h.length-1];x.transform.op.v!==0?(x.transform.op._mdf=!0,x.transform.op.v=0):x.transform.op._mdf=!1}a+=1}this._currentCopies=d;var w=this.o.v,g=w%1,b=w>0?Math.floor(w):Math.ceil(w),v=this.pMatrix.props,E=this.rMatrix.props,j=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var R,T,z=0;if(w>0){for(;z<b;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),z+=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,g,!1),z+=g)}else if(w<0){for(;z>b;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),z-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),z-=g)}for(n=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;a;){if(T=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),z!==0){for((n!==0&&s===1||n!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),R=0;R<T;R+=1)r[R]=this.matrix.props[R];this.matrix.reset()}else for(this.matrix.reset(),R=0;R<T;R+=1)r[R]=this.matrix.props[R];z+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=s;return l},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var s,a,l,u,d,p,h,x,w,g,b,v,E=e._length,j=0;for(r=0;r<E;r+=1)s=e.v[r],l=e.o[r],a=e.i[r],s[0]===l[0]&&s[1]===l[1]&&s[0]===a[0]&&s[1]===a[1]?r!==0&&r!==E-1||e.c?(u=r===0?e.v[E-1]:e.v[r-1],p=(d=Math.sqrt(Math.pow(s[0]-u[0],2)+Math.pow(s[1]-u[1],2)))?Math.min(d/2,t)/d:0,h=b=s[0]+(u[0]-s[0])*p,x=v=s[1]-(s[1]-u[1])*p,w=h-(h-s[0])*roundCorner,g=x-(x-s[1])*roundCorner,n.setTripleAt(h,x,w,g,b,v,j),j+=1,u=r===E-1?e.v[0]:e.v[r+1],p=(d=Math.sqrt(Math.pow(s[0]-u[0],2)+Math.pow(s[1]-u[1],2)))?Math.min(d/2,t)/d:0,h=w=s[0]+(u[0]-s[0])*p,x=g=s[1]+(u[1]-s[1])*p,b=h-(h-s[0])*roundCorner,v=x-(x-s[1])*roundCorner,n.setTripleAt(h,x,w,g,b,v,j),j+=1):(n.setTripleAt(s[0],s[1],l[0],l[1],a[0],a[1],j),j+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],j),j+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,s,a,l,u=this.shapes.length,d=this.rd.v;if(d!==0)for(r=0;r<u;r+=1){if(l=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,s=a.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],d));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(s){return s>0&&s<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),a=lerpPoint(r,n,e),l=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,l,!0),new PolynomialBezier(l,a,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(e,t,r,n){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var l=-1,u=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,r,n,l);for(var d=0;d<s;d+=1)l=zigZagSegment(a,u,t,r,n,-l),u=d!==s-1||e.c?PolynomialBezier.shapeSegment(e,(d+1)%s):null,zigZagCorner(a,e,d+1,t,r,n,l);return a},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,s,a,l,u=this.shapes.length,d=this.amplitude.v,p=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(d!==0)for(r=0;r<u;r+=1){if(l=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,s=a.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],d,p,h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var s=shapePool.newElement();s.c=e.c;var a,l,u,d=e.length();e.c||(d-=1);var p=[];for(a=0;a<d;a+=1)u=PolynomialBezier.shapeSegment(e,a),p.push(offsetSegmentSplit(u,t));if(!e.c)for(a=d-1;a>=0;a-=1)u=PolynomialBezier.shapeSegmentInverted(e,a),p.push(offsetSegmentSplit(u,t));p=pruneIntersections(p);var h=null,x=null;for(a=0;a<p.length;a+=1){var w=p[a];for(x&&(h=joinLines(s,x,w[0],r,n)),x=w[w.length-1],l=0;l<w.length;l+=1)u=w[l],h&&pointEqual(u.points[0],h)?s.setXYAt(u.points[1][0],u.points[1][1],"o",s.length()-1):s.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],s.length()),s.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],s.length()),h=u.points[3]}return p.length&&joinLines(s,x,p[0][0],r,n),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,s,a,l,u=this.shapes.length,d=this.amount.v,p=this.miterLimit.v,h=this.lineJoin;if(d!==0)for(r=0;r<u;r+=1){if(l=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,s=a.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],d,h,p));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};
287var FontManager=(function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(d,p){var h=createTag("span");h.setAttribute("aria-hidden",!0),h.style.fontFamily=p;var x=createTag("span");x.innerText="giItT1WQy@!-/#",h.style.position="absolute",h.style.left="-10000px",h.style.top="-10000px",h.style.fontSize="300px",h.style.fontVariant="normal",h.style.fontStyle="normal",h.style.fontWeight="normal",h.style.letterSpacing="0",h.appendChild(x),document.body.appendChild(h);var w=x.offsetWidth;return x.style.fontFamily=(function(g){var b,v=g.split(","),E=v.length,j=[];for(b=0;b<E;b+=1)v[b]!=="sans-serif"&&v[b]!=="monospace"&&j.push(v[b]);return j.join(",")})(d)+", "+p,{node:x,w,parent:h}}function s(d,p){var h,x=document.body&&p?"svg":"canvas",w=getFontProperties(d);if(x==="svg"){var g=createNS("text");g.style.fontSize="100px",g.setAttribute("font-family",d.fFamily),g.setAttribute("font-style",w.style),g.setAttribute("font-weight",w.weight),g.textContent="1",d.fClass?(g.style.fontFamily="inherit",g.setAttribute("class",d.fClass)):g.style.fontFamily=d.fFamily,p.appendChild(g),h=g}else{var b=new OffscreenCanvas(500,500).getContext("2d");b.font=w.style+" "+w.weight+" 100px "+d.fFamily,h=b}return{measureText:function(v){return x==="svg"?(h.textContent=v,h.getComputedTextLength()):h.measureText(v).width}}}function a(d){var p=0,h=d.charCodeAt(0);if(h>=55296&&h<=56319){var x=d.charCodeAt(1);x>=56320&&x<=57343&&(p=1024*(h-55296)+x-56320+65536)}return p}function l(d){var p=a(d);return p>=127462&&p<=127487}var u=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)};return u.isModifier=function(d,p){var h=d.toString(16)+p.toString(16);return r.indexOf(h)!==-1},u.isZeroWidthJoiner=function(d){return d===8205},u.isFlagEmoji=function(d){return l(d.substr(0,2))&&l(d.substr(2,2))},u.isRegionalCode=l,u.isCombinedCharacter=function(d){return t.indexOf(d)!==-1},u.isRegionalFlag=function(d,p){var h=a(d.substr(p,2));if(h!==127988)return!1;var x=0;for(p+=2;x<5;){if((h=a(d.substr(p,2)))<917601||h>917626)return!1;x+=1,p+=2}return a(d.substr(p,2))===917631},u.isVariationSelector=function(d){return d===65039},u.BLACK_FLAG_CODE_POINT=127988,u.prototype={addChars:function(d){if(d){var p;this.chars||(this.chars=[]);var h,x,w=d.length,g=this.chars.length;for(p=0;p<w;p+=1){for(h=0,x=!1;h<g;)this.chars[h].style===d[p].style&&this.chars[h].fFamily===d[p].fFamily&&this.chars[h].ch===d[p].ch&&(x=!0),h+=1;x||(this.chars.push(d[p]),g+=1)}}},addFonts:function(d,p){if(d){if(this.chars)return this.isLoaded=!0,void(this.fonts=d.list);if(!document.body)return this.isLoaded=!0,d.list.forEach((function(z){z.helper=s(z),z.cache={}})),void(this.fonts=d.list);var h,x=d.list,w=x.length,g=w;for(h=0;h<w;h+=1){var b,v,E=!0;if(x[h].loaded=!1,x[h].monoCase=n(x[h].fFamily,"monospace"),x[h].sansCase=n(x[h].fFamily,"sans-serif"),x[h].fPath){if(x[h].fOrigin==="p"||x[h].origin===3){if((b=document.querySelectorAll('style[f-forigin="p"][f-family="'+x[h].fFamily+'"], style[f-origin="3"][f-family="'+x[h].fFamily+'"]')).length>0&&(E=!1),E){var j=createTag("style");j.setAttribute("f-forigin",x[h].fOrigin),j.setAttribute("f-origin",x[h].origin),j.setAttribute("f-family",x[h].fFamily),j.type="text/css",j.innerText="@font-face {font-family: "+x[h].fFamily+"; font-style: normal; src: url('"+x[h].fPath+"');}",p.appendChild(j)}}else if(x[h].fOrigin==="g"||x[h].origin===1){for(b=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),v=0;v<b.length;v+=1)b[v].href.indexOf(x[h].fPath)!==-1&&(E=!1);if(E){var R=createTag("link");R.setAttribute("f-forigin",x[h].fOrigin),R.setAttribute("f-origin",x[h].origin),R.type="text/css",R.rel="stylesheet",R.href=x[h].fPath,document.body.appendChild(R)}}else if(x[h].fOrigin==="t"||x[h].origin===2){for(b=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),v=0;v<b.length;v+=1)x[h].fPath===b[v].src&&(E=!1);if(E){var T=createTag("link");T.setAttribute("f-forigin",x[h].fOrigin),T.setAttribute("f-origin",x[h].origin),T.setAttribute("rel","stylesheet"),T.setAttribute("href",x[h].fPath),p.appendChild(T)}}}else x[h].loaded=!0,g-=1;
vendor: 13,415 bytes, line 287
287x[h].helper=s(x[h],p),x[h].cache={},this.fonts.push(x[h])}g===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(d,p,h){for(var x=0,w=this.chars.length;x<w;){if(this.chars[x].ch===d&&this.chars[x].style===p&&this.chars[x].fFamily===h)return this.chars[x];x+=1}return(typeof d=="string"&&d.charCodeAt(0)!==13||!d)&&console&&console.warn&&!this._warned&&(this._warned=!0),e},getFontByName:function(d){for(var p=0,h=this.fonts.length;p<h;){if(this.fonts[p].fName===d)return this.fonts[p];p+=1}return this.fonts[0]},measureText:function(d,p,h){var x=this.getFontByName(p),w=d;if(!x.cache[w]){var g=x.helper;if(d===" "){var b=g.measureText("|"+d+"|"),v=g.measureText("||");x.cache[w]=(b-v)/100}else x.cache[w]=g.measureText(d)/100}return x.cache[w]*h},checkLoadedFonts:function(){var d,p,h,x=this.fonts.length,w=x;for(d=0;d<x;d+=1)this.fonts[d].loaded?w-=1:this.fonts[d].fOrigin==="n"||this.fonts[d].origin===0?this.fonts[d].loaded=!0:(p=this.fonts[d].monoCase.node,h=this.fonts[d].monoCase.w,p.offsetWidth!==h?(w-=1,this.fonts[d].loaded=!0):(p=this.fonts[d].sansCase.node,h=this.fonts[d].sansCase.w,p.offsetWidth!==h&&(w-=1,this.fonts[d].loaded=!0)),this.fonts[d].loaded&&(this.fonts[d].sansCase.parent.parentNode.removeChild(this.fonts[d].sansCase.parent),this.fonts[d].monoCase.parent.parentNode.removeChild(this.fonts[d].monoCase.parent)));w!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},u})();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={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"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var s,a=n.length;for(r=0;r<a;r+=1)s=new GroupEffect(n[r],t),this.effectElements.push(s)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,s=this.data.ef.length,a=this.data.ef;for(r=0;r<s;r+=1){switch(n=null,a[r].ty){case 0:n=new SliderEffect(a[r],t,this);break;case 1:n=new AngleEffect(a[r],t,this);break;case 2:n=new ColorEffect(a[r],t,this);break;case 3:n=new PointEffect(a[r],t,this);break;case 4:case 7:n=new CheckboxEffect(a[r],t,this);break;case 10:n=new LayerIndexEffect(a[r],t,this);break;case 11:n=new MaskIndexEffect(a[r],t,this);break;case 5:n=new EffectsManager(a[r],t);break;default:n=new NoValueEffect(a[r])}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if(this.data.masksProperties[e].mode!=="n"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),s=e("text"),a=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,s=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<s;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,s=this.layers,a=0,l=s.length;a<l;)s[a].ind==t&&(n[a]&&n[a]!==!0?(r.push(n[a]),n[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,r):e.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if(typeof r=="number")t=this.elements[r];else{var n,s=this.elements.length;for(n=0;n<s;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return e.length===0?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,s,a=this.globalData.defs,l=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(l),this.solidPath="";var u,d,p,h,x,w,g=this.masksProperties,b=0,v=[],E=createElementID(),j="clipPath",R="clip-path";
vendor: 1,098 bytes, line 287
287for(n=0;n<l;n+=1)if((g[n].mode!=="a"&&g[n].mode!=="n"||g[n].inv||g[n].o.k!==100||g[n].o.x)&&(j="mask",R="mask"),g[n].mode!=="s"&&g[n].mode!=="i"||b!==0?p=null:((p=createNS("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),v.push(p)),s=createNS("path"),g[n].mode==="n")this.viewData[n]={op:PropertyFactory.getProp(this.element,g[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,g[n],3),elem:s,lastPath:""},a.appendChild(s);else{var T;if(b+=1,s.setAttribute("fill",g[n].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),g[n].x.k!==0?(j="mask",R="mask",w=PropertyFactory.getProp(this.element,g[n].x,0,null,this.element),T=createElementID(),(h=createNS("filter")).setAttribute("id",T),(x=createNS("feMorphology")).setAttribute("operator","erode"),x.setAttribute("in","SourceGraphic"),x.setAttribute("radius","0"),h.appendChild(x),a.appendChild(h),s.setAttribute("stroke",g[n].mode==="s"?"#000000":"#ffffff")):(x=null,w=null),this.storedData[n]={elem:s,x:w,exp
vendor: 7,229 bytes, line 287
287an:x,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},g[n].mode==="i"){d=v.length;var z=createNS("g");for(u=0;u<d;u+=1)z.appendChild(v[u]);var L=createNS("mask");L.setAttribute("mask-type","alpha"),L.setAttribute("id",E+"_"+b),L.appendChild(s),a.appendChild(L),z.setAttribute("mask","url("+getLocationHref()+"#"+E+"_"+b+")"),v.length=0,v.push(z)}else v.push(s);g[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,g[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,g[n],3),invRect:p},this.viewData[n].prop.k||this.drawPath(g[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(j),l=v.length,n=0;n<l;n+=1)this.maskElement.appendChild(v[n]);b>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(R,"url("+getLocationHref()+"#"+E+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)s*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&t.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a,l=t.length;for(r=0;r<l;r+=1)a=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),this.masksProperties[t].mode!=="n"&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var s=this.storedData[t].expan;this.storedData[t].x.v<0?(this.storedData[t].lastOperator!=="erode"&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),s.setAttribute("radius",-this.storedData[t].x.v)):(this.storedData[t].lastOperator!=="dilate"&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,s,a=" M"+t.v[0][0]+","+t.v[0][1];for(s=t._length,n=1;n<s;n+=1)a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&s>1&&(a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==a){var l="";r.elem&&(t.c&&(l=e.inv?this.solidPath+a:a),r.elem.setAttribute("d",l)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};return e.createFilter=function(t,r){var n=createNS("filter");return n.setAttribute("id",t),r!==!0&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},e.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",s=e.data.ef?e.data.ef.length:0,a=createElementID(),l=filtersFactory.createFilter(a,!0),u=0;for(this.filters=[],t=0;t<s;t+=1){r=null;var d=e.data.ef[t].ty;registeredEffects$1[d]&&(r=new registeredEffects$1[d].effect(l,e.effectsManager.effectElements[t],e,idPrefix+u,n),n=idPrefix+u,registeredEffects$1[d].countsAsEffect&&(u+=1)),r&&this.filters.push(r)}u&&(e.globalData.defs.appendChild(l),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 15,944 bytes, line 287
287function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(r.setAttribute("id",s),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,s,a=this.layerId+"_"+e;if(e===1||e===3){var l=createNS("mask");l.setAttribute("id",a),l.setAttribute("mask-type",e===3?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),this.globalData.defs.appendChild(l),featureSupport.maskType||e!==1||(l.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(s=createNS("g")).appendChild(n),l.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(e===2){var u=createNS("mask");u.setAttribute("id",a),u.setAttribute("mask-type","alpha");var d=createNS("g");u.appendChild(d),t=createElementID(),r=filtersFactory.createFilter(t);var p=createNS("feComponentTransfer");p.setAttribute("in","SourceGraphic"),r.appendChild(p);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),p.appendChild(h),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"),d.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),d.appendChild(x),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(n),featureSupport.maskType||(u.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),d.appendChild(x),s.appendChild(this.layerElement),d.appendChild(s)),this.globalData.defs.appendChild(u)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).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(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,s=e.length;n<s;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var s;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var a,l=t.length||0;for(s=0;s<l;s+=1)a=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:t[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,s=4*this.data.p;for(t=0;t<s;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,t=4*this.data.p;t<s;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(t.t===1?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var s,a,l,u=[];for(l=4*t.g.p,a=0;a<l;a+=4)s=createNS("stop"),n.appendChild(s),u.push(s);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=u},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,s,a=createNS("mask"),l=createNS("path");a.appendChild(l);var u=createElementID(),d=createElementID();a.setAttribute("id",d);var p=createNS(e.t===1?"linearGradient":"radialGradient");p.setAttribute("id",u),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(n=4*e.g.p;n<s;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(r),h.push(r);l.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+u+")"),e.ty==="gs"&&(l.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),l.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&l.setAttribute("stroke-miterlimit",e.ml)),this.of=p,this.ms=a,this.ost=h,this.maskId=d,t.msElem=l}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(t===0)return"";var s,a=e.o,l=e.i,u=e.v,d=" M"+n.applyToPointStringified(u[0][0],u[0][1]);for(s=1;s<t;s+=1)d+=" C"+n.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+n.applyToPointStringified(l[s][0],l[s][1])+" "+n.applyToPointStringified(u[s][0],u[s][1]);return r&&t&&(d+=" C"+n.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+n.applyToPointStringified(l[0][0],l[0][1])+" "+n.applyToPointStringified(u[0][0],u[0][1]),d+="z"),d},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix;function r(p,h,x){(x||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(x||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function n(){}function s(p,h,x){var w,g,b,v,E,j,R,T,z,L,V=h.styles.length,$=h.lvl;for(j=0;j<V;j+=1){if(v=h.sh._mdf||x,h.styles[j].lvl<$){for(T=t.reset(),z=$-h.styles[j].lvl,L=h.transformers.length-1;!v&&z>0;)v=h.transformers[L].mProps._mdf||v,z-=1,L-=1;if(v)for(z=$-h.styles[j].lvl,L=h.transformers.length-1;z>0;)T.multiply(h.transformers[L].mProps.v),z-=1,L-=1}else T=e;if(g=(R=h.sh.paths)._length,v){for(b="",w=0;w<g;w+=1)(E=R.shapes[w])&&E._length&&(b+=buildShapeString(E,E._length,E.c,T));h.caches[j]=b}else b=h.caches[j];h.styles[j].d+=p.hd===!0?"":b,h.styles[j]._mdf=v||h.styles[j]._mdf}}function a(p,h,x){var w=h.style;(h.c._mdf||x)&&w.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||x)&&w.pElem.setAttribute("fill-opacity",h.o.v)}function l(p,h,x){u(p,h,x),d(p,h,x)}function u(p,h,x){var w,g,b,v,E,j=h.gf,R=h.g._hasOpacity,T=h.s.v,z
vendor: 16,854 bytes, line 287
287=h.e.v;if(h.o._mdf||x){var L=p.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(L,h.o.v)}if(h.s._mdf||x){var V=p.t===1?"x1":"cx",$=V==="x1"?"y1":"cy";j.setAttribute(V,T[0]),j.setAttribute($,T[1]),R&&!h.g._collapsable&&(h.of.setAttribute(V,T[0]),h.of.setAttribute($,T[1]))}if(h.g._cmdf||x){w=h.cst;var U=h.g.c;for(b=w.length,g=0;g<b;g+=1)(v=w[g]).setAttribute("offset",U[4*g]+"%"),v.setAttribute("stop-color","rgb("+U[4*g+1]+","+U[4*g+2]+","+U[4*g+3]+")")}if(R&&(h.g._omdf||x)){var B=h.g.o;for(b=(w=h.g._collapsable?h.cst:h.ost).length,g=0;g<b;g+=1)v=w[g],h.g._collapsable||v.setAttribute("offset",B[2*g]+"%"),v.setAttribute("stop-opacity",B[2*g+1])}if(p.t===1)(h.e._mdf||x)&&(j.setAttribute("x2",z[0]),j.setAttribute("y2",z[1]),R&&!h.g._collapsable&&(h.of.setAttribute("x2",z[0]),h.of.setAttribute("y2",z[1])));else if((h.s._mdf||h.e._mdf||x)&&(E=Math.sqrt(Math.pow(T[0]-z[0],2)+Math.pow(T[1]-z[1],2)),j.setAttribute("r",E),R&&!h.g._collapsable&&h.of.setAttribute("r",E)),h.e._mdf||h.h._mdf||h.a._mdf||x){E||(E=Math.sqrt(Math.pow(T[0]-z[0],2)+Math.pow(T[1]-z[1],2)));var P=Math.atan2(z[1]-T[1],z[0]-T[0]),H=h.h.v;H>=1?H=.99:H<=-1&&(H=-.99);var Z=E*H,O=Math.cos(P+h.a.v)*Z+T[0],S=Math.sin(P+h.a.v)*Z+T[1];j.setAttribute("fx",O),j.setAttribute("fy",S),R&&!h.g._collapsable&&(h.of.setAttribute("fx",O),h.of.setAttribute("fy",S))}}function d(p,h,x){var w=h.style,g=h.d;g&&(g._mdf||x)&&g.dashStr&&(w.pElem.setAttribute("stroke-dasharray",g.dashStr),w.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),h.c&&(h.c._mdf||x)&&w.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||x)&&w.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||x)&&(w.pElem.setAttribute("stroke-width",h.w.v),w.msElem&&w.msElem.setAttribute("stroke-width",h.w.v))}return{createRenderFunction:function(p){switch(p.ty){case"fl":return a;case"gf":return u;case"gs":return l;case"st":return d;case"sh":case"el":case"rc":case"sr":return s;case"tr":return r;case"no":return n;default:return null}}}})();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,s,a){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,s=this.shapes.length,a=this.stylesList.length,l=[],u=!1;for(r=0;r<a;r+=1){for(n=this.stylesList[r],u=!1,l.length=0,e=0;e<s;e+=1)(t=this.shapes[e]).styles.indexOf(n)!==-1&&(l.push(t),u=t._isAnimated||u);l.length>1&&u&&this.setShapesAsAnimated(l)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),s=n.pElem;return e.ty==="st"?r=new SVGStrokeStyleData(this,e,n):e.ty==="fl"?r=new SVGFillStyleData(this,e,n):e.ty==="gf"||e.ty==="gs"?(r=new(e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):e.ty==="no"&&(r=new SVGNoStyleData(this,e,n)),e.ty!=="st"&&e.ty!=="gs"||(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var s=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,s,a,l){var u,d,p,h,x,w,g=[].concat(a),b=e.length-1,v=[],E=[];for(u=b;u>=0;u-=1){if((w=this.searchProcessedElement(e[u]))?t[u]=r[w-1]:e[u]._render=l,e[u].ty==="fl"||e[u].ty==="st"||e[u].ty==="gf"||e[u].ty==="gs"||e[u].ty==="no")w?t[u].style.closed=!1:t[u]=this.createStyleElement(e[u],s),e[u]._render&&t[u].style.pElem.parentNode!==n&&n.appendChild(t[u].style.pElem),v.push(t[u].style);else if(e[u].ty==="gr"){if(w)for(p=t[u].it.length,d=0;d<p;d+=1)t[u].prevViewData[d]=t[u].it[d];else t[u]=this.createGroupElement(e[u]);this.searchShapes(e[u].it,t[u].it,t[u].prevViewData,t[u].gr,s+1,g,l),e[u]._render&&t[u].gr.parentNode!==n&&n.appendChild(t[u].gr)}else e[u].ty==="tr"?(w||(t[u]=this.createTransformElement(e[u],n)),h=t[u].transform,g.push(h)):e[u].ty==="sh"||e[u].ty==="rc"||e[u].ty==="el"||e[u].ty==="sr"?(w||(t[u]=this.createShapeElement(e[u],g,s)),this.setElementStyles(t[u])):e[u].ty==="tm"||e[u].ty==="rd"||e[u].ty==="ms"||e[u].ty==="pb"||e[u].ty==="zz"||e[u].ty==="op"?(w?(x=t[u]).closed=!1:((x=ShapeModifiers.getModifier(e[u].ty)).init(this,e[u]),t[u]=x,this.shapeModifiers.push(x)),E.push(x)):e[u].ty==="rp"&&(w?(x=t[u]).closed=!0:(x=ShapeModifiers.getModifier(e[u].ty),t[u]=x,x.init(this,e,u,t),this.shapeModifiers.push(x),l=!1),E.push(x));this.addProcessedElement(e[u],u+1)}for(b=v.length,u=0;u<b;u+=1)v[u].closed=!0;for(b=E.length,u=0;u<b;u+=1)E[u].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&t.data!==!0&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var l=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,l=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,l=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,l=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,l=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,l=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,l=!0),l},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<s;n+=1)a=r!==this.keysIndex?this.effectsSequence[n](a,a.t):this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],s=0,a=e.length,l=!1,u=!1,d="";s<a;)l=u,u=!1,t=e.charCodeAt(s),d=e.charAt(s),FontManager.isCombinedCharacter(t)?l=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,s)?d=e.substr(s,14):(r=e.charCodeAt(s+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(d=e.substr(s,2),l=!0):d=FontManager.isFlagEmoji(e.substr(s,4))?e.substr(s,4):e.substr(s,2)):t>56319?(r=e.charCodeAt(s+1),FontManager.isVariationSelector(t)&&(l=!0)):FontManager.isZeroWidthJoiner(t)&&(l=!0,u=!0),l?(n[n.length-1]+=d,l=!1):n.push(d),s+=d.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,s,a,l,u,d=this.elem.globalData.fontManager,p=this.data,h=[],x=0,w=p.m.g,g=0,b=0,v=0,E=[],j=0,R=0,T=d.getFontByName(e.f),z=0,L=getFontProperties(T);e.fWeight=L.weight,e.fStyle=L.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var V,$=e.tr/1e3*e.finalSize;if(e.sz)for(var U,B,P=!0,H=e.sz[0],Z=e.sz[1];P;){U=0,j=0,r=(B=this.buildFinalText(e.t)).length,$=e.tr/1e3*e.finalSize;var O=-1;for(t=0;t<r;t+=1)V=B[t].charCodeAt(0),n=!1,B[t]===" "?O=t:V!==13&&V!==3||(j=0,n=!0,U+=e.finalLineHeight||1.2*e.finalSize),d.chars?(u=d.getCharData(B[t],T.fStyle,T.fFamily),z=n?0:u.w*e.finalSize/100):z=d.measureText(B[t],e.f,e.finalSize),j+z>H&&B[t]!==" "?(O===-1?r+=1:t=O,U+=e.finalLineHeight||1.2*e.finalSize,B.splice(t,O===t?1:0,"\r"),O=-1,j=0):(j+=z,j+=$);U+=T.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Z<U?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=B,r=e.finalText.length,P=!1)}j=-$,z=0;var S,N=0;for(t=0;t<r;t+=1)if(n=!1,(V=(S=e.finalText[t]).charCodeAt(0))===13||V===3?(N=0,E.push(j),R=j>R?j:R,j=-2*$,s="",n=!0,v+=1):s=S,d.chars?(u=d.getCharData(S,T.fStyle,d.getFontByName(e.f).fFamily),z=n?0:u.w*e.finalSize/100):z=d.measureText(s,e.f,e.finalSize),S===" "?N+=z+$:(j+=z+$+N,N=0),h.push({l:z,an:z,add:g,n,anIndexes:[],val:s,line:v,animatorJustifyOffset:0}),w==2){if(g+=z,s===""||s===" "||t===r-1){for(s!==""&&s!==" "||(g-=z);b<=t;)h[b].an=g,h[b].ind=x,h[b].extra=z,b+=1;x+=1,g=0}}else if(w==3){if(g+=z,s===""||t===r-1){for(s===""&&(g-=z);b<=t;)h[b].an=g,h[b].ind=x,h[b].extra=z,b+=1;g=0,x+=1}}else h[x].ind=x,h[x].extra=0,x+=1;if(e.l=h,R=j>R?j:R,E.push(j),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=E;var F,k,W,q,A=p.a;l=A.length;var D=[];for(a=0;a<l;a+=1){for((F=A[a]).a.sc&&(e.strokeColorAnim=!0),F.a.sw&&(e.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(e.fillColorAnim=!0),q=0,W=F.s.b,t=0;t<r;t+=1)(k=h[t]).anIndexes[a]=q,(W==1&&k.val!==""||W==2&&k.val!==""&&k.val!==" "||W==3&&(k.n||k.val==" "||t==r-1)||W==4&&(k.n||t==r-1))&&(F.s.rn===1&&D.push(q),q+=1);p.a[a].s.totalChars=q;var _,M=-1;if(F.s.rn===1)for(t=0;t<r;t+=1)M!=(k=h[t]).anIndexes[a]&&(M=k.anIndexes[a],_=D.splice(Math.floor(Math.random()*D.length),1)[0]),k.anIndexes[a]=_}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=T.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,r=Math.floor;function n(s,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,a.s||{k:0},0,0,this),this.e="e"in a?PropertyFactory.getProp(s,a.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(s,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,l=0,u=1,d=1;this.ne.v>0?a=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:d=1+this.xe.v/100;var p=BezierFactory.getBezierEasing(a,l,u,d).get,h=0,x=this.finalS,w=this.finalE,g=this.data.sh;if(g===2)h=p(h=w===x?s>=w?1:0:e(0,t(.5/(w-x)+(s-x)/(w-x),1)));else if(g===3)h=p(h=w===x?s>=w?0:1:1-e(0,t(.5/(w-x)+(s-x)/(w-x),1)));else if(g===4)w===x?h=0:(h=e(0,t(.5/(w-x)+(s-x)/(w-x),1)))<.5?h*=2:h=1-2*(h-.5),h=p(h);else if(g===5){if(w===x)h=0;else{var b=w-x,v=-b/2+(s=t(e(0,s+.5-x),w-x)),E=b/2;h=Math.sqrt(1-v*v/(E*E))}h=p(h)}else g===6?(w===x?h=0:(s=t(e(0,s+.5-x),w-x),h=(1+Math.cos(Math.PI+2*Math.PI*s/(w-x)))/2),h=p(h)):(s>=r(x)&&(h=e(0,t(s-x<0?t(w,1)-(x-s):w-s,1))),h=p(h));if(this.sm.v!==100){var j=.01*this.sm.v;j===0&&(j=1e-8);var R=.5-.5*j;h<R?h=0:(h=(h-R)/j)>1&&(h=1)}return h*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var a=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/a,u=this.s.v/a+l,d=this.e.v/a+l;if(u>d){var p=u;u=d,d=p}this.finalS=u,this.finalE=d}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(s,a,l){return new n(s,a)}}})();
vendor: 16,957 bytes, line 287
287function TextAnimatorDataProperty(e,t,r){var n={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,r):n,rx:a.rx?s(e,a.rx,0,degToRads,r):n,ry:a.ry?s(e,a.ry,0,degToRads,r):n,sk:a.sk?s(e,a.sk,0,degToRads,r):n,sa:a.sa?s(e,a.sa,0,degToRads,r):n,s:a.s?s(e,a.s,1,.01,r):n,a:a.a?s(e,a.a,1,0,r):n,o:a.o?s(e,a.o,0,.01,r):n,p:a.p?s(e,a.p,1,0,r):n,sw:a.sw?s(e,a.sw,0,0,r):n,sc:a.sc?s(e,a.sc,1,0,r):n,fc:a.fc?s(e,a.fc,1,0,r):n,fh:a.fh?s(e,a.fh,0,0,r):n,fs:a.fs?s(e,a.fs,0,.01,r):n,fb:a.fb?s(e,a.fb,0,.01,r):n,t:a.t?s(e,a.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(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=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,s,a,l,u,d,p,h,x,w,g,b,v,E,j,R,T,z,L=this._moreOptions.alignment.v,V=this._animatorsData,$=this._textData,U=this.mHelper,B=this._renderType,P=this.renderedLetters.length,H=e.l;if(this._hasMaskedPath){if(z=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Z,O=z.v;for(this._pathData.r.v&&(O=O.reverse()),l={tLength:0,segments:[]},a=O._length-1,j=0,s=0;s<a;s+=1)Z=bez.buildBezierData(O.v[s],O.v[s+1],[O.o[s][0]-O.v[s][0],O.o[s][1]-O.v[s][1]],[O.i[s+1][0]-O.v[s+1][0],O.i[s+1][1]-O.v[s+1][1]]),l.tLength+=Z.segmentLength,l.segments.push(Z),j+=Z.segmentLength;s=a,z.v.c&&(Z=bez.buildBezierData(O.v[s],O.v[0],[O.o[s][0]-O.v[s][0],O.o[s][1]-O.v[s][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),l.tLength+=Z.segmentLength,l.segments.push(Z),j+=Z.segmentLength),this._pathData.pi=l}if(l=this._pathData.pi,u=this._pathData.f.v,w=0,x=1,p=0,h=!0,v=l.segments,u<0&&z.v.c)for(l.tLength<Math.abs(u)&&(u=-Math.abs(u)%l.tLength),x=(b=v[w=v.length-1].points).length-1;u<0;)u+=b[x].partialLength,(x-=1)<0&&(x=(b=v[w-=1].points).length-1);g=(b=v[w].points)[x-1],E=(d=b[x]).partialLength}a=H.length,r=0,n=0;var S,N,F,k,W,q=1.2*e.finalSize*.714,A=!0;F=V.length;var D,_,M,G,Q,te,ne,ae,fe,Se,Ce,_e,Me=-1,ve=u,Le=w,et=x,Te=-1,Be="",Ye=this.defaultPropsArray;if(e.j===2||e.j===1){var Ie=0,ze=0,at=e.j===2?-.5:-1,qe=0,Xe=!0;for(s=0;s<a;s+=1)if(H[s].n){for(Ie&&(Ie+=ze);qe<s;)H[qe].animatorJustifyOffset=Ie,qe+=1;Ie=0,Xe=!0}else{for(N=0;N<F;N+=1)(S=V[N].a).t.propType&&(Xe&&e.j===2&&(ze+=S.t.v*at),(W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars)).length?Ie+=S.t.v*W[0]*at:Ie+=S.t.v*W*at);Xe=!1}for(Ie&&(Ie+=ze);qe<s;)H[qe].animatorJustifyOffset=Ie,qe+=1}for(s=0;s<a;s+=1){if(U.reset(),G=1,H[s].n)r=0,n+=e.yOffset,n+=A?1:0,u=ve,A=!1,this._hasMaskedPath&&(x=et,g=(b=v[w=Le].points)[x-1],E=(d=b[x]).partialLength,p=0),Be="",Ce="",fe="",_e="",Ye=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Te!==H[s].line){switch(e.j){case 1:u+=j-e.lineWidths[H[s].line];break;case 2:u+=(j-e.lineWidths[H[s].line])/2}Te=H[s].line}Me!==H[s].ind&&(H[Me]&&(u+=H[Me].extra),u+=H[s].an/2,Me=H[s].ind),u+=L[0]*H[s].an*.005;var ot=0;for(N=0;N<F;N+=1)(S=V[N].a).p.propType&&((W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars)).length?ot+=S.p.v[0]*W[0]:ot+=S.p.v[0]*W),S.a.propType&&((W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars)).length?ot+=S.a.v[0]*W[0]:ot+=S.a.v[0]*W);for(h=!0,this._pathData.a.v&&(u=.5*H[0].an+(j-this._pathData.f.v-.5*H[0].an-.5*H[H.length-1].an)*Me/(a-1),u+=this._pathData.f.v);h;)p+E>=u+ot||!b?(R=(u+ot-p)/d.partialLength,_=g.point[0]+(d.point[0]-g.point[0])*R,M=g.point[1]+(d.point[1]-g.point[1])*R,U.translate(-L[0]*H[s].an*.005,-L[1]*q*.01),h=!1):b&&(p+=d.partialLength,(x+=1)>=b.length&&(x=0,v[w+=1]?b=v[w].points:z.v.c?(x=0,b=v[w=0].points):(p-=d.partialLength,b=null)),b&&(g=d,E=(d=b[x]).partialLength));D=H[s].an/2-H[s].add,U.translate(-D,0,0)}else D=H[s].an/2-H[s].add,U.translate(-D,0,0),U.translate(-L[0]*H[s].an*.005,-L[1]*q*.01,0);for(N=0;N<F;N+=1)(S=V[N].a).t.propType&&(W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars),r===0&&e.j===0||(this._hasMaskedPath?W.length?u+=S.t.v*W[0]:u+=S.t.v*W:W.length?r+=S.t.v*W[0]:r+=S.t.v*W));for(e.strokeWidthAnim&&(te=e.sw||0),e.strokeColorAnim&&(Q=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(ne=[e.fc[0],e.fc[1],e.fc[2]]),N=0;N<F;N+=1)(S=V[N].a).a.propType&&((W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars)).length?U.translate(-S.a.v[0]*W[0],-S.a.v[1]*W[1],S.a.v[2]*W[2]):U.translate(-S.a.v[0]*W,-S.a.v[1]*W,S.a.v[2]*W));for(N=0;N<F;N+=1)(S=V[N].a).s.propType&&((W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars)).length?U.scale(1+(S.s.v[0]-1)*W[0],1+(S.s.v[1]-1)*W[1],1):U.scale(1+(S.s.v[0]-1)*W,1+(S.s.v[1]-1)*W,1));for(N=0;N<F;N+=1){if(S=V[N].a,W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars),S.sk.propType&&(W.length?U.skewFromAxis(-S.sk.v*W[0],S.sa.v*W[1]):U.skewFromAxis(-S.sk.v*W,S.sa.v*W)),S.r.propType&&(W.length?U.rotateZ(-S.r.v*W[2]):U.rotateZ(-S.r.v*W)),S.ry.propType&&(W.length?U.rotateY(S.ry.v*W[1]):U.rotateY(S.ry.v*W)),S.rx.propType&&(W.length?U.rotateX(S.rx.v*W[0]):U.rotateX(S.rx.v*W)),S.o.propType&&(W.length?G+=(S.o.v*W[0]-G)*W[0]:G+=(S.o.v*W-G)*W),e.strokeWidthAnim&&S.sw.propType&&(W.length?te+=S.sw.v*W[0]:te+=S.sw.v*W),e.strokeColorAnim&&S.sc.propType)for(ae=0;ae<3;ae+=1)W.length?Q[ae]+=(S.sc.v[ae]-Q[ae])*W[0]:Q[ae]+=(S.sc.v[ae]-Q[ae])*W;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ae=0;ae<3;ae+=1)W.length?ne[ae]+=(S.fc.v[ae]-ne[ae])*W[0]:ne[ae]+=(S.fc.v[ae]-ne[ae])*W;S.fh.propType&&(ne=W.length?addHueToRGB(ne,S.fh.v*W[0]):addHueToRGB(ne,S.fh.v*W)),S.fs.propType&&(ne=W.length?addSaturationToRGB(ne,S.fs.v*W[0]):addSaturationToRGB(ne,S.fs.v*W)),S.fb.propType&&(ne=W.length?addBrightnessToRGB(ne,S.fb.v*W[0]):addBrightnessToRGB(ne,S.fb.v*W))}}for(N=0;N<F;N+=1)(S=V[N].a).p.propType&&(W=V[N].s.getMult(H[s].anIndexes[N],$.a[N].s.totalChars),this._hasMaskedPath?W.length?U.translate(0,S.p.v[1]*W[0],-S.p.v[2]*W[1]):U.translate(0,S.p.v[1]*W,-S.p.v[2]*W):W.length?U.translate(S.p.v[0]*W[0],S.p.v[1]*W[1],-S.p.v[2]*W[2]):U.translate(S.p.v[0]*W,S.p.v[1]*W,-S.p.v[2]*W));if(e.strokeWidthAnim&&(fe=te<0?0:te),e.strokeColorAnim&&(Se="rgb("+Math.round(255*Q[0])+","+Math.round(255*Q[1])+","+Math.round(255*Q[2])+")"),e.fillColorAnim&&e.fc&&(Ce="rgb("+Math.round(255*ne[0])+","+Math.round(255*ne[1])+","+Math.round(255*ne[2])+")"),this._hasMaskedPath){if(U.translate(0,-e.ls),U.translate(0,L[1]*q*.01+n,0),this._pathData.p.v){T=(d.point[1]-g.point[1])/(d.point[0]-g.point[0]);var Ze=180*Math.atan(T)/Math.PI;d.point[0]<g.point[0]&&(Ze+=180),U.rotate(-Ze*Math.PI/180)}U.translate(_,M,0),u-=L[0]*H[s].an*.005,H[s+1]&&Me!==H[s+1].ind&&(u+=H[s].an/2,u+=.001*e.tr*e.finalSize)}else{switch(U.translate(r,n,0),e.ps&&U.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:U.translate(H[s].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[H[s].line]),0,0);break;case 2:U.translate(H[s].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[H[s].line])/2,0,0)}U.translate(0,-e.ls),U.translate(D,0,0),U.translate(L[0]*H[s].an*.005,L[1]*q*.01,0),r+=H[s].l+.001*e.tr*e.finalSize}B==="html"?Be=U.toCSS():B==="svg"?Be=U.to2dCSS():Ye=[U.props[0],U.props[1],U.props[2],U.props[3],U.props[4],U.props[5],U.props[6],U.props[7],U.props[8],U.props[9],U.props[10],U.props[11],U.props[12],U.props[13],U.props[14],U.props[15]],_e=G}P<=s?(k=new LetterProps(_e,fe,Se,Ce,Be,Ye),this.renderedLetters.push(k),P+=1,this.lettersChangedFlag=!0):(k=this.renderedLetters[s],this.lettersChangedFlag=k.update(_e,fe,Se,Ce,Be,Ye)||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),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,s=t.length,a="";for(r=0;r<s;r+=1)t[r].ty==="sh"&&(n=t[r].ks.k,a+=buildShapeString(n,n.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),s=createElementID();n.setAttribute("id",s),n.textContent=t.title,this.svgElement.appendChild(n),r+=s}if(t&&t.description){var a=createNS("desc"),l=createElementID();a.setAttribute("id",l),a.textContent=t.description,this.svgElement.appendChild(a),r+=" "+l}r&&this.svgElement.setAttribute("aria-labelledby",r);var u=createNS("defs");this.svgElement.appendChild(u);var d=createNS("g");this.svgElement.appendChild(d),this.layerElement=d,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:u,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],s="";t<r;)e[t]==="\r"||e[t]==="�"?(n.push(s),s=""):s+=e[t],t+=1;return n.push(s),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var l,u=r.l||[],d=!!this.globalData.fontManager.chars;t=u.length;var p=this.mHelper,h=this.data.singleShape,x=0,w=0,g=!0,b=.001*r.tr*r.finalSize;if(!h||d||r.sz){var v,E=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!d||!h||e===0){if(l=E>e?this.textSpans[e].span:createNS(d?"g":"text"),E<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,d){var j=createNS("g");l.appendChild(j),this.textSpans[e].childSpan=j}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(p.reset(),h&&(u[e].n&&(x=-b,w+=r.yOffset,w+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(r,p,u[e].line,x,w),x+=u[e].l||0,x+=b),d){var R;if((v=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t===1)R=new SVGCompElement(v.data,this.globalData,this);else{var T=emptyShapeData;v.data&&v.data.shapes&&(T=this.buildShapeData(v.data,r.finalSize)),R=new SVGShapeElement(T,this.globalData,this)}if(this.textSpans[e].glyph){var z=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(z.layerElement),z.destroy()}this.textSpans[e].glyph=R,R._debug=!0,R.prepareFrame(0),R.renderFrame(),this.textSpans[e].childSpan.appendChild(R.layerElement),v.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else h&&l.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),l.textContent=u[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&l&&l.setAttribute("d","")}else{var L=this.textContainer,V="start";switch(r.j){case 1:V="end";break;case 2:V="middle";break;default:V="start"}L.setAttribute("text-anchor",V),L.setAttribute("letter-spacing",b);var $=this.buildTextContents(r.finalText);for(t=$.length,w=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(l=this.textSpans[e].span||createNS("tspan")).textContent=$[e],l.setAttribute("x",0),l.setAttribute("y",w),l.style.display="inherit",L.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,w+=r.finalLineHeight;this.layerElement.appendChild(L)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();
vendor: 6,289 bytes, line 287
287this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._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)){var e,t;this._sizeChanged=!0;var r,n,s,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(t=l.length,e=0;e<t;e+=1)l[e].n||(r=a[e],n=this.textSpans[e].span,(s=this.textSpans[e].glyph)&&s.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&this.layers[e].ty!==99){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(this.elements[n]&&this.elements[n]!==!0){var s=t[n].getMatte(this.layers[e].tt);r.setMatte(s)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(s);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,s=0;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement()&&
vendor: 3,633 bytes, line 287
287(n=this.elements[s].getBaseElement()),s+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var s=this.sequences[n];return s||(s={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=s,this.sequenceList.push(s)),s},processSequence:function(e,t){for(var r=0,n=e.transforms.length,s=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){s=!0;break}r+=1}if(s)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=s},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function s(){var a,l,u;t||(a=createNS("svg"),l=createNS("filter"),u=createNS("feColorMatrix"),l.setAttribute("id",e),u.setAttribute("type","matrix"),u.setAttribute("color-interpolation-filters","sRGB"),u.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"),l.appendChild(u),a.appendChild(l),a.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(a.style.display="none"),n=a,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:s,get:function(a){return t||s(),t.width=a.width,t.height=a.height,r.filter="url
287(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var s=e.data.ef[t].ty;registeredEffects[s]&&(r=new registeredEffects[s].effect(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,s=!1;for(r=0;r<n;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,s=this.element.finalTransform.mat,a=this.element.canvasContext,l=this.masksProperties.length;for(a.beginPath(),e=0;e<l;e+=1)if(this.masksProperties[e].mode!=="n"){var u;this.masksProperties[e].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),n=this.viewData[e].v,t=s.applyToPointArray(n.v[0][0],n.v[0][1],0),a.moveTo(t[0],t[1]);var d=n._length;for(u=1;u<d;u+=1)r=s.applyToTriplePoints(n.o[u-1],n.i[u],n.v[u]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=s.applyToTriplePoints(n.o[u-1],n.i[0],n.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s,a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var l,u=r.length;for(s=0;s<u;s+=1)r[s].closed||(l={transforms:n.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(l),r[s].elements.push(l))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}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(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}
vendor: 1,467 bytes, line 287
287this._length=15,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=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||t.clearCanvas===void 0||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 11,113 bytes, line 287
287w 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))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").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(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),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,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},n={};if(e.ty==="fl"||e.ty==="st"?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):e.ty!=="gf"&&e.ty!=="gs"||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);n.d=s,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,s){var a,l,u,d,p,h,x=e.length-1,w=[],g=[],b=[].concat(s);for(a=x;a>=0;a-=1){if((d=this.searchProcessedElement(e[a]))?t[a]=r[d-1]:e[a]._shouldRender=n,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")d?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],b),w.push(t[a].style);else if(e[a].ty==="gr"){if(d)for(u=t[a].it.length,l=0;l<u;l+=1)t[a].prevViewData[l]=t[a].it[l];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,b)}else e[a].ty==="tr"?(d||(h=this.createTransformElement(e[a]),t[a]=h),b.pu
vendor: 6,267 bytes, line 287
287sh(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?d||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(d?(p=t[a]).closed=!1:((p=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=p,this.shapeModifiers.push(p)),g.push(p)):e[a].ty==="rp"&&(d?(p=t[a]).closed=!0:(p=ShapeModifiers.getModifier(e[a].ty),t[a]=p,p.init(this,e,a,t),this.shapeModifiers.push(p),n=!1),g.push(p));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(w),x=g.length,a=0;a<x;a+=1)g[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,s,a,l,u,d,p=this.stylesList.length,h=this.globalData.renderer,x=this.globalData.canvasContext;for(e=0;e<p;e+=1)if(((u=(d=this.stylesList[e]).type)!=="st"&&u!=="gs"||d.wi!==0)&&d.data._shouldRender&&d.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(h.save(),a=d.elements,u==="st"||u==="gs"?(h.ctxStrokeStyle(u==="st"?d.co:d.grd),h.ctxLineWidth(d.wi),h.ctxLineCap(d.lc),h.ctxLineJoin(d.lj),h.ctxMiterLimit(d.ml||0)):h.ctxFillStyle(u==="fl"?d.co:d.grd),h.ctxOpacity(d.coOp),u!=="st"&&u!=="gs"&&x.beginPath(),h.ctxTransform(d.preTransforms.finalTransform.props),r=a.length,t=0;t<r;t+=1){for(u!=="st"&&u!=="gs"||(x.beginPath(),d.da&&(x.setLineDash(d.da),x.lineDashOffset=d.do)),s=(l=a[t].trNodes).length,n=0;n<s;n+=1)l[n].t==="m"?x.moveTo(l[n].p[0],l[n].p[1]):l[n].t==="c"?x.bezierCurveTo(l[n].pts[0],l[n].pts[1],l[n].pts[2],l[n].pts[3],l[n].pts[4],l[n].pts[5]):x.closePath();u!=="st"&&u!=="gs"||(h.ctxStroke(),d.da&&x.setLineDash(this.dashResetter))}u!=="st"&&u!=="gs"&&this.globalData.renderer.ctxFill(d.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var s,a;for(a=e,s=t.length-1;s>=0;s-=1)t[s].ty==="tr"?(a=r[s].transform,this.renderShapeTransform(e,a)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],a):t[s].ty==="st"?this.renderStroke(t[s],r[s],a):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],a):t[s].ty==="gr"?this.renderShape(a,t[s].it,r[s].it):t[s].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,s,a=e.trNodes,l=t.paths,u=l._length;a.length=0;var d=e.transforms.finalTransform;for(s=0;s<u;s+=1){var p=l.shapes[s];if(p&&p.v){for(n=p._length,r=1;r<n;r+=1)r===1&&a.push({t:"m",p:d.applyToPointArray(p.v[0][0],p.v[0][1],0)}),a.push({t:"c",pts:d.applyToTriplePoints(p.o[r-1],p.i[r],p.v[r])});n===1&&a.push({t:"m",p:d.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&n&&(a.push({t:"c",pts:d.applyToTriplePoints(p.o[r-1],p.i[0],p.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,s=t.style;if(!s.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a,l=this.globalData.canvasContext,u=t.s.v,d=t.e.v;if(e.t===1)n=l.createLinearGradient(u[0],u[1],d[0],d[1]);else{var p=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),h=Math.atan2(d[1]-u[1],d[0]-u[0]),x=t.h.v;x>=1?x=.99:x<=-1&&(x=-.99);var w=p*x,g=Math.cos(h+t.a.v)*w+u[0],b=Math.sin(h+t.a.v)*w+u[1];n=l.createRadialGradient(g,b,0,u[0],u[1],p)}var v=e.g.p,E=t.g.c,j=1;for(a=0;a<v;a+=1)t.g._hasOpacity&&t.g._collapsable&&(j=t.g.o[2*a+1]),n.addColorStop(E[4*a]/100,"rgba("+E[4*a+1]+","+E[4*a+2]+","+E[4*a+3]+","+j+")");s.grd=n}s.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(n.da=s.dashArray,n.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,s,a,l,u,d,p,h,x,w,g,b,v=this.globalData.fontManager.getFontByName(e.f),E=e.l,j=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,s=e.finalText.length;var R=this.data.singleShape,T=.001*e.tr*e.finalSize,z=0,L=0,V=!0,$=0;for(n=0;n<s;n+=1){l=(a=this.globalData.fontManager.getCharData(e.finalText[n],v.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&a.data||{},j.reset(),R&&E[n].n&&(z=-T,L+=e.yOffset,L+=V?1:0,V=!1),x=(p=l.shapes?l.shapes[0].it:[]).length,j.scale(e.finalSize/100,e.finalSize/100),R&&this.applyTextPropertiesToMatrix(e,j,E[n].line,z,L),g=createSizedArray(x-1);var U=0;for(h=0;h<x;h+=1)if(p[h].ty==="sh"){for(d=p[h].ks.k.i.length,w=p[h].ks.k,b=[],u=1;u<d;u+=1)u===1&&b.push(j.applyToX(w.v[0][0],w.v[0][1],0),j.applyToY(w.v[0][0],w.v[0][1],0)),b.pu
vendor: 5,400 bytes, line 287
287sh(j.applyToX(w.o[u-1][0],w.o[u-1][1],0),j.applyToY(w.o[u-1][0],w.o[u-1][1],0),j.applyToX(w.i[u][0],w.i[u][1],0),j.applyToY(w.i[u][0],w.i[u][1],0),j.applyToX(w.v[u][0],w.v[u][1],0),j.applyToY(w.v[u][0],w.v[u][1],0));b.push(j.applyToX(w.o[u-1][0],w.o[u-1][1],0),j.applyToY(w.o[u-1][0],w.o[u-1][1],0),j.applyToX(w.i[0][0],w.i[0][1],0),j.applyToY(w.i[0][0],w.i[0][1],0),j.applyToX(w.v[0][0],w.v[0][1],0),j.applyToY(w.v[0][0],w.v[0][1],0)),g[U]=b,U+=1}R&&(z+=E[n].l,z+=T),this.textSpans[$]?this.textSpans[$].elem=g:this.textSpans[$]={elem:g},$+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,s,a;this.validateText(),this.canvasContext.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 l,u=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;t=d.length;var p,h,x=null,w=null,g=null,b=this.globalData.renderer;for(e=0;e<t;e+=1)if(!d[e].n){if((l=u[e])&&(b.save(),b.ctxTransform(l.p),b.ctxOpacity(l.o)),this.fill){for(l&&l.fc?x!==l.fc&&(b.ctxFillStyle(l.fc),x=l.fc):x!==this.values.fill&&(x=this.values.fill,b.ctxFillStyle(this.values.fill)),n=(p=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(a=(h=p[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(h[s],h[s+1],h[s+2],h[s+3],h[s+4],h[s+5]);this.globalData.canvasContext.closePath(),b.ctxFill()}if(this.stroke){for(l&&l.sw?g!==l.sw&&(g=l.sw,b.ctxLineWidth(l.sw)):g!==this.values.sWidth&&(g=this.values.sWidth,b.ctxLineWidth(this.values.sWidth)),l&&l.sc?w!==l.sc&&(w=l.sc,b.ctxStrokeStyle(l.sc)):w!==this.values.stroke&&(w=this.values.stroke,b.ctxStrokeStyle(this.values.stroke)),n=(p=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(a=(h=p[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(h[s],h[s+1],h[s+2],h[s+3],h[s+4],h[s+5]);this.globalData.canvasContext.closePath(),b.ctxStroke()}l&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),s=this.img.width,a=this.img.height,l=s/a,u=this.assetData.w/this.assetData.h,d=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;l>u&&d==="xMidYMid slice"||l<u&&d!=="xMidYMid slice"?t=(r=a)*u:r=(t=s)/u,n.drawImage(this.img,(s-t)/2,(a-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},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)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore(
vendor: 5,147 bytes, line 287
287)},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,s,a;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var l=this.renderConfig.preserveAspectRatio.split(" "),u=l[1]||"meet",d=l[0]||"xMidYMid",p=d.substr(0,4),h=d.substr(4);s=r/n,(a=this.transformCanvas.w/this.transformCanvas.h)>s&&u==="meet"||a<s&&u==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=p==="xMid"&&(a<s&&u==="meet"||a>s&&u==="slice")?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:p==="xMax"&&(a<s&&u==="meet"||a>s&&u==="slice")?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=h==="YMid"&&(a>s&&u==="meet"||a<s&&u==="slice")?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:h==="YMax"&&(a>s&&u==="meet"||a<s&&u==="slice")?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(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(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||this.renderConfig.clearCanvas!==!0||t)&&!this.destroyed&&e!==-1){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();
vendor: 29,343 bytes, line 287
287this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&this.layers[e].ty!==99){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,s=this.cTr.props;for(t=0;t<16;t+=1)s[t]=n[t];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||r.opacity!==-1&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=n.opacity,s.fillStyle=n.fillStyle,s.strokeStyle=n.strokeStyle,s.lineWidth=n.lineWidth,s.lineCap=n.lineCap,s.lineJoin=n.lineJoin,s.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},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()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,s,a,l,u=e.sh.v,d=e.transformers,p=u._length;if(!(p<=1)){for(r=0;r<p-1;r+=1)n=this.getTransformedPoint(d,u.v[r]),s=this.getTransformedPoint(d,u.o[r]),a=this.getTransformedPoint(d,u.i[r+1]),l=this.getTransformedPoint(d,u.v[r+1]),this.checkBounds(n,s,a,l,t);u.c&&(n=this.getTransformedPoint(d,u.v[r]),s=this.getTransformedPoint(d,u.o[r]),a=this.getTransformedPoint(d,u.i[0]),l=this.getTransformedPoint(d,u.v[0]),this.checkBounds(n,s,a,l,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,s){this.getBoundsOfCurve(e,t,r,n);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var s,a,l,u,d,p,h,x=[[e[0],n[0]],[e[1],n[1]]],w=0;w<2;++w)a=6*e[w]-12*t[w]+6*r[w],s=-3*e[w]+9*t[w]-9*r[w]+3*n[w],l=3*t[w]-3*e[w],a|=0,l|=0,(s|=0)===0&&a===0||(s===0?(u=-l/a)>0&&u<1&&x[w].push(this.calculateF(u,e,t,r,n,w)):(d=a*a-4*l*s)>=0&&((p=(-a+bmSqrt(d))/(2*s))>0&&p<1&&x[w].push(this.calculateF(p,e,t,r,n,w)),(h=(-a-bmSqrt(d))/(2*s))>0&&h<1&&x[w].push(this.calculateF(h,e,t,r,n,w))));this.shapeBoundingBox.left=bmMin.apply(null,x[0]),this.shapeBoundingBox.top=bmMin.apply(null,x[1]),this.shapeBoundingBox.right=bmMax.apply(null,x[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,x[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var s=e.keyframes[n].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=s,n.webkitTransform=s}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,s,a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var l=e.fWeight,u=e.fStyle;t.fontStyle=u,t.fontWeight=l}var d,p,h,x=e.l;s=x.length;var w,g=this.mHelper,b="",v=0;for(n=0;n<s;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[v]?d=this.textPaths[v]:((d=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),d.setAttribute("stroke-linejoin",lineJoinEnum[2]),d.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[v]?h=(p=this.textSpans[v]).children[0]:((p=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(d),styleDiv(p)))):this.isMasked?d=this.textPaths[v]?this.textPaths[v]:createNS("text"):this.textSpans[v]?(p=this.textSpans[v],d=this.textPaths[v]):(styleDiv(p=createTag("span")),styleDiv(d=createTag("span")),p.appendChild(d)),this.globalData.fontManager.chars){var E,j=this.globalData.fontManager.getCharData(e.finalText[n],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(E=j?j.data:null,g.reset(),E&&E.shapes&&E.shapes.length&&(w=E.shapes[0].it,g.scale(e.finalSize/100,e.finalSize/100),b=this.createPathShape(g,w),d.setAttribute("d",b)),this.isMasked)this.innerElem.appendChild(d);else{if(this.innerElem.appendChild(p),E&&E.shapes){document.body.appendChild(h);var R=h.getBBox();h.setAttribute("width",R.width+2),h.setAttribute("height",R.height+2),h.setAttribute("viewBox",R.x-1+" "+(R.y-1)+" "+(R.width+2)+" "+(R.height+2));var T=h.style,z="translate("+(R.x-1)+"px,"+(R.y-1)+"px)";T.transform=z,T.webkitTransform=z,x[n].yOffset=R.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);p.appendChild(h)}}else if(d.textContent=x[n].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(d);else{this.innerElem.appendChild(p);var L=d.style,V="translate3d(0,"+-e.finalSize/1.2+"px,0)";L.transform=V,L.webkitTransform=V}this.isMasked?this.textSpans[v]=d:this.textSpans[v]=p,this.textSpans[v].style.display="block",this.textPaths[v]=d,v+=1}for(;v<this.textSpans.length;)this.textSpans[v].style.display="none",v+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,s,a,l,u=0,d=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;for(n=p.length,r=0;r<n;r+=1)p[r].n?u+=1:(a=this.textSpans[r],l=this.textPaths[r],s=d[u],u+=1,s._mdf.m&&(this.isMasked?a.setAttribute("transform",s.m):(a.style.webkitTransform=s.m,a.style.transform=s.m)),a.style.opacity=s.o,s.sw&&s._mdf.sw&&l.setAttribute("stroke-width",s.sw),s.sc&&s._mdf.sc&&l.setAttribute("stroke",s.sc),s.fc&&s._mdf.fc&&(l.setAttribute("fill",s.fc),l.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();if(this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height)),this.currentBBox.w!==h.width+2||this.currentBBox.h!==h.height+2||this.currentBBox.x!==h.x-1||this.currentBBox.y!==h.y-1){this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=x,e.webkitTransform=x}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,s=this.comp.threeDElements.length;for(e=0;e<s;e+=1)if((t=this.comp.threeDElements[e]).type==="3d"){r=t.perspectiveElem.style,n=t.container.style;var a=this.pe.v+"px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=a,r.webkitPerspective=a,n.transformOrigin="0px 0px 0px",n.mozTransformOrigin="0px 0px 0px",n.webkitTransformOrigin="0px 0px 0px",r.transform=l,r.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].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(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;s=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),l=[s[0]/a,s[1]/a,s[2]/a],u=Math.sqrt(l[2]*l[2]+l[0]*l[0]),d=Math.atan2(l[1],u),p=Math.atan2(l[0],-l[2]);this.mat.rotateY(p).rotateX(-d)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var x,w,g;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if((x=this.comp.threeDElements[e]).type==="3d"){if(h){var b=this.mat.toCSS();(g=x.container.style).transform=b,g.webkitTransform=b}this.pe._mdf&&((w=x.perspectiveElem.style).perspective=this.pe.v+"px",w.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s,a,l=0;l<t;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement&&(a=this.elements[l],s=(this.layers[l].ddd?this.getThreeDContainerByPos(l):a.getBaseElement())||s),l+=1;s?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,s):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,s=createTag("div");styleDiv(s);var a=createTag("div");if(styleDiv(a),t==="3d"){(r=s.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px",r.webkitTransformOrigin="50% 50%",r.mozTransformOrigin="50% 50%",r.transformOrigin="50% 50%";var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=a.style).transform=l,n.webkitTransform=l}s.appendChild(a);var u={container:a,perspectiveElem:s,startPos:e,endPos:e,type:t};return this.threeDElements.push(u),u},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(n!=="3d"&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):(n!=="2d"&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var s,a=this.threeDElements[r].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[r].container.insertBefore(e,s):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,s=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,l=s/a;this.globalData.compSize.w/this.globalData.compSize.h>l?(e=s/this.globalData.compSize.w,t=s/this.globalData.compSize.w,r=0,n=(a-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,r=(s-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,n=0);var u=this.resizerElem.style;u.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",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 e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var s=this.threeDElements[e].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],n,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(r){for(var n=0,s=e.layers.length;n<s;){if(e.layers[n].nm===r||e.layers[n].ind===r)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function seedRandom(e,t){var r=this,n=t.pow(256,6),s=t.pow(2,52),a=2*s;function l(h){var x,w=h.length,g=this,b=0,v=g.i=g.j=0,E=g.S=[];for(w||(h=[w++]);b<256;)E[b]=b++;for(b=0;b<256;b++)E[b]=E[v=255&v+h[b%w]+(x=E[b])],E[v]=x;g.g=function(j){for(var R,T=0,z=g.i,L=g.j,V=g.S;j--;)R=V[z=255&z+1],T=256*T+V[255&(V[z]=V[L=255&L+R])+(V[L]=R)];return g.i=z,g.j=L,T}}function u(h,x){return x.i=h.i,x.j=h.j,x.S=h.S.slice(),x}function d(h,x){for(var w,g=h+"",b=0;b<g.length;)x[255&b]=255&(w^=19*x[255&b])+g.charCodeAt(b++);return p(x)}function p(h){return String.fromCharCode.apply(0,h)}t.seedrandom=function(h,x,w){var g=[],b=d((function j(R,T){var z,L=[],V=_typeof$2(R);if(T&&V=="object")for(z in R)try{L.push(j(R[z],T-1))}catch{}
287return L.length?L:V=="string"?R:R+"\0"})((x=x===!0?{entropy:!0}:x||{}).entropy?[h,p(e)]:h===null?(function(){try{var j=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(j),p(j)}catch{var R=r.navigator,T=R&&R.plugins;return[+new Date,r,T,r.screen,p(e)]}})():h,3),g),v=new l(g),E=function(){for(var j=v.g(6),R=n,T=0;j<s;)j=256*(j+T),R*=256,T=v.g(1);for(;j>=a;)j/=2,R/=2,T>>>=1;return(j+T)/R};return E.int32=function(){return 0|v.g(4)},E.quick=function(){return v.g(4)/4294967296},E.double=E,d(p(v.S),e),(x.pass||w||function(j,R,T,z){return z&&(z.S&&u(z,v),j.state=function(){return u(v,{})}),T?(t.random=j,R):j})(E,b,"global"in x?x.global:this==t,x.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,s=[];for(r=0;r<n;r+=1)s[r]=-e[r];return s}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||r==="string"||n==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,l=t.length,u=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?u[s]=e[s]+t[s]:u[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return u}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return r==="string"&&(e=parseInt(e,10)),n==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,l=t.length,u=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?u[s]=e[s]-t[s]:u[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return u}return 0}function mul(e,t){var r,n,s,a=_typeof$1(e),l=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(l,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(l,t)){for(s=e.length,r=createTypedArray("float32",s),n=0;n<s;n+=1)r[n]=e[n]*t;return r}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,r=createTypedArray("float32",s),n=0;n<s;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,s,a=_typeof$1(e),l=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(l,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(l,t)){for(s=e.length,r=createTypedArray("float32",s),n=0;n<s;n+=1)r[n]=e[n]/t;return r}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,r=createTypedArray("float32",s),n=0;n<s;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}
vendor: 4,398 bytes, line 287
287var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),s=0;for(r=0;r<n;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],s=e[1],a=e[2],l=Math.max(n,s,a),u=Math.min(n,s,a),d=(l+u)/2;if(l===u)t=0,r=0;else{var p=l-u;switch(r=d>.5?p/(2-l-u):p/(l+u),l){case n:t=(s-a)/p+(s<a?6:0);break;case s:t=(a-n)/p+2;break;case a:t=(n-s)/p+4}t/=6}return[t,r,d,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,s=e[0],a=e[1],l=e[2];if(a===0)t=l,n=l,r=l;else{var u=l<.5?l*(1+a):l+a-l*a,d=2*l-u;t=hue2rgb(d,u,s+1/3),r=hue2rgb(d,u,s),n=hue2rgb(d,u,s-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,s){if(n!==void 0&&s!==void 0||(n=t,s=r,t=0,r=1),r<t){var a=r;r=t,t=a}if(e<=t)return n;if(e>=r)return s;var l,u=r===t?0:(e-t)/(r-t);if(!n.length)return n+(s-n)*u;var d=n.length,p=createTypedArray("float32",d);for(l=0;l<d;l+=1)p[l]=n[l]+(s[l]-n[l])*u;return p}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var s=createTypedArray("float32",n),a=BMMath.random();for(r=0;r<n;r+=1)s[r]=e[r]+a*(t[r]-e[r]);return s}return e===void 0&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var s,a=e.length,l=shapePool.newElement();l.setPathData(!!n,a);var u,d,p=[0,0];for(s=0;s<a;s+=1)u=t&&t[s]?t[s]:p,d=r&&r[s]?r[s]:p,l.setTripleAt(e[s][0],e[s][1],d[0]+e[s][0],d[1]+e[s][1],u[0]+e[s][0],u[1]+e[s][1],s,!0);return l}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function(e,t){var r,n,s=this.pv.length?this.pv.length:1,a=createTypedArray("float32",s),l=Math.floor(5*time);for(r=0,n=0;r<l;){for(n=0;n<s;n+=1)a[n]+=-t+2*t*BMMath.random();r+=1}var u=5*time,d=u-Math.floor(u),p=createTypedArray("float32",s);if(s>1){for(n=0;n<s;n+=1)p[n]=this.pv[n]+a[n]+(-t+2*t*BMMath.random())*d;return p}return this.pv+a[0]+(-t+2*t*BMMath.random())*d}).bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}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)),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),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,s){return applyEase(easeOutBez,e,t,r,n,s)}function easeIn(e,t,r,n,s){return applyEase(easeInBez,e,t,r,n,s)}function ease(e,t,r,n,s){return applyEase(easeInOutBez,e,t,r,n,s)}function applyEase(e,t,r,n,s,a){s===void 0?(s=r,a=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var l=e(t);if($bm_isInstanceOfArray(s)){var u,d=s.length,p=createTypedArray("float32",d);for(u=0;
287u<d;u+=1)p[u]=(a[u]-s[u])*l+s[u];return p}return(a-s)*l+s}function nearestKey(e){var t,r,n,s=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<s-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}r===-1&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var a={};return a.index=r,a.time=n/elem.comp.globalData.frameRate,a}function key(e){var t,r,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=s.length,r=0;r<n;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||e===0||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind;!elem.hierarchy||elem.hierarchy.length;var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),!(!elem.hierarchy||!elem.hierarchy.length)&&!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)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};return e.initExpressions=function(t){var r=0,n=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){r+=1},t.renderer.globalData.popExpression=function(){(r-=1)===0&&(function(){var s,a=n.length;for(s=0;s<a;s+=1)n[s].release();n.length=0})()},t.renderer.globalData.registerExpressionProperty=function(s){n.indexOf(s)===-1&&n.push(s)}},e.resetFrame=ExpressionManager.resetFrame,e})(),MaskManagerInterface=(function(){function e(t,r){this._mask=t,this._data=r}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),s=t.viewData.length;for(r=0;r<s;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(a){for(r=0;r<s;){if(t.masksProperties[r].nm===a)return n[r];r+=1}return null}}})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(s,a,l){Object.defineProperty(s,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),s.numKeys=a.keyframes?a.keyframes.length:0,s.key=function(u){if(!s.numKe
vendor: 5,917 bytes, line 287
287ys)return 0;var d="";d="s"in a.keyframes[u-1]?a.keyframes[u-1].s:"e"in a.keyframes[u-2]?a.keyframes[u-2].e:a.keyframes[u-2].s;var p=l==="unidimensional"?new Number(d):Object.assign({},d);return p.time=a.keyframes[u-1].t/a.elem.comp.globalData.frameRate,p.value=l==="unidimensional"?d[0]:d,p},s.valueAtTime=a.getValueAtTime,s.speedAtTime=a.getSpeedAtTime,s.velocityAtTime=a.getVelocityAtTime,s.propertyGroup=a.propertyGroup}function n(){return e}return function(s){return s?s.propType==="unidimensional"?(function(a){a&&"pv"in a||(a=e);var l=1/a.mult,u=a.pv*l,d=new Number(u);return d.value=u,r(d,a,"unidimensional"),function(){return a.k&&a.getValue(),u=a.v*l,d.value!==u&&((d=new Number(u)).value=u,r(d,a,"unidimensional")),d}})(s):(function(a){a&&"pv"in a||(a=t);var l=1/a.mult,u=a.data&&a.data.l||a.pv.length,d=createTypedArray("float32",u),p=createTypedArray("float32",u);return d.value=p,r(d,a,"multidimensional"),function(){a.k&&a.getValue();for(var h=0;h<u;h+=1)p[h]=a.v[h]*l,d[h]=p[h];return d}})(s):n}})(),TransformExpressionInterface=function(e){function t(l){switch(l){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,s,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[r(),n(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=(function(){function e(p){var h=new Matrix;return p!==void 0?this._elem.finalTransform.mProp.getValueAtTime(p).clone(h):this._elem.finalTransform.mProp.applyToMatrix(h),h}function t(p,h){var x=this.getMatrix(h);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.applyPoint(x,p)}function r(p,h){var x=this.getMatrix(h);return this.applyPoint(x,p)}function n(p,h){var x=this.getMatrix(h);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.invertPoint(x,p)}function s(p,h){var x=this.getMatrix(h);return this.invertPoint(x,p)}function a(p,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,w=this._elem.hierarchy.length;for(x=0;x<w;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(p)}return p.applyToPointArray(h[0],h[1],h[2]||0)}function l(p,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,w=this._elem.hierarchy.length;for(x=0;x<w;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(p)}return p.inversePoint(h)}function u(p){var h=new Matrix;if(h.reset(),this._elem.finalTransform.mProp.applyToMatrix(h),this._elem.hierarchy&&this._elem.hierarchy.length){var x,w=this._elem.hierarchy.length;for(x=0;x<w;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(h);return h.inversePoint(p)}return h.inversePoint(p)}function d(){return[1,1,1,1]}return function(p){var h;function x(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return x.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return x.effect;case"ADBE Text Properties":return x.textInterface;default:return null}}x.getMatrix=e,x.invertPoint=l,x.applyPoint=a,x.toWorld=r,x.toWorldVec=t,x.fromWorld=s,x.fromWorldVec=n,x.toComp=r,x.fromComp=u,x.sampleImage=d,x.sourceRectAtTime=p.sourceRectAtTime.bind(p),x._elem=p;var w=getDescriptor(h=TransformExpressionInterface(p.finalTransform.mProp),"anchorPoint");return Object.defineProperties(x,{hasParent:{get:function(){return p.hierarchy.length}},parent:{get:function(){return p.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:w,anchor_point:w,transform:{get:function(){return h}},active:{get:function(){return p.isInRange}}}),x.startTime=p.data.st,x.index=p.data.ind,x.source=p.data.refId,x.height=p.data.ty===0?p.data.h:100,x.width=p.data.ty===0?p.data.w:100,x.inPoint=p.data.ip/p.comp.globalData.frameRate,x.outPoint=p.data.op/p.comp.globalData.frameRate,x._name=p.data.nm,x.registerMaskInterface=function(g){x.mask=new MaskManagerInterface(g,p)},x.registerEffectsInterface=function(g){x.effect=g},x}})(),propertyGroupFactory=function(e,t){return function(r){return(r=r===void 0?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(n){return(n=n===void 0?1:n)<=0?r:t(n-1)}}
vendor: 8,881 bytes, line 287
287,EffectsExpressionInterface=(function(){function e(r,n,s,a){function l(x){for(var w=r.ef,g=0,b=w.length;g<b;){if(x===w[g].nm||x===w[g].mn||x===w[g].ix)return w[g].ty===5?p[g]:p[g]();g+=1}throw new Error}var u,d=propertyGroupFactory(l,s),p=[],h=r.ef.length;for(u=0;u<h;u+=1)r.ef[u].ty===5?p.push(e(r.ef[u],n.effectElements[u],n.effectElements[u].propertyGroup,a)):p.push(t(n.effectElements[u],r.ef[u].ty,a,d));return r.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return p[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:d}}),l.enabled=r.en!==0,l.active=l.enabled,l}function t(r,n,s,a){var l=ExpressionPropertyInterface(r.p);return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",a)),function(){return n===10?s.comp.compInterface(r.p.v):l()}}return{createEffectsInterface:function(r,n){if(r.effectsManager){var s,a=[],l=r.data.ef,u=r.effectsManager.effectElements.length;for(s=0;s<u;s+=1)a.push(e(l[s],r.effectsManager.effectElements[s],n,r));var d=r.data.ef||[],p=function(h){for(s=0,u=d.length;s<u;){if(h===d[s].nm||h===d[s].mn||h===d[s].ix)return a[s];s+=1}return null};return Object.defineProperty(p,"numProperties",{get:function(){return d.length}}),p}return null}}})(),ShapePathInterface=function(e,t,r){var n=t.sh;function s(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?s.path:null}var a=propertyGroupFactory(s,r);return n.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(s,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),s},ShapeExpressionInterface=(function(){function e(g,b,v){var E,j=[],R=g?g.length:0;for(E=0;E<R;E+=1)g[E].ty==="gr"?j.push(t(g[E],b[E],v)):g[E].ty==="fl"?j.push(r(g[E],b[E],v)):g[E].ty==="st"?j.push(a(g[E],b[E],v)):g[E].ty==="tm"?j.push(l(g[E],b[E],v)):g[E].ty==="tr"||(g[E].ty==="el"?j.push(d(g[E],b[E],v)):g[E].ty==="sr"?j.push(p(g[E],b[E],v)):g[E].ty==="sh"?j.push(ShapePathInterface(g[E],b[E],v)):g[E].ty==="rc"?j.push(h(g[E],b[E],v)):g[E].ty==="rd"?j.push(x(g[E],b[E],v)):g[E].ty==="rp"?j.push(w(g[E],b[E],v)):g[E].ty==="gf"?j.push(n(g[E],b[E],v)):j.push(s(g[E],b[E])));return j}function t(g,b,v){var E=function(T){switch(T){case"ADBE Vectors Group":case"Contents":case 2:return E.content;default:return E.transform}};E.propertyGroup=propertyGroupFactory(E,v);var j=(function(T,z,L){var V,$=function(B){for(var P=0,H=V.length;P<H;){if(V[P]._name===B||V[P].mn===B||V[P].propertyIndex===B||V[P].ix===B||V[P].ind===B)return V[P];P+=1}return typeof B=="number"?V[B-1]:null};$.propertyGroup=propertyGroupFactory($,L),V=e(T.it,z.it,$.propertyGroup),$.numProperties=V.length;var U=u(T.it[T.it.length-1],z.it[z.it.length-1],$.propertyGroup);return $.transform=U,$.propertyIndex=T.cix,$._name=T.nm,$})(g,b,E.propertyGroup),R=u(g.it[g.it.length-1],b.it[b.it.length-1],E.propertyGroup);return E.content=j,E.transform=R,Object.defineProperty(E,"_name",{get:function(){return g.nm}}),E.numProperties=g.np,E.propertyIndex=g.ix,E.nm=g.nm,E.mn=g.mn,E}function r(g,b,v){function E(j){return j==="Color"||j==="color"?E.color:j==="Opacity"||j==="opacity"?E.opacity:null}return Object.defineProperties(E,{color:{get:ExpressionPropertyInterface(b.c)},opacity:{get:ExpressionPropertyInterface(b.o)},_name:{value:g.nm},mn:{value:g.mn}}),b.c.setGroupProperty(PropertyInterface("Color",v)),b.o.setGroupProperty(PropertyInterface("Opacity",v)),E}function n(g,b,v){function E(j){return j==="Start Point"||j==="start point"?E.startPoint:j==="End Point"||j==="end point"?E.endPoint:j==="Opacity"||j==="opacity"?E.opacity:null}return Object.defineProperties(E,{startPoint:{get:ExpressionPropertyInterface(b.s)},endPoint:{get:ExpressionPropertyInterface(b.e)},opacity:{get:ExpressionPropertyInterface(b.o)},type:{get:function(){return"a"}},_name:{value:g.nm},mn:{value:g.mn}}),b.s.setGroupProperty(PropertyInterface("Start Point",v)),b.e.setGroupProperty(PropertyInterface("End Point",v)),b.o.setGroupProperty(PropertyInterface("Opacity",v)),E}function s(){return function(){return null}}function a(g,b,v){var E,j=propertyGroupFactory(V,v),R=propertyGroupFactory(L,j);function T($){Object.defineProperty(L,g.d[$].nm,{get:ExpressionPropertyInterface(b.d.dataProps[$].p)})}var z=g.d?g.d.length:0,L={};for(E=0;E<z;E+=1)T(E),b.d.dataProps[E].p.setGroupProperty(R);function V($){return $==="Color"||$==="color"?V.color:$==="Opacity"||$==="opacity"?V.opacity:$==="Stroke Width"||$==="stroke width"?V.strokeWidth:null}return Object.defineProperties(V,{color:{get:ExpressionPropertyInterface(b.c)},opacity:{get:ExpressionPropertyInterface(b.o)},strokeWidth:{get:ExpressionPropertyInterface(b.w)},dash:{get:function(){return L}},_name:{value:g.nm},mn:{value:g.mn}}),b.c.setGroupProperty(PropertyInterface("Color",j)),b.o.setGroupProperty(PropertyInterface("Opacity",j)),b.w.setGroupProperty(PropertyInterface("Stroke Width",j)),V}function l(g,b,v){function E(R){return R===g.e.ix||R==="End"||R==="end"?E.end:R===g.s.ix?E.start:R===g.o.ix?E.offset:null}var j=propertyGroupFactory(E,v);return E.propertyIndex=g.ix,b.s.setGroupProperty(PropertyInterface("Start",j)),b.e.setGroupProperty(PropertyInterface("End",j)),b.o.setGroupProperty(PropertyInterface("Offset",j)),E.propertyIndex=g.ix,E.propertyGroup=v,Object.defineProperties(E,{start:{get:ExpressionPropertyInterface(b.s)},end:{get:ExpressionPropertyInterface(b.e)},offset:{get:ExpressionPropertyInterface(b.o)},_name:{value:g.nm}}),E.mn=g.mn,E}function u(g,b,v){function E(R){return g.a.ix===R||R==="Anchor Point"?E.anchorPoint:g.o.ix===R||R==="Opacity"?E.opacity:g.p.ix===R||R==="Position"?E.position:g.r.ix===R||R==="Rotation"||R==="ADBE Vector Rotation"?E.rotation:g.s.ix===R||R==="Scale"?E.scale:g.sk&&g.sk.ix===R||R==="Skew"?E.skew:g.sa&&g.sa.ix===R||R==="Skew Axis"?E.skewAxis:null}var j=propertyGroupFactory(E,v);return b.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",j)),b.transform.mProps.p.setGroupProperty(PropertyInterface("Position",j)),b.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",j)),b.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",j)),b.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",j)),b.transform.mProps.sk&&(b.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",j)),b.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",j))),b.transform.op.setGroupProperty(PropertyInterface("Opacity",j)),Object.defineProperties(E,{opacity:{get:ExpressionPropertyInterface(b.transform.mProps.o)},position:{get:ExpressionPropertyInterface(b.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(b.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(b.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(b.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(b.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(b.transform.mProps.sa)},_name:{value:g.nm}}),E.ty="tr",E.mn=g.mn,E.propertyGroup=v,E}function d(g,b,v){function E(T){return g.p.ix===T?E.position:g.s.ix===T?E.size:null}var j=propertyGroupFactory(E,v);E.propertyIndex=g.ix;var R=b.sh.ty==="tm"?b.sh.prop:b.sh;return R.s.setGroupProperty(PropertyInterface("Size",j)),R.p.setGroupProperty(PropertyInterface("Position",j)),Object.defineProperties(E,{size:{get:ExpressionPropertyInterface(R.s)},position:{get:ExpressionPropertyInterface(R.p)},_name:{value:g.nm}}),E.mn=g.mn,E}function p(g,b,v){function E(T){return g.p.ix===T?E.position:g.r.ix===T?E.rotation:g.pt.ix===T?E.points:g.or.ix===T||T==="ADBE Vector Star Outer Radius"?E.outerRadius:g.os.ix===T?E.outerRoundness:!g.ir||g.ir.ix!==T&&T!=="ADBE Vector Star Inner Radius"?g.is&&g.is.ix===T?E.innerRoundness:null:E.innerRadius}var j=propertyGroupFactory(E,v),R=b.sh.ty==="tm"?b.sh.prop:b.sh;return E.propertyIndex=g.ix,R.or.setGroupProperty(PropertyInterface("Outer Radius",j)),R.os.setGroupProperty(PropertyInterface("Outer Roundness",j)),R.pt.setGroupProperty(PropertyInterface("Points",j)),R.p.setGroupProperty(PropertyInterface("Position",j)),R.r.setGroupProperty(PropertyInterface("Rotation",j)),g.ir&&(R.ir.setGroupProperty(PropertyInterface("Inner Radius",j)),R.is.setGroupProperty(PropertyInterface("Inner Roundness",j))),Object.defineProperties(E,{position:{get:ExpressionPropertyInterface(R.p)},rotation:{get:ExpressionPropertyInterface(R.r)},points:{get:ExpressionPropertyInterface(R.pt)},outerRadius:{get:ExpressionPropertyInterface(R.or)},outerRoundness:{get:ExpressionPropertyInterface(R.os)},innerRadius:{get:ExpressionPropertyInterface(R.ir)},innerRoundness:{get:ExpressionPropertyInterface(R.is)},_name:{value:g.nm}}),E.mn=g.mn,E}function h(g,b,v){function E(T){return g.p.ix===T?E.position:g.r.ix===T?E.roun
287dness:g.s.ix===T||T==="Size"||T==="ADBE Vector Rect Size"?E.size:null}var j=propertyGroupFactory(E,v),R=b.sh.ty==="tm"?b.sh.prop:b.sh;return E.propertyIndex=g.ix,R.p.setGroupProperty(PropertyInterface("Position",j)),R.s.setGroupProperty(PropertyInterface("Size",j)),R.r.setGroupProperty(PropertyInterface("Rotation",j)),Object.defineProperties(E,{position:{get:ExpressionPropertyInterface(R.p)},roundness:{get:ExpressionPropertyInterface(R.r)},size:{get:ExpressionPropertyInterface(R.s)},_name:{value:g.nm}}),E.mn=g.mn,E}function x(g,b,v){function E(T){return g.r.ix===T||T==="Round Corners 1"?E.radius:null}var j=propertyGroupFactory(E,v),R=b;return E.propertyIndex=g.ix,R.rd.setGroupProperty(PropertyInterface("Radius",j)),Object.defineProperties(E,{radius:{get:ExpressionPropertyInterface(R.rd)},_name:{value:g.nm}}),E.mn=g.mn,E}function w(g,b,v){function E(T){return g.c.ix===T||T==="Copies"?E.copies:g.o.ix===T||T==="Offset"?E.offset:null}var j=propertyGroupFactory(E,v),R=b;return E.propertyIndex=g.ix,R.c.setGroupProperty(PropertyInterface("Copies",j)),R.o.setGroupProperty(PropertyInterface("Offset",j)),Object.defineProperties(E,{copies:{get:ExpressionPropertyInterface(R.c)},offset:{get:ExpressionPropertyInterface(R.o)},_name:{value:g.nm}}),E.mn=g.mn,E}return function(g,b,v){var E;function j(R){if(typeof R=="number")return(R=R===void 0?1:R)===0?v:E[R-1];for(var T=0,z=E.length;T<z;){if(E[T]._name===R)return E[T];T+=1}return null}return j.propertyGroup=propertyGroupFactory(j,(function(){return v})),E=e(g,b,j.propertyGroup),j.numProperties=E.length,j._name="Contents",j}})(),TextExpressionInterface=function(e){var t;function r(n){switch(n){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(r){return r==="Outline"?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=(function(r){var n="",s=r.getFootageData();function a(l){if(s[l])return n=l,_typeof(s=s[l])==="object"?a:s;var u=l.indexOf(n);if(u!==-1){var d=parseInt(l.substr(u+n.length),10);return _typeof(s=s[d])==="object"?a:s}return""}return function(){return n="",s=r.getFootageData(),a}})(e),t},function(e){function t(r){return r==="Data"?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var s;for(s=0;s<t.length;s+=1)n+=Math.pow(r[s]-t[s],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(this.vel!==void 0)return this.vel;var t,r,n=this.getValueAtTime(e),s=this.getValueAtTime(e+-.001);if(n.length)for(t=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)t[r]=(s[r]-n[r])/-.001;else t=(s-n)/-.001;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(x,w,g){if(!this.k||!this.keyframes)return this.pv;x=x?x.toLowerCase():"";var b,v,E,j,R,T=this.comp.renderedFrame,z=this.keyframes,L=z[z.length-1].t;if(T<=L)return this.pv;if(g?v=L-(b=w?Math.abs(L-this.elem.comp.globalData.frameRate*w):Math.max(0,L-this.elem.data.ip)):((!w||w>z.length-1)&&(w=z.length-1),b=L-(v=z[z.length-1-w].t)),x==="pingpong"){if(Math.floor((T-v)/b)%2!=0)return this.getValueAtTime((b-(T-v)%b+v)/this.comp.globalData.frameRate,0)}else{if(x==="offset"){var V=this.getValueAtTime(v/this.comp.globalData.frameRate,0),$=this.getValueAtTime(L/this.comp.globalData.frameRate,0),U=this.getValueAtTime(((T-v)%b+v)/this.comp.globalData.frameRate,0),B=Math.floor((T-v)/b);if(this.pv.length){for(j=(R=new Array(V.length)).length,E=0;E<j;E+=1)R[E]=($[E]-V[E])*B+U[E];return R}return($-V)*B+U}if(x==="continue"){var P=this.getValueAtTime(L/this.comp.globalData.frameRate,0),H=this.getValueAtTime((L-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(j=(R=new Array(P.length)).length,E=0;E<j;E+=1)R[E]=P[E]+(P[E]-H[E])*((T-L)/this.comp.globalData.frameRate)/5e-4;return R}return P+(T-L)/.001*(P-H)}}return this.getValueAtTime(((T-v)%b+v)/this.comp.globalData.frameRate,0)}function t(x,w,g){if(!this.k)return this.pv;x=x?x.toLowerCase():"";var b,v,E,j,R,T=this.comp.renderedFrame,z=this.keyframes,L=z[0].t;if(T>=L)return this.pv;if(g?v=L+(b=w?Math.abs(this.elem.comp.globalData.frameRate*w):Math.max(0,this.elem.data.op-L)):((!w||w>z.length-1)&&(w=z.length-1),b=(v=z[w].t)-L),x==="pingpong"){if(Math.floor((L-T)/b)%2==0)return this.getValueAtTime(((L-T)%b+L)/this.comp.globalData.frameRate,0)}else{if(x==="offset"){var V=this.getValueAtTime(L/this.comp.globalData.frameRate,0),$=this.getValueAtTime(v/this.comp.globalData.frameRate,0),U=this.getValueAtTime((b-(L-T)%b+L)/this.comp.globalData.frameRate,0),B=Math.floor((L-T)/b)+1;if(this.pv.length){for(j=(R=new Array(V.length)).length,E=0;E<j;E+=1)R[E]=U[E]-($[E]-V[E])*B;return R}return U-($-V)*B}if(x==="continue"){var P=this.getValueAtTime(L/this.comp.globalData.frameRate,0),H=this.getValueAtTime((L+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(j=(R=new Array(P.length)).length,E=0;E<j;E+=1)R[E]=P[E]+(P[E]-H[E])*(L-T)/.001;return R}return P+(P-H)*(L-T)/.001}}return this.getValueAtTime((b-((L-T)%b+L))/this.comp.globalData.frameRate,0)}function r(x,w){if(!this.k)return this.pv;if(x=.5*(x||.4),(w=Math.floor(w||5))<=1)return this.pv;var g,b,v=this.comp.renderedFrame/this.comp.globalData.frameRate,E=v-x,j=w>
vendor: 7,453 bytes, line 287
2871?(v+x-E)/(w-1):1,R=0,T=0;for(g=this.pv.length?createTypedArray("float32",this.pv.length):0;R<w;){if(b=this.getValueAtTime(E+R*j),this.pv.length)for(T=0;T<this.pv.length;T+=1)g[T]+=b[T];else g+=b;R+=1}if(this.pv.length)for(T=0;T<this.pv.length;T+=1)g[T]/=w;else g/=w;return g}function n(x){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var w=this._transformCachingAtTime.v;if(w.cloneFromProps(this.pre.props),this.appliedTransformations<1){var g=this.a.getValueAtTime(x);w.translate(-g[0]*this.a.mult,-g[1]*this.a.mult,g[2]*this.a.mult)}if(this.appliedTransformations<2){var b=this.s.getValueAtTime(x);w.scale(b[0]*this.s.mult,b[1]*this.s.mult,b[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var v=this.sk.getValueAtTime(x),E=this.sa.getValueAtTime(x);w.skewFromAxis(-v*this.sk.mult,E*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var j=this.r.getValueAtTime(x);w.rotate(-j*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var R=this.rz.getValueAtTime(x),T=this.ry.getValueAtTime(x),z=this.rx.getValueAtTime(x),L=this.or.getValueAtTime(x);w.rotateZ(-R*this.rz.mult).rotateY(T*this.ry.mult).rotateX(z*this.rx.mult).rotateZ(-L[2]*this.or.mult).rotateY(L[1]*this.or.mult).rotateX(L[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var V=this.px.getValueAtTime(x),$=this.py.getValueAtTime(x);if(this.data.p.z){var U=this.pz.getValueAtTime(x);w.translate(V*this.px.mult,$*this.py.mult,-U*this.pz.mult)}else w.translate(V*this.px.mult,$*this.py.mult,0)}else{var B=this.p.getValueAtTime(x);w.translate(B[0]*this.p.mult,B[1]*this.p.mult,-B[2]*this.p.mult)}return w}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(x,w,g){var b=a(x,w,g);return b.dynamicProperties.length?b.getValueAtTime=n.bind(b):b.getValueAtTime=s.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b};var l=PropertyFactory.getProp;PropertyFactory.getProp=function(x,w,g,b,v){var E=l(x,w,g,b,v);E.kf?E.getValueAtTime=expressionHelpers.getValueAtTime.bind(E):E.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(E),E.setGroupProperty=expressionHelpers.setGroupProperty,E.loopOut=e,E.loopIn=t,E.smooth=r,E.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(E),E.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(E),E.numKeys=w.a===1?w.k.length:0,E.propertyIndex=w.ix;var j=0;return g!==0&&(j=createTypedArray("float32",w.a===1?w.k[0].s.length:w.k.length)),E._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:j},expressionHelpers.searchExpressions(x,w,E),E.k&&v.addDynamicProperty(E),E};var u=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(x,w){this.k&&this.getValue();var g,b=this.v;w!==void 0&&(b=this.getValueAtTime(w,0));var v=b._length,E=b[x],j=b.v,R=createSizedArray(v);for(g=0;g<v;g+=1)R[g]=x==="i"||x==="o"?[E[g][0]-j[g][0],E[g][1]-j[g][1]]:[E[g][0],E[g][1]];return R},points:function(x){return this.vertices("v",x)},inTangents:function(x){return this.vertices("i",x)},outTangents:function(x){return this.vertices("o",x)},isClosed:function(){return this.v.c},pointOnPath:function(x,w){var g=this.v;w!==void 0&&(g=this.getValueAtTime(w,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var b,v=this._segmentsLength,E=v.lengths,j=v.totalLength*x,R=0,T=E.length,z=0;R<T;){if(z+E[R].addedLength>j){var L=R,V=g.c&&R===T-1?0:R+1,$=(j-z)/E[R].addedLength;b=bez.getPointInSegment(g.v[L],g.v[V],g.o[L],g.i[V],$,E[R]);break}z+=E[R].addedLength,R+=1}return b||(b=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),b},vectorOnPath:function(x,w,g){x==1?x=this.v.c:x==0&&(x=.999);var b=this.pointOnPath(x,w),v=this.pointOnPath(x+.001,w),E=v[0]-b[0],j=v[1]-b[1],R=Math.sqrt(Math.pow(E,2)+Math.pow(j,2));return R===0?[0,0]:g==="tangent"?[E/R,j/R]:[-j/R,E/R]},tangentOnPath:function(x,w){return this.vectorOnPath(x,w,"tangent")},normalOnPath:function(x,w){return this.vectorOnPath(x,w,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],u),extendPrototype([p],d),d.prototype.getValueAtTime=function(x){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),x*=this.elem.globalData.frameRate,(x-=this.offsetTime)!==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},d.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(x,w,g,b,v){var E=h(x,w,g,b,v);return E.propertyIndex=w.ix,E.lock=!1,g===3?expressionHelpers.searchExpressions(x,w.pt,E):g===4&&expressionHelpers.searchExpressions(x,w.ks,E),E.k&&x.addDynamicProperty(E),E}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){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}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,s=createNS("feMerge");for(s.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),s.appendChild(r),s.appendChild(r);return s}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var l=this.createMergeNode(n,[s,n+"_tint_1",n+"_tint_2"]);e.appendChild(l)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n),e.appendChild(s),this.matrixFilter=s}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 9,693 bytes, line 287
287ppendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var l=createNS("feFuncR");l.setAttribute("type","table"),a.appendChild(l),this.feFuncR=l;var u=createNS("feFuncG");u.setAttribute("type","table"),a.appendChild(u),this.feFuncG=u;var d=createNS("feFuncB");d.setAttribute("type","table"),a.appendChild(d),this.feFuncB=d,e.appendChild(a)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,r,n,s){var a=t.container.globalData.renderConfig.filterSize,l=t.data.fs||a;e.setAttribute("x",l.x||a.x),e.setAttribute("y",l.y||a.y),e.setAttribute("width",l.width||a.width),e.setAttribute("height",l.height||a.height),this.filterManager=t;var u=createNS("feGaussianBlur");u.setAttribute("in","SourceAlpha"),u.setAttribute("result",n+"_drop_shadow_1"),u.setAttribute("stdDeviation","0"),this.feGaussianBlur=u,e.appendChild(u);var d=createNS("feOffset");d.setAttribute("dx","25"),d.setAttribute("dy","0"),d.setAttribute("in",n+"_drop_shadow_1"),d.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=d,e.appendChild(d);var p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=p,e.appendChild(p);var h=createNS("feComposite");h.setAttribute("in",n+"_drop_shadow_3"),h.setAttribute("in2",n+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(h);var x=this.createMergeNode(n,[n+"_drop_shadow_4",s]);e.appendChild(x)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(n=this.elem.maskManager.masksProperties.length,r=0):n=(r=this.filterManager.effectElements[0].p.v-1)+1,(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),l=createElementID();a.setAttribute("id",l),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var u=createNS("g");for(u.setAttribute("mask","url("+getLocationHref()+"#"+l+")");s[0];)u.appendChild(s[0]);this.elem.layerElement.appendChild(u),this.masker=a,t.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(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,s=this.paths.length;for(t=0;t<s;t+=1)if(this.paths[t].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var l=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),u=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),d=n.getTotalLength();a="0 0 0 "+d*l+" ";var p,h=d*(u-l),x=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,w=Math.floor(h/x);for(p=0;p<w;p+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*d+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var g=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*g[0])+","+bmFloor(255*g[1])+","+bmFloor(255*g[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,s=n[0]+" "+r[0]+" "+t[0],a=n[1]+" "+r[1]+" "+t[1],l=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",l)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,s){for(var a,l,u=0,d=Math.min(e,t),p=Math.max(e,t),h=Array.call(null,{length:256}),x=0,w=s-n,g=t-e;u<=256;)l=(a=u/256)<=d?g<0?s:n:a>=p?g<0?n:s:n+w*Math.pow((a-e)/g,1/r),h[x]=l,x+=1,u+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,
287n=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(n),a=r*Math.sin(n);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",n),e.appendChild(s),this.feGaussianBlur=s}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,s=r.children,a=0,l=s.length;a<l&&s[a]!==e.layerElement;)a+=1;a<=l-2&&(n=s[a+1]);var u=createNS("use");u.setAttribute("href","#"+t),n?r.insertBefore(u,n):r.appendChild(u)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(n);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(t,r),a.appendChild(t.layerElement),s.appendChild(a);var l=createNS("use");l.setAttribute("href","#"+r),n.appendChild(l),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=r==3?0:t,s=r==2?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+s);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,l=s?a:t[4].p.v,u=t[5].p.v,d=t[6].p.v,p=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*l,.01*a,1),this.matrix.rotate(-p*degToRads),this.matrix.skewFromAxis(-u*degToRads,(d+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),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}))})),REACT_LOTTIE_PLAYER_VERSION="3.6.0",LOTTIE_WEB_VERSION="^5.12.2",PlayerState,PlayerEvent;function parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{}try{return new URL(e).toString()}catch{}return e}(function(e){e.Loading="loading",e.Playing="playing",e.Paused="paused",e.Stopped="stopped",e.Frozen="frozen",e.Error="error"})(PlayerState||(PlayerState={})),(function(e){e.Load="load",e.InstanceSaved="instanceSaved",e.Error="error",e.Ready="ready",e.Play="play",e.Pause="pause",e.Stop="stop",e.Freeze="freeze",e.Loop="loop",e.Complete="complete",e.Frame="frame"})(PlayerEvent||(PlayerEvent={}));var defaultOptions={clearCanvas:!1,hideOnTransparent:!0,progressiveLoad:!0},Player=(function(e){function t(r){var n=e.call(this,r)||this;return n.container=null,n.unmounted=!1,n.handleBgChange=function(s){n.setState({background:s})},n.triggerDownload=function(s,a){var l=document.createElement("a");l.href=s,l.download=a,document.body.appendChild(l),l.click(),document.body.removeChild(l)},n.snapshot=function(s){var a;s===void 0&&(s=!0);var l=n.props.id?n.props.id:"lottie",u=document.getElementById(l);if(n.props.renderer==="svg"){if(u){var d=u.querySelector("svg");if(d){var p=new XMLSerializer().serializeToString(d);a="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(p)}}s&&n.triggerDownload(a,"snapshot.svg")}else if(n.props.renderer==="canvas"){if(u){var h=u.querySelector("canvas");h&&(a=h.toDataURL("image/png"))}s&&n.triggerDownload(a,"snapshot.png")}return a},typeof window<"u"&&(window.lottie=lottie),n.state={animationData:null,background:"transparent",containerRef:reactExports.createRef(),debug:!0,instance:null,playerState:PlayerState.Loading,seeker:0},n}return __extends(t,e),t.getDerivedStateFromProps=function(r,n){return __awaiter$1(this,void 0,void 0,(function(){return __generator(this,(function(s){return r.background!==n.background?[2,{background:r.background}]:[2,null]}))}))},t.prototype.getVersions=function(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:REACT_LOTTIE_PLAYER_VERSION}},t.prototype.componentDidMount=function(){return __awaiter$1(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return this.unmounted?[3,2]:[4,this.createLottie()];case 1:r.sent(),r.label=2;case 2:return[2]}}
287))}))},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.state.instance&&this.state.instance.destroy()},t.prototype.componentDidUpdate=function(r){return __awaiter$1(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return this.props.src===r.src?[3,2]:(this.state.instance&&this.state.instance.destroy(),[4,this.createLottie()]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.render=function(){var r=this,n=this.props,s=n.children,a=n.loop,l=n.style,u=n.onBackgroundChange,d=n.className,p=this.state,h=p.animationData,x=p.instance,w=p.playerState,g=p.seeker,b=p.debug,v=p.background;return reactExports.createElement("div",{className:"lf-player-container"},this.state.playerState===PlayerState.Error?reactExports.createElement("div",{className:"lf-error"},reactExports.createElement("span",{"aria-label":"error-symbol",role:"img"},"â ï¸")):reactExports.createElement("div",{id:this.props.id?this.props.id:"lottie",ref:function(E){return r.container=E},style:__assign({background:v,margin:"0 auto",outline:"none",overflow:"hidden"},l),className:d}),reactExports.Children.map(s,(function(E){return reactExports.isValidElement(E)?reactExports.cloneElement(E,{animationData:h,background:v,debug:b,instance:x,loop:a,pause:function(){return r.pause()},play:function(){return r.play()},playerState:w,seeker:g,setBackground:function(j){r.setState({background:j}),typeof u=="function"&&u(j)},setSeeker:function(j,R){return r.setSeeker(j,R)},stop:function(){return r.stop()},toggleDebug:function(){return r.toggleDebug()},setLoop:function(j){return r.setLoop(j)},colorChangedEvent:function(j){r.handleBgChange(j)},snapshot:function(){r.snapshot()}}):null})))},t.prototype.toggleDebug=function(){this.setState({debug:!this.state.debug})},t.prototype.createLottie=function(){return __awaiter$1(this,void 0,void 0,(function(){var r,n,s,a,l,u,d,p,h,x,w,g,b,v,E=this;return __generator(this,(function(j){switch(j.label){case 0:if(r=this.props,n=r.autoplay,s=r.direction,a=r.loop,l=r.lottieRef,u=r.renderer,d=r.speed,p=r.src,h=r.background,x=r.rendererSettings,w=r.hover,g=this.state.instance,!p||!this.container)return[2];j.label=1;case 1:return j.trys.push([1,5,,6]),typeof(b=parseSrc(p))!="string"?[3,4]:[4,fetch(b).catch((function(){throw E.setState({playerState:PlayerState.Error}),E.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")}))];case 2:return[4,j.sent().json().catch((function(){throw E.setState({playerState:PlayerState.Error}),E.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")}))];case 3:b=j.sent(),j.label=4;case 4:return g&&g.destroy(),v=lottie.loadAnimation({rendererSettings:x||defaultOptions,animationData:b,autoplay:n||!1,container:this.container,loop:a||!1,renderer:u}),d&&v.setSpeed(d),this.setState({animationData:b}),this.setState({instance:v},(function(){E.triggerEvent(PlayerEvent.InstanceSaved),typeof l=="function"&&l(v),n&&E.play()})),v.addEventListener("enterFrame",(function(){E.triggerEvent(PlayerEvent.Frame),E.setState({seeker:Math.floor(v.currentFrame)})})),v.addEventListener("DOMLoaded",(function(){E.triggerEvent(PlayerEvent.Load)})),v.addEventListener("data_ready",(function(){E.triggerEvent(PlayerEvent.Ready)})),v.addEventListener("data_failed",(function(){E.setState({playerState:PlayerState.Error}),E.triggerEvent(PlayerEvent.Error)})),v.addEventListener("loopComplete",(function(){E.triggerEvent(PlayerEvent.Loop)})),v.addEventListener("complete",(function(){E.triggerEvent(PlayerEvent.Complete),E.setState({playerState:PlayerState.Paused}),E.props.keepLastFrame&&!E.props.loop||E.setSeeker(0)})),this.container&&(this.container.addEventListener("mouseenter",(function(){w&&E.state.playerState!==PlayerState.Playing&&(E.props.keepLastFrame&&E.stop(),E.play())})),this.container.addEventListener("mouseleave",(function(){w&&E.state.playerState===PlayerState.Playing&&E.stop()}))),d&&this.setPlayerSpeed(d),s&&this.setPlayerDirection(s),h&&this.setState({background:h}),[3,6];case 5:return j.sent(),this.setState({playerState:PlayerState.Error}),this.triggerEvent(PlayerEvent.Error),[3,6];case 6:return[2]}}
287))}))},t.prototype.play=function(){var r=this.state.instance;r&&(this.triggerEvent(PlayerEvent.Play),r.play(),this.setState({playerState:PlayerState.Playing}))},t.prototype.pause=function(){var r=this.state.instance;r&&(this.triggerEvent(PlayerEvent.Pause),r.pause(),this.setState({playerState:PlayerState.Paused}))},t.prototype.stop=function(){var r=this.state.instance;r&&(this.triggerEvent(PlayerEvent.Stop),r.stop(),this.setState({playerState:PlayerState.Stopped}))},t.prototype.setPlayerSpeed=function(r){var n=this.state.instance;n&&n.setSpeed(r)},t.prototype.setPlayerDirection=function(r){var n=this.state.instance;n&&n.setDirection(r)},t.prototype.setSeeker=function(r,n){n===void 0&&(n=!1);var s=this.state,a=s.instance,l=s.playerState;a&&(n&&l===PlayerState.Playing?a.goToAndPlay(r,!0):(a.goToAndStop(r,!0),this.triggerEvent(PlayerEvent.Pause),this.setState({playerState:PlayerState.Paused})))},t.prototype.setLoop=function(r){var n=this.state.instance;n&&(n.loop=r,this.setState({instance:n}))},t.prototype.triggerEvent=function(r){var n=this.props.onEvent;n&&n(r)},t.defaultProps={loop:!1},t})(reactExports.Component);function styleInject(e,t){t===void 0&&(t={});var r=t.insertAt;if(typeof document<"u"){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",r==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var css_248z=`.lf-progress { 288 -webkit-appearance: none; 289 -moz-apperance: none; 290 width: 100%; 291 /* margin: 0 10px; */ 292 height: 4px; 293 border-radius: 3px; 294 cursor: pointer; 295} 296.lf-progress:focus { 297 outline: none; 298 border: none; 299} 300.lf-progress::-moz-range-track { 301 cursor: pointer; 302 background: none; 303 border: none; 304 outline: none; 305} 306.lf-progress::-webkit-slider-thumb { 307 -webkit-appearance: none !important; 308 height: 13px; 309 width: 13px; 310 border: 0; 311 border-radius: 50%; 312 background: #0fccce; 313 cursor: pointer; 314} 315.lf-progress::-moz-range-thumb { 316 -moz-appearance: none !important; 317 height: 13px; 318 width: 13px; 319 border: 0; 320 border-radius: 50%; 321 background: #0fccce; 322 cursor: pointer; 323} 324.lf-progress::-ms-track { 325 width: 100%; 326 height: 3px; 327 cursor: pointer; 328 background: transparent; 329 border-color: transparent; 330 color: transparent; 331} 332.lf-progress::-ms-fill-lower { 333 background: #ccc; 334 border-radius: 3px; 335} 336.lf-progress::-ms-fill-upper { 337 background: #ccc; 338 border-radius: 3px; 339} 340.lf-progress::-ms-thumb { 341 border: 0; 342 height: 15px; 343 width: 15px; 344 border-radius: 50%; 345 background: #0fccce; 346 cursor: pointer; 347} 348.lf-progress:focus::-ms-fill-lower { 349 background: #ccc; 350} 351.lf-progress:focus::-ms-fill-upper { 352 background: #ccc; 353} 354.lf-player-container :focus { 355 outline: 0; 356} 357.lf-popover { 358 position: relative; 359} 360 361.lf-popover-content { 362 display: inline-block; 363 position: absolute; 364 opacity: 1; 365 visibility: visible; 366 transform: translate(0, -10px); 367 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); 368 transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97); 369} 370 371.lf-popover-content.hidden { 372 opacity: 0; 373 visibility: hidden; 374 transform: translate(0, 0px); 375} 376 377.lf-player-btn-container { 378 display: flex; 379 align-items: center; 380} 381.lf-player-btn { 382 cursor: pointer; 383 fill: #999; 384 width: 14px; 385} 386 387.lf-player-btn.active { 388 fill: #555; 389} 390 391.lf-popover { 392 position: relative; 393} 394 395.lf-popover-content { 396 display: inline-block; 397 position: absolute; 398 background-color: #ffffff; 399 opacity: 1; 400 401 transform: translate(0, -10px); 402 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); 403 transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97); 404 padding: 10px; 405} 406 407.lf-popover-content.hidden { 408 opacity: 0; 409 visibility: hidden; 410 transform: translate(0, 0px); 411} 412 413.lf-arrow { 414 position: absolute; 415 z-index: -1; 416 content: ''; 417 bottom: -9px; 418 border-style: solid; 419 border-width: 10px 10px 0px 10px; 420} 421 422.lf-left-align, 423.lf-left-align .lfarrow { 424 left: 0; 425 right: unset; 426} 427 428.lf-right-align, 429.lf-right-align .lf-arrow { 430 right: 0; 431 left: unset; 432} 433 434.lf-text-input { 435 border: 1px #ccc solid; 436 border-radius: 5px; 437 padding: 3px; 438 width: 60px; 439 margin: 0; 440} 441 442.lf-color-picker { 443 display: flex; 444 flex-direction: row; 445 justify-content: space-between; 446 height: 90px; 447} 448 449.lf-color-selectors { 450 display: flex; 451 flex-direction: column; 452 justify-content: space-between; 453} 454 455.lf-color-component { 456 display: flex; 457 flex-direction: row; 458 font-size: 12px; 459 align-items: center; 460 justify-content: center; 461} 462 463.lf-color-component strong { 464 width: 40px; 465} 466 467.lf-color-component input[type='range'] { 468 margin: 0 0 0 10px; 469} 470 471.lf-color-component input[type='number'] { 472 width: 50px; 473 margin: 0 0 0 10px; 474} 475 476.lf-color-preview { 477 font-size: 12px; 478 display: flex; 479 flex-direction: column; 480 align-items: center; 481 justify-content: space-between; 482 padding-left: 5px; 483} 484 485.lf-preview { 486 height: 60px; 487 width: 60px; 488} 489 490.lf-popover-snapshot { 491 width: 150px; 492} 493.lf-popover-snapshot h5 { 494 margin: 5px 0 10px 0; 495 font-size: 0.75rem; 496} 497.lf-popover-snapshot a { 498 display: block; 499 text-decoration: none; 500} 501.lf-popover-snapshot a:before { 502 content: '⥼'; 503 margin-right: 5px; 504} 505.lf-popover-snapshot .lf-note { 506 display: block; 507 margin-top: 10px; 508 color: #999; 509}
510.lf-player-controls > div { 511 margin-right: 5px; 512 margin-left: 5px; 513} 514.lf-player-controls > div:first-child { 515 margin-left: 0px; 516} 517.lf-player-controls > div:last-child { 518 margin-right: 0px; 519} 520`;styleInject(css_248z);var ColorPicker=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.state={red:0,green:0,blue:0,rgba:null,hex:"#000000",colorComponents:[]},r.handleChange=function(n,s){if(n==="r"){var a="#"+(256|s).toString(16).slice(1)+(256|r.state.green).toString(16).slice(1)+(256|r.state.blue).toString(16).slice(1);r.setState({hex:a})}else n==="g"?(a="#"+(256|r.state.red).toString(16).slice(1)+(256|s).toString(16).slice(1)+(256|r.state.blue).toString(16).slice(1),r.setState({hex:a})):n==="b"&&(a="#"+(256|r.state.red).toString(16).slice(1)+(256|r.state.green).toString(16).slice(1)+(256|s).toString(16).slice(1),r.setState({hex:a}))},r.parseColor=function(n){var s;if(typeof n=="string"){if(n[0]==="#"){var a=n.length===4?[n.slice(1,2),n.slice(2,3),n.slice(3,4)].map((function(l){return parseInt(""+l+l,16)})):[n.slice(1,3),n.slice(3,5),n.slice(5,7)].map((function(l){return parseInt(l,16)}));r.setState({colorComponents:a})}else n.startsWith("rgb")&&(a=(s=n.match(/\d+/g))===null||s===void 0?void 0:s.map((function(l){return parseInt(l)})))!==void 0&&r.setState({colorComponents:a});r.state.colorComponents.length&&(r.setState({red:r.state.colorComponents[0]}),r.setState({green:r.state.colorComponents[1]}),r.setState({blue:r.state.colorComponents[2]}))}},r}return __extends(t,e),t.prototype.componentDidUpdate=function(r,n){return this.props.colorChangedEvent&&this.state.hex!==n.hex&&this.props.colorChangedEvent(this.state.hex),!0},t.prototype.render=function(){var r=this;return reactExports.createElement("div",{className:"lf-color-picker"},reactExports.createElement("div",{className:"lf-color-selectors"},reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Red"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.red,onChange:function(n){r.setState({red:n.target.value}),r.handleChange("r",n.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.red,onChange:function(n){r.setState({red:n.target.value}),r.handleChange("r",n.target.value)}})),reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Green"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.green,onChange:function(n){r.setState({green:n.target.value}),r.handleChange("g",n.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.green,onChange:function(n){r.setState({green:n.target.value}),r.handleChange("g",n.target.value)}})),reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Blue"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.blue,onChange:function(n){r.setState({blue:n.target.value}),r.handleChange("b",n.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.blue,onChange:function(n){r.setState({blue:n.target.value}),r.handleChange("b",n.target.value)}}))),reactExports.createElement("div",{className:"lf-color-preview"},reactExports.createElement("div",{className:"lf-preview",style:{background:"rgb("+this.state.red+", "+this.state.green+", "+this.state.blue+")"}}),reactExports.createElement("div",null,reactExports.createElement("input",{className:"lf-text-input",type:"text",value:this.state.hex,onChange:function(n){r.setState({hex:n.target.value}),r.parseColor(n.target.value)}}))))},t})(reactExports.Component),Popover=function(e){var t=e.children,r=e.icon,n=reactExports.useState(null),s=n[0],a=n[1],l=reactExports.useState(null),u=l[0],d=l[1],p=reactExports.useState(null),h=p[0],x=p[1],w=reactExports.useState(!1),g=w[0],b=w[1];return reactExports.useEffect((function(){if(s&&u){var v=s.getBoundingClientRect(),E=u.getBoundingClientRect(),j=v.left+E.width>window.innerWidth?-1:0;x(j)}}),[h,u,s]),reactExports.createElement("div",{className:"lf-popover",onMouseOver:function(){b(!0)},onMouseLeave:function(){b(!1)},ref:function(v){a(v)}},reactExports.createElement("div",{className:" lf-player-btn"},r),reactExports.createElement("div",{className:"lf-popover-content",ref:function(v){d(v)},style:{bottom:"22px",right:"0px",zIndex:2,visibility:g?"visible":"hidden"}},t))},Seeker=(function(e){function t(r){var n=e.call(this,r)||this;return n.inputRef=reactExports.createRef(),n.handleChange=function(){return function(s){var a=s.target.value,l=Math.floor(a/100*n.props.max);n.props.onChange(l)}},n.state={value:0},n}return __extends(t,e),t.prototype.render=function(){var r=this.props.value/this.props.max*100,n={backgroundImage:"-webkit-gradient(linear, left top, right top, color-stop("+r+"%, rgba(15, 204, 206, 0.4)), color-stop("+r+"%, #DAE1E7))"},s={position:"absolute",left:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"},a={position:"absolute",right:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"};return reactExports.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",marginRight:"5px",marginLeft:"5px",position:"relative"}}
520,reactExports.createElement("input",{ref:this.inputRef,id:"track",className:"lf-progress",name:"progress","aria-label":"progress",type:"range",min:"0",max:"100",step:"0.1",value:r,onInput:this.handleChange(),onChange:this.handleChange(),style:n}),this.props.showLabels&&reactExports.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},reactExports.createElement("div",{style:s},this.props.min),reactExports.createElement("div",{style:a},this.props.max)))},t})(reactExports.Component),ControlButtonStyle={display:"inline-flex",cursor:"pointer"};(function(e){function t(r){var n=e.call(this,r)||this;return n.state={activeFrame:0,mouseDown:!1},n}return __extends(t,e),t.prototype.render=function(){var r=this,n=this.props,s=n.instance,a=n.playerState,l=n.seeker,u=n.setLoop,d=n.setSeeker,p=n.play,h=n.pause,x=n.stop,w=n.visible,g=n.buttons;if(!s||!w)return null;var b=!g||g.includes("play"),v=!g||g.includes("stop"),E=!g||g.includes("repeat"),j=!g||g.includes("frame"),R=!g||g.includes("background"),T=!g||g.includes("snapshot"),z={width:14,height:14,viewBox:"0 0 24 24"},L=Math.round(s.currentFrame);return reactExports.createElement("div",{className:"lf-player-controls",style:{display:"flex",justifyContent:"space-between",height:"60px",alignItems:"center",backgroundColor:this.props.transparentTheme?"transparent":this.props.darkTheme?"#3C3C3C":"#ffffff",paddingLeft:"10px",paddingRight:"10px"}},b&&reactExports.createElement("div",{role:"button","aria-label":a===PlayerState.Playing?PlayerEvent.Pause:PlayerEvent.Play,tabIndex:0,onClick:function(){a===PlayerState.Playing?typeof h=="function"&&h():typeof p=="function"&&p()},onKeyDown:function(){a===PlayerState.Playing?typeof h=="function"&&h():typeof p=="function"&&p()},className:"lf-player-btn",style:ControlButtonStyle},a===PlayerState.Playing?reactExports.createElement("svg",__assign({},z),reactExports.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"14",y:".5"}),reactExports.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"2",y:".5"})):reactExports.createElement("svg",__assign({},z),reactExports.createElement("path",{d:"M2 3.4C2 1.9 3.5 1 4.8 1.8l16.5 9.6c1.2.7 1.2 2.5 0 3.2L4.8 24.2C3.5 25 2 24.1 2 22.6V3.4z"}))),v&&reactExports.createElement("div",{tabIndex:0,role:"button","aria-label":PlayerEvent.Stop,onClick:function(){return x&&x()},onKeyDown:function(){return x&&x()},className:a===PlayerState.Stopped?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},reactExports.createElement("svg",__assign({},z),reactExports.createElement("path",{d:`M2 3.667A1.67 1.67 0 0 1 3.667 2h16.666A1.67 1.67 0 0 1 22 3.667v16.666A1.67 1.67 0 0 1 20.333 521 22H3.667A1.67 1.67 0 0 1 2 20.333z`}))),reactExports.createElement(Seeker,{min:0,step:1,max:s?s.totalFrames:1,value:l||0,onChange:function(V){d&&r.setState({activeFrame:V},(function(){d(V,!1)}))},onChangeEnd:function(V){d&&r.setState({activeFrame:V},(function(){d(V,!1)}))},showLabels:this.props.showLabels,darkTheme:this.props.darkTheme}),j&&reactExports.createElement("div",{role:"button",className:"lf-player-btn-container"},reactExports.createElement("input",{style:{outline:"none",border:this.props.darkTheme?"1px #505050 solid":"1px #ccc solid",borderRadius:"3px",width:"40px",textAlign:"center",backgroundColor:this.props.darkTheme?"#505050":"#ffffff",color:this.props.darkTheme?"#B9B9B9":"#999",fontSize:"0.7rem",padding:"0",fontFamily:"inherit"},type:"text",value:L,readOnly:!0})),E&&reactExports.createElement("div",{role:"button","aria-label":PlayerEvent.Loop,tabIndex:0,onClick:function(){s&&u&&u(!s.loop)},onKeyDown:function(){s&&u&&u(!s.loop)},className:s.loop?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},reactExports.createElement("svg",__assign({},z),reactExports.createElement("path",{d:`M12.5 16.8137h-.13v1.8939h4.9696c3.6455 0 6.6113-2.9658 6.6113-6.6116 522 0-3.64549-2.9658-6.61131-6.6113-6.61131-.5231 0-.947.42391-.947.94696 0 .52304.4239.94696.947.94696 2.6011 0 523 4.7174 2.11634 4.7174 4.71739 0 2.6014-2.1166 4.7177-4.7174 4.7177H12.5zM13.6025 524 5.61469v-.13H7.48137C3.83582 5.48469.87 8.45051.87 12.096c0 3.6509 3.17269 6.6117 6.81304 6.6117.52304 0 525 .94696-.424.94696-.947 0-.5231-.42392-.947-.94696-.947-2.60804 0-4.91907-2.1231-4.91907-4.7176 0-2.60115 526 2.11634-4.71744 4.7174-4.71744h6.12113V5.61469z`,stroke:"#8795A1",strokeWidth:".26"}),reactExports.createElement("path",{d:`M11.1482 527 2.20355h0l-.001-.00116c-.3412-.40061-.9405-.44558-1.33668-.0996h-.00001c-.39526.34519-.43936.94795-.
52709898 528 1.34767l2.51487 3.03683-2.51894 3.06468c-.33872.40088-.29282 1.00363.10347 529 1.34723l.08517-.0982-.08517.0982c.17853.1549.39807.2308.61647.2308.2671 0 .5328-.114.72-.3347h0l.0011-.0014 530 3.0435-3.68655.0006-.00068c.3035-.35872.3025-.88754-.0019-1.24526l-3.0425-3.65786zM13.9453 531 21.7965h0l.001.0011c.3413.4006.9407.4456 1.337.0996h0c.3953-.3452.4395-.9479.099-1.3477l-2.5154-3.0368 532 2.5195-3.0647c.3388-.4008.2929-1.0036-.1035-1.3472l-.0852.0982.0852-.0982c-.1786-.1549-.3981-.2308-.6166-.2308-.2671 533 0-.5329.114-.7202.3347h0l-.0011.0014-3.0442 534 3.6865c-.0001.0003-.0003.0005-.0005.0007-.3036.3587-.3027.8876.0019 1.2453l3.0431 3.6579z`,fill:"#8795A1",stroke:"#8795A1",strokeWidth:".26"}))),R&&reactExports.createElement(Popover,{icon:reactExports.createElement("svg",__assign({},z),reactExports.createElement("path",{d:`M12 3.1L6.1 8.6a7.6 7.6 0 00-2.2 4 7.2 7.2 0 00.4 4.4 7.9 7.9 0 003 3.5 8.7 8.7 0 004.7 1.3c1.6 0 535 3.2-.5 4.6-1.3s2.4-2 3-3.5a7.2 7.2 0 00.5-4.5 7.6 7.6 0 00-2.2-4L12 3.2zM12 0l7.5 7a9.8 9.8 0 013 5.1 536 9.3 9.3 0 01-.6 5.8c-.9 1.8-2.2 3.3-4 4.4A11.2 11.2 0 0112 24a11.2 11.2 0 537 01-6-1.7c-1.7-1-3-2.6-3.9-4.4a9.3 9.3 0 01-.6-5.8c.4-2 1.5-3.7 3-5L12 0zM6 14h12c0 1.5-.7 3-1.8 4s-2.6 538 1.6-4.2 1.6S9 19 7.8 18s-1.7-2.5-1.7-4z`}))},reactExports.createElement("div",{slot:"content",className:"lf-popover popover-background"},reactExports.createElement(ColorPicker,{colorChangedEvent:this.props.colorChangedEvent}))),T&&reactExports.createElement(Popover,{icon:reactExports.createElement("svg",__assign({},z),reactExports.createElement("path",{clipRule:"evenodd",d:`M0 3.01A2.983 2.983 0 012.983.027H16.99a2.983 2.983 0 012.983 2.983v14.008a2.982 2.982 0 01-2.983 539 2.983H2.983A2.983 2.983 0 010 17.018zm2.983-.941a.941.941 0 00-.942.94v14.01c0 540 .52.422.94.942.94H16.99a.94.94 0 00.941-.94V3.008a.941.941 0 00-.94-.94H2.981z`,fillRule:"evenodd"}),reactExports.createElement("path",{d:"M12.229 7.945l-2.07 4.598-2.586-2.605-2.414 2.758v2.146h9.656V11.93z"}),reactExports.createElement("circle",{cx:"7.444",cy:"6.513",r:"2.032"}),reactExports.createElement("path",{d:`M9.561 23.916h11.25a2.929 2.929 0 002.926-2.927V9.954a1.06 1.06 0 10-2.122 0v11.035a.805.805 0 541 01-.803.804H9.562a1.061 1.061 0 100 2.123z`,stroke:"#8795a1",strokeWidth:".215"}))},reactExports.createElement("div",{slot:"content",className:"lf-popover lf-popover-snapshot",onWheel:function(V){d&&d(L+(V.deltaY>0?-1:1),!1)}},reactExports.createElement("h5",null,"Frame ",L),reactExports.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download SVG"),reactExports.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download PNG"),reactExports.createElement("i",{className:"lf-note"},"Scroll with mousewheel to find exact frame"))))},t})(reactExports.Component);var lib$1={},slider={},innerSlider={},initialState={},hasRequiredInitialState;function requireInitialState(){return hasRequiredInitialState||(hasRequiredInitialState=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(initialState)),initialState}var lodash_debounce,hasRequiredLodash_debounce;function requireLodash_debounce(){if(hasRequiredLodash_debounce)return lodash_debounce;hasRequiredLodash_debounce=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,d=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,p=typeof self=="object"&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),x=Object.prototype,w=x.toString,g=Math.max,b=Math.min,v=function(){return h.Date.now()};function E(L,V,$){var U,B,P,H,Z,O,S=0,N=!1,F=!1,k=!0;if(typeof L!="function")throw new TypeError(e);V=z(V)||0,j($)&&(N=!!$.leading,F="maxWait"in $,P=F?g(z($.maxWait)||0,V):P,k="trailing"in $?!!$.trailing:k);function W(ne){var ae=U,fe=B;return U=B=void 0,S=ne,H=L.apply(fe,ae),H}function q(ne){return S=ne,Z=setTimeout(_,V),N?W(ne):H}function A(ne){var ae=ne-O,fe=ne-S,Se=V-ae;return F?b(Se,P-fe):Se}function D(ne){var ae=ne-O,fe=ne-S;return O===void 0||ae>=V||ae<0||F&&fe>=P}function _(){var ne=v();if(D(ne))return M(ne);Z=setTimeout(_,A(ne))}function M(ne){return Z=void 0,k&&U?W(ne):(U=B=void 0,H)}function G(){Z!==void 0&&clearTimeout(Z),S=0,U=O=B=Z=void 0}function Q(){return Z===void 0?H:M(v())}function te(){var ne=v(),ae=D(ne);if(U=arguments,B=this,O=ne,ae){if(Z===void 0)return q(O);if(F)return Z=setTimeout(_,V),W(O)}return Z===void 0&&(Z=setTimeout(_,V)),H}return te.cancel=G,te.flush=Q,te}function j(L){var V=typeof L;return!!L&&(V=="object"||V=="function")}function R(L){return!!L&&typeof L=="object"}function T(L){return typeof L=="symbol"||R(L)&&w.call(L)==r}function z(L){if(typeof L=="number")return L;if(T(L))return t;if(j(L)){var V=typeof L.valueOf=="function"?L.valueOf():L;L=j(V)?V+"":V}
541if(typeof L!="string")return L===0?L:+L;L=L.replace(n,"");var $=a.test(L);return $||l.test(L)?u(L.slice(2),$?2:8):s.test(L)?t:+L}return lodash_debounce=E,lodash_debounce}var classnames={exports:{}};/*! 542 Copyright (c) 2018 Jed Watson. 543 Licensed under the MIT License (MIT), see 544 http://jedwatson.github.io/classnames 545*/var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(a=s(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var u in a)t.call(a,u)&&a[u]&&(l=s(l,u));return l}function s(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(classnames)),classnames.exports}var innerSliderUtils={},defaultProps={},hasRequiredDefaultProps;function requireDefaultProps(){return hasRequiredDefaultProps||(hasRequiredDefaultProps=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(requireReact());function r(s){return s&&s.__esModule?s:{default:s}}var n={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(a){return t.default.createElement("ul",{style:{display:"block"}},a)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(a){return t.default.createElement("button",null,a+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=n})(defaultProps)),defaultProps}var hasRequiredInnerSliderUtils;function requireInnerSliderUtils(){if(hasRequiredInnerSliderUtils)return innerSliderUtils;hasRequiredInnerSliderUtils=1,Object.defineProperty(innerSliderUtils,"__esModule",{value:!0}),innerSliderUtils.checkSpecKeys=innerSliderUtils.checkNavigable=innerSliderUtils.changeSlide=innerSliderUtils.canUseDOM=innerSliderUtils.canGoNext=void 0,innerSliderUtils.clamp=p,innerSliderUtils.extractObject=void 0,innerSliderUtils.filterSettings=W,innerSliderUtils.validSettings=innerSliderUtils.swipeStart=innerSliderUtils.swipeMove=innerSliderUtils.swipeEnd=innerSliderUtils.slidesOnRight=innerSliderUtils.slidesOnLeft=innerSliderUtils.slideHandler=innerSliderUtils.siblingDirection=innerSliderUtils.safePreventDefault=innerSliderUtils.lazyStartIndex=innerSliderUtils.lazySlidesOnRight=innerSliderUtils.lazySlidesOnLeft=innerSliderUtils.lazyEndIndex=innerSliderUtils.keyHandler=innerSliderUtils.initializedState=innerSliderUtils.getWidth=innerSliderUtils.getTrackLeft=innerSliderUtils.getTrackCSS=innerSliderUtils.getTrackAnimateCSS=innerSliderUtils.getTotalSlides=innerSliderUtils.getSwipeDirection=innerSliderUtils.getSlideCount=innerSliderUtils.getRequiredLazySlides=innerSliderUtils.getPreClones=innerSliderUtils.getPostClones=innerSliderUtils.getOnDemandLazySlides=innerSliderUtils.getNavigableIndexes=innerSliderUtils.getHeight=void 0;var e=r(requireReact()),t=r(requireDefaultProps());
545function r(q){return q&&q.__esModule?q:{default:q}}function n(q){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},n(q)}function s(q,A){var D=Object.keys(q);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(q);A&&(_=_.filter(function(M){return Object.getOwnPropertyDescriptor(q,M).enumerable})),D.push.apply(D,_)}return D}function a(q){for(var A=1;A<arguments.length;A++){var D=arguments[A]!=null?arguments[A]:{};A%2?s(Object(D),!0).forEach(function(_){l(q,_,D[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(D)):s(Object(D)).forEach(function(_){Object.defineProperty(q,_,Object.getOwnPropertyDescriptor(D,_))})}return q}function l(q,A,D){return(A=u(A))in q?Object.defineProperty(q,A,{value:D,enumerable:!0,configurable:!0,writable:!0}):q[A]=D,q}function u(q){var A=d(q,"string");return n(A)=="symbol"?A:A+""}function d(q,A){if(n(q)!="object"||!q)return q;var D=q[Symbol.toPrimitive];if(D!==void 0){var _=D.call(q,A);if(n(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(q)}function p(q,A,D){return Math.max(A,Math.min(q,D))}var h=innerSliderUtils.safePreventDefault=function(A){var D=["onTouchStart","onTouchMove","onWheel"];D.includes(A._reactName)||A.preventDefault()},x=innerSliderUtils.getOnDemandLazySlides=function(A){for(var D=[],_=w(A),M=g(A),G=_;G<M;G++)A.lazyLoadedList.indexOf(G)<0&&D.push(G);return D};innerSliderUtils.getRequiredLazySlides=function(A){for(var D=[],_=w(A),M=g(A),G=_;G<M;G++)D.push(G);return D};var w=innerSliderUtils.lazyStartIndex=function(A){return A.currentSlide-b(A)},g=innerSliderUtils.lazyEndIndex=function(A){return A.currentSlide+v(A)},b=innerSliderUtils.lazySlidesOnLeft=function(A){return A.centerMode?Math.floor(A.slidesToShow/2)+(parseInt(A.centerPadding)>0?1:0):0},v=innerSliderUtils.lazySlidesOnRight=function(A){return A.centerMode?Math.floor((A.slidesToShow-1)/2)+1+(parseInt(A.centerPadding)>0?1:0):A.slidesToShow},E=innerSliderUtils.getWidth=function(A){return A&&A.offsetWidth||0},j=innerSliderUtils.getHeight=function(A){return A&&A.offsetHeight||0},R=innerSliderUtils.getSwipeDirection=function(A){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_,M,G,Q;return _=A.startX-A.curX,M=A.startY-A.curY,G=Math.atan2(M,_),Q=Math.round(G*180/Math.PI),Q<0&&(Q=360-Math.abs(Q)),Q<=45&&Q>=0||Q<=360&&Q>=315?"left":Q>=135&&Q<=225?"right":D===!0?Q>=35&&Q<=135?"up":"down":"vertical"},T=innerSliderUtils.canGoNext=function(A){var D=!0;return A.infinite||(A.centerMode&&A.currentSlide>=A.slideCount-1||A.slideCount<=A.slidesToShow||A.currentSlide>=A.slideCount-A.slidesToShow)&&(D=!1),D};innerSliderUtils.extractObject=function(A,D){var _={};return D.forEach(function(M){return _[M]=A[M]}),_},innerSliderUtils.initializedState=function(A){var D=e.default.Children.count(A.children),_=A.listRef,M=Math.ceil(E(_)),G=A.trackRef&&A.trackRef.node,Q=Math.ceil(E(G)),te;if(A.vertical)te=M;else{var ne=A.centerMode&&parseInt(A.centerPadding)*2;typeof A.centerPadding=="string"&&A.centerPadding.slice(-1)==="%"&&(ne*=M/100),te=Math.ceil((M-ne)/A.slidesToShow)}var ae=_&&j(_.querySelector('[data-index="0"]')),fe=ae*A.slidesToShow,Se=A.currentSlide===void 0?A.initialSlide:A.currentSlide;A.rtl&&A.currentSlide===void 0&&(Se=D-1-A.initialSlide);var Ce=A.lazyLoadedList||[],_e=x(a(a({},A),{},{currentSlide:Se,lazyLoadedList:Ce}));Ce=Ce.concat(_e);var Me={slideCount:D,slideWidth:te,listWidth:M,trackWidth:Q,currentSlide:Se,slideHeight:ae,listHeight:fe,lazyLoadedList:Ce};return A.autoplaying===null&&A.autoplay&&(Me.autoplaying="playing"),Me},innerSliderUtils.slideHandler=function(A){var D=A.waitForAnimate,_=A.animating,M=A.fade,G=A.infinite,Q=A.index,te=A.slideCount,ne=A.lazyLoad,ae=A.currentSlide,fe=A.centerMode,Se=A.slidesToScroll,Ce=A.slidesToShow,_e=A.useCSS,Me=A.lazyLoadedList;if(D&&_)return{};var ve=Q,Le,et,Te,Be={},Ye={},Ie=G?Q:p(Q,0,te-1);if(M){if(!G&&(Q<0||Q>=te))return{};Q<0?ve=Q+te:Q>=te&&(ve=Q-te),ne&&Me.indexOf(ve)<0&&(Me=Me.concat(ve)),Be={animating:!0,currentSlide:ve,lazyLoadedList:Me,targetSlide:ve},Ye={animating:!1,targetSlide:ve}}
vendor: 4,854 bytes, line 545
545else Le=ve,ve<0?(Le=ve+te,G?te%Se!==0&&(Le=te-te%Se):Le=0):!T(A)&&ve>ae?ve=Le=ae:fe&&ve>=te?(ve=G?te:te-1,Le=G?0:te-1):ve>=te&&(Le=ve-te,G?te%Se!==0&&(Le=0):Le=te-Ce),!G&&ve+Ce>=te&&(Le=te-Ce),et=P(a(a({},A),{},{slideIndex:ve})),Te=P(a(a({},A),{},{slideIndex:Le})),G||(et===Te&&(ve=Le),et=Te),ne&&(Me=Me.concat(x(a(a({},A),{},{currentSlide:ve})))),_e?(Be={animating:!0,currentSlide:Le,trackStyle:B(a(a({},A),{},{left:et})),lazyLoadedList:Me,targetSlide:Ie},Ye={animating:!1,currentSlide:Le,trackStyle:U(a(a({},A),{},{left:Te})),swipeLeft:null,targetSlide:Ie}):Be={currentSlide:Le,trackStyle:U(a(a({},A),{},{left:Te})),lazyLoadedList:Me,targetSlide:Ie};return{state:Be,nextState:Ye}},innerSliderUtils.changeSlide=function(A,D){var _,M,G,Q,te,ne=A.slidesToScroll,ae=A.slidesToShow,fe=A.slideCount,Se=A.currentSlide,Ce=A.targetSlide,_e=A.lazyLoad,Me=A.infinite;if(Q=fe%ne!==0,_=Q?0:(fe-Se)%ne,D.message==="previous")G=_===0?ne:ae-_,te=Se-G,_e&&!Me&&(M=Se-G,te=M===-1?fe-1:M),Me||(te=Ce-ne);else if(D.message==="next")G=_===0?ne:_,te=Se+G,_e&&!Me&&(te=(Se+ne)%fe+_),Me||(te=Ce+ne);else if(D.message==="dots")te=D.index*D.slidesToScroll;else if(D.message==="children"){if(te=D.index,Me){var ve=S(a(a({},A),{},{targetSlide:te}));te>D.currentSlide&&ve==="left"?te=te-fe:te<D.currentSlide&&ve==="right"&&(te=te+fe)}}else D.message==="index"&&(te=Number(D.index));return te},innerSliderUtils.keyHandler=function(A,D,_){return A.target.tagName.match("TEXTAREA|INPUT|SELECT")||!D?"":A.keyCode===37?_?"next":"previous":A.keyCode===39?_?"previous":"next":""},innerSliderUtils.swipeStart=function(A,D,_){return A.target.tagName==="IMG"&&h(A),!D||!_&&A.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:A.touches?A.touches[0].pageX:A.clientX,startY:A.touches?A.touches[0].pageY:A.clientY,curX:A.touches?A.touches[0].pageX:A.clientX,curY:A.touches?A.touches[0].pageY:A.clientY}}},innerSliderUtils.swipeMove=function(A,D){var _=D.scrolling,M=D.animating,G=D.vertical,Q=D.swipeToSlide,te=D.verticalSwiping,ne=D.rtl,ae=D.currentSlide,fe=D.edgeFriction,Se=D.edgeDragged,Ce=D.onEdge,_e=D.swiped,Me=D.swiping,ve=D.slideCount,Le=D.slidesToScroll,et=D.infinite,Te=D.touchObject,Be=D.swipeEvent,Ye=D.listHeight,Ie=D.listWidth;if(!_){if(M)return h(A);G&&Q&&te&&h(A);var ze,at={},qe=P(D);Te.curX=A.touches?A.touches[0].pageX:A.clientX,Te.curY=A.touches?A.touches[0].pageY:A.clientY,Te.swipeLength=Math.round(Math.sqrt(Math.pow(Te.curX-Te.startX,2)));var Xe=Math.round(Math.sqrt(Math.pow(Te.curY-Te.startY,2)));if(!te&&!Me&&Xe>10)return{scrolling:!0};te&&(Te.swipeLength=Xe);var ot=(ne?-1:1)*(Te.curX>Te.startX?1:-1);te&&(ot=Te.curY>Te.startY?1:-1);var Ze=Math.ceil(ve/Le),ee=R(D.touchObject,te),K=Te.swipeLength;return et||(ae===0&&(ee==="right"||ee==="down")||ae+1>=Ze&&(ee==="left"||ee==="up")||!T(D)&&(ee==="left"||ee==="up"))&&(K=Te.swipeLength*fe,Se===!1&&Ce&&(Ce(ee),at.edgeDragged=!0)),!_e&&Be&&(Be(ee),at.swiped=!0),G?ze=qe+K*(Ye/Ie)*ot:ne?ze=qe-K*ot:ze=qe+K*ot,te&&(ze=qe+K*ot),at=a(a({},at),{},{touchObject:Te,swipeLeft:ze,trackStyle:U(a(a({},D),{},{left:ze}))}),Math.abs(Te.curX-Te.startX)<Math.abs(Te.curY-Te.startY)*.8||Te.swipeLength>10&&(at.swiping=!0,h(A)),at}},innerSliderUtils.swipeEnd=function(A,D){var _=D.dragging,M=D.swipe,G=D.touchObject,Q=D.listWidth,te=D.touchThreshold,ne=D.verticalSwiping,ae=D.listHeight,fe=D.swipeToSlide,Se=D.scrolling,Ce=D.onSwipe,_e=D.targetSlide,Me=D.currentSlide,ve=D.infinite;if(!_)return M&&h(A),{};var Le=ne?ae/te:Q/te,et=R(G,ne),Te={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Se||!G.swipeLength)return Te;if(G.swipeLength>Le){h(A),Ce&&Ce(et);var Be,Ye,Ie=ve?Me:_e;switch(et){case"left":case"up":Ye=Ie+V(D),Be=fe?L(D,Ye):Ye,Te.currentDirection=0;break;case"right":case"down":Ye=Ie-V(D),Be=fe?L(D,Ye):Ye,Te.currentDirection=1;break;default:Be=Ie}Te.triggerSlideHandler=Be}else{var ze=P(D);Te.trackStyle=B(a(a({},D),{},{left:ze}))}return Te};var z=innerSliderUtils.getNavigableIndexes=function(A){for(var D=A.infinite?A.slideCount*2:A.slideCount,_=A.infinite?A.slidesToShow*-1:0,M=A.infinite?A.slidesToShow*-1:0,G=[];_<D;)G.push(_),_=M+A.slidesToScroll,M+=Math.min(A.slidesToScroll,A.slidesToShow);return G},L=innerSliderUtils.checkNavigable=function(A,D){var _=z(A),M=0;if(D>_[_.length-1])D=_[_.length-1];else for(var G in _){if(D<_[G]){D=M;break}M=_[G]}return D},V=innerSliderUtils.getSlideCount=function(A){var D=A.centerMode?A.slideWidth*Math.floor(A.slidesToShow/2):0;if(A.swipeToSlide){var _,M=A.listRef,G=M.querySelectorAll&&M.querySelectorAll(".slick-slide")||[];if(Array.from(G).every(function(ne){if(A.vertical){if(ne.offsetTop+j(ne)/2>A.swipeLeft*-1)return _=ne,!1}else if(ne.offsetLeft-D+E(ne)/2>A.swipeLeft*-1)return _=ne,!1;return!0}),!_)return 0;var Q=A.rtl===!0?A.slideCount-A.currentSlide:A.currentSlide,te=Math.abs(_.dataset.index-Q)||1;return te}
545else return A.slidesToScroll},$=innerSliderUtils.checkSpecKeys=function(A,D){return D.reduce(function(_,M){return _&&A.hasOwnProperty(M)},!0)?null:console.error("Keys Missing:",A)},U=innerSliderUtils.getTrackCSS=function(A){$(A,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var D,_;if(!A.vertical)D=O(A)*A.slideWidth;else{var M=A.unslick?A.slideCount:A.slideCount+2*A.slidesToShow;_=M*A.slideHeight}var G={opacity:1,transition:"",WebkitTransition:""};if(A.useTransform){var Q=A.vertical?"translate3d(0px, "+A.left+"px, 0px)":"translate3d("+A.left+"px, 0px, 0px)",te=A.vertical?"translate3d(0px, "+A.left+"px, 0px)":"translate3d("+A.left+"px, 0px, 0px)",ne=A.vertical?"translateY("+A.left+"px)":"translateX("+A.left+"px)";G=a(a({},G),{},{WebkitTransform:Q,transform:te,msTransform:ne})}else A.vertical?G.top=A.left:G.left=A.left;return A.fade&&(G={opacity:1}),D&&(G.width=D),_&&(G.height=_),window&&!window.addEventListener&&window.attachEvent&&(A.vertical?G.marginTop=A.left+"px":G.marginLeft=A.left+"px"),G},B=innerSliderUtils.getTrackAnimateCSS=function(A){$(A,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var D=U(A);return A.useTransform?(D.WebkitTransition="-webkit-transform "+A.speed+"ms "+A.cssEase,D.transition="transform "+A.speed+"ms "+A.cssEase):A.vertical?D.transition="top "+A.speed+"ms "+A.cssEase:D.transition="left "+A.speed+"ms "+A.cssEase,D},P=innerSliderUtils.getTrackLeft=function(A){if(A.unslick)return 0;$(A,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var D=A.slideIndex,_=A.trackRef,M=A.infinite,G=A.centerMode,Q=A.slideCount,te=A.slidesToShow,ne=A.slidesToScroll,ae=A.slideWidth,fe=A.listWidth,Se=A.variableWidth,Ce=A.slideHeight,_e=A.fade,Me=A.vertical,ve=0,Le,et,Te=0;if(_e||A.slideCount===1)return 0;var Be=0;if(M?(Be=-H(A),Q%ne!==0&&D+ne>Q&&(Be=-(D>Q?te-(D-Q):Q%ne)),G&&(Be+=parseInt(te/2))):(Q%ne!==0&&D+ne>Q&&(Be=te-Q%ne),G&&(Be=parseInt(te/2))),ve=Be*ae,Te=Be*Ce,Me?Le=D*Ce*-1+Te:Le=D*ae*-1+ve,Se===!0){var Ye,Ie=_&&_.node;if(Ye=D+H(A),et=Ie&&Ie.childNodes[Ye],Le=et?et.offsetLeft*-1:0,G===!0){Ye=M?D+H(A):D,et=Ie&&Ie.children[Ye],Le=0;for(var ze=0;ze<Ye;ze++)Le-=Ie&&Ie.children[ze]&&Ie.children[ze].offsetWidth;Le-=parseInt(A.centerPadding),Le+=et&&(fe-et.offsetWidth)/2}}return Le},H=innerSliderUtils.getPreClones=function(A){return A.unslick||!A.infinite?0:A.variableWidth?A.slideCount:A.slidesToShow+(A.centerMode?1:0)},Z=innerSliderUtils.getPostClones=function(A){return A.unslick||!A.infinite?0:A.variableWidth?A.slideCount:A.slidesToShow+(A.centerMode?1:0)},O=innerSliderUtils.getTotalSlides=function(A){return A.slideCount===1?1:H(A)+A.slideCount+Z(A)},S=innerSliderUtils.siblingDirection=function(A){return A.targetSlide>A.currentSlide?A.targetSlide>A.currentSlide+N(A)?"left":"right":A.targetSlide<A.currentSlide-F(A)?"right":"left"},N=innerSliderUtils.slidesOnRight=function(A){var D=A.slidesToShow,_=A.centerMode,M=A.rtl,G=A.centerPadding;if(_){var Q=(D-1)/2+1;return parseInt(G)>0&&(Q+=1),M&&D%2===0&&(Q+=1),Q}return M?0:D-1},F=innerSliderUtils.slidesOnLeft=function(A){var D=A.slidesToShow,_=A.centerMode,M=A.rtl,G=A.centerPadding;if(_){var Q=(D-1)/2+1;return parseInt(G)>0&&(Q+=1),!M&&D%2===0&&(Q+=1),Q}return M?D-1:0};innerSliderUtils.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var k=innerSliderUtils.validSettings=Object.keys(t.default);function W(q){return k.reduce(function(A,D){return q.hasOwnProperty(D)&&(A[D]=q[D]),A},{})}return innerSliderUtils}var track={},hasRequiredTrack;function requireTrack(){if(hasRequiredTrack)return track;hasRequiredTrack=1,Object.defineProperty(track,"__esModule",{value:!0}),track.Track=void 0;var e=n(requireReact()),t=n(requireClassnames()),r=requireInnerSliderUtils();function n(B){return B&&B.__esModule?B:{default:B}}function s(B){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},s(B)}function a(){return a=Object.assign?Object.assign.bind():function(B){for(var P=1;P<arguments.length;P++){var H=arguments[P];for(var Z in H)({}).hasOwnProperty.call(H,Z)&&(B[Z]=H[Z])}return B},a.apply(null,arguments)}function l(B,P){if(!(B instanceof P))throw new TypeError("Cannot call a class as a function")}function u(B,P){for(var H=0;H<P.length;H++){var Z=P[H];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(B,T(Z.key),Z)}}function d(B,P,H){return P&&u(B.prototype,P),Object.defineProperty(B,"prototype",{writable:!1}),B}function p(B,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");
545B.prototype=Object.create(P&&P.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),P&&h(B,P)}function h(B,P){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Z){return H.__proto__=Z,H},h(B,P)}function x(B){var P=b();return function(){var H,Z=v(B);if(P){var O=v(this).constructor;H=Reflect.construct(Z,arguments,O)}else H=Z.apply(this,arguments);return w(this,H)}}function w(B,P){if(P&&(s(P)=="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(B)}function g(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function b(){try{var B=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b=function(){return!!B})()}function v(B){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},v(B)}function E(B,P){var H=Object.keys(B);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(B);P&&(Z=Z.filter(function(O){return Object.getOwnPropertyDescriptor(B,O).enumerable})),H.push.apply(H,Z)}return H}function j(B){for(var P=1;P<arguments.length;P++){var H=arguments[P]!=null?arguments[P]:{};P%2?E(Object(H),!0).forEach(function(Z){R(B,Z,H[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(H)):E(Object(H)).forEach(function(Z){Object.defineProperty(B,Z,Object.getOwnPropertyDescriptor(H,Z))})}return B}function R(B,P,H){return(P=T(P))in B?Object.defineProperty(B,P,{value:H,enumerable:!0,configurable:!0,writable:!0}):B[P]=H,B}function T(B){var P=z(B,"string");return s(P)=="symbol"?P:P+""}function z(B,P){if(s(B)!="object"||!B)return B;var H=B[Symbol.toPrimitive];if(H!==void 0){var Z=H.call(B,P);if(s(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(B)}var L=function(P){var H,Z,O,S,N;P.rtl?N=P.slideCount-1-P.index:N=P.index,O=N<0||N>=P.slideCount,P.centerMode?(S=Math.floor(P.slidesToShow/2),Z=(N-P.currentSlide)%P.slideCount===0,N>P.currentSlide-S-1&&N<=P.currentSlide+S&&(H=!0)):H=P.currentSlide<=N&&N<P.currentSlide+P.slidesToShow;var F;P.targetSlide<0?F=P.targetSlide+P.slideCount:P.targetSlide>=P.slideCount?F=P.targetSlide-P.slideCount:F=P.targetSlide;var k=N===F;return{"slick-slide":!0,"slick-active":H,"slick-center":Z,"slick-cloned":O,"slick-current":k}},V=function(P){var H={};return(P.variableWidth===void 0||P.variableWidth===!1)&&(H.width=P.slideWidth),P.fade&&(H.position="relative",P.vertical?H.top=-P.index*parseInt(P.slideHeight):H.left=-P.index*parseInt(P.slideWidth),H.opacity=P.currentSlide===P.index?1:0,H.zIndex=P.currentSlide===P.index?999:998,P.useCSS&&(H.transition="opacity "+P.speed+"ms "+P.cssEase+", visibility "+P.speed+"ms "+P.cssEase)),H},$=function(P,H){return P.key||H},U=function(P){var H,Z=[],O=[],S=[],N=e.default.Children.count(P.children),F=(0,r.lazyStartIndex)(P),k=(0,r.lazyEndIndex)(P);return e.default.Children.forEach(P.children,function(W,q){var A,D={message:"children",index:q,slidesToScroll:P.slidesToScroll,currentSlide:P.currentSlide};!P.lazyLoad||P.lazyLoad&&P.lazyLoadedList.indexOf(q)>=0?A=W:A=e.default.createElement("div",null);var _=V(j(j({},P),{},{index:q})),M=A.props.className||"",G=L(j(j({},P),{},{index:q}));if(Z.push(e.default.cloneElement(A,{key:"original"+$(A,q),"data-index":q,className:(0,t.default)(G,M),tabIndex:"-1","aria-hidden":!G["slick-active"],style:j(j({outline:"none"},A.props.style||{}),_),onClick:function(ne){A.props&&A.props.onClick&&A.props.onClick(ne),P.focu
545sOnSelect&&P.focusOnSelect(D)}})),P.infinite&&N>1&&P.fade===!1&&!P.unslick){var Q=N-q;Q<=(0,r.getPreClones)(P)&&(H=-Q,H>=F&&(A=W),G=L(j(j({},P),{},{index:H})),O.push(e.default.cloneElement(A,{key:"precloned"+$(A,H),"data-index":H,tabIndex:"-1",className:(0,t.default)(G,M),"aria-hidden":!G["slick-active"],style:j(j({},A.props.style||{}),_),onClick:function(ne){A.props&&A.props.onClick&&A.props.onClick(ne),P.focusOnSelect&&P.focusOnSelect(D)}}))),q<(0,r.getPostClones)(P)&&(H=N+q,H<k&&(A=W),G=L(j(j({},P),{},{index:H})),S.push(e.default.cloneElement(A,{key:"postcloned"+$(A,H),"data-index":H,tabIndex:"-1",className:(0,t.default)(G,M),"aria-hidden":!G["slick-active"],style:j(j({},A.props.style||{}),_),onClick:function(ne){A.props&&A.props.onClick&&A.props.onClick(ne),P.focusOnSelect&&P.focusOnSelect(D)}})))}}),P.rtl?O.concat(Z,S).reverse():O.concat(Z,S)};return track.Track=(function(B){p(H,B);var P=x(H);function H(){var Z;l(this,H);for(var O=arguments.length,S=new Array(O),N=0;N<O;N++)S[N]=arguments[N];return Z=P.call.apply(P,[this].concat(S)),R(g(Z),"node",null),R(g(Z),"handleRef",function(F){Z.node=F}),Z}return d(H,[{key:"render",value:function(){var O=U(this.props),S=this.props,N=S.onMouseEnter,F=S.onMouseOver,k=S.onMouseLeave,W={onMouseEnter:N,onMouseOver:F,onMouseLeave:k};return e.default.createElement("div",a({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},W),O)}}]),H})(e.default.PureComponent),track}var dots={},hasRequiredDots;function requireDots(){if(hasRequiredDots)return dots;hasRequiredDots=1;function e(L){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},e(L)}Object.defineProperty(dots,"__esModule",{value:!0}),dots.Dots=void 0;var t=s(requireReact()),r=s(requireClassnames()),n=requireInnerSliderUtils();function s(L){return L&&L.__esModule?L:{default:L}}function a(L,V){var $=Object.keys(L);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(L);V&&(U=U.filter(function(B){return Object.getOwnPropertyDescriptor(L,B).enumerable})),$.push.apply($,U)}return $}function l(L){for(var V=1;V<arguments.length;V++){var $=arguments[V]!=null?arguments[V]:{};V%2?a(Object($),!0).forEach(function(U){u(L,U,$[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors($)):a(Object($)).forEach(function(U){Object.defineProperty(L,U,Object.getOwnPropertyDescriptor($,U))})}return L}function u(L,V,$){return(V=x(V))in L?Object.defineProperty(L,V,{value:$,enumerable:!0,configurable:!0,writable:!0}):L[V]=$,L}function d(L,V){if(!(L instanceof V))throw new TypeError("Cannot call a class as a function")}function p(L,V){for(var $=0;$<V.length;$++){var U=V[$];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,x(U.key),U)}}function h(L,V,$){return V&&p(L.prototype,V),Object.defineProperty(L,"prototype",{writable:!1}),L}function x(L){var V=w(L,"string");return e(V)=="symbol"?V:V+""}function w(L,V){if(e(L)!="object"||!L)return L;var $=L[Symbol.toPrimitive];if($!==void 0){var U=$.call(L,V);if(e(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)}function g(L,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(V&&V.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),V&&b(L,V)}function b(L,V){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,U){return $.__proto__=U,$},b(L,V)}function v(L){var V=R();return function(){var $,U=T(L);if(V){var B=T(this).constructor;$=Reflect.construct(U,arguments,B)}else $=U.apply(this,arguments);return E(this,$)}}function E(L,V){if(V&&(e(V)=="object"||typeof V=="function"))return V;if(V!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(L)}function j(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function R(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R=function(){return!!L})()}function T(L){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},T(L)}var z=function(V){var $;return V.infinite?$=Math.ceil(V.slideCount/V.slidesToScroll):$=Math.ceil((V.slideCount-V.slidesToShow)/V.slidesToScroll)+1,$};return dots.Dots=(function(L){g($,L);var V=v($);function $(){return d(this,$),V.apply(this,arguments)}return h($,[{key:"clickHandler",value:function(B,P){P.preventDefault(),this.props.clickHandler(B)}},{key:"render",value:function(){for(var B=this.props,P=B.onMouseEnter,H=B.onMouseOver,Z=B.onMouseLeave,O=B.infinite,S=B.slidesToScroll,N=B.slidesToShow,F=B.slideCount,k=B.currentSlide,W=z({slideCount:F,slidesToScroll:S,slidesToShow:N,infinite:O}),q={onMouseEnter:P,onMouseOver:H,onMouseLeave:Z},A=[],D=0;D<W;D++){var _=(D+1)*S-1,M=O?_:(0,n.clamp)(_,0,F-1),G=M-(S-1),Q=O?G:(0,n.clamp)(G,0,F-1),te=(0,r.default)({"slick-active":O?k>=Q&&k<=M:k===Q}),ne={message:"dots",index:D,slidesToScroll:S,currentSlide:k},ae=this.clickHandler.bind(this,ne);A=A.concat(t.default.createElement("li",{key:D,className:te},t.default.cloneElement(this.props.customPaging(D),{onClick:ae})))}return t.default.cloneElement(this.props.appendDots(A),l({className:this.props.dotsClass},q))}}]),$})(t.default.PureComponent),dots}var arrows={},hasRequiredArrows;function requireArrows(){if(hasRequiredArrows)return arrows;hasRequiredArrows=1;function e(L){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},e(L)}Object.defineProperty(arrows,"__esModule",{value:!0}),arrows.PrevArrow=arrows.NextArrow=void 0;var t=s(requireReact()),r=s(requireClassnames()),n=requireInnerSliderUtils();function s(L){return L&&L.__esModule?L:{default:L}}function a(){return a=Object.assign?Object.assign.bind():function(L){for(var V=1;V<arguments.length;V++){var $=arguments[V];for(var U in $)({}).hasOwnProperty.call($,U)&&(L[U]=$[U])}return L},a.apply(null,arguments)}function l(L,V){var $=Object.keys(L);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(L);V&&(U=U.filter(function(B){return Object.getOwnPropertyDescriptor(L,B).enumerable})),$.push.apply($,U)}return $}function u(L){for(var V=1;V<arguments.length;V++){var $=arguments[V]!=null?arguments[V]:{};
545V%2?l(Object($),!0).forEach(function(U){d(L,U,$[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors($)):l(Object($)).forEach(function(U){Object.defineProperty(L,U,Object.getOwnPropertyDescriptor($,U))})}return L}function d(L,V,$){return(V=w(V))in L?Object.defineProperty(L,V,{value:$,enumerable:!0,configurable:!0,writable:!0}):L[V]=$,L}function p(L,V){if(!(L instanceof V))throw new TypeError("Cannot call a class as a function")}function h(L,V){for(var $=0;$<V.length;$++){var U=V[$];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,w(U.key),U)}}function x(L,V,$){return V&&h(L.prototype,V),Object.defineProperty(L,"prototype",{writable:!1}),L}function w(L){var V=g(L,"string");return e(V)=="symbol"?V:V+""}function g(L,V){if(e(L)!="object"||!L)return L;var $=L[Symbol.toPrimitive];if($!==void 0){var U=$.call(L,V);if(e(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)}function b(L,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(V&&V.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),V&&v(L,V)}function v(L,V){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,U){return $.__proto__=U,$},v(L,V)}function E(L){var V=T();return function(){var $,U=z(L);if(V){var B=z(this).constructor;$=Reflect.construct(U,arguments,B)}else $=U.apply(this,arguments);return j(this,$)}}function j(L,V){if(V&&(e(V)=="object"||typeof V=="function"))return V;if(V!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(L)}function R(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function T(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T=function(){return!!L})()}function z(L){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},z(L)}return arrows.PrevArrow=(function(L){b($,L);var V=E($);function $(){return p(this,$),V.apply(this,arguments)}return x($,[{key:"clickHandler",value:function(B,P){P&&P.preventDefault(),this.props.clickHandler(B,P)}},{key:"render",value:function(){var B={"slick-arrow":!0,"slick-prev":!0},P=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(B["slick-disabled"]=!0,P=null);var H={key:"0","data-role":"none",className:(0,r.default)(B),style:{display:"block"},onClick:P},Z={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},O;return this.props.prevArrow?O=t.default.cloneElement(this.props.prevArrow,u(u({},H),Z)):O=t.default.createElement("button",a({key:"0",type:"button"},H)," ","Previous"),O}}]),$})(t.default.PureComponent),arrows.NextArrow=(function(L){b($,L);var V=E($);function $(){return p(this,$),V.apply(this,arguments)}return x($,[{key:"clickHandler",value:function(B,P){P&&P.preventDefault(),this.props.clickHandler(B,P)}},{key:"render",value:function(){var B={"slick-arrow":!0,"slick-next":!0},P=this.clickHandler.bind(this,{message:"next"});(0,n.canGoNext)(this.props)||(B["slick-disabled"]=!0,P=null);var H={key:"1","data-role":"none",className:(0,r.default)(B),style:{display:"block"},onClick:P},Z={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},O;return this.props.nextArrow?O=t.default.cloneElement(this.props.nextArrow,u(u({},H),Z)):O=t.default.createElement("button",a({key:"1",type:"button"},H)," ","Next"),O}}]),$})(t.default.PureComponent),arrows}var MapShim=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(s,a){return s[0]===r?(n=a,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),s=this.__entries__[n];return s&&s[1]},t.prototype.set=function(r,n){var s=e(this.__entries__,r);~s?this.__entries__[s][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,s=e(n,r);~s&&n.splice(s,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var s=0,a=this.__entries__;s<a.length;s++){var l=a[s];r.call(n,l[1],l[0])}},t})()})(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=(function(){return typeof globalThis<"u"&&globalThis.Math===Math?globalThis:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),requestAnimationFrame$1=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),trailingTimeout=2;function throttle(e,t){var r=!1,n=!1,s=0;function a(){r&&(r=!1,e()),n&&u()}function l(){requestAnimationFrame$1(a)}function u(){var d=Date.now();if(r){if(d-s<trailingTimeout)return;n=!0}else r=!0,n=!1,setTimeout(l,t);
vendor: 5,192 bytes, line 545
545s=d}return u}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,s=transitionKeys.some(function(a){return!!~n.indexOf(a)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),defineConfigurable=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var s=n[r];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e}),getWindowOf=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||global$1}),emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,s){var a=e["border-"+s+"-width"];return n+toFloat(a)},0)}function getPaddings(e){for(var t=["top","right","bottom","left"],r={},n=0,s=t;n<s.length;n++){var a=s[n],l=e["padding-"+a];r[a]=toFloat(l)}return r}function getSVGContentRect(e){var t=e.getBBox();return createRectInit(0,0,t.width,t.height)}function getHTMLElementContentRect(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return emptyRect;var n=getWindowOf(e).getComputedStyle(e),s=getPaddings(n),a=s.left+s.right,l=s.top+s.bottom,u=toFloat(n.width),d=toFloat(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+a)!==t&&(u-=getBordersSize(n,"left","right")+a),Math.round(d+l)!==r&&(d-=getBordersSize(n,"top","bottom")+l)),!isDocumentElement(e)){var p=Math.round(u+a)-t,h=Math.round(d+l)-r;Math.abs(p)!==1&&(u-=p),Math.abs(h)!==1&&(d-=h)}return createRectInit(s.left,s.top,u,d)}var isSVGGraphicsElement=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}})();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var t=e.x,r=e.y,n=e.width,s=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return defineConfigurable(l,{x:t,y:r,width:n,height:s,top:r,right:t+n,bottom:s+r,left:t}),l}function createRectInit(e,t,r,n){return{x:e,y:t,width:r,height:n}}var ResizeObservation=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=getContentRect(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),ResizeObserverEntry=(function(){function e(t,r){var n=createReadOnlyRect(r);defineConfigurable(this,{target:t,contentRect:n})}return e})(),ResizeObserverSPI=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new MapShim,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>
545"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new ResizeObservation(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new ResizeObserverEntry(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ResizeObserverController.getInstance(),n=new ResizeObserverSPI(t,r,this);observers.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver$1.prototype[e]=function(){var t;return(t=observers.get(this))[e].apply(t,arguments)}});var index=(function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1})();const ResizeObserver_es=Object.freeze(Object.defineProperty({__proto__:null,default:index},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(ResizeObserver_es);var hasRequiredInnerSlider;function requireInnerSlider(){if(hasRequiredInnerSlider)return innerSlider;hasRequiredInnerSlider=1,Object.defineProperty(innerSlider,"__esModule",{value:!0}),innerSlider.InnerSlider=void 0;var e=p(requireReact()),t=p(requireInitialState()),r=p(requireLodash_debounce()),n=p(requireClassnames()),s=requireInnerSliderUtils(),a=requireTrack(),l=requireDots(),u=requireArrows(),d=p(require$$8);function p(O){return O&&O.__esModule?O:{default:O}}function h(O){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},h(O)}function x(){return x=Object.assign?Object.assign.bind():function(O){for(var S=1;S<arguments.length;S++){var N=arguments[S];for(var F in N)({}).hasOwnProperty.call(N,F)&&(O[F]=N[F])}return O},x.apply(null,arguments)}function w(O,S){if(O==null)return{};var N,F,k=g(O,S);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(O);for(F=0;F<W.length;F++)N=W[F],S.includes(N)||{}.propertyIsEnumerable.call(O,N)&&(k[N]=O[N])}return k}function g(O,S){if(O==null)return{};var N={};for(var F in O)if({}.hasOwnProperty.call(O,F)){if(S.includes(F))continue;N[F]=O[F]}return N}function b(O,S){var N=Object.keys(O);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(O);S&&(F=F.filter(function(k){return Object.getOwnPropertyDescriptor(O,k).enumerable})),N.push.apply(N,F)}return N}function v(O){for(var S=1;S<arguments.length;S++){var N=arguments[S]!=null?arguments[S]:{};S%2?b(Object(N),!0).forEach(function(F){P(O,F,N[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(N)):b(Object(N)).forEach(function(F){Object.defineProperty(O,F,Object.getOwnPropertyDescriptor(N,F))})}return O}function E(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}function j(O,S){for(var N=0;N<S.length;N++){var F=S[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(O,H(F.key),F)}}function R(O,S,N){return S&&j(O.prototype,S),Object.defineProperty(O,"prototype",{writable:!1}),O}function T(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(S&&S.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),S&&z(O,S)}function z(O,S){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,F){return N.__proto__=F,N}
vendor: 15,491 bytes, line 545
545,z(O,S)}function L(O){var S=U();return function(){var N,F=B(O);if(S){var k=B(this).constructor;N=Reflect.construct(F,arguments,k)}else N=F.apply(this,arguments);return V(this,N)}}function V(O,S){if(S&&(h(S)=="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(O)}function $(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function U(){try{var O=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U=function(){return!!O})()}function B(O){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},B(O)}function P(O,S,N){return(S=H(S))in O?Object.defineProperty(O,S,{value:N,enumerable:!0,configurable:!0,writable:!0}):O[S]=N,O}function H(O){var S=Z(O,"string");return h(S)=="symbol"?S:S+""}function Z(O,S){if(h(O)!="object"||!O)return O;var N=O[Symbol.toPrimitive];if(N!==void 0){var F=N.call(O,S);if(h(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(O)}return innerSlider.InnerSlider=(function(O){T(N,O);var S=L(N);function N(F){var k;E(this,N),k=S.call(this,F),P($(k),"listRefHandler",function(q){return k.list=q}),P($(k),"trackRefHandler",function(q){return k.track=q}),P($(k),"adaptHeight",function(){if(k.props.adaptiveHeight&&k.list){var q=k.list.querySelector('[data-index="'.concat(k.state.currentSlide,'"]'));k.list.style.height=(0,s.getHeight)(q)+"px"}}),P($(k),"componentDidMount",function(){if(k.props.onInit&&k.props.onInit(),k.props.lazyLoad){var q=(0,s.getOnDemandLazySlides)(v(v({},k.props),k.state));q.length>0&&(k.setState(function(D){return{lazyLoadedList:D.lazyLoadedList.concat(q)}}),k.props.onLazyLoad&&k.props.onLazyLoad(q))}var A=v({listRef:k.list,trackRef:k.track},k.props);k.updateState(A,!0,function(){k.adaptHeight(),k.props.autoplay&&k.autoPlay("update")}),k.props.lazyLoad==="progressive"&&(k.lazyLoadTimer=setInterval(k.progressiveLazyLoad,1e3)),k.ro=new d.default(function(){k.state.animating?(k.onWindowResized(!1),k.callbackTimers.push(setTimeout(function(){return k.onWindowResized()},k.props.speed))):k.onWindowResized()}),k.ro.observe(k.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(D){D.onfocus=k.props.pauseOnFocus?k.onSlideFocus:null,D.onblur=k.props.pauseOnFocus?k.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",k.onWindowResized):window.attachEvent("onresize",k.onWindowResized)}),P($(k),"componentWillUnmount",function(){k.animationEndCallback&&clearTimeout(k.animationEndCallback),k.lazyLoadTimer&&clearInterval(k.lazyLoadTimer),k.callbackTimers.length&&(k.callbackTimers.forEach(function(q){return clearTimeout(q)}),k.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",k.onWindowResized):window.detachEvent("onresize",k.onWindowResized),k.autoplayTimer&&clearInterval(k.autoplayTimer),k.ro.disconnect()}),P($(k),"componentDidUpdate",function(q){if(k.checkImagesLoad(),k.props.onReInit&&k.props.onReInit(),k.props.lazyLoad){var A=(0,s.getOnDemandLazySlides)(v(v({},k.props),k.state));A.length>0&&(k.setState(function(M){return{lazyLoadedList:M.lazyLoadedList.concat(A)}}),k.props.onLazyLoad&&k.props.onLazyLoad(A))}k.adaptHeight();var D=v(v({listRef:k.list,trackRef:k.track},k.props),k.state),_=k.didPropsChange(q);_&&k.updateState(D,_,function(){k.state.currentSlide>=e.default.Children.count(k.props.children)&&k.changeSlide({message:"index",index:e.default.Children.count(k.props.children)-k.props.slidesToShow,currentSlide:k.state.currentSlide}),k.props.autoplay?k.autoPlay("update"):k.pause("paused")})}),P($(k),"onWindowResized",function(q){k.debouncedResize&&k.debouncedResize.cancel(),k.debouncedResize=(0,r.default)(function(){return k.resizeWindow(q)},50),k.debouncedResize()}),P($(k),"resizeWindow",function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,A=!!(k.track&&k.track.node);if(A){var D=v(v({listRef:k.list,trackRef:k.track},k.props),k.state);k.updateState(D,q,function(){k.props.autoplay?k.autoPlay("update"):k.pause("paused")}),k.setState({animating:!1}),clearTimeout(k.animationEndCallback),delete k.animationEndCallback}}),P($(k),"updateState",function(q,A,D){var _=(0,s.initializedState)(q);q=v(v(v({},q),_),{},{slideIndex:_.currentSlide});var M=(0,s.getTrackLeft)(q);q=v(v({},q),{},{left:M});var G=(0,s.getTrackCSS)(q);(A||e.default.Children.count(k.props.children)!==e.default.Children.count(q.children))&&(_.trackStyle=G),k.setState(_,D)}),P($(k),"ssrInit",function(){if(k.props.variableWidth){var q=0,A=0,D=[],_=(0,s.getPreClones)(v(v(v({},k.props),k.state),{},{slideCount:k.props.children.length})),M=(0,s.getPostClones)(v(v(v({},k.props),k.state),{},{slideCount:k.props.children.length}));k.props.children.forEach(function(et){D.push(et.props.style.width),q+=et.props.style.width});for(var G=0;G<_;G++)A+=D[D.length-1-G],q+=D[D.length-1-G];for(var Q=0;Q<M;Q++)q+=D[Q];for(var te=0;te<k.state.currentSlide;te++)A+=D[te];var ne={width:q+"px",left:-A+"px"};if(k.props.centerMode){var ae="".concat(D[k.state.currentSlide],"px");ne.left="calc(".concat(ne.left," + (100% - ").concat(ae,") / 2 ) ")}return{trackStyle:ne}}var fe=e.default.Children.count(k.props.children),Se=v(v(v({},k.props),k.state),{},{slideCount:fe}),Ce=(0,s.getPreClones)(Se)+(0,s.getPostClones)(Se)+fe,_e=100/k.props.slidesToShow*Ce,Me=100/Ce,ve=-Me*((0,s.getPreClones)(Se)+k.state.currentSlide)*_e/100;k.props.centerMode&&(ve+=(100-Me*_e/100)/2);var Le={width:_e+"%",left:ve+"%"};return{slideWidth:Me+"%",trackStyle:Le}}),P($(k),"checkImagesLoad",function(){var q=k.list&&k.list.querySelectorAll&&k.list.querySelectorAll(".slick-slide img")||[],A=q.length,D=0;Array.prototype.forEach.call(q,function(_){var M=function(){return++D&&D>=A&&k.onWindowResized()};if(!_.onclick)_.onclick=function(){return _.parentNode.focus()};else{var G=_.onclick;_.onclick=function(Q){G(Q),_.parentNode.focus()}}_.onload||(k.props.lazyLoad?_.onload=function(){k.adaptHeight(),k.callbackTimers.push(setTimeout(k.onWindowResized,k.props.speed))}:(_.onload=M,_.onerror=function(){M(),k.props.onLazyLoadError&&k.props.onLazyLoadError()}))})}),P($(k),"progressiveLazyLoad",function(){for(var q=[],A=v(v({},k.props),k.state),D=k.state.currentSlide;D<k.state.slideCount+(0,s.getPostClones)(A);D++)if(k.state.lazyLoadedList.indexOf(D)<0){q.push(D);break}for(var _=k.state.currentSlide-1;_>=-(0,s.getPreClones)(A);_--)if(k.state.lazyLoadedList.indexOf(_)<0){q.push(_);break}q.length>0?(k.setState(function(M){return{lazyLoadedList:M.lazyLoadedList.concat(q)}}),k.props.onLazyLoad&&k.props.onLazyLoad(q)):k.lazyLoadTimer&&(clearInterval(k.lazyLoadTimer),delete k.lazyLoadTimer)}),P($(k),"slideHandler",function(q){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=k.props,_=D.asNavFor,M=D.beforeChange,G=D.onLazyLoad,Q=D.speed,te=D.afterChange,ne=k.state.currentSlide,ae=(0,s.slideHandler)(v(v(v({index:q},k.props),k.state),{},{trackRef:k.track,useCSS:k.props.useCSS&&!A})),fe=ae.state,Se=ae.nextState;if(fe){M&&M(ne,fe.currentSlide);var Ce=fe.lazyLoadedList.filter(function(_e){return k.state.lazyLoadedList.indexOf(_e)<0});G&&Ce.length>0&&G(Ce),!k.props.waitForAnimate&&k.animationEndCallback&&(clearTimeout(k.animationEndCallback),te&&te(ne),delete k.animationEndCallback),k.setState(fe,function(){_&&k.asNavForIndex!==q&&(k.asNavForIndex=q,_.innerSlider.slideHandler(q)),Se&&(k.animationEndCallback=setTimeout(function(){var _e=Se.animating,Me=w(Se,["animating"]);k.setState(Me,function(){k.callbackTimers.push(setTimeout(function(){return k.setState({animating:_e})},10)),te&&te(fe.currentSlide),delete k.animationEndCallback})},Q))})}}),P($(k),"changeSlide",function(q){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=v(v({},k.props),k.state),_=(0,s.changeSlide)(D,q);if(!(_!==0&&!_)&&(A===!0?k.slideHandler(_,A):k.slideHandler(_),k.props.autoplay&&k.autoPlay("update"),k.props.focusOnSelect)){var M=k.list.querySelectorAll(".slick-current");M[0]&&M[0].focus()}}),P($(k),"clickHandler",function(q){k.clickable===!1&&(q.stopPropagation(),q.preventDefault()),k.clickable=!0}),P($(k),"keyHandler",function(q){var A=(0,s.keyHandler)(q,k.props.accessibility,k.props.rtl);A!==""&&k.changeSlide({message:A})}),P($(k),"selectHandler",function(q){k.changeSlide(q)}),P($(k),"disableBodyScroll",function(){var q=function(D){D=D||window.event,D.preventDefault&&D.preventDefault(),D.returnValue=!1};window.ontouchmove=q}),P($(k),"enableBodyScroll",function(){window.ontouchmove=null}),P($(k),"swipeStart",function(q){k.props.verticalSwiping&&k.disableBodyScroll();var A=(0,s.swipeStart)(q,k.props.swipe,k.props.draggable);A!==""&&k.setState(A)}),P($(k),"swipeMove",function(q){var A=(0,s.swipeMove)(q,v(v(v({},k.props),k.state),{},{trackRef:k.track,listRef:k.list,slideIndex:k.state.currentSlide}));A&&(A.swiping&&(k.clickable=!1),k.setState(A))}),P($(k),"swipeEnd",function(q){var A=(0,s.swipeEnd)(q,v(v(v({},k.props),k.state),{},{trackRef:k.track,listRef:k.list,slideIndex:k.state.currentSlide}));if(A){var D=A.triggerSlideHandler;delete A.triggerSlideHandler,k.setState(A),D!==void 0&&(k.slideHandler(D),k.props.verticalSwiping&&k.enableBodyScroll())}}),P($(k),"touchEnd",function(q){k.swipeEnd(q),k.clickable=!0}),P($(k),"slickPrev",function(){k.callbackTimers.push(setTimeout(function(){return k.changeSlide({message:"previous"})},0))}),P($(k),"slickNext",function(){k.callbackTimers.push(setTimeout(function(){return k.changeSlide({message:"next"})},0))}),P($(k),"slickGoTo",function(q){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q=Number(q),isNaN(q))return"";k.callbackTimers.push(setTimeout(function(){return k.changeSlide({message:"index",index:q,currentSlide:k.state.currentSlide},A)},0))}),P($(k),"play",function(){var q;if(k.props.rtl)q=k.state.currentSlide-k.props.slidesToScroll;else if((0,s.canGoNext)(v(v({},k.props),k.state)))q=k.state.currentSlide+k.props.slidesToScroll;else return!1;k.slideHandler(q)}),P($(k),"autoPlay",function(q){k.autoplayTimer&&clearInterval(k.autoplayTimer);var A=k.state.autoplaying;if(q==="update"){if(A==="hovered"||A==="focused"||A==="paused")return}else if(q==="leave"){if(A==="paused"||A==="focused")return}else if(q==="blur"&&(A==="paused"||A==="hovered"))return;k.autoplayTimer=setInterval(k.play,k.props.autoplaySpeed+50),k.setState({autoplaying:"playing"})}),P($(k),"pause",function(q){k.autoplayTimer&&(clearInterval(k.autoplayTimer),k.autoplayTimer=null);var A=k.state.autoplaying;q==="paused"?k.setState({autoplaying:"paused"}):q==="focused"?(A==="hovered"||A==="playing")&&k.setState({autoplaying:"focused"}):A==="playing"&&k.setState({autoplaying:"hovered"})}),P($(k),"onDotsOver",function(){return k.props.autoplay&&k.pause("hovered")}),P($(k),"onDotsLeave",function(){return k.props.autoplay&&k.state.autoplaying==="hovered"&&k.autoPlay("leave")}),P($(k),"onTrackOver",function(){return k.props.autoplay&&k.pause("hovered")}),P($(k),"onTrackLeave",function(){return k.props.autoplay&&k.state.autoplaying==="hovered"&&k.autoPlay("leave")}),P($(k),"onSlideFocus",function(){return k.props.autoplay&&k.pause("focused")}),P($(k),"onSlideBlur",function(){return k.props.autoplay&&k.state.autoplaying==="focused"&&k.autoPlay("blur")}),P($(k),"render",function(){var q=(0,n.default)("slick-slider",k.props.className,{"slick-vertical":k.props.vertical,"slick-initialized":!0}),A=v(v({},k.props),k.state),D=(0,s.extractObject)(A,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),_=k.props.pauseOnHover;D=v(v({},D),{},{onMouseEnter:_?k.onTrackOver:null,onMouseLeave:_?k.onTrackLeave:null,onMouseOver:_?k.onTrackOver:null,focusOnSelect:k.props.focusOnSelect&&k.clickable?k.selectHandler:null});var M;if(k.props.dots===!0&&k.state.slideCount>=k.props.slidesToShow){var G=(0,s.extractObject)(A,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Q=k.props.pauseOnDotsHover;G=v(v({},G),{},{clickHandler:k.changeSlide,onMouseEnter:Q?k.onDotsLeave:null,onMouseOver:Q?k.onDotsOver:null,onMouseLeave:Q?k.onDotsLeave:null}),M=e.default.createElement(l.Dots,G)}var te,ne,ae=(0,s.extractObject)(A,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);ae.clickHandler=k.changeSlide,k.props.arrows&&(te=e.default.createElement(u.PrevArrow,ae),ne=e.default.createElement(u.NextArrow,ae));var fe=null;k.props.vertical&&(fe={height:k.state.listHeight});var Se=null;k.props.vertical===!1?k.props.centerMode===!0&&(Se={padding:"0px "+k.props.centerPadding}):k.props.centerMode===!0&&(Se={padding:k.props.centerPadding+" 0px"});var Ce=v(v({},fe),Se),_e=k.props.touchMove,Me={className:"slick-list",style:Ce,onClick:k.clickHandler,onMouseDown:_e?k.swipeStart:null,onMouseMove:k.state.dragging&&_e?k.swipeMove:null,onMouseUp:_e?k.swipeEnd:null,onMouseLeave:k.state.dragging&&_e?k.swipeEnd:null,onTouchStart:_e?k.swipeStart:null,onTouchMove:k.state.dragging&&_e?k.swipeMove:null,onTouchEnd:_e?k.touchEnd:null,onTouchCancel:k.state.dragging&&_e?k.swipeEnd:null,onKeyDown:k.props.accessibility?k.keyHandler:null},ve={className:q,dir:"ltr",style:k.props.style};return k.props.unslick&&(Me={className:"slick-list"},ve={className:q,style:k.props.style}),e.default.createElement("div",ve,k.props.unslick?"":te,e.default.createElement("div",x({ref:k.listRefHandler},Me),e.default.createElement(a.Track,x({ref:k.trackRefHandler},D),k.props.children)),k.props.unslick?"":ne,k.props.unslick?"":M)}),k.list=null,k.track=null,k.state=v(v({},t.default),{},{currentSlide:k.props.initialSlide,targetSlide:k.props.initialSlide?k.props.initialSlide:0,slideCount:e.default.Children.count(k.props.children)}),k.callbackTimers=[],k.clickable=!0,k.debouncedResize=null;var W=k.ssrInit();return k.state=v(v({},k.state),W),k}return R(N,[{key:"didPropsChange",value:function(k){for(var W=!1,q=0,A=Object.keys(this.props);q<A.length;q++){var D=A[q];if(!k.hasOwnProperty(D)){W=!0;break}if(!(h(k[D])==="object"||typeof k[D]=="function"||isNaN(k[D]))&&k[D]!==this.props[D]){W=!0;break}}return W||e.default.Children.count(this.props.children)!==e.default.Children.count(k.children)}}]),N})(e.default.Component),innerSlider}var camel2hyphen_1,hasRequiredCamel2hyphen;function requireCamel2hyphen(){if(hasRequiredCamel2hyphen)return camel2hyphen_1;hasRequiredCamel2hyphen=1;var e=function(t){return t.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()}).toLowerCase()};return camel2hyphen_1=e,camel2hyphen_1}var json2mq_1,hasRequiredJson2mq;function requireJson2mq(){if(hasRequiredJson2mq)return json2mq_1;hasRequiredJson2mq=1;var e=requireCamel2hyphen(),t=function(s){var a=/[height|width]$/;return a.test(s)},r=function(s){var a="",l=Object.keys(s);return l.forEach(function(u,d){var p=s[u];u=e(u),t(u)&&typeof p=="number"&&(p=p+"px"),p===!0?a+=u:p===!1?a+="not "+u:a+="("+u+": "+p+")",d<l.length-1&&(a+=" and ")}),a},n=function(s){var a="";return typeof s=="string"?s:s instanceof Array?(s.forEach(function(l,u){a+=r(l),u<s.length-1&&(a+=", ")}),a):r(s)};return json2mq_1=n,json2mq_1}
545var hasRequiredSlider;function requireSlider(){return hasRequiredSlider||(hasRequiredSlider=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(requireReact()),r=requireInnerSlider(),n=l(requireJson2mq()),s=l(requireDefaultProps()),a=requireInnerSliderUtils();function l(U){return U&&U.__esModule?U:{default:U}}function u(U){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},u(U)}function d(){return d=Object.assign?Object.assign.bind():function(U){for(var B=1;B<arguments.length;B++){var P=arguments[B];for(var H in P)({}).hasOwnProperty.call(P,H)&&(U[H]=P[H])}return U},d.apply(null,arguments)}function p(U,B){var P=Object.keys(U);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(U);B&&(H=H.filter(function(Z){return Object.getOwnPropertyDescriptor(U,Z).enumerable})),P.push.apply(P,H)}return P}function h(U){for(var B=1;B<arguments.length;B++){var P=arguments[B]!=null?arguments[B]:{};B%2?p(Object(P),!0).forEach(function(H){L(U,H,P[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(P)):p(Object(P)).forEach(function(H){Object.defineProperty(U,H,Object.getOwnPropertyDescriptor(P,H))})}return U}function x(U,B){if(!(U instanceof B))throw new TypeError("Cannot call a class as a function")}function w(U,B){for(var P=0;P<B.length;P++){var H=B[P];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,V(H.key),H)}}function g(U,B,P){return B&&w(U.prototype,B),Object.defineProperty(U,"prototype",{writable:!1}),U}function b(U,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(B&&B.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),Object.defineProperty(U,"prototype",{writable:!1}),B&&v(U,B)}function v(U,B){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,H){return P.__proto__=H,P},v(U,B)}function E(U){var B=T();return function(){var P,H=z(U);if(B){var Z=z(this).constructor;P=Reflect.construct(H,arguments,Z)}else P=H.apply(this,arguments);return j(this,P)}}function j(U,B){if(B&&(u(B)=="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(U)}function R(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function T(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T=function(){return!!U})()}function z(U){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},z(U)}function L(U,B,P){return(B=V(B))in U?Object.defineProperty(U,B,{value:P,enumerable:!0,configurable:!0,writable:!0}):U[B]=P,U}function V(U){var B=$(U,"string");return u(B)=="symbol"?B:B+""}function $(U,B){if(u(U)!="object"||!U)return U;var P=U[Symbol.toPrimitive];if(P!==void 0){var H=P.call(U,B);if(u(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(U)}e.default=(function(U){b(P,U);var B=E(P);function P(H){var Z;return x(this,P),Z=B.call(this,H),L(R(Z),"innerSliderRefHandler",function(O){return Z.innerSlider=O}),L(R(Z),"slickPrev",function(){return Z.innerSlider.slickPrev()}),L(R(Z),"slickNext",function(){return Z.innerSlider.slickNext()}),L(R(Z),"slickGoTo",function(O){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Z.innerSlider.slickGoTo(O,S)}),L(R(Z),"slickPause",function(){return Z.innerSlider.pause("paused")}),L(R(Z),"slickPlay",function(){return Z.innerSlider.autoPlay("play")}),Z.state={breakpoint:null},Z._responsiveMediaHandlers=[],Z}return g(P,[{key:"media",value:function(Z,O){var S=window.matchMedia(Z),N=function(k){var W=k.matches;W&&O()};S.addListener(N),this._responsiveMediaHandlers.push({mql:S,query:Z,listener:N})}},{key:"componentDidMount",value:function(){var Z=this;if(this.props.responsive){var O=this.props.responsive.map(function(N){return N.breakpoint});O.sort(function(N,F){return N-F}),O.forEach(function(N,F){var k;F===0?k=(0,n.default)({minWidth:0,maxWidth:N}):k=(0,n.default)({minWidth:O[F-1]+1,maxWidth:N}),(0,a.canUseDOM)()&&Z.media(k,function(){Z.setState({breakpoint:N})})});var S=(0,n.default)({minWidth:O.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(S,function(){Z.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEac
545h(function(Z){Z.mql.removeListener(Z.listener)})}},{key:"render",value:function(){var Z=this,O,S;this.state.breakpoint?(S=this.props.responsive.filter(function(G){return G.breakpoint===Z.state.breakpoint}),O=S[0].settings==="unslick"?"unslick":h(h(h({},s.default),this.props),S[0].settings)):O=h(h({},s.default),this.props),O.centerMode&&(O.slidesToScroll>1,O.slidesToScroll=1),O.fade&&(O.slidesToShow>1,O.slidesToScroll>1,O.slidesToShow=1,O.slidesToScroll=1);var N=t.default.Children.toArray(this.props.children);N=N.filter(function(G){return typeof G=="string"?!!G.trim():!!G}),O.variableWidth&&(O.rows>1||O.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),O.variableWidth=!1);for(var F=[],k=null,W=0;W<N.length;W+=O.rows*O.slidesPerRow){for(var q=[],A=W;A<W+O.rows*O.slidesPerRow;A+=O.slidesPerRow){for(var D=[],_=A;_<A+O.slidesPerRow&&(O.variableWidth&&N[_].props.style&&(k=N[_].props.style.width),!(_>=N.length));_+=1)D.push(t.default.cloneElement(N[_],{key:100*W+10*A+_,tabIndex:-1,style:{width:"".concat(100/O.slidesPerRow,"%"),display:"inline-block"}}));q.push(t.default.createElement("div",{key:10*W+A},D))}O.variableWidth?F.push(t.default.createElement("div",{key:W,style:{width:k}},q)):F.push(t.default.createElement("div",{key:W},q))}if(O==="unslick"){var M="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:M},N)}else F.length<=O.slidesToShow&&(O.unslick=!0);return t.default.createElement(r.InnerSlider,d({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(O)),F)}}]),P})(t.default.Component)})(slider)),slider}var hasRequiredLib$1;function requireLib$1(){return hasRequiredLib$1||(hasRequiredLib$1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(requireSlider());function r(n){return n&&n.__esModule?n:{default:n}}e.default=t.default})(lib$1)),lib$1}var libExports$1=requireLib$1();const Slider=getDefaultExportFromCjs$1(libExports$1),botCheckerLottie=""+new URL("../LandingPage/service-cards-json/g.json",import.meta.url).href,PrevArrow=({onClick:e})=>jsxRuntimeExports.jsx("button",{className:`absolute left-2 md:-left-16 top-1/2 transform -translate-y-1/2 546 w-8 h-8 md:w-10 md:h-10 flex items-center justify-center 547 border-2 border-[#CCFF00] bg-black/40 backdrop-blur-sm 548 rounded-full text-[#CCFF00] hover:bg-[#CCFF00] hover:text-black 549 transition-all duration-300 z-10`,onClick:e,children:jsxRuntimeExports.jsx(IoChevronBack,{className:"w-5 h-5 md:w-7 md:h-7"})}),NextArrow=({onClick:e})=>jsxRuntimeExports.jsx("button",{className:`absolute right-2 md:-right-16 top-1/2 transform -translate-y-1/2 550 w-8 h-8 md:w-10 md:h-10 flex items-center justify-center 551 border-2 border-[#CCFF00] bg-black/40 backdrop-blur-sm 552 rounded-full text-[#CCFF00] hover:bg-[#CCFF00] hover:text-black 553 transition-all duration-300 z-10`,onClick:e,children:jsxRuntimeExports.jsx(IoChevronForward,{className:"w-5 h-5 md:w-7 md:h-7"})}),NFTCard=()=>{const[e,t]=React.useState(typeof window<"u"?window.innerWidth<768:!1);React.useEffect(()=>{const s=()=>{t(window.innerWidth<768)};return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]);const r={dots:e,infinite:!0,speed:600,slidesToShow:1,slidesToScroll:1,autoplay:!1,arrows:!e,swipe:!0,prevArrow:jsxRuntimeExports.jsx(PrevArrow,{}),nextArrow:jsxRuntimeExports.jsx(NextArrow,{}),dotsClass:"slick-dots !bottom-[-50px]"},n=[{title:"Mint Your NFTs",desc:"Transform your ideas into unique, collectible digital assets with Coinguard's powerful AI-driven NFT Generator.",tag:"AI-POWERED CREATION",img:"/LandingPage/elements/nft-chimp.gif",type:"gif"},{title:"Bot Checker",desc:"Stay safe from fake accounts and automated bots with Coinguard's advanced AI-powered detection system, ensuring only real users engage with your NFTs.",tag:"AI SECURITY",lottie:botCheckerLottie,type:"lottie"}];return jsxRuntimeExports.jsx("div",{className:"bg-black",children:jsxRuntimeExports.jsxs("div",{className:"max-w-[1200px] mx-auto px-4 sm:px-6 lg:px-8 py-20 pb-32 relative",children:[jsxRuntimeExports.jsx("svg",{style:{position:"absolute",width:0,height:0},children:jsxRuntimeExports.jsx("filter",{width:"3000%",x:"-1000%",height:"3000%",y:"-1000%",i
553d:"unopaq",children:jsxRuntimeExports.jsx("feColorMatrix",{values:`1 0 0 0 0 554 0 1 0 0 0 555 0 0 1 0 0 556 0 0 0 3 0`})})}),jsxRuntimeExports.jsxs("h2",{className:"text-3xl sm:text-4xl font-bold text-center mb-12 md:mb-20 flex items-center justify-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"text-white",children:"Create Unique"}),jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"NFTs"}),jsxRuntimeExports.jsx("span",{className:"bg-[#ccff00] text-black text-xs font-bold px-2 py-0.5 rounded-full",children:"NEW"})]}),jsxRuntimeExports.jsx("div",{className:"px-2 md:px-12",children:jsxRuntimeExports.jsx(Slider,{...r,children:n.map((s,a)=>jsxRuntimeExports.jsx("div",{className:"px-1 md:px-0",children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black border border-white/30 p-4 sm:p-6 md:p-8 lg:p-12 group transition-all duration-300 hover:border-[#CCFF00]/50 mx-auto w-full max-w-none md:max-w-full h-[550px] sm:h-[500px] md:h-[400px] lg:h-[400px]",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-4 h-4 border-t-2 border-l-2 border-white/30 group-hover:border-[#CCFF00] transition-colors duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-4 h-4 border-t-2 border-r-2 border-white/30 group-hover:border-[#CCFF00] transition-colors duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-4 h-4 border-b-2 border-l-2 border-white/30 group-hover:border-[#CCFF00] transition-colors duration-300"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-4 h-4 border-b-2 border-r-2 border-white/30 group-hover:border-[#CCFF00] transition-colors duration-300"}),jsxRuntimeExports.jsxs("div",{className:"overflow-hidden shadow-2xl flex flex-col md:flex-row h-[520px] sm:h-[470px] md:h-auto",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 p-4 sm:p-6 md:p-8 lg:p-12",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-3 sm:mb-4",children:[jsxRuntimeExports.jsx(IoSparklesOutline,{className:"w-5 h-5 sm:w-6 sm:h-6 md:w-7 md:h-7 text-[#CCFF00] mr-2 sm:mr-3"}),jsxRuntimeExports.jsx("span",{className:"text-xs sm:text-sm font-mono tracking-widest text-[#CCFF00]",children:s.tag})]}),jsxRuntimeExports.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-medium text-white mb-3 sm:mb-4 leading-tight",children:s.title}),jsxRuntimeExports.jsx("p",{className:"text-white/70 mb-6 sm:mb-8 text-sm sm:text-base max-w-2xl",children:s.desc}),jsxRuntimeExports.jsxs("div",{className:"flex justify-start",children:[jsxRuntimeExports.jsx("div",{className:"backdrop"}),jsxRuntimeExports.jsxs("button",{className:"button",disabled:!0,children:[jsxRuntimeExports.jsx("div",{className:"a l"}),jsxRuntimeExports.jsx("div",{className:"a r"}),jsxRuntimeExports.jsx("div",{className:"a t"}),jsxRuntimeExports.jsx("div",{className:"a b"}),jsxRuntimeExports.jsx("div",{className:"text btn-shine",children:"Coming Soon"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"relative w-full md:w-48 lg:w-64 h-48 md:h-48 lg:h-64 flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-80 group-hover:opacity-100",children:s.type==="gif"?jsxRuntimeExports.jsx("img",{src:s.img,alt:s.title,className:"w-48 h-48 lg:w-64 lg:h-64 object-cover rounded-lg"}):jsxRuntimeExports.jsx(Player,{autoplay:!0,loop:!0,src:s.lottie,style:{height:"12rem",width:"12rem"}})})})]})]})},a))})}),jsxRuntimeExports.jsx("style",{jsx:"true",children:` 557 .button { 558 position: relative; 559 cursor: not-allowed; 560 border: none; 561 width: 140px; 562 height: 40px; 563 background: #111; 564 color: #fff; 565 font-family: "Poppins", sans-serif; 566 font-weight: 600; 567 font-size: 16px; 568 } 569 570 .text { 571 position: relative; 572 z-index: 1; 573 } 574 575 .btn-shine { 576 background: linear-gradient( 577 to right, 578 #9f9f9f 0, 579 #fff 10%, 580 #868686 20% 581 ); 582 background-size: 400px auto; 583 -webkit-background-clip: text; 584 background-clip: text; 585 -webkit-text-fill-color: transparent; 586 animation: shine 2.5s linear infinite; 587 font-weight: 600; 588 font-size: 16px; 589 white-space: nowrap; 590 font-family: "Poppins", sans-serif; 591 } 592 593 @keyframes shine { 594 0% { 595 background-position: -200px; 596 } 597 100% { 598 background-position: 200px; 599 } 600 } 601 602 .button::before { 603 content: ""; 604 position: absolute; 605 inset: 0; 606 opacity: 0.3; 607 background: radial-gradient( 608 circle at 50% 50%, 609 #0000 0, 610 #0000 20%, 611 #111111aa 50% 612 ), 613 radial-gradient(ellipse 100% 100%, #fff, #fff0); 614 background-size: 3px 3px, auto auto; 615 transition: 0.3s; 616 } 617 618 .button .a { 619 pointer-events: none; 620 position: absolute; 621 --w: 2px; 622 --t: -40px; 623 --s: calc(var(--t) * -1); 624 --e: calc(100% + var(--t)); 625 --g: #fff0, #fff3 var(--s), #fffa var(--s), #fff, #fffa var(--e), 626 #fff3 var(--e), #fff0; 627 } 628 629 .button .a::before { 630 content: ""; 631 position: absolute; 632 inset: 0; 633 background: inherit; 634 filter: blur(4px) url(#unopaq); 635 z-index: -2; 636 } 637 638 .button .a::after { 639 content: ""; 640 position: absolute; 641 inset: 0; 642 background: inherit; 643 filter: blur(10px) url(#unopaq); 644 opacity: 1; 645 z-index: -2; 646 transition: 0.3s; 647 } 648 649 .button .l { 650 left: -2px; 651 } 652 653 .button .r { 654 right: -2px; 655 } 656 657 .button .l, 658 .button .r { 659 background: linear-gradient(var(--g)); 660 top: var(--t); 661 bottom: var(--t); 662 width: var(--w); 663 } 664 665 .button .t { 666 top: -2px; 667 } 668 669 .button .b { 670 bottom: -2px; 671 } 672 673 .button .t, 674 .button .b { 675 background: linear-gradient(90deg, var(--g)); 676 left: var(--t); 677 right: var(--t); 678 height: var(--w); 679 } 680 681 .backdrop { 682 position: absolute; 683 inset: -9900%; 684 background: radial-gradient( 685 circle at 50% 50%, 686 #0000 0, 687 #0000 20%, 688 #111111aa 50% 689 ); 690 background-size: 3px 3px; 691 z-index: -1; 692 } 693 694 /* Custom dots styling for mobile */ 695 .slick-dots { 696 display: none; 697 justify-content: center; 698 align-items: center; 699 list-style: none; 700 padding: 0; 701 margin: 0; 702 position: absolute; 703 bottom: -40px; 704 width: 100%; 705 left: 0; 706 z-index: 10; 707 } 708 709 .slick-dots li { 710 margin: 0 6px; 711 } 712 713 .slick-dots li button { 714 border: none; 715 background: none; 716 padding: 0; 717 width: 10px; 718 height: 10px; 719 border-radius: 50%; 720 background-color: rgba(255, 255, 255, 0.4); 721 cursor: pointer; 722 transition: all 0.3s ease; 723 outline: none; 724 } 725 726 .slick-dots li button:before { 727 display: none; 728 } 729 730 .slick-dots li.slick-active button { 731 background-color: #ccff00; 732 width: 12px; 733 height: 12px; 734 } 735 736 .slick-dots li button:hover { 737 background-color: rgba(204, 255, 0, 0.7); 738 } 739 740 /* Mobile and small screens (below 768px): Show dots, hide arrows */ 741 @media (max-width: 767px) { 742 .slick-dots { 743 display: flex !important; 744 } 745 .slick-prev, 746 .slick-next { 747 display: none !important; 748 } 749 } 750 751 /* Tablets and Desktop (768px and above): Show arrows, hide dots */ 752 @media (min-width: 768px) { 753 .slick-dots { 754 display: none !important; 755 } 756 .slick-prev, 757 .slick-next { 758 display: block !important; 759 } 760 } 761
762 /* Additional responsive adjustments for very small screens */ 763 @media (max-width: 320px) { 764 .slick-dots li { 765 margin: 0 4px; 766 } 767 .slick-dots li button { 768 width: 8px; 769 height: 8px; 770 } 771 .slick-dots li.slick-active button { 772 width: 10px; 773 height: 10px; 774 } 775 } 776 777 @media (min-width: 321px) and (max-width: 425px) { 778 .slick-dots li { 779 margin: 0 5px; 780 } 781 } 782 783 /* Mobile slider adjustments */ 784 @media (max-width: 767px) { 785 .slick-slide { 786 padding: 0 !important; 787 } 788 .slick-list { 789 margin: 0 !important; 790 padding: 0 !important; 791 } 792 .slick-track { 793 display: flex !important; 794 align-items: stretch !important; 795 } 796 } 797 `})]})})},AppPromo=()=>{const[e,t]=reactExports.useState(null),r=[{title:"Multi-Chain Support",description:"Ethereum, Binance, and Solana.",benefits:"Seamlessly interact with multiple blockchain networks, including Ethereum, Binance Smart Chain, and Solana, allowing you to manage diverse assets in one wallet with unified security and ease."},{title:"Cross-Chain Swapper",description:"Swap assets seamlessly across chains.",benefits:"Effortlessly exchange assets between different blockchains like Ethereum, Binance, and Solana without relying on external exchanges, reducing fees and enhancing transaction speed."},{title:"Non-Custodial",description:"You control your keys, you control your funds.",benefits:"Maintain full ownership of your private keys, ensuring that only you have access to your funds, with no third-party custody risks, enhancing security and autonomy."},{title:"Built-In Token Swaps",description:"Trade tokens instantly within the wallet.",benefits:"Execute token trades directly from your wallet interface, leveraging integrated decentralized exchange protocols for fast, secure, and cost-effective transactions without leaving the app."},{title:"Multi-Platform Access",description:"Web Extension, Android, iOS, and Windows.",benefits:"Access your wallet across multiple platforms, including browser extensions, mobile apps for Android and iOS, and a dedicated Windows application, ensuring flexibility and convenience wherever you are."},{title:"Token Suggestions",description:"AI-powered market guidance.",benefits:"Receive curated token recommendations and market insights driven by advanced AI algorithms, analyzing risk scores, and market trends to help you make informed investment decisions."},{title:"Portfolio Overview",description:"Track assets, performance, and risks in one view.",benefits:"Monitor your entire crypto portfolio in a single, intuitive interface, with real-time data on asset performance, risk assessments, and market trends to optimize your investment strategy."},{title:"Seamless App Connection",description:"Connect your Coinguard Wallet to the Coinguard app instantly.",benefits:"Instantly link your wallet to the Coinguard mobile app for a unified experience, enabling real-time security monitoring, portfolio management, and access to all Coinguard features on the go."}];return jsxRuntimeExports.jsxs("div",{className:"max-w-[1200px] mx-auto px-4 sm:px-6 lg:px-8 py-16 md:py-24",children:[jsxRuntimeExports.jsx("svg",{style:{position:"absolute",width:0,height:0},children:jsxRuntimeExports.jsx("filter",{width:"3000%",x:"-1000%",height:"3000%",y:"-1000%",id:"unopaq",children:jsxRuntimeExports.jsx("feColorMatrix",{values:`1 0 0 0 0 798 0 1 0 0 0 799 0 0 1 0 0 800 0 0 0 3 0`})})}),jsxRuntimeExports.jsxs("div",{className:"relative bg-black p-8 lg:p-12 rounded-xl overflow-hidden container-glow border-[#CCFF00]/20 hover:border-[#CCFF00]/50 md:border-[#CCFF00]/30 md:hover:border-[#CCFF00]/60",children:[jsxRuntimeExports.jsx("div",{className:"backdrop"}),jsxRuntimeExports.jsx("div",{className:"a l"}),jsxRuntimeExports.jsx("div",{className:"a r"}),jsxRuntimeExports.jsx("div",{className:"a t"}),jsxRuntimeExports.jsx("div",{className:"a b"}),jsxRuntimeExports.jsxs("div",{className:"absolute inset-0 overflow-hidden opacity-20",children:[jsxRuntimeExports.jsx("div",{className:"absolute -top-20 -left-20 w-64 h-64 bg-[#CCFF00]/10 rounded-full filter blur-3xl animate-pulse"}),jsxRuntimeExports.jsx("div",{className:"absolute -bottom-20 -right-20 w-64 h-64 bg-[#CCFF00]/10 rounded-full filter blur-3xl animate-pulse delay-1000"})]}),jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col lg:flex-row gap-12 items-center z-10",children:[jsxRuntimeExports.jsx("div",{className:"relative w-72 h-[500px] flex-shrink-0",children:jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntimeExports.jsxs("div",{className:"relative w-full h-full",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gray-900 rounded-[40px] border-8 border-gray-800 shadow-2xl overflow-hidden",children:jsxRuntimeExports.jsx("img",{src:"/LandingPage/cgw.png",alt:"Coinguard App Preview",className:"w-full h-full object-cover"})}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-1/3 h-6 bg-gray-800 rounded-b-xl z-10"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-3 left-1/2 transform -translate-x-1/2 w-1/4 h-1 bg-white/30 rounded-full"})]})})}),jsxRuntimeExports.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntimeExports.jsxs("h2",{className:"text-[23px] sm:text-[34px] md:text-[42px] font-bold text-white mb-6 leading-tight",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"Upcoming Coinguard"}),jsxRuntimeExports.jsx("span",{className:"inline md:hidden",children:jsxRuntimeExports.jsx("br",{})})," ","Pro Wallet"]}),jsxRuntimeExports.jsx("p",{className:"text-white/80 mb-8 text-lg max-w-2xl leading-relaxed",children:"The ultimate crypto security solution is now in your pocket. Protect your investments, detect scams in real-time, and manage your portfolio."}),jsxRuntimeExports.jsx("h3",{className:"text-xl font-semibold text-white mb-4",children:"Tap on the titles to view full details"}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-10",children:r.map((n,s)=>jsxRuntimeExports.jsxs("div",{className:"flex items-start cursor-pointer",onClick:()=>t(n),children:[jsxRuntimeExports.jsx("div",{className:"bg-[#CCFF00]/10 p-1 rounded-full mr-3 mt-0.5",children:jsxRuntimeExports.jsx(IoSparklesOutline,{className:"w-4 h-4 text-[#CCFF00]"})}),jsxRuntimeExports.jsx("span",{className:"text-white/90",children:n.title}),jsxRuntimeExports.jsx("span",{className:"mt-1.5 pl-2 text-[#CCFF00]",children:jsxRuntimeExports.jsx(IoMdArrowDropdown,{})})]},s))}),jsxRuntimeExports.jsxs("div",{className:"flex justify-center lg:justify-start lg:pl-40",children:[jsxRuntimeExports.jsx("div",{className:"backdrop"}),jsxRuntimeExports.jsxs("button",{className:"button",children:[jsxRuntimeExports.jsx("div",{className:"a l"}),jsxRuntimeExports.jsx("div",{className:"a r"}),jsxRuntimeExports.jsx("div",{className:"a t"}),jsxRuntimeExports.jsx("div",{className:"a b"}),jsxRuntimeExports.jsx("div",{className:"text btn-shine",children:"Coming Soon"})]})]})]})]})]}),e&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4",children:jsxRuntimeExports.jsxs("div",{className:"relative bg-black border border-[#CCFF00]/30 max-w-2xl w-full p-8 max-h-[90vh] overflow-y-auto",children:[jsxRuntimeExports.jsx("button",{onClick:()=>t(null),className:"absolute top-4 right-4 p-1 text-white/70 hover:text-[#CCFF00] transition-colors",children:jsxRuntimeExports.jsx(IoClose,{className:"w-6 h-6"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-start mb-6",children:[jsxRuntimeExports.jsx("div",{className:"p-3 bg-[#CCFF00]/10 border border-[#CCFF00]/30 mr-4 flex-shrink-0",children:jsxRuntimeExports.jsx(IoSparklesOutline,{className:"w-8 h-8 text-[#CCFF00]"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"inline-block px-2 py-1 text-xs font-mono tracking-widest text-[#CCFF00] bg-[#CCFF00]/10 mb-2",children:"FEATURE DETAIL"}),jsxRuntimeExports.jsx("h3",{className:"text-2xl font-bold text-white",children:e.title})]})]}),jsxRuntimeExports.jsxs("div",{className:"prose prose-invert",children:[jsxRuntimeExports.jsx("p",{className:"text-white/80 mb-6",children:e.description}),jsxRuntimeExports.jsxs("div",{className:"bg-black/50 border border-white/10 p-4",children:[jsxRuntimeExports.jsx("h4",{className:"text-[#CCFF00] font-mono text-sm mb-2",children:"WHAT IT OFFERS:"}),jsxRuntimeExports.jsx("ul",{className:"space-y-2",children:e.benefits.split(". ").filter(
800Boolean).map((n,s)=>jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("span",{className:"inline-block w-1.5 h-1.5 mt-2 mr-2 bg-[#CCFF00] rounded-full flex-shrink-0"}),jsxRuntimeExports.jsxs("span",{className:"text-white/80",children:[n.replace(/\.$/,""),"."]})]},s))})]})]})]})}),jsxRuntimeExports.jsx("style",{jsx:"true",children:` 801 /* Container Glow Effect */ 802 .container-glow { 803 position: relative; 804 border: 1px solid #0000; 805 } 806 807 .container-glow::before { 808 content: ""; 809 position: absolute; 810 inset: 0; 811 opacity: 0.3; 812 background: radial-gradient( 813 circle at 50% 50%, 814 #0000 0, 815 #0000 20%, 816 #111111aa 50% 817 ), 818 radial-gradient(ellipse 100% 100%, #fff, #fff0); 819 background-size: 3px 3px, auto auto; 820 transition: 0.3s; 821 } 822 823 .container-glow:hover::before { 824 opacity: 0.3; 825 } 826 827 .container-glow .a { 828 pointer-events: none; 829 position: absolute; 830 --w: 2px; 831 --t: -40px; 832 --s: calc(var(--t) * -1); 833 --e: calc(100% + var(--t)); 834 --g: #fff0, #fff3 var(--s), #fffa var(--s), #fff, #fffa var(--e), 835 #fff3 var(--e), #fff0; 836 } 837 838 .container-glow .a::before { 839 content: ""; 840 position: absolute; 841 inset: 0; 842 background: inherit; 843 filter: blur(4px) url(#unopaq); 844 z-index: -2; 845 } 846 847 .container-glow .a::after { 848 content: ""; 849 position: absolute; 850 inset: 0; 851 background: inherit; 852 filter: blur(10px) url(#unopaq); 853 opacity: 1; 854 z-index: -2; 855 transition: 0.3s; 856 } 857 858 .container-glow:hover .a::after { 859 opacity: 1; 860 } 861 862 .container-glow .l { 863 left: -2px; 864 } 865 866 .container-glow .r { 867 right: -2px; 868 } 869 870 .container-glow .l, 871 .container-glow .r { 872 background: linear-gradient(var(--g)); 873 top: var(--t); 874 bottom: var(--t); 875 width: var(--w); 876 } 877 878 .container-glow .t { 879 top: -2px; 880 } 881 882 .container-glow .b { 883 bottom: -2px; 884 } 885 886 .container-glow .t, 887 .container-glow .b { 888 background: linear-gradient(90deg, var(--g)); 889 left: var(--t); 890 right: var(--t); 891 height: var(--w); 892 } 893 894 .container-glow .backdrop { 895 position: absolute; 896 inset: -9900%; 897 background: radial-gradient( 898 circle at 50% 50%, 899 #0000 0, 900 #0000 20%, 901 #111111aa 50% 902 ); 903 background-size: 3px 3px; 904 z-index: -1; 905 } 906 907 /* Button Styles */ 908 .button { 909 position: relative; 910 cursor: pointer; 911 border: none; 912 width: 140px; 913 height: 40px; 914 background: #111; 915 color: #fff; 916 font-family: "Poppins", sans-serif; 917 font-weight: 600; 918 font-size: 16px; 919 } 920 921 .text { 922 position: relative; 923 z-index: 1; 924 } 925 926 .btn-shine { 927 background: linear-gradient( 928 to right, 929 #9f9f9f 0, 930 #fff 10%, 931 #868686 20% 932 ); 933 background-size: 400px auto; 934 -webkit-background-clip: text; 935 background-clip: text; 936 -webkit-text-fill-color: transparent; 937 animation: shine 2.5s linear infinite; 938 font-weight: 600; 939 font-size: 16px; 940 text-decoration: none; 941 white-space: nowrap; 942 font-family: "Poppins", sans-serif; 943 } 944 945 @keyframes shine { 946 0% { 947 background-position: -200px; 948 } 949 100% { 950 background-position: 200px; 951 } 952 } 953 954 .button::before { 955 content: ""; 956 position: absolute; 957 inset: 0; 958 opacity: 0.3; 959 background: radial-gradient( 960 circle at 50% 50%, 961 #0000 0, 962 #0000 20%, 963 #111111aa 50% 964 ), 965 radial-gradient(ellipse 100% 100%, #fff, #fff0); 966 background-size: 3px 3px, auto auto; 967 transition: 0.3s; 968 } 969 970 .button:hover::before { 971 opacity: 0.3; 972 } 973 974 .button .a { 975 pointer-events: none; 976 position: absolute; 977 --w: 2px; 978 --t: -40px; 979 --s: calc(var(--t) * -1); 980 --e: calc(100% + var(--t)); 981 --g: #fff0, #fff3 var(--s), #fffa var(--s), #fff, #fffa var(--e), 982 #fff3 var(--e), #fff0; 983 } 984 985 .button .a::before { 986 content: ""; 987 position: absolute; 988 inset: 0; 989 background: inherit; 990 filter: blur(4px) url(#unopaq); 991 z-index: -2; 992 } 993 994 .button .a::after { 995 content: ""; 996 position: absolute; 997 inset: 0; 998 background: inherit; 999 filter: blur(10px) url(#unopaq); 1000 opacity: 1; 1001 z-index: -2; 1002 transition: 0.3s; 1003 } 1004 1005 .button:hover .a::after { 1006 opacity: 1; 1007 } 1008 1009 .button .l { 1010 left: -2px; 1011 } 1012 1013 .button .r { 1014 right: -2px; 1015 } 1016 1017 .button .l, 1018 .button .r { 1019 background: linear-gradient(var(--g)); 1020 top: var(--t); 1021 bottom: var(--t); 1022 width: var(--w); 1023 } 1024 1025 .button .t { 1026 top: -2px; 1027 } 1028 1029 .button .b { 1030 bottom: -2px; 1031 } 1032 1033 .button .t, 1034 .button .b { 1035 background: linear-gradient(90deg, var(--g)); 1036 left: var(--t); 1037 right: var(--t); 1038 height: var(--w); 1039 } 1040 1041 .button .backdrop { 1042 position: absolute; 1043 inset: -9900%; 1044 background: radial-gradient( 1045 circle at 50% 50%, 1046 #0000 0, 1047 #0000 20%, 1048 #111111aa 50% 1049 ); 1050 background-size: 3px 3px; 1051 z-index: -1; 1052 } 1053 `})]})},responsiveStyles=` 1054 .responsive-coinguard-text { 1055 background: url('/LandingPage/elements/bg5.gif') center center no-repeat; 1056 background-size: cover; 1057 -webkit-background-clip: text; 1058 -webkit-text-fill-color: transparent; 1059 background-clip: text; 1060 color: transparent; 1061 margin: 0px; 1062 line-height: 1.1; 1063 font-size: 3rem; 1064 letter-spacing: 8px; 1065 } 1066 1067 .responsive-subtitle-text { 1068 background: linear-gradient(to right, #c4c4c4, #6a6a6a); 1069 -webkit-background-clip: text; 1070 -webkit-text-fill-color: transparent; 1071 background-clip: text; 1072 color: transparent; 1073 margin: 0px; 1074 font-size: 1.2rem; 1075 letter-spacing: 2px; 1076 } 1077 1078 /* Extra small screens (< 360px) */ 1079 @media (max-width: 359px) { 1080 .responsive-coinguard-text { 1081 font-size: 2.8rem; 1082 letter-spacing: 4px; 1083 } 1084 .responsive-subtitle-text { 1085 font-size: 1.0rem; 1086 letter-spacing: 1px; 1087 } 1088 } 1089 1090 /* Small screens (360px - 400px) */ 1091 @media (min-width: 360px) and (max-width: 400px) { 1092 .responsive-coinguard-text { 1093 font-size: 3.0rem; 1094 letter-spacing: 5px; 1095 } 1096 .responsive-subtitle-text { 1097 font-size: 1.1rem; 1098 letter-spacing: 1.5px; 1099 } 1100 } 1101 1102 /* Previous extra small (< 380px) - now overridden for 360-400 */ 1103 @media (max-width: 374px) { 1104 .responsive-coinguard-text { 1105 font-size: 3.2rem; 1106 letter-spacing: 5px; 1107 } 1108 .responsive-subtitle-text { 1109 font-size: 1.1rem; 1110 letter-spacing: 1px; 1111 } 1112 } 1113 1114 /* Small screens (380px - 479px) */ 1115 @media (min-width: 380px) { 1116 .responsive-coinguard-text { 1117 font-size: 4.2rem; 1118 letter-spacing: 7px; 1119 } 1120 .responsive-subtitle-text { 1121 font-size: 1.4rem; 1122 letter-spacing: 2px; 1123 } 1124 } 1125 1126 /* Medium small screens (480px - 639px) */ 1127 @media (min-width: 480px) { 1128 .responsive-coinguard-text { 1129 font-size: 5.2rem; 1130 letter-spacing: 9px; 1131 } 1132 .responsive-subtitle-text { 1133 font-size: 1.6rem; 1134 letter-spacing: 3px; 1135 } 1136 } 1137 1138 /* Small tablets (640px - 767px) */ 1139 @media (min-width: 640px) { 1140 .responsive-coinguard-text { 1141 font-size: 5.5rem; 1142 letter-spacing: 10px; 1143 } 1144 .responsive-subtitle-text { 1145 font-size: 1.8rem; 1146 letter-spacing: 4px; 1147 } 1148 } 1149 1150 /* Tablets (768px - 1023px) */ 1151 @media (min-width: 768px) { 1152 .responsive-coinguard-text { 1153 font-size: 7rem; 1154 letter-spacing: 12px; 1155 } 1156 .responsive-subtitle-text { 1157 font-size: 2rem; 1158 letter-spacing: 4px; 1159 } 1160 } 1161 1162 /* Desktop (1024px - 1279px) */ 1163 @media (min-width: 1024px) { 1164 .responsive-coinguard-text { 1165 font-size: 8.5rem; 1166 letter-spacing: 14px; 1167 } 1168 .responsive-subtitle-text { 1169 font-size: 2.3rem; 1170 letter-spacing: 5px; 1171 } 1172 } 1173 1174 /* Large desktop (1280px+) */ 1175 @media (min-width: 1280px) { 1176 .responsive-coinguard-text { 1177 font-size: 10rem; 1178 letter-spacing: 15px; 1179 } 1180 .responsive-subtitle-text { 1181 font-size: 2.5rem; 1182 letter-spacing: 5px; 1183 } 1184 } 1185`;function TextHoverEffectDemo(){const[e,t]=reactExports.useState(!1),[r,n]=reactExports.useState(!0),[s,a]=reactExports.useState(!1),l=reactExports.useRef(null),u=reactExports.useRef(null);return reactExports.useEffect(()=>{const d=document.createElement("style");return d.textContent=responsiveStyles,document.head.appendChild(d),()=>{document.head.removeChild(d)}},[]),reactExports.useEffect(()=>{function d(){const p=window.innerWidth;t(p>=768)}return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),reactExports.useEffect(()=>{const d=()=>{const p=window.scrollY||window.pageYOffset,h=window.innerHeight;a(p>=h)};return window.addEventListener("scroll",d),()=>window.removeEventListener("scroll",d)},[]),reactExports.useEffect(()=>{const d=()=>{n(!document.hidden)};return document.addEventListener("visibilitychange",d),()=>{document.removeEventListener("visibilitychange",d)}},[]),reactExports.useEffect(()=>{let d,p,h=!1;const x=()=>
1185{if(!h)if(h=!0,typeof window<"u"&&!window.THREE)if(!document.querySelector('script[src*="three.min.js"]'))p=document.createElement("script"),p.src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js",p.onload=()=>{w()},p.onerror=()=>{console.warn("Failed to load Three.js"),h=!1},document.head.appendChild(p);else{const E=setInterval(()=>{window.THREE&&(clearInterval(E),w())},100)}else w()},w=()=>{if(typeof window<"u"&&(!window.VANTA||!window.VANTA.WAVES))if(!document.querySelector('script[src*="vanta.waves"]'))d=document.createElement("script"),d.src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js",d.onload=()=>{g()},d.onerror=()=>{console.warn("Failed to load Vanta.js")},document.head.appendChild(d);else{const E=setInterval(()=>{window.VANTA&&window.VANTA.WAVES&&(clearInterval(E),g())},100)}else g()},g=()=>{if(typeof window<"u"&&window.VANTA&&window.VANTA.WAVES&&l.current&&!u.current)try{u.current=window.VANTA.WAVES({el:l.current,mouseControls:!0,touchControls:!0,gyroControls:!1,minHeight:200,minWidth:200,scale:1,scaleMobile:1,color:0,waveHeight:20,waveSpeed:.5,zoom:.75,forceAnimate:!0})}catch(v){console.warn("Failed to initialize Vanta effect:",v)}},b=setTimeout(()=>{x()},100);return()=>{if(clearTimeout(b),u.current)try{u.current.destroy(),u.current=null}catch(v){console.warn("Error destroying Vanta effect:",v)}}},[]),e?jsxRuntimeExports.jsxs("div",{className:"relative overflow-hidden bg-black min-h-screen",style:{width:"100%"},children:[jsxRuntimeExports.jsx("div",{ref:l,className:"absolute inset-0 -top-20",style:{width:"100%",height:"calc(100% + 80px)"}}),jsxRuntimeExports.jsx("div",{className:"relative z-20 w-full h-full min-h-screen flex flex-col items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"w-full max-w-6xl mx-auto px-8 flex flex-col items-center justify-center",children:jsxRuntimeExports.jsx(VerticalLayoutWithCube,{})})})]}):jsxRuntimeExports.jsxs("div",{className:"relative overflow-hidden bg-black flex flex-col items-center justify-center h-auto py-8 min-h-screen",style:{width:"100vw",minWidth:"100vw",marginLeft:"calc(-50vw + 50%)",marginRight:"calc(-50vw + 50%)"},children:[jsxRuntimeExports.jsx("div",{ref:l,className:"absolute inset-0 -top-16",style:{width:"100%",height:"calc(100% + 64px)"}}),jsxRuntimeExports.jsx("div",{className:"relative z-20 w-full flex flex-col items-center justify-center max-w-screen-sm mx-auto px-2",children:jsxRuntimeExports.jsx(VerticalLayoutWithCube,{isMobile:!0})})]})}const VerticalLayoutWithCube=({isMobile:e=!1})=>jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center w-full",children:[jsxRuntimeExports.jsx("div",{className:"w-full max-w-[160px] xs:max-w-[180px] sm:max-w-[200px] md:max-w-[220px] lg:max-w-[240px] xl:max-w-[260px] flex justify-center items-center mb-4 sm:mb-6 lg:mb-8 -mt-10 sm:-mt-0",children:jsxRuntimeExports.jsx("img",{src:"/LandingPage/elements/cube.gif",alt:"Crypto Security GIF",className:"w-full h-auto rounded-xl shadow-lg",loading:"lazy"})}),jsxRuntimeExports.jsx("div",{className:"mb-2 sm:mb-4 lg:mb-6 w-full",children:jsxRuntimeExports.jsx("h1",{className:"font-['Righteous'] font-bold text-center responsive-coinguard-text",children:"coinguard"})})]});function TopHero(){return jsxRuntimeExports.jsx(TextHoverEffectDemo,{})}function Home(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"Coinguard â All-in-One Web3 Security: Scans, Audits, AI & NFTs"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Coinguard is your all-in-one Web3 security platform. Scan tokens, run audits, track whales, chat with Coinguard AI, and generate NFTs â all in one place."}),jsxRuntimeExports.jsx(TopHero,{}),jsxRuntimeExports.jsx(HeroSection,{}),jsxRuntimeExports.jsx(ServiceCards,{}),jsxRuntimeExports.jsx(FeaturesSection,{}),jsxRuntimeExports.jsx(AppPromo,{}),jsxRuntimeExports.jsx(NFTCard,{}),jsxRuntimeExports.jsx(VerifiedBy,{}),jsxRuntimeExports.jsx(FeatureCards,{}),jsxRuntimeExports.jsx(BlogList,{}),jsxRuntimeExports.jsx(NewsletterBox,{})]})}function Privacypolicy(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"Coinguard Privacy Policy â Your Data Protection & Security Assurance"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Explore Coinguardâs Privacy Policy: how we
1185collect, use, and protect your data. Learn about your privacy rights, security practices, and commitment to transparency in our Web3 security platform."}),jsxRuntimeExports.jsx("meta",{name:"keywords",content:"Coinguard Privacy Policy, Data Protection, Web3 Privacy, Blockchain Security Privacy, Crypto Data Security, User Privacy Web3"}),jsxRuntimeExports.jsxs("div",{className:"bg-black text-white px-6 py-10 max-w-5xl mx-auto",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold mb-2 font-['DM Sans']",children:"Privacy Policy"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-400 mb-0 font-['Manrope']",children:"Effective Date: June 2025"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-400 mb-4 font-['Manrope']",children:"Last Updated: June 9, 2025"}),jsxRuntimeExports.jsxs("section",{className:"space-y-0 py-4 text-white ",children:[jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Coinguard respects your privacy. This Privacy Policy explains how we collect, use, and protect your personal data when you use our website, tools, and services."}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"1. What Information We Collect"}),jsxRuntimeExports.jsxs("ul",{className:" list-inside space-y-1 font-['Manrope']",children:[jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Directly from You:"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside",children:[jsxRuntimeExports.jsx("li",{children:"Email address (if you subscribe or register)"}),jsxRuntimeExports.jsx("li",{children:"Feedback or messages sent to supp
1185ort"}),jsxRuntimeExports.jsx("li",{children:"Payment information (for premium tiers via secure third parties)"})]})]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Automatically via Usage:"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside",children:[jsxRuntimeExports.jsx("li",{children:"IP address, device/browser type"}),jsxRuntimeExports.jsx("li",{children:"Approximate location"}),jsxRuntimeExports.jsx("li",{children:"Platform behavior (pages viewed, buttons clicked)"})]})]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Blockchain Data:"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside",children:[jsxRuntimeExports.jsx("li",{children:"Wallet addresses connected"}),jsxRuntimeExports.jsx("li",{children:"Token holdings and transaction history"}),jsxRuntimeExports.jsx("li",{children:"On-chain activity analytics"})]})]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Cookies and Tracking:"})," ","Session identifiers, analytics cookies, preferences"]})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"2. How We Use Your Information"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("li",{children:"Provide platform access and personalize your experience"}),jsxRuntimeExports.jsx("li",{children:"Analyze wallet/token data and provide insights"}),jsxRuntimeExports.jsx("li",{children:"Display sentiment and risk alerts"}),jsxRuntimeExports.jsx("li",{children:"Customer support and fraud prevention"}),jsxRuntimeExports.jsx("li",{children:"Platform improvements"})]}),jsxRuntimeExports.jsx("p",{className:"mt-2",children:"We do not sell your personal data."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"3. AI & Machine Learning Use"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Our AI systems may process your interactions to offer recommendations detect threats and provide insights. This is done pseudonymously and not used to personally identify you."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"4. Data Sharing"}),jsxRuntimeExports.jsx("p",{className:'font-["Manrope"]',children:"We may share limited data with:"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("li",{children:"Payment processors (e.g., Stripe)"}),jsxRuntimeExports.jsx("li",{children:"Cloud hosting partners"}),jsxRuntimeExports.jsx("li",{children:"Audit & AI vendors (under NDA)"}),jsxRuntimeExports.jsx("li",{children:"Law enforcement (if legally required)"})]}),jsxRuntimeExports.jsx("p",{className:"mt-2 font-['Manrope']",children:"We do not sell, rent, or trade your data for marketing."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"5. Wallet & Token Analytics"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("li",{children:"We analyze only public on-chain data"}),jsxRuntimeExports.jsx("li",{children:"Pseudonymized for user protection"}),jsxRuntimeExports.jsx("li",{children:"We never ask for or store private keys"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"6. Your Rights"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("li",{children:"View your stored data"}),jsxRuntimeExports.jsx("li",{children:"Request account deletion"}),jsxRuntimeExports.jsx("li",{children:"Opt-out of emails or cookies"}),jsxRuntimeExports.jsx("li",{children:"Revoke connected wallets"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"7. Data Security"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside space-y-0 font-['Manrope']",children:[jsxRuntimeExports.jsx("li",{children:"Encryption at rest and in transit"}),jsxRuntimeExports.jsx("li",{children:"Token-level API access"}),jsxRuntimeExports.jsx("li",{children:"Role-based access control"}),jsxRuntimeExports.jsx("li",{children:"Regular security audits"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"8. International Data Transfers"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Your data may be processed or stored in other countries. By using Coinguard, you consent to these transfers."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"9. Childrenâs Privacy"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Coinguard is not intended for users under 18. We do not knowingly collect data from minors."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"10. Changes to This Policy"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"We may update this policy. Changes will be posted here with an updated effective date."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM Sans']",children:"11. Contact"}),jsxRuntimeExports.jsxs(Link,{to:"mailto:[email protected]",className:"font-[Manrope]",children:["Email:"," ",jsxRuntimeExports.jsx("span",{className:"text-blue-500",children:"[email protected]"})]})]})]})]})]})}function TermsOfService(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("title",{children:"Coinguard: Terms Of Service"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Coinguard: AI-driven DeFi security platform protects traders from memecoin scams, rug pulls, and risks with real-time analytics and contract audits."}),jsxRuntimeExports.jsxs("div",{className:"bg-black text-white px-6 py-10 max-w-5xl mx-auto ",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold mb-2 font-['DM_Sans']",children:"Terms of Service"}),jsxRuntimeExports.jsxs("p",{className:"text-gray-400 mb-4 font-['Manrope']",children:["Effective Date: June 2025 ",jsxRuntimeExports.jsx("br",{}),"Last Updated: June 9, 2025"]}),jsxRuntimeExports.jsxs("section",{className:"space-y-0 py-4 text-white ",children:[jsxRuntimeExports.jsxs("p",{className:"font-['Manrope']",children:["Welcome to ",jsxRuntimeExports.jsx("strong",{children:"Coinguard"}),' ("Platform", "we", "our", or "us"). These Terms of Service ("Terms") govern your access to and use of our website (',jsxRuntimeExports.jsx("a",{href:"https://Coinguard.ai",className:"text-blue-400 underline",children:"https://Coinguard.ai"}),'), mobile and web applications, and services including AI tools, portfolio analysis, token scanning, and more (collectively, the "Services").']}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"By accessing or using Coinguard, you agree to these Terms. If not, please do not use our Services."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"1. Eligibility"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"You must be at least 18 years old and legally capable of entering a contract to use our Services."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"2. Platform Overview"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Coinguard is an AI-powered platform to detect risky tokens, scams (rug pulls, honeypots), and developer threats."}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside font-['Manrope'] space-y-0 pl-6",children:[jsxRuntimeExports.jsx("li",{children:"Token Scanner"}),jsxRuntimeExports.jsx("li",{children:"Rug Shield"}),jsxRuntimeExports.jsx("li",{children:"Portfolio Tracker"}),jsxRuntimeExports.jsx("li",{children:"Sentiment Aggregation"}),jsxRuntimeExports.jsx("li",{children:"AI Chat Assistant"}),jsxRuntimeExports.jsx("li",{children:"Token Utility via $CGT"})]}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"3. No Investment Advice"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Coinguard provides information, not financial or investment advice. Always consult a licensed advisor before making decisions."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"4. User Accounts"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Users may need to register. Keep your info accurate and your credentials safe. You're responsible for activity on your account."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"5. Acceptable Use"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc font-['Manrope'] list-inside space-y-0 pl-6",children:[jsxRuntimeExports.jsx("li",{children:"Don't interfere with our systems"}),jsxRuntimeExports.jsx("li",{children:"No bots or scraping"}),jsxRuntimeExports.jsx("li",{children:"Don't upload malware"}),jsxRuntimeExports.jsx("li",{children:"No impersonation"}),jsxRuntimeExports.jsx("li",{children:"No reverse-engineering"})]}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"6. Token & Wallet Integration"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"Coinguard reads public blockchain data. We never store or access private keys. Keep your wallet credentials private."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"7.
1185CGT Token Utility"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc font-['Manrope'] list-inside space-y-0 pl-6",children:[jsxRuntimeExports.jsx("li",{children:"Unlock premium tools"}),jsxRuntimeExports.jsx("li",{children:"Staking for access"}),jsxRuntimeExports.jsx("li",{children:"Early insights"}),jsxRuntimeExports.jsx("li",{children:"Community rewards"})]}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"$CGT has no guaranteed returns. Use at your own risk."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"8. Intellectual Property"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"All content is protected. Donât use, copy, or reproduce without permission."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"9. Third-Party Links"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"We integrate third-party tools (e.g., DexTools, Twitter). We aren't responsible for their content or practices."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"10. Termination"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"We may terminate your access for violating Terms or posing risks to the platform."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"11. Limitation of Liability"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"We are not liable for:"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc list-inside font-['Manrope'] space-y-0 pl-6",children:[jsxRuntimeExports.jsx("li",{children:"Financial loss"}),jsxRuntimeExports.jsx("li",{children:"Scams or exploits"}),jsxRuntimeExports.jsx("li",{children:"Analytics errors"}),jsxRuntimeExports.jsx("li",{children:"Service interruptions"})]}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"12. Modifications"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"We may update Terms at any time. Continued use means you accept the updated Terms."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"13. Governing Law"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:"These Terms are governed by the laws of the jurisdiction where Coinguard is registered."}),jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold text-white pt-4 font-['DM_Sans']",children:"14. Contact"}),jsxRuntimeExports.jsx("p",{className:"font-['Manrope']",children:jsxRuntimeExports.jsxs(Link,{to:"mailto:[email protected]",children:["Email:"," ",jsxRuntimeExports.jsx("span",{className:"text-blue-500",children:" [email protected]"})]})})]})]})]})}function LandingPage(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Navbar,{}),jsxRuntimeExports.jsx("div",{className:"pt-[100px] md:pt-[100px]",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Home,{})}),jsxRuntimeExports.jsx(Route,{path:"/blog",element:jsxRuntimeExports.jsx(BlogList,{})}),jsxRuntimeExports.jsx(Route,{path:"/blog/:id",element:jsxRuntimeExports.jsx(BlogDetail,{})}),jsxRuntimeExports.jsx(Route,{path:"/privacy-policy",element:jsxRuntimeExports.jsx(Privacypolicy,{})}),jsxRuntimeExports.jsx(Route,{path:"/terms-of-service",element:jsxRuntimeExports.jsx(TermsOfService,{})}),jsxRuntimeExports.jsx(Route,{path:"/cookie-policy",element:jsxRuntimeExports.jsx(Cookiepolicy,{})}),jsxRuntimeExports.jsx(Route,{path:"/disclaimer",element:jsxRuntimeExports.jsx(Disclaimer,{})}),jsxRuntimeExports.jsx(Route,{path:"/about",element:jsxRuntimeExports.jsx(AboutCoinguard,{})}),jsxRuntimeExports.jsx(Route,{path:"/roadmap",element:jsxRuntimeExports.jsx(Roadmap,{})}),jsxRuntimeExports.jsx(Route,{path:"/newsletter",element:jsxRuntimeExports.jsx(NewsletterBox,{})}),jsxRuntimeExports.jsx(Route,{path:"/contact",element:jsxRuntimeExports.jsx(ContactForm,{})}),jsxRuntimeExports.jsx(Route,{path:"/feature",element:jsxRuntimeExports.jsx(FeaturesSection,{})})]})}),jsxRuntimeExports.jsx(Footer,{})]})}const Header=({toggleSidebar:e,isSidebarOpen:t})=>jsxRuntimeExports.jsx("header",{className:`block lg:hidden fixed top-0 left-0 right-0 z-50 px-4 sm:px-6 border-b border-gray-800 h-14 flex items-center transition-all duration-300 ${t?"bg-black/50 backdrop-blur-md":"bg-black"}`,children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between w-full gap-4",children:[jsxRuntimeExports.jsx("div",{className:"flex-shrink-0",children:jsxRuntimeExports.jsx("img",{src:"/App/logo/textlogo.png",alt:"CoinGuard Logo",className:`h-6 w-auto object-contain transition-all duration-300 ${t?"blur-sm op
1185acity-70":""}`})}),jsxRuntimeExports.jsxs("button",{className:"relative w-6 h-6 flex items-center justify-center",onClick:e,children:[jsxRuntimeExports.jsx("span",{className:`absolute h-0.5 w-full bg-white transform transition duration-300 ease-in-out ${t?"rotate-45":"-translate-y-2"}`}),jsxRuntimeExports.jsx("span",{className:`absolute h-0.5 w-full bg-white transition-all duration-300 ease-in-out ${t?"opacity-0":"opacity-100"}`}),jsxRuntimeExports.jsx("span",{className:`absolute h-0.5 w-full bg-white transform transition duration-300 ease-in-out ${t?"-rotate-45":"translate-y-2"}`})]})]})});function HiOutlineDocumentText(e){return GenIcon({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},child:[]}]})(e)}const Sidebar=({isOpen:e,setIsOpen:t,activePage:r})=>{const n=useNavigate(),s=[{id:"home",icon:TbLogout2,label:"Back to Home",route:"/",sameTab:!0},{id:"ai-token-scan",icon:GrScan,label:"Token Scan",route:"/app/ai-token-scan"},{id:"liquidity-scanner",icon:FiDroplet,label:"Liquidity Scanner",route:"/app/liquidity-scanner"},{id:"rugshield",icon:BsShieldCheck,label:"RugShield",route:"/app/rugshield"},{id:"ai-assistant",icon:IoChatbubbleEllipsesOutline,label:"Coinguard AI",route:"/app/ai-chat"},{id:"honeypot-detector",icon:MdCrisisAlert,label:"Honeypot Detector",route:"/app/honeypot-detector"},{id:"whale-tracker",icon:GiWhaleTail,label:"Whale Tracker",route:"/app/whale-tracker"},{id:"nft-generator",icon:RiNftFill,label:"NFT Generator",route:"/app/nft-generator"}];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[e&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-40 lg:hidden",onClick:()=>t(!1)}),jsxRuntimeExports.jsx("aside",{className:` 1186 ${e?"translate-x-0":"translate-x-full"} 1187 lg:translate-x-0 1188 fixed top-0 lg:left-0 lg:right-auto 1189 right-0 w-72 sm:w-80 lg:w-64 h-full lg:h-screen 1190 bg-black/95 backdrop-blur-md border-l lg:border-l-0 lg:border-r border-gray-800 1191 z-50 transition-transform duration-300 ease-in-out 1192 `,children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"px-4 py-3 sm:py-4 flex-shrink-0 flex items-center justify-between h-[55px] lg:h-16",children:[jsxRuntimeExports.jsx("div",{className:"lg:hidden",children:jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-lg",children:"Menu"})}),jsxRuntimeExports.jsx("img",{src:"/App/logo/textlogo.png",alt:"CoinGuard Logo",className:"hidden lg:block h-6 sm:h-[38px] w-auto object-contain"}),e&&jsxRuntimeExports.jsx("button",{onClick:()=>t(!1),className:"p-2 rounded-lg text-gray-400 hover:text-white hover:bg-gray-800/50 transition-all duration-200 lg:hidden",children:jsxRuntimeExports.jsx(FiX,{className:"w-5 h-5"})})]}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-800 w-full mt-0 lg:mt-[4px]"}),jsxRuntimeExports.jsx("nav",{className:"flex-1 px-3 py-4 overflow-y-auto",style:{scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none"},children:jsxRuntimeExports.jsx("div",{className:"space-y-1",children:s.map(a=>{const l=a.icon,u=r===a.id;return jsxRuntimeExports.jsxs("button",{onClick:()=>{a.route?(n(a.route),t(!1)):a.link&&(a.sameTab?window.location.href=a.link:window.open(a.link,"_blank"))},className:`group w-full flex items-center gap-3 px-3 py-3 rounded-lg transition-all duration-200 border ${u?"bg-gradient-to-r from-purple-500/20 to-blue-500/20 border-gray-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-800/50 border-transparent hover:border-gray-600"}`,children:[jsxRuntimeExports.jsx(l,{className:`w-5 h-5 flex-shrink-0 ${u?"text-purple-300":""}`}),jsxRuntimeExports.jsx("span",{className:"font-medium text-sm lg:text-base flex-1 text-left",children:a.label}),u&&jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-[#ccff00] flex-shrink-0"})]},a.id)})})}),jsxRuntimeExports.jsx("div",{className:"px-3 py-4 border-t border-gray-800 flex-shrink-0",children:jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{window.location.href="https://blog.coinguard.ai/",t(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-lg transition-all duration-200 border text-gray-400 hover:text-white hover:bg-gray-800/50 border-transparent hover:border-gray-600",children:[jsxRuntimeExports.jsx(HiOutlineDocumentText,{className:"w-5 h-5 flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium flex-1 text-left",children:"Blogs"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{n("/app/support"),t(!1)},className:`w-full flex items-center gap-3 px-3 py-2.5 rounded-lg transition-all duration-200 border ${r==="support"?"bg-gradient-to-r from-purple-500/20 to-blue-500/20 border-gray-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-800/50 border-transparent hover:border-gray-600"}`,children:[jsxRuntimeExports.jsx(BsQuestionCircle,{className:`w-5 h-5 flex-shrink-0 ${r==="support"?"text-purple-300":""}`}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium flex-1 text-left",children:"Support"}),r==="support"&&jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-[#ccff00] flex-shrink-0"})]})]})})]})}),jsxRuntimeExports.jsx("style",{children:` 1193 nav::-webkit-scrollbar {
1194 display: none; 1195 } 1196 `})]})},Support=()=>{const e=["General Inquiry","Technical Issue","Account Problem","Billing"],[t,r]=reactExports.useState(""),[n,s]=reactExports.useState(!1),[a,l]=reactExports.useState({email:"",subject:"",message:""}),[u,d]=reactExports.useState(!1),[p,h]=reactExports.useState(!1),[x,w]=reactExports.useState(""),[g,b]=reactExports.useState(""),[v,E]=reactExports.useState(!1),[j,R]=reactExports.useState(""),T=V=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(V),z=async V=>{if(V.preventDefault(),w(""),!T(a.email)){w("Please enter a valid email address.");return}if(!t){w("Please select a category from the dropdown.");return}if(!a.subject.trim()){w("Subject is required. Please enter a subject.");return}if(a.subject.trim().length<5){w("Subject is too short. Please enter at least 5 characters.");return}if(!a.message.trim()){w("Message is required. Please describe your issue.");return}if(a.message.trim().length<10){w("Message is too short. Please enter at least 10 characters.");return}d(!0);try{if(!(await fetch("https://coinguardbackend.up.railway.app/api/ticket",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a.email,category:t,subject:a.subject,message:a.message})})).ok)throw new Error("Failed to submit ticket");d(!1),h(!0),l({email:"",subject:"",message:""}),r("")}catch($){d(!1),w("Failed to submit ticket. Please try again later."),console.error("Error submitting ticket:",$)}},L=async()=>{if(R(""),!T(g)){R("Please enter a valid email address.");return}d(!0);try{const V=await fetch("https://coinguardbackend.up.railway.app/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:g})}),$=await V.json();if(!V.ok){if(V.status===400||V.status===409){d(!1),R("You have already subscribed to our newsletter.");return}throw new Error("Failed to subscribe")}d(!1),E(!0),b(""),setTimeout(()=>{E(!1)},3e3)}catch(V){d(!1),R("Failed to subscribe. Please try again later."),console.error("Error subscribing:",V)}};return jsxRuntimeExports.jsxs("section",{className:"px-4 sm:px-6 md:px-16 py-4 sm:py-6 md:py-8 bg-[#121212] text-white",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl xs:text-3xl sm:text-4xl font-bold mb-6 text-center",children:"Get in Touch"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[jsxRuntimeExports.jsx("div",{className:"lg:col-span-2 bg-black p-4 sm:p-6 rounded-lg border border-[#333]",children:p?jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:jsxRuntimeExports.jsxs("div",{className:"text-center py-8",children:[jsxRuntimeExports.jsx(FaRegCheckCircle,{className:"w-16 h-16 text-[#ccff00] mx-auto mb-4"}),jsxRuntimeExports.jsx("h3",{className:"text-xl font-semibold mb-2 text-white",children:"Your submission was successful."}),jsxRuntimeExports.jsx("p",{className:"text-gray-400 mb-6",children:"We will review it and respond within 24 hours."}),jsxRuntimeExports.jsx("button",{onClick:()=>h(!1),className:"px-6 py-2.5 bg-[#ccff00] text-black font-medium rounded-lg hover:bg-[#ccff00]/90 transition-all duration-300",children:"Submit Another Ticket"})]})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"text-lg sm:text-xl font-semibold mb-4",children:"Submit a Support Ticket"}),jsxRuntimeExports.jsxs("form",{onSubmit:z,className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium mb-1",children:"Email Address"}),jsxRuntimeExports.jsx("input",{type:"email",placeholder:"[email protected]",value:a.email,onChange:V=>l({...a,email:V.target.value}),className:"w-full px-3 py-3 sm:py-4 rounded-md bg-black border border-gray-600 focus:outline-none focus:border-[#ccff00] placeholder-gray-400 text-sm"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium mb-1",children:"Category"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsxs("button",{type:"button",onClick:()=>s(!n),className:"w-full text-left px-3 py-3 sm:py-4 pr-10 rounded-md bg-black border border-gray-600 focus:outline-none focus:border-[#ccff00] text-sm",children:[t||"
1196Select a category",jsxRuntimeExports.jsx(IoMdArrowDropdown,{className:`absolute right-3 top-1/2 transform -translate-y-1/2 text-[#999] pointer-events-none transition-transform duration-300 ease-in-out ${n?"rotate-180":"rotate-0"}`})]}),n&&jsxRuntimeExports.jsx("ul",{className:"absolute z-20 mt-2 w-full bg-[#0d0d0d]/80 backdrop-blur-md border border-[#333] rounded-lg shadow-xl overflow-hidden",children:e.map((V,$)=>jsxRuntimeExports.jsx("li",{onClick:()=>{r(V),s(!1)},className:"px-4 py-3 hover:bg-[#ccff00] hover:bg-opacity-20 transition-all duration-300 cursor-pointer text-white text-sm",children:V},$))})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium mb-1",children:"Subject"}),jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Brief details of your issue",value:a.subject,onChange:V=>l({...a,subject:V.target.value}),className:"w-full px-3 py-3 sm:py-4 rounded-md bg-black border border-gray-600 focus:outline-none focus:border-[#ccff00] placeholder-gray-400 text-sm"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"block text-sm font-medium mb-1",children:"Message"}),jsxRuntimeExports.jsx("textarea",{rows:"4",placeholder:"Please describe your issue in detail",value:a.message,onChange:V=>l({...a,message:V.target.value}),className:"w-full px-3 py-3 sm:py-4 rounded-md bg-black border border-gray-600 focus:outline-none focus:border-[#ccff00] placeholder-gray-400 text-sm"})]}),x&&jsxRuntimeExports.jsx("div",{className:"text-red-500 text-sm font-medium",children:x}),jsxRuntimeExports.jsx("div",{className:"relative w-full mt-4",children:jsxRuntimeExports.jsx("button",{type:"submit",disabled:u,className:"relative w-full px-6 py-2.5 bg-white/5 border border-white/30 hover:border-[#CCFF00be] transition-all duration-300 rounded-lg text-sm disabled:opacity-50",children:u?jsxRuntimeExports.jsx(ImSpinner2,{className:"animate-spin h-4 w-4 text-[#ccff00] mx-auto"}):jsxRuntimeExports.jsx("span",{className:"text-white font-medium",children:"Submit Ticket"})})})]})]})}),jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"bg-black p-4 sm:p-6 rounded-lg border border-[#333] text-sm",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Contact Information"}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-600 mb-6"}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("span",{className:"font-semibold",children:"Email:"}),jsxRuntimeExports.jsx("br",{}),"[email protected]"]}),jsxRuntimeExports.jsxs("p",{className:"mt-4",children:[jsxRuntimeExports.jsx("span",{className:"font-semibold",children:"Response Time:"}),jsxRuntimeExports.jsx("br",{}),"Within 24 hours"]}),jsxRuntimeExports.jsxs("p",{className:"mt-4",children:[jsxRuntimeExports.jsx("span",{className:"font-semibold",children:"Live Chat:"}),jsxRuntimeExports.jsx("br",{}),"Available 24/7"]})]}),jsxRuntimeExports.jsxs("div",{className:"bg-black p-4 sm:p-6 rounded-lg border border-[#333] text-sm",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold mb-4",children:"FAQ"}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-600 mb-6"}),jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[jsxRuntimeExports.jsx("p",{className:"font-semibold",children:"Is my info safe? "}),jsxRuntimeExports.jsx("p",{className:"text-gray-400",children:"Yes, all communication is secure and your information is handled confidentially."})]}),jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[jsxRuntimeExports.jsx("p",{className:"font-semibold",children:"How do I contact support?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400",children:"Reach out to our team using the contact options on this page, and weâll assist you promptly."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-semibold",children:"Response time?"}),jsxRuntimeExports.jsx("p",{className:"text-gray-400",children:"Yes, all communication is secure and
1196your information is handled confidentially."})]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"py-4 sm:py-6 md:py-8 space-y-8 sm:space-y-12",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl xs:text-3xl sm:text-4xl font-bold text-center text-white",children:"Join Our Newsletter"}),jsxRuntimeExports.jsxs("div",{className:"relative bg-black border border-white/30 p-4 xs:p-6 sm:p-8 lg:p-12 group transition-all duration-300 hover:border-[#CCFF00]/50",children:[jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 border-t border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 border-t border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-3 h-3 border-b border-l border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 border-b border-r border-white/30 group-hover:border-[#CCFF00] transition-all duration-500 delay-75"}),jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col lg:flex-row gap-6 sm:gap-10 items-center space-y-4 lg:space-y-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 w-full",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center mb-3 sm:mb-4",children:[jsxRuntimeExports.jsx(IoMailOutline,{className:"w-5 h-5 xs:w-6 xs:h-6 sm:w-7 sm:h-7 text-[#CCFF00] mr-2 sm:mr-3"}),jsxRuntimeExports.jsx("span",{className:"text-xs xs:text-sm font-mono tracking-widest text-[#CCFF00]",children:"SECURITY UPDATES"})]}),jsxRuntimeExports.jsxs("h2",{className:"text-xl xs:text-2xl sm:text-3xl md:text-4xl font-medium text-white leading-tight mb-3 sm:mb-4",children:["Stay ",jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]",children:"Informed"})]}),jsxRuntimeExports.jsx("p",{className:"text-white/70 text-sm xs:text-base max-w-2xl mb-4 sm:mb-6 xs:mb-8",children:"Get critical security alerts, platform updates, and threat analysis delivered securely to your inbox."}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full",children:[jsxRuntimeExports.jsx("input",{type:"email",placeholder:"[email protected]",value:g,onChange:V=>
1196b(V.target.value),className:"flex-grow px-4 py-2 xs:px-5 xs:py-3 bg-white/5 border border-white/30 focus:border-[#CCFF00] focus:outline-none text-white placeholder-white/40 transition-all text-xs xs:text-sm"}),jsxRuntimeExports.jsx("button",{onClick:L,disabled:u||v,className:"relative px-4 py-2 xs:px-5 xs:py-3 sm:px-6 sm:py-3 bg-transparent text-white font-medium hover:text-[#CCFF00] transition-all flex items-center justify-center border border-white/30 hover:border-[#CCFF00] group/button min-w-[120px] sm:min-w-[140px] text-xs xs:text-sm",children:u?jsxRuntimeExports.jsx(ImSpinner2,{className:"animate-spin h-4 w-4 xs:h-5 xs:w-5 text-[#CCFF00]"}):v?jsxRuntimeExports.jsx(FaRegCheckCircle,{className:"h-4 w-4 xs:h-5 xs:w-5 text-[#CCFF00]"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"relative z-10",children:"Subscribe"}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-[#CCFF00] opacity-0 group-hover/button:opacity-10 transition-opacity duration-300"}),jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 h-3 w-3 xs:h-4 xs:w-4 group-hover/button:translate-x-1 group-hover/button:stroke-[#CCFF00] transition-all",children:[jsxRuntimeExports.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),jsxRuntimeExports.jsx("polyline",{points:"12 5 19 12 12 19"})]})]})})]}),j&&jsxRuntimeExports.jsx("p",{className:"text-red-500 mt-2 text-xs xs:text-sm font-medium",children:j}),v&&jsxRuntimeExports.jsx("p",{className:"text-[#CCFF00] mt-2 text-xs xs:text-sm font-medium",children:"You're subscribed!"})]}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block relative w-32 h-32 sm:w-40 sm:h-40 md:w-48 md:h-48",children:jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-80 group-hover:opacity-100 transition-opacity duration-300",children:jsxRuntimeExports.jsx("div",{className:"w-28 h-28 sm:w-36 sm:h-36 md:w-40 md:h-40 border border-[#CCFF00]/20 group-hover:border-[#CCFF00]/40 rotate-45 transition-all duration-700 flex items-center justify-center",children:jsxRuntimeExports.jsx(IoMailOutline,{className:"w-12 h-12 sm:w-14 sm:h-14 md:w-16 md:h-16 text-[#CCFF00]/60 group-hover:text-[#CCFF00] -rotate-45 transition-all duration-500"})})})})]})]})]})]})};function GoAlertFill(e){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"},child:[]}]})(e)}const CHAINS$4=[{name:"Solana",key:"solana"},{name:"Ethereum",key:"ethereum"},{name:"BSC",key:"binance"}],LiquiditySearch=({address:e,setAddress:t,chain:r,setChain:n,loading:s,fetchScan:a,hasSearched:l,error:u})=>{const[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(""),[w,g]=reactExports.useState(""),b=reactExports.useRef(null),v=reactExports.useRef(null);reactExports.useEffect(()=>{r||n("Solana")},[r,n]),reactExports.useEffect(()=>{let T;return s?T=setInterval(()=>{g(z=>z.length>=3?"":z+".")},500):g(""),()=>clearInterval(T)},[s]),reactExports.useEffect(()=>{function T(z){const L=b.current?.querySelector('button[type="button"]');d&&!L?.contains(z.target)&&!v.current?.contains(z.target)&&p(!1)}return document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}},[d]);const E=CHAINS$4.find(T=>T.name===r)||CHAINS$4[0],j=()=>
1196{if(!e.trim()){x("Please enter a token address");return}x(""),a()},R=T=>{T.key==="Enter"&&j()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1197 @media (max-width: 429px) { 1198 .search-wrapper { 1199 flex-direction: column !important; 1200 align-items: stretch !important; 1201 } 1202 .search-input { 1203 margin-right: 0 !important; 1204 margin-bottom: 12px !important; 1205 height: 56px !important; 1206 } 1207 .scan-btn { 1208 width: 100% !important; 1209 height: 48px !important; 1210 } 1211 } 1212 1213 @media (min-width: 431px) { 1214 .search-wrapper { 1215 flex-direction: row !important; 1216 align-items: center !important; 1217 } 1218 .search-input { 1219 margin-right: 12px; 1220 margin-bottom: 0 !important; 1221 height: 60px !important; 1222 } 1223 .scan-btn { 1224 width: 140px; 1225 height: 60px !important; 1226 flex-shrink: 0; 1227 } 1228 } 1229 1230 /* Consistent dropdown background for all screens */ 1231 .dropdown-background { 1232 background-color: rgba(31, 31, 31, 0.95) !important; 1233 backdrop-filter: blur(10px); 1234 } 1235 `}),jsxRuntimeExports.jsxs("div",{className:"mb-6 relative",ref:b,children:[jsxRuntimeExports.jsxs("div",{className:"search-wrapper flex flex-col w-full",children:[jsxRuntimeExports.jsxs("div",{className:"search-input flex items-center h-16 rounded-xl bg-[#111] border border-[#333] px-3 mb-3 w-full",children:[jsxRuntimeExports.jsxs("button",{className:"flex items-center mr-2 pr-2 border-r border-[#333]",onClick:()=>p(T=>!T),type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${E.key}/info/logo.png`,alt:E.name,className:"w-7 h-7 mr-1"}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${d?"rotate-180":""}`})]}),jsxRuntimeExports.jsx("input",{className:"flex-1 text-white text-sm bg-transparent outline-none placeholder:text-white/40",placeholder:"Search Token By Address",value:e,onChange:T=>{t(T.target.value),h&&x("")},onKeyDown:R})]}),jsxRuntimeExports.jsx("button",{className:"scan-btn w-full h-12 bg-[#CCFF00]/10 rounded-lg flex items-center justify-center border border-[#CCFF00]/80 disabled:opacity-50",onClick:j,disabled:s,type:"button",children:s?jsxRuntimeExports.jsxs("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:["Searching",w]}):jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(AiOutlineScan,{className:"text-[#CCFF00]/80 text-xl mr-2"}),jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:"Search"})]})})]}),jsxRuntimeExports.jsx(AnimatePresence,{children:d&&jsxRuntimeExports.jsx(motion.div,{ref:v,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute top-[70px] left-0 rounded-lg py-1.5 w-48 z-50 border border-[#333] dropdown-background",children:CHAINS$4.map(T=>jsxRuntimeExports.jsxs("button",{className:"flex items-center w-full py-2.5 px-3 hover:bg-[#333]/50 rounded transition-colors",onClick:()=>{n(T.name),p(!1)},type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${T.key}/info/logo.png`,alt:T.name,className:"w-6 h-6 mr-2.5"}),jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:T.name})]},T.name))})}),h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdInfoOutline,{className:"text-[#FFC107]/80 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/80 text-lg font-semibold mb-1.5",children:"Address Required"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/70 text-sm font-normal text-center px-10 leading-5",children:h})]}),!l&&!u&&!h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdSearch,{className:"text-white/30 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-white/50 text-lg font-medium mb-2",children:"No search yet"}),jsxRuntimeExports.jsx("span",{className:"text-white/30 text-sm font-normal text-center px-10 leading-5",children:"Enter a token address to begin scanning"})]}),l&&e&&u&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(GoAlertFill,{className:"text-red-500 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-lg font-semibold mb-1.5",children:"Search Failed"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-sm font-normal text-center px-10 leading-5",children:u})]})]})]})},LiquidityOverview=({tokenData:e,chain:t,address:r,setAddress:n,setChain:s,loading:a,fetchScan:l,hasSearched:u,error:d,showOnlySearch:p=!1,showOnlyTokenInfo:h=!1,showOnlyRiskAndPool:x=!1,showOnlyTokenMetrics:w=!1})=>{const[g,b]=reactExports.useState(!1),[v,E]=reactExports.useState(!1);reactExports.useEffect(()=>{const $=()=>{b(window.innerWidth<=425),E(window.innerWidth<=768)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]);const j=$=>typeof $=="number"?$>=1e6?`$${($/1e6).toFixed(2)}M`:$>=1e3?`$${($/1e3).toFixed(2)}
1235K`:$.toLocaleString():$||"N/A",R=($,U=20)=>$?$.length<=U?$:`${$.substring(0,U)}...`:"Unknown Token",T=e?.topPools?.reduce(($,U)=>$+U.liquidityUSD,0)||0,z=($="")=>{const B=($.split("â")[0]?.trim()||"N/A").replace(/^[^a-zA-Z0-9]+/,"").trim();let P="#ccc";return B==="High Risk"?P="#ff4d4d":B==="Medium Risk"?P="#ff9900":B==="Elevated Risk"?P="#c1ae43ff":B==="Moderate Risk"&&(P="#89e14fff"),{label:B,color:P}},{label:L,color:V}=z(e?.token?.riskLevel);return p?jsxRuntimeExports.jsx("div",{style:{width:"100%",maxWidth:"100%",boxSizing:"border-box",padding:"0 "},children:jsxRuntimeExports.jsx(LiquiditySearch,{address:r,setAddress:n,chain:t,setChain:s,loading:a,fetchScan:l,hasSearched:u,error:d})}):h&&e?jsxRuntimeExports.jsx("div",{style:{marginTop:"-6px",width:"100%",maxWidth:"100%",boxSizing:"border-box",padding:"0 "},children:jsxRuntimeExports.jsx("div",{style:{backgroundColor:"#141416",borderRadius:"36px",padding:"30px 20px",marginBottom:"16px",height:"auto",minHeight:"450px",display:"flex",alignItems:"center"},children:jsxRuntimeExports.jsx("div",{style:{borderRadius:"36px",paddingTop:"12px",paddingBottom:"12px",width:"100%"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:"8px",paddingTop:"8px"},children:[jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(1.4rem, 2vw, 1.8rem)",fontWeight:"700",color:"#fff",textTransform:"capitalize",marginTop:"-30px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"280px",display:"block"},children:R(e.token?.name,20)}),jsxRuntimeExports.jsxs("span",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.2rem)",fontWeight:"500",color:"#8ca714ff",marginTop:"4px",marginBottom:"40px"},children:["$",e.token?.symbol||"N/A"]}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"150px",marginBottom:"40px",position:"relative"},children:[jsxRuntimeExports.jsx("svg",{width:"150",height:"150",viewBox:"0 0 30 42",style:{zIndex:2,position:"absolute",top:"50%",left:"50%",transform:"translate(-75px, -78px)",maxWidth:"100%",height:"auto"},children:jsxRuntimeExports.jsx("path",{fill:"transparent",d:"m13.552735,2.0426703 q1.5,3.7999997 10,14.9999997 a12.8,12.8 0 1 1 -20.0000007,0 Q12.052736,5.84267 13.552735,2.0426703Z",stroke:"#ffffff",strokeWidth:1.3})}),jsxRuntimeExports.jsx("div",{style:{height:"96px",width:"88px",overflow:"hidden",borderRadius:"50px",position:"relative",marginTop:"14px",left:"-5px"},children:jsxRuntimeExports.jsx(motion.div,{initial:{rotate:0,top:"60%"},animate:{rotate:360,top:"42%"},transition:{rotate:{duration:5,repeat:1/0,ease:"linear",repeatType:"loop"},top:{duration:5,ease:"linear"}},style:{backgroundColor:"#5bd6ffff",position:"absolute",height:"200%",width:"200%",borderRadius:"38px",left:"-50%"}})})]}),jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(1rem, 2vw, 1.4rem)",fontWeight:"600",marginBottom:"4px",display:"block"},children:j(T)}),jsxRuntimeExports.jsx("span",{style:{color:"#ccc",fontSize:"clamp(0.8rem, 1.5vw, 1rem)",fontWeight:"500"},children:"Total Liquidity (USD)"})]})]})})})}):x&&e?jsxRuntimeExports.jsxs("div",{style:{marginTop:"-6px",width:"100%",maxWidth:"100%",boxSizing:"border-box",padding:"0 "},children:[jsxRuntimeExports.jsx("div",{style:{marginBottom:"20px"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"#1c1c1f",padding:"14px",borderRadius:"18px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",color:"#ccc"},children:"Risk Level"}),jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.2rem)",fontWeight:"600",color:V},children:L})]}),jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"#1c1c1f",padding:"14px",borderRadius:"18px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",color:"#ccc"},children:"Liquidity Score"}),jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.2rem)",color:"#fff",fontWeight:"600"},children:e.token?.liquidityScore?.toFixed(1)||"N/A"})]})]})}
1235),jsxRuntimeExports.jsxs("div",{style:{marginBottom:"16px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16px",letterSpacing:"1px",display:"block",fontFamily:"inherit",textTransform:"none",lineHeight:"normal"},children:"POOL INFO"}),jsxRuntimeExports.jsx("div",{style:{backgroundColor:"#141416",borderRadius:"12px",padding:"24px",minHeight:"160px"},children:jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"12px"},children:[jsxRuntimeExports.jsx(InfoCard,{label:"Total Supply",value:j(e.token?.totalSupply)}),jsxRuntimeExports.jsx(InfoCard,{label:"Market Cap",value:j(e.token?.marketCap)}),jsxRuntimeExports.jsx(CreatorAddressCard,{creatorAddress:e.token?.creatorAddress}),jsxRuntimeExports.jsx(InfoCard,{label:"Price USD",value:e.token?.priceUsd?`$${Number(e.token.priceUsd).toFixed(6)}`:"N/A"})]})})]})]}):w&&e?jsxRuntimeExports.jsx("div",{style:{marginTop:"-6px",width:"100%",maxWidth:"100%",boxSizing:"border-box",padding:"0 "},children:jsxRuntimeExports.jsxs("div",{style:{marginTop:"24px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16px",letterSpacing:"1px",display:"block"},children:"TOKEN METRICS"}),jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:v?"1fr":"repeat(auto-fit, minmax(200px, 1fr))",gap:"16px"},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"12px",padding:"20px",height:"80px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:v?"flex-start":"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px",textAlign:v?"left":"center"},children:"Total Transfers"}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",textAlign:v?"left":"center"},children:e?.token?.totalTransfers?.toLocaleString()||"N/A"})]}),jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"12px",padding:"20px",height:"80px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:v?"flex-start":"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px",textAlign:v?"left":"center"},children:"Launch Date"}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",textAlign:v?"left":"center"},children:e?.token?.launchDate?new Date(e?.token?.launchDate).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"N/A"})]}),jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"12px",padding:"20px",height:"80px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:v?"flex-start":"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px",textAlign:v?"left":"center"},children:"Holders"}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",textAlign:v?"left":"center"},children:e?.token?.holdersCount?.toLocaleString()||"N/A"})]})]})]})}):jsxRuntimeExports.jsxs("div",{style:{marginTop:"-6px",width:"100%",maxWidth:"100%",boxSizing:"border-box",padding:"0 "},children:[jsxRuntimeExports.jsx("div",{style:{marginBottom:"24px"},children:jsxRuntimeExports.jsx(LiquiditySearch,{address:r,setAddress:n,chain:t,setChain:s,loading:a,fetchScan:l,hasSearched:u,error:d})}),e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{backgroundColor:"#141416",borderRadius:"36px",padding:"20px",marginBottom:"16px"},children:jsxRuntimeExports.jsx("div",{style:{borderRadius:"36px",paddingTop:"12px",paddingBottom:"12px"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:"8px",paddingTop:"8px"},children:[jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(1.4rem, 2vw, 1.8rem)",fontWeight:"700",color:"#fff",textTransform:"capitalize",marginTop:"-30px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"280px",display:"block"},children:R(e?.token?.name,20)}),jsxRuntimeExports.jsxs("span",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.2rem)",fontWeight:"500",color:"#8ca714ff",marginTop:"4px",marginBottom:"40px"},children:["$",e?.token?.symbol||"N/A"]}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"150px",marginBottom:"40px",position:"relative"},children:[jsxRuntimeExports.jsx("svg",{width:"150",height:"150",viewBox:"0 0 30 42",style:{zIndex:2,position:"absolute",top:"50%",left:"50%",transform:"translate(-75px, -78px)",maxWidth:"100%",height:"auto"},children:jsxRuntimeExports.jsx("path",{fill:"transparent",d:"m13.552735,2.0426703 q1.5,3.7999997 10,14.9999997 a12.8,12.8 0 1 1 -20.0000007,0 Q12.052736,5.84267 13.552735,2.0426703Z",stroke:"#ffffff",strokeWidth:1.3})}),jsxRuntimeExports.jsx("div",{style:{height:"96px",width:"88px",overflow:"hidden",borderRadius:"50px",position:"relative",marginTop:"14px",left:"-5px"},children:jsxRuntimeExports.jsx(motion.div,{initial:{rotate:0,top:"60%"},animate:{rotate:360,top:"42%"},transition:{rotate:{duration:5,repeat:1/0,ease:"linear",repeatType:"loop"},top:{duration:5,ease:"linear"}},style:{backgroundColor:"#5bd6ffff",position:"absolute",height:"200%",width:"200%",borderRadius:"38px",left:"-50%"}})})]}),jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(1rem, 2vw, 1.4rem)",fontWeight:"600",marginBottom:"4px",display:"block"},children:j(T)}),jsxRuntimeExports.jsx("span",{style:{color:"#ccc",fontSize:"clamp(0.8rem, 1.5vw, 1rem)",fontWeight:"500"},children:"Total Liquidity (USD)"})]})]})})}),jsxRuntimeExports.jsx("div",{style:{marginBottom:"24px"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"#1c1c1f",padding:"14px",borderRadius:"18px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",color:"#ccc"},children:"Risk Level"}),jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.2rem)",fontWeight:"600",color:V},children:L})]}),jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"#1c1c1f",padding:"14px",borderRadius:"18px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",color:"#ccc"},children:"Liquidity Score"}),jsxRuntimeExports.jsx("span",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.2rem)",color:"#fff",fontWeight:"600"},children:e?.token?.liquidityScore?.toFixed(1)||"N/A"})]})]})}),jsxRuntimeExports.jsxs("div",{style:{marginBottom:"24px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16
1235px",letterSpacing:"1px",display:"block",fontFamily:"inherit",textTransform:"none",lineHeight:"normal"},children:"POOL INFO"}),jsxRuntimeExports.jsx("div",{style:{backgroundColor:"#141416",borderRadius:"12px",padding:"18px",minHeight:"140px"},children:jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:g?"1fr":"repeat(2, 1fr)",gap:"12px"},children:[jsxRuntimeExports.jsx(InfoCard,{label:"Total Supply",value:j(e?.token?.totalSupply)}),jsxRuntimeExports.jsx(InfoCard,{label:"Market Cap",value:j(e?.token?.marketCap)}),jsxRuntimeExports.jsx(CreatorAddressCard,{creatorAddress:e?.token?.creatorAddress}),jsxRuntimeExports.jsx(InfoCard,{label:"Price USD",value:e?.token?.priceUsd?`$${Number(e?.token?.priceUsd).toFixed(6)}`:"N/A"})]})})]}),jsxRuntimeExports.jsxs("div",{style:{marginTop:"24px",paddingBottom:"24px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16px",letterSpacing:"1px",display:"block"},children:"TOKEN METRICS"}),jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:v?"1fr":"repeat(auto-fit, minmax(200px, 1fr))",gap:"16px"},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"12px",padding:"20px",height:"80px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:v?"flex-start":"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px",textAlign:v?"left":"center"},children:"Total Transfers"}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",textAlign:v?"left":"center"},children:e?.token?.totalTransfers?.toLocaleString()||"N/A"})]}),jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"12px",padding:"20px",height:"80px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:v?"flex-start":"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px",textAlign:v?"left":"center"},children:"Launch Date"}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",textAlign:v?"left":"center"},children:e?.token?.launchDate?new Date(e?.token?.launchDate).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"N/A"})]}),jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"12px",padding:"20px",height:"80px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:v?"flex-start":"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px",textAlign:v?"left":"center"},children:"Holders"}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",textAlign:v?"left":"center"},children:e?.token?.holdersCount?.toLocaleString()||"N/A"})]})]})]})]})]})},InfoCard=({label:e,value:t})=>jsxRuntimeExports.jsxs("div",{style:{flex:1,minWidth:"140px",backgroundColor:"#000",borderRadius:"12px",padding:"14px",height:"73px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px"},children:e}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500"},children:t})]}),CreatorAddressCard=({creatorAddress:e})=>{const t=async()=>{if(e)try{await navigator.clipboard.writeText(e)}catch(n){console.error("Failed to copy address:",n)}},r=n=>n?`${n.slice(0,6)}...${n.slice(-6)}`:"N/A";return jsxRuntimeExports.jsxs("div",{onClick:t,style:{flex:1,minWidth:"140px",backgroundColor:"#000",borderRadius:"12px",padding:"14px",height:"73px",display:"flex",flexDirection:"column",justifyContent:"center",cursor:e?"pointer":"default"},children:[jsxRuntimeExports.jsxs("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"2px"},children:["Creator Address ",""]}),jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",fontWeight:"500",fontFamily:e?"monospace":"inherit"},children:r(e)})]})},LiquidityDetails=({tokenData:e,showOnlyPoolsAndTokens:t=!1,showOnlyMetrics:r=!1})=>{const[n,s]=reactExports.useState("24h"),[a,l]=reactExports.useState(2),[u,d]=reactExports.useState({}),p=(R,T=!1)=>R==null?"N/A":typeof R=="number"?T?`$${R.toFixed(6)}`:R>=1e6?`$${(R/1e6).toFixed(2)}M`:R>=1e3?`$${(R/1e3).toFixed(2)}
1235K`:R.toLocaleString():R.toString(),h=R=>{if(R==null)return"N/A";const T=Number(R);return T>=1e9?`${(T/1e9).toFixed(2)}B`:T>=1e6?`${(T/1e6).toFixed(2)}M`:T>=1e3?`${(T/1e3).toFixed(2)}K`:T.toFixed(2)},x=R=>{if(R==null)return"N/A";const T=R>=0?"#4CAF50":"#F44336";return jsxRuntimeExports.jsxs("span",{style:{color:T,fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)"},children:[R.toFixed(2),"%"]})},w=R=>{window.open(R,"_blank")},g=(R,T)=>{switch(T){case"1h":return{priceChange:R.priceChange1h,buys:R.txns1hBuys,sells:R.txns1hSells,volume:R.volume1h};case"6h":return{priceChange:R.priceChange6h,buys:R.txns6hBuys,sells:R.txns6hSells,volume:R.volume6h};case"24h":default:return{priceChange:R.priceChange24h,buys:R.txns24hBuys,sells:R.txns24hSells,volume:R.volume24h}}},b=R=>u[R]||"24h",v=(R,T)=>{d(z=>({...z,[R]:T}))},E=[];(t||!t&&!r)&&e.topPools&&e.topPools.length>0&&E.push({title:"TOP LIQUIDITY POOLS",isCustom:!0,customContent:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{style:{display:window.innerWidth>=1024?"none":"block"},children:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:"4px",marginBottom:"12px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"4px"},children:["1h","6h","24h"].map(R=>jsxRuntimeExports.jsx("button",{onClick:()=>{s(R);for(let T=0;T<a;T++)v(T,R)},style:{flex:"1",padding:"8px 16px",backgroundColor:n===R?"#CCFF00be":"transparent",color:n===R?"#000":"#fff",border:"none",borderRadius:"6px",fontSize:"0.85rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s ease",textAlign:"center",minWidth:"0"},children:R.toUpperCase()},R))})}),e.topPools.slice(0,a).map((R,T)=>{const z=b(T),L=g(R,z);return jsxRuntimeExports.jsx("div",{style:{backgroundColor:"transparent",borderRadius:"8px",padding:0,border:"none",cursor:R.pairUrl?"pointer":"default",textAlign:"left",width:"100%",marginBottom:"12px"},onClick:()=>R.pairUrl&&w(R.pairUrl),children:jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"15px",padding:"12px"},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[jsxRuntimeExports.jsxs("span",{style:{color:"#fff",fontSize:"clamp(0.8rem, 1.4vw, 1rem)",fontWeight:"600"},children:[R.dex.toUpperCase(),": ",R.pair]}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[window.innerWidth>=1024&&jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:"2px",backgroundColor:"rgba(255,255,255,0.1)",borderRadius:"6px",padding:"2px"},children:["1H","6H","24H"].map(V=>jsxRuntimeExports.jsx("button",{onClick:$=>{$.stopPropagation(),v(T,V.toLowerCase())},style:{padding:"4px 8px",backgroundColor:z===V.toLowerCase()?"#CCFF00be":"transparent",color:z===V.toLowerCase()?"#000":"#fff",border:"none",borderRadius:"4px",fontSize:"0.7rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s ease"},children:V},V))}),R.pairUrl&&jsxRuntimeExports.jsx("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"clamp(0.9rem, 1.4vw, 1rem)"},children:"â"})]})]}),jsxRuntimeExports.jsxs("div",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.75rem, 1.2vw, 0.9rem)",marginBottom:"12px"},children:["Liquidity: ",p(R.liquidityUSD)]}),jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))",gap:"8px"},children:[jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600"},children:"Price Change"}),jsxRuntimeExports.jsx("div",{style:{marginTop:"4px"},children:x(L.priceChange)})]}),jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600"},children:"Volume"}),jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.7rem, 1vw, 0.85rem)",marginTop:"4px"},children:p(L.volume)})]}),jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600"},children:"Buys / Sells"}),jsxRuntimeExports.jsxs("div",{style:{color:"#fff",fontSize:"clamp(0.7rem, 1vw, 0.85rem)",marginTop:"4px"},children:[L.buys," / ",L.sells]})]}),jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600"},children:"Price (USD)"}),jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.7rem, 1vw, 0.85rem)",marginTop:"4px"},children:p(parseFloat(R.price),!0)})]})]})]})},T)}),e.topPools.length>2&&jsxRuntimeExports.jsx("div",{style:{textAlign:"center",marginTop:"16px"},children:jsxRuntimeExports.jsx("button",{onClick:()=>{a>=e.topPools.length?l(2):l(R=>Math.min(R+2,e.topPools.length))},style:{backgroundColor:"transparent",color:a>=e.topPools.length?"#ff4d4d":"#CCFF00be",border:a>=e.topPools.length?"1px solid #ff4d4d":"1px solid #CCFF00be",borderRadius:"8px",padding:"8px 16px",fontSize:"0.9rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s ease"},children:a>=e.topPools.length?"View Less":"Show More"})})]})});const j=e.pooledTokens||e.token?.pooledTokens||e.liquidity?.pooledTokens||e.to
1235pPools&&e.topPools[0]?.pooledTokens;return(t||!t&&!r)&&j&&j.length>0&&E.push({title:"POOLED TOKENS",isCustom:!0,customContent:jsxRuntimeExports.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"12px"},children:j.map((R,T)=>jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"15px",padding:"16px"},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"12px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.9rem, 1.4vw, 1.1rem)",fontWeight:"600"},children:R.symbol||`Token ${T+1}`}),jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(0.8rem, 1.2vw, 1rem)",fontWeight:"600"},children:p(R.usd)})]}),jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px"},children:[jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600",marginBottom:"4px"},children:"Amount"}),jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.7rem, 1vw, 0.85rem)",fontWeight:"600"},children:h(R.amount)})]}),jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600",marginBottom:"4px"},children:"Full Amount"}),jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.7rem, 1vw, 0.85rem)",fontWeight:"600"},children:Number(R.amount).toLocaleString()})]})]}),jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"8px",padding:"8px",marginTop:"8px",cursor:"pointer"},onClick:()=>navigator.clipboard.writeText(R.address),children:[jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontWeight:"600",marginBottom:"4px"},children:"Contract Address"}),jsxRuntimeExports.jsx("div",{style:{color:"#fff",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)",fontFamily:"monospace",wordBreak:"break-all"},children:`${R.address.slice(0,8)}...${R.address.slice(-8)}`})]})]},T))})}),jsxRuntimeExports.jsx("div",{style:{width:"100%",overflowY:"auto"},children:E.map((R,T)=>jsxRuntimeExports.jsxs("div",{style:{marginBottom:"32px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16px",letterSpacing:"1px",display:"block"},children:R.title}),R.isCustom?R.customContent:jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:R.items.map((z,L)=>jsxRuntimeExports.jsxs("button",{style:{backgroundColor:"transparent",borderRadius:"8px",padding:0,border:"none",cursor:z.url?"pointer":"default",textAlign:"left",width:"100%"},onClick:()=>z.url&&w(z.url),children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"12px",backgroundColor:"rgba(255,255,255,0.05)",borderRadius:"15px"},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#fff",fontSize:"clamp(0.7rem, 1.1vw, 0.85rem)",fontWeight:"500",marginBottom:"4px"},children:z.label}),jsxRuntimeExports.jsx("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"clamp(0.65rem, 0.9vw, 0.75rem)"},children:z.value})]}),z.url&&jsxRuntimeExports.jsx("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"clamp(0.9rem, 1.4vw, 1rem)"},children:"â"})]}),z.extraContent&&jsxRuntimeExports.jsx("div",{children:z.extraContent})]},L))})]},T))})};let globalNotificationSetter=null;const originalWriteText=navigator.clipboard?.writeText?.bind(navigator.clipboard),universalCopyToClipboard=(e,t="Copied to clipboard")=>{if(e&&(originalWriteText&&originalWriteText(e),globalNotificationSetter)){const r=Date.now();globalNotificationSetter(n=>[...n,{id:r,message:t}]),setTimeout(()=>{globalNotificationSetter(n=>n.filter(s=>s.id!==r))},4e3)}},copyToClipboard$1=universalCopyToClipboard;typeof window<"u"&&(window.copyToClipboard=universalCopyToClipboard,originalWriteText&&(navigator.clipboard.writeText=function(e){const t=originalWriteText.call(this,e);return t.then(()=>
1235{if(globalNotificationSetter){const r=Date.now();globalNotificationSetter(n=>[...n,{id:r,message:"Copied to clipboard"}]),setTimeout(()=>{globalNotificationSetter(n=>n.filter(s=>s.id!==r))},4e3)}}).catch(()=>{}),t}));const CopyAlert=()=>{const[e,t]=reactExports.useState([]);React.useEffect(()=>(globalNotificationSetter=t,()=>{globalNotificationSetter=null}),[]);const r=n=>{t(s=>s.filter(a=>a.id!==n))};return e.length===0?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1236 .copy-notification-container { 1237 position: fixed; 1238 top: 20px; 1239 right: 20px; 1240 display: flex; 1241 flex-direction: column; 1242 gap: 10px; 1243 z-index: 9999; 1244 } 1245 .copy-notification { 1246 background: #222; 1247 padding: 15px 20px; 1248 border-radius: 8px; 1249 min-width: 250px; 1250 box-shadow: 0 4px 12px rgba(0,0,0,0.4); 1251 display: flex; 1252 justify-content: space-between; 1253 align-items: center; 1254 animation: copySlideIn 0.4s ease, copyFadeOut 0.5s ease forwards; 1255 animation-delay: 0s, 3.5s; 1256 border-left: 5px solid #22c55e; 1257 } 1258 .copy-notification span { 1259 flex: 1; 1260 margin-right: 10px; 1261 color: #fff; 1262 font-size: 14px; 1263 font-weight: 500; 1264 } 1265 .copy-notification button { 1266 background: transparent; 1267 border: none; 1268 color: #888; 1269 cursor: pointer; 1270 font-size: 18px; 1271 padding: 0; 1272 width: 20px; 1273 height: 20px; 1274 display: flex; 1275 align-items: center; 1276 justify-content: center; 1277 } 1278 .copy-notification button:hover { 1279 color: #fff; 1280 } 1281 @keyframes copySlideIn { 1282 from { opacity: 0; transform: translateX(100%);} 1283 to { opacity: 1; transform: translateX(0);} 1284 } 1285 @keyframes copyFadeOut { 1286 to { opacity: 0; transform: translateX(100%);} 1287 } 1288 `}),jsxRuntimeExports.jsx("div",{className:"copy-notification-container",children:e.map(n=>jsxRuntimeExports.jsxs("div",{className:"copy-notification",children:[jsxRuntimeExports.jsx("span",{children:n.message}),jsxRuntimeExports.jsx("button",{onClick:()=>r(n.id),children:"Ã"})]},n.id))})]})},LiquidityHolders=({holders:e,lpHolders:t})=>{const[r,n]=reactExports.useState(window.innerWidth),s=(u,d)=>d>=1024?`${u.slice(0,12)}...${u.slice(-8)}`:d<=480?`${u.slice(0,5)}...${u.slice(-5)}`:`${u.slice(0,10)}....${u.slice(-10)}`,a=u=>{if(!u||u===0)return"0";const d=Number(u);return d>=1e15?`${(d/1e15).toFixed(2)}Q`:d>=1e12?`${(d/1e12).toFixed(2)}T`:d>=1e9?`${(d/1e9).toFixed(2)}B`:d>=1e6?`${(d/1e6).toFixed(2)}M`:d>=1e3?`${(d/1e3).toFixed(2)}K`:d.toFixed(2)};if(reactExports.useEffect(()=>{const u=()=>n(window.innerWidth);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),!e||e.length===0)return null;const l={section:{marginBottom:32},table:{backgroundColor:"#141416",borderRadius:8,padding:12,display:"flex",flexDirection:"column",alignItems:"center"},row:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},rank:{color:"#CCFF00be",fontWeight:600,marginRight:8,textAlign:"center"},addressBtn:{flex:2,background:"none",border:"none",cursor:"pointer",padding:0,textAlign:"left",marginRight:16},balance:{color:"#fff",fontWeight:600,textAlign:"center",flex:1},percent:{color:"#fff",fontWeight:600,textAlign:"right",flex:1},headerRow:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},headerText:{color:"#ccc",fontWeight:600,fontSize:"0.85rem",textTransform:"none",letterSpacing:"0px"}};return jsxRuntimeExports.jsx("div",{style:{...l.section},children:e&&e.length>0&&jsxRuntimeExports.jsxs("div",{style:{marginBottom:"32px"},children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16
1288px",letterSpacing:"1px",display:"block",fontFamily:"inherit",textTransform:"none",lineHeight:"normal"},children:"TOP 10 HOLDERS"}),jsxRuntimeExports.jsxs("div",{style:{...l.table,padding:r>=1024?"16px":"12px"},children:[jsxRuntimeExports.jsxs("div",{style:l.headerRow,children:[jsxRuntimeExports.jsx("span",{style:{...l.headerText,width:r<=480?18:20,marginRight:8,textAlign:"center"},children:"#"}),jsxRuntimeExports.jsx("span",{style:{...l.headerText,flex:2,textAlign:"left",marginRight:16},children:"Address"}),jsxRuntimeExports.jsx("span",{style:{...l.headerText,flex:1,textAlign:"center"},children:"Balance"}),jsxRuntimeExports.jsx("span",{style:{...l.headerText,flex:1,textAlign:"right"},children:"Share"})]}),e.slice(0,10).map((u,d)=>jsxRuntimeExports.jsxs("div",{style:{...l.row},children:[jsxRuntimeExports.jsx("span",{style:{...l.rank,fontSize:r<=480?"0.75rem":"0.9rem",width:r<=480?18:20},children:d+1}),jsxRuntimeExports.jsx("div",{style:{...l.addressBtn,minWidth:0},children:jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard$1(u.address),title:u.address,type:"button",style:{background:"none",border:"none",cursor:"pointer",padding:0,color:"#fff",fontSize:r<=480?"0.7rem":"0.9rem",textAlign:"left",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r>=1024?u.address:s(u.address,r)})}),jsxRuntimeExports.jsx("span",{style:{...l.balance,fontSize:r<=480?"0.75rem":"0.9rem"},title:u.balance,children:a(u.balance)}),jsxRuntimeExports.jsx("span",{style:{...l.percent,fontSize:r<=480?"0.75rem":"0.9rem"},children:u.percent?`${Number(u.percent).toFixed(2)}%`:u.share?`${Number(u.share).toFixed(2)}%`:"NaN%"})]},d))]})]})})},LPHolders=({lpHolders:e})=>{const[t,r]=reactExports.useState(window.innerWidth),n=(l,u)=>u>=1024?`${l.slice(0,12)}...${l.slice(-8)}`:u<=480?`${l.slice(0,5)}...${l.slice(-5)}`:`${l.slice(0,10)}....${l.slice(-10)}`,s=l=>{if(!l||l===0)return"0";const u=Number(l);return u>=1e15?`${(u/1e15).toFixed(2)}Q`:u>=1e12?`${(u/1e12).toFixed(2)}T`:u>=1e9?`${(u/1e9).toFixed(2)}B`:u>=1e6?`${(u/1e6).toFixed(2)}M`:u>=1e3?`${(u/1e3).toFixed(2)}K`:u.toFixed(2)};if(reactExports.useEffect(()=>{const l=()=>r(window.innerWidth);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),!e||e.length===0)return null;const a={section:{marginBottom:32},table:{backgroundColor:"#141416",borderRadius:8,padding:12,display:"flex",flexDirection:"column",alignItems:"center"},row:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},rank:{color:"#CCFF00be",fontWeight:600,marginRight:8,textAlign:"center"},addressBtn:{flex:2,background:"none",border:"none",cursor:"pointer",padding:0,textAlign:"left",marginRight:16},balance:{color:"#fff",fontWeight:600,textAlign:"center",flex:1},percent:{color:"#fff",fontWeight:600,textAlign:"right",flex:1},headerRow:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},headerText:{color:"#ccc",fontWeight:600,fontSize:"0.85rem",textTransform:"none",letterSpacing:"0px"}};return jsxRuntimeExports.jsxs("div",{style:{...a.section},children:[jsxRuntimeExports.jsx("div",{style:{marginBottom:"32px"},children:jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:"600",marginBottom:"16px",letterSpacing:"1px",display:"block",fontFamily:"inherit",textTransform:"none",lineHeight:"normal"},children:"LP HOLDERS"})}),jsxRuntimeExports.jsxs("div",{style:{...a.table,padding:t>=1024?"16px":"12px"},children:[jsxRuntimeExports.jsxs("div",{style:a.headerRow,children:[jsxRuntimeExports.jsx("span",{style:{...a.headerText,width:t<=480?18:20,marginRight:8,textAlign:"center"},children:"#"}),jsxRuntimeExports.jsx("span",{style:{...a.headerText,flex:2,textAlign:"left",marginRight:16},children:"Address"}),jsxRuntimeExports.jsx("span",{style:{...a.headerText,flex:1,textAlign:"center"},children:"Balance"}),jsxRuntimeExports.jsx("span",{style:{...a.headerText,flex:1,textAlign:"right"},children:"Percent"})]}),e.slice(0,10).map((l,u)=>jsxRuntimeExports.jsxs("div",{style:{...a.row},children:[jsxRuntimeExports.jsx("span",{style:{...a.rank,fontSize:t<=480?"0.75rem":"0.9rem",width:t<=480?18:20},children:u+1}),jsxRuntimeExports.jsx("div",{style:{...a.addressBtn,minWidth:0},children:jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard$1(l.address),title:l.address,type:"button",style:{background:"none",border:"none",cursor:"pointer",padding:0,color:"#fff",fontSize:t<=480?"0.7rem":"0.9rem",textAlign:"left",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t>=1024?l.address:n(l.address,t)})}),jsxRuntimeExports.jsx("span",{style:{...a.balance,fontSize:t<=480?"0.75rem":"0.9rem"},title:l.balance,children:s(l.balance)}),jsxRuntimeExports.jsxs("span",{style:{...a.percent,fontSize:t<=480?"0.75rem":"0.9rem"},children:[Number(l.percent*100).toFixed(2),"%"]})]},u))]})]})},LiquidityScanner=()=>{const e="https://coinguardbackend.up.railway.app",[t,r]=reactExports.useState(""),[n,s]=reactExports.useState(""),[a,l]=reactExports.useState(null),[u,d]=reactExports.useState(!1),[p,h]=reactExports.useState(!1),[x,w]=reactExports.useState(""),g=(j,R)=>{switch(j){case"BSC":return`${e}/api/liquidity/bsc/${R}`;case"Ethereum":return`${e}/api/liquidity/eth/${R}`;case"Solana":default:return`${e}/api/liquidity/sol/${R}`}},b=(j,R)=>R?j==="Ethereum"||j==="BSC"?/^0x[a-fA-F0-9]{40}$/.test(R):j==="Solana"?/^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(R):!1:!1,v=async()=>
1288{if(w(""),l(null),h(!0),!b(n,t)){w(`Invalid address for ${n} chain`);return}d(!0);try{const j=g(n,t),R=await axios.get(j);l(R.data)}catch(j){w(j?.response?.data?.error||"Failed to fetch liquidity data")}finally{d(!1)}},E=j=>{window.open(j,"_blank")};return jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"block xl:hidden",children:jsxRuntimeExports.jsxs("div",{className:"pt-5 px-[20px] max-[425px]:px-[16px] pb-8 max-w-3xl mx-auto",children:[jsxRuntimeExports.jsx("h1",{className:"text-2xl xs:text-3xl sm:text-4xl font-bold mb-6 pb-[6px] text-center text-white",children:"Liquidity Scanner"}),!a&&jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:null,chain:n,address:t,setAddress:r,setChain:s,loading:u,fetchScan:v,hasSearched:p,error:x}),a&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:a,chain:n,address:t,setAddress:r,setChain:s,loading:u,fetchScan:v,hasSearched:p,error:x}),jsxRuntimeExports.jsx(LPHolders,{lpHolders:a.lpHolders||a.token?.lpHolders||a.topPools?.[0]?.lpHolders}),jsxRuntimeExports.jsx(LiquidityDetails,{tokenData:a,handleOpenUrl:E,showOnlyPoolsAndTokens:!0}),jsxRuntimeExports.jsx(LiquidityHolders,{holders:a.token.topHolders,lpHolders:null})]})]})}),jsxRuntimeExports.jsx("div",{className:"hidden xl:block",children:jsxRuntimeExports.jsxs("div",{className:"pt-4 pb-8",children:[jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto px-8",children:jsxRuntimeExports.jsx("h1",{className:"text-xl sm:text-2xl lg:text-3xl font-bold mb-4 text-center text-white mt-0",children:"Liquidity Scanner"})}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-800 mb-6 w-full"}),jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto px-1 lg:px-[64px] lg:py-8",children:[!a&&jsxRuntimeExports.jsx("div",{className:"mb-6 pb-6",style:{maxWidth:"700px",margin:"0 auto"},children:jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:null,chain:n,address:t,setAddress:r,setChain:s,loading:u,fetchScan:v,hasSearched:p,error:x,showOnlySearch:!0})}),a&&jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"60px",alignItems:"start"},children:[jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:"500px"},children:jsxRuntimeExports.jsx("div",{style:{flex:1,display:"flex",alignItems:"center"},children:jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:a,chain:n,address:null,setAddress:null,setChain:null,loading:!1,fetchScan:null,hasSearched:!1,error:"",showOnlyTokenInfo:!0})})}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:"500px"},children:[jsxRuntimeExports.jsx("div",{style:{height:"20px"}}),jsxRuntimeExports.jsx("div",{style:{marginBottom:"16px"},children:jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:null,chain:n,address:t,setAddress:r,setChain:s,loading:u,fetchScan:v,hasSearched:p,error:x,showOnlySearch:!0})}),jsxRuntimeExports.jsx("div",{style:{flex:1},children:jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:a,chain:n,address:null,setAddress:null,setChain:null,loading:!1,fetchScan:null,hasSearched:!1,error:"",showOnlyRiskAndPool:!0})})]})]}),a&&jsxRuntimeExports.jsx("div",{style:{paddingBottom:"24px"},children:jsxRuntimeExports.jsx(LiquidityOverview,{tokenData:a,chain:n,address:null,setAddress:null,setChain:null,loading:!1,fetchScan:null,hasSearched:!1,error:"",showOnlyTokenMetrics:!0})}),a&&jsxRuntimeExports.jsx(LPHolders,{lpHolders:a.lpHolders||a.token?.lpHolders||a.topPools?.[0]?.lpHolders}),a&&jsxRuntimeExports.jsx(LiquidityDetails,{tokenData:a,handleOpenUrl:E,showOnlyPoolsAndTokens:!0}),a&&jsxRuntimeExports.jsx(LiquidityHolders,{holders:a.token.topHolders,lpHolders:null})]})]})})]})},NFT=()=>jsxRuntimeExports.jsxs("div",{className:` 1289 flex flex-col items-center justify-center bg-black text-center overflow-hidden px-4 1290 gap-6 sm:gap-5 md:gap-6 lg:gap-8 1291 fixed inset-0 w-full h-full 1292 sm:relative sm:h-screen sm:w-full 1293 `,children:[jsxRuntimeExports.jsx("div",{className:"flex-shrink-0",children:jsxRuntimeExports.jsxs("h1",{className:"text-xl sm:text-2xl md:text-3xl lg:text-4xl xl:text-5xl font-semibold text-white z-10 leading-normal sm:leading-relaxed",children:["Coinguard"," ",jsxRuntimeExports.jsx("span",{className:"text-[#ccff00] inline-block",children:"NFT Generator"})]})}),jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg xl:max-w-xl",children:jsxRuntimeExports.jsxs("p",{className:"text-white/70 text-sm sm:text-base md:text-lg lg:text-xl font-normal leading-loose sm:leading-relaxed px-1",children:["Transform your ideas into unique, collectible digital assets with"," ",jsxRuntimeExports.jsx("span",{className:"text-[#ccff00] font-normal",children:"Coinguard's AI-driven Solana-based NFT Generator"}),"."]})}),jsxRuntimeExports.jsxs("div",{className:"relative w-44 h-44 sm:w-48 sm:h-48 md:w-52 md:h-52 lg:w-56 lg:h-56 xl:w-60 xl:h-60 flex-shrink-0",children:[jsxRuntimeExports.jsx("img",{src:"/App/nft-chimp.gif",alt:"NFT Chimp Animation",className:"w-full h-full object-cover rounded-lg"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 left-0 w-2 h-2 border-t border-l border-[#ccff00]/50"}),jsxRuntimeExports.jsx("div",{className:"absolute top-0 right-0 w-2 h-2 border-t border-r border-[#ccff00]/50"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 w-2 h-2 border-b border-l border-[#ccff00]/50"}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 border-b border-r border-[#ccff00]/50"})]}),jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 mt-4",children:jsxRuntimeExports.jsx("a",{href:"#",className:"relative inline-block font-extrabold text-white text-3xl sm:text-4xl md:text-5xl lg:text-6xl no-underline",style:{background:"linear-gradient(to right, #9f9f9f 0, #ffffff 10%, #868686 20%, #9f9f9f 30%)",backgroundSize:"400px auto",WebkitBackgroun
1293dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent",animation:"shine 4s infinite linear",whiteSpace:"nowrap",letterSpacing:"2px"},children:"COMINGÂ SOON"})}),jsxRuntimeExports.jsx("style",{children:` 1294 @keyframes shine { 1295 0% { 1296 background-position: 0; 1297 } 1298 100% { 1299 background-position: 400px; 1300 } 1301 } 1302 `})]}),CHAINS$3=[{name:"Solana",key:"solana"},{name:"Ethereum",key:"ethereum"},{name:"BSC",key:"binance"}],SearchArea=({address:e,setAddress:t,chain:r,setChain:n,loading:s,fetchScan:a,hasSearched:l,error:u})=>{const[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(""),[w,g]=reactExports.useState(""),b=reactExports.useRef(null),v=reactExports.useRef(null);reactExports.useEffect(()=>{r||n("Solana")},[r,n]),reactExports.useEffect(()=>{let T;return s?T=setInterval(()=>{g(z=>z.length>=3?"":z+".")},500):g(""),()=>clearInterval(T)},[s]),reactExports.useEffect(()=>{function T(z){const L=b.current?.querySelector('button[type="button"]');d&&!L?.contains(z.target)&&!v.current?.contains(z.target)&&p(!1)}return document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}},[d]);const E=CHAINS$3.find(T=>T.name===r)||CHAINS$3[0],j=()=>
1302{if(!e.trim()){x("Please enter a token address");return}x(""),a()},R=T=>{T.key==="Enter"&&j()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1303 @media (max-width: 429px) { 1304 .search-wrapper { 1305 flex-direction: column !important; 1306 align-items: stretch !important; 1307 } 1308 .search-input { 1309 margin-right: 0 !important; 1310 margin-bottom: 12px !important; 1311 height: 56px !important; 1312 } 1313 .scan-btn { 1314 width: 100% !important; 1315 height: 48px !important; 1316 } 1317 } 1318 1319 @media (min-width: 431px) { 1320 .search-wrapper { 1321 flex-direction: row !important; 1322 align-items: center !important; 1323 } 1324 .search-input { 1325 margin-right: 12px; 1326 margin-bottom: 0 !important; 1327 height: 60px !important; 1328 } 1329 .scan-btn { 1330 width: 140px; 1331 height: 60px !important; 1332 flex-shrink: 0; 1333 } 1334 } 1335 1336 /* Consistent dropdown background for all screens */ 1337 .dropdown-background { 1338 background-color: rgba(31, 31, 31, 0.95) !important; 1339 backdrop-filter: blur(10px); 1340 } 1341 `}),jsxRuntimeExports.jsxs("div",{className:"mb-6 relative",ref:b,children:[jsxRuntimeExports.jsxs("div",{className:"search-wrapper flex flex-col w-full",children:[jsxRuntimeExports.jsxs("div",{className:"search-input flex items-center h-16 rounded-xl bg-[#111] border border-[#333] px-3 mb-3 w-full",children:[jsxRuntimeExports.jsxs("button",{className:"flex items-center mr-2 pr-2 border-r border-[#333]",onClick:()=>p(T=>!T),type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${E.key}/info/logo.png`,alt:E.name,className:"w-7 h-7 mr-1"}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${d?"rotate-180":""}`})]}),jsxRuntimeExports.jsx("input",{className:"flex-1 text-white text-sm bg-transparent outline-none placeholder:text-white/40",placeholder:"Search Token By Address",value:e,onChange:T=>{t(T.target.value),h&&x("")},onKeyDown:R})]}),jsxRuntimeExports.jsx("button",{className:"scan-btn w-full h-12 bg-[#CCFF00]/10 rounded-lg flex items-center justify-center border border-[#CCFF00]/80 disabled:opacity-50",onClick:j,disabled:s,type:"button",children:s?jsxRuntimeExports.jsxs("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:["Searching",w]}):jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(AiOutlineScan,{className:"text-[#CCFF00]/80 text-xl mr-2"}),jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:"Search"})]})})]}),jsxRuntimeExports.jsx(AnimatePresence,{children:d&&jsxRuntimeExports.jsx(motion.div,{ref:v,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute top-[70px] left-0 rounded-lg py-1.5 w-48 z-50 border border-[#333] dropdown-background",children:CHAINS$3.map(T=>jsxRuntimeExports.jsxs("button",{className:"flex items-center w-full py-2.5 px-3 hover:bg-[#333]/50 rounded transition-colors",onClick:()=>{n(T.name),p(!1)},type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${T.key}/info/logo.png`,alt:T.name,className:"w-6 h-6 mr-2.5"}),jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:T.name})]},T.name))})}),h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdInfoOutline,{className:"text-[#FFC107]/80 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/80 text-lg font-semibold mb-1.5",children:"Address Required"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/70 text-sm font-normal text-center px-10 leading-5",children:h})]}),!l&&!u&&!h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdSearch,{className:"text-white/30 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-white/50 text-lg font-medium mb-2",children:"No search yet"}),jsxRuntimeExports.jsx("span",{className:"text-white/30 text-sm font-normal text-center px-10 leading-5",children:"Enter a token address to begin scanning"})]}),l&&e&&u&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(GoAlertFill,{className:"text-red-500 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-lg font-semibold mb-1.5",children:"Search Failed"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-sm font-normal text-center px-10 leading-5",children:u})]})]})]})},StatusBadge=({status:e,count:t})=>{const r={pass:"#16a34a",attention:"#ca8a04",alert:"#dc2626"},n=useMotionValue(0),[s,a]=React.useState(0);return reactExports.useEffect(()=>{const l=animate(n,t,{duration:.8,onUpdate:u=>a(Math.floor(u))});return()=>l.stop()},[t,n]),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntimeExports.jsx("div",{className:`rounded-full flex items-center justify-center mb-1 sm:mb-2 1342 w-8 h-8 sm:w-8 sm:h-8 md:w-10 md:h-10`,style:{backgroundColor:`${r[e]}20`},children:jsxRuntimeExports.jsx("span",{className:"text-sm sm:text-base md:text-lg font-bold",style:{color:r[e]},children:s})}),jsxRuntimeExports.jsx("span",{className:"text-white/80 text-[10px] sm:text-xs font-semibold",children:e.toUpperCase()})]})},TokenOverview=({tokenData:e,address:t,showGauge:r})=>{const n=useMotionValue(0),s=useMotionValue(0),a=useMotionValue(0),[l,u]=reactExports.useState(0);reactExports.useEffect(()=>{if(!r)return;const v=e.scanScore||0,E=v/100,j=[animate(n,1,{duration:1,ease:[.645,.045,.355,1]}),animate(s,E,{duration:1,ease:"easeOut"}),animate(a,v,{duration:1,ease:"easeOut",onUpdate:R=>
1342u(Math.round(R))})];return()=>j.forEach(R=>R.stop())},[e.scanScore,n,s,a,r]);const d=283,p=useTransform(s,[0,1],[d,0]),h=reactExports.useId(),[x,w]=reactExports.useState(typeof window<"u"?window.matchMedia("(min-width: 768px)").matches:!1);reactExports.useEffect(()=>{if(typeof window>"u")return;const v=window.matchMedia("(min-width: 768px)"),E=j=>w(j.matches);return v.addEventListener("change",E),()=>v.removeEventListener("change",E)},[]);const g=v=>{if(!v)return"N/A";const E=x?8:5;return`${v.slice(0,E)}....${v.slice(-E)}`},b=(v,E=20)=>!v||typeof v!="string"?"Unknown Token":v.length<=E?v:`${v.slice(0,E)}...`;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1343 .gauge-container { 1344 max-width: 350px; 1345 } 1346 .overview-grid { 1347 grid-template-columns: repeat(1, minmax(0, 1fr)); 1348 } 1349 @media (min-width: 640px) { 1350 .gauge-container { 1351 max-width: 400px; 1352 } 1353 .overview-grid { 1354 grid-template-columns: repeat(2, minmax(0, 1fr)); 1355 } 1356 } 1357 @media (max-width: 639px) { 1358 .gauge-svg { 1359 max-height: 120px; 1360 } 1361 } 1362 1363 `}),jsxRuntimeExports.jsx("div",{className:"w-full",children:r?jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] rounded-[20px] sm:rounded-[24px] md:rounded-[36px] p-3 sm:p-4",children:[jsxRuntimeExports.jsxs("div",{className:"text-center mb-3 sm:mb-4",children:[jsxRuntimeExports.jsx("span",{className:"text-white text-lg sm:text-xl md:text-2xl font-bold capitalize",children:b(e?.tokenName)}),jsxRuntimeExports.jsxs("span",{className:"text-[#8ca714] text-[10px] sm:text-xs md:text-sm font-medium mt-1 block",children:["$",e?.tokenSymbol||"N/A"]})]}),jsxRuntimeExports.jsx("div",{className:"flex justify-center mb-4 sm:mb-6 md:mb-8",children:jsxRuntimeExports.jsxs("div",{className:"gauge-container relative w-full sm:w-[70%]",children:[jsxRuntimeExports.jsxs("svg",{width:"100%",viewBox:"0 0 200 140",preserveAspectRatio:"xMidYMid meet",className:"gauge-svg max-h-[140px]",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntimeExports.jsx("stop",{offset:"0%",stopColor:"#FF4D4D"}),jsxRuntimeExports.jsx("stop",{offset:"50%",stopColor:"#FFFF00"}),jsxRuntimeExports.jsx("stop",{offset:"100%",stopColor:"#00FF00"})]})}),jsxRuntimeExports.jsx("path",{d:"M10,110 A90,90 0 0,1 190,110",stroke:"#212121",strokeWidth:"26",fill:"none",strokeLinecap:"round"}),jsxRuntimeExports.jsx(motion.path,{d:"M10,110 A90,90 0 0,1 190,110",stroke:`url(#${h})`,strokeWidth:"18",fill:"none",strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:p}),jsxRuntimeExports.jsx("circle",{cx:"100",cy:"100",r:"40",fill:"#141416"})]}),jsxRuntimeExports.jsx("span",{className:"absolute top-[45%] left-1/2 -translate-x-1/2 text-white text-2xl sm:text-3xl md:text-[40px] font-bold",children:l}),jsxRuntimeExports.jsx("span",{className:"block text-[#818181] text-[10px] sm:text-xs md:text-[15px] font-medium text-center mt-3 sm:mt-4",children:"SCAN SCORE"})]})}),jsxRuntimeExports.jsxs("div",{className:"flex justify-around md:justify-center md:space-x-20",children:[jsxRuntimeExports.jsx(StatusBadge,{status:"alert",count:e.alerts}),jsxRuntimeExports.jsx(StatusBadge,{status:"attention",count:e.attentions}),jsxRuntimeExports.jsx(StatusBadge,{status:"pass",count:e.passed})]})]}):jsxRuntimeExports.jsxs("div",{className:"h-full flex flex-col lg:-mt-2",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/75 text-xs sm:text-sm md:text-base font-semibold mb-4 sm:mb-3 md:mb-4 mt-6 sm:mt-0 block tracking-wide",children:"TOKEN OVERVIEW"}),jsxRuntimeExports.jsx("div",{className:"bg-[#141416] rounded-lg sm:rounded-xl md:rounded-2xl p-4 sm:p-6 md:p-8 flex-1 flex flex-col",children:jsxRuntimeExports.jsxs("div",{className:"overview-grid grid gap-3 sm:gap-4 flex-1",children:[jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-lg p-2 sm:p-3 md:p-4 flex flex-col justify-center",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-[10px] sm:text-xs mb-1",children:"Deploy Time"}),jsxRuntimeExports.jsx("span",{className:"text-white text-xs sm:text-sm font-medium",children:e.launchDate})]}),jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-lg p-2 sm:p-3 md:p-4 flex flex-col justify-center",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-[10px] sm:text-xs mb-1",children:"Token Address"}),jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard$1(t),className:"text-left w-full",children:jsxRuntimeExports.jsx("span",{className:"text-white text-xs sm:text-sm font-medium break-all",children:g(t)})})]}),jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-lg p-2 sm:p-3 md:p-4 flex flex-col justify-center",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-[10px] sm:text-xs mb-1",children:"Pair Address"}),jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard$1(e.pairAddress),className:"text-left w-full",children:jsxRuntimeExports.jsx("span",{className:"text-white text-xs sm:text-sm font-medium break-all",children:g(e.pairAddress)})})]}),jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-lg p-2 sm:p-3 md:p-4 flex flex-col justify-center",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-[10px] sm:text-xs mb-1",children:"DEX Address"}),jsxRuntimeExports.jsx("button",{onClick:()=>{e.dexAddresses?.[0]&&window.open(e.dexAddresses[0],"_blank")},className:"text-left w-full",children:jsxRuntimeExports.jsx("span",{className:"text-white text-xs sm:text-sm font-medium break-all",children:e.dexAddresses?.[0]?g(e.dexAddresses[0]):"N/A"})})]})]})})]})})]})},TokenDetails=({tokenData:e,handleOpenUrl:t})=>{const r={pass:"#16a34a",attention:"#ca8a04",alert:"#dc2626"},n=d=>d>=1e12?(d/1e12).toFixed(1)+"T":d>=1e9?(d/1e9).toFixed(1)+"B":d>=1e6?(d/1e6).toFixed(1)+"M":d>
1363=1e3?(d/1e3).toFixed(1)+"K":d.toLocaleString(),s=d=>{const p=`${r[d]}20`,h=r[d],x={backgroundColor:p,borderRadius:"50%",width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};switch(d){case"pass":return jsxRuntimeExports.jsx("div",{style:x,children:jsxRuntimeExports.jsx("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:h,viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})});case"attention":return jsxRuntimeExports.jsx("div",{style:x,children:jsxRuntimeExports.jsx("svg",{className:"w-4 h-4 sm:w-[18px] sm:h-[18px]",fill:"none",stroke:h,viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})});case"alert":return jsxRuntimeExports.jsx("div",{style:x,children:jsxRuntimeExports.jsx("svg",{className:"w-4 h-4 sm:w-[18px] sm:h-[18px]",fill:"none",stroke:h,viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})});default:return null}},a=(d,p=8,h=8)=>!d||typeof d!="string"?"Invalid address":d.length<=p+h+5?d:`${d.slice(0,p)}.....${d.slice(-h)}`,l=e.scanResults?[...e.scanResults.filter(d=>d.status==="alert"),...e.scanResults.filter(d=>d.status==="attention"),...e.scanResults.filter(d=>d.status==="pass")]:[],u=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1364 @media (max-width: 767px) { 1365 .security-check-mobile { 1366 display: flex; 1367 flex-direction: column; 1368 gap: 0.75rem; 1369 } 1370 .security-item-mobile { 1371 background: #141416; 1372 border-radius: 0.5rem; 1373 padding: 0.75rem; 1374 display: flex; 1375 flex-direction: column; 1376 gap: 0.5rem; 1377 } 1378 .security-header-mobile { 1379 display: flex; 1380 align-items: center; 1381 gap: 0.5rem; 1382 } 1383 .security-title-mobile { 1384 color: white; 1385 font-size: 0.875rem; 1386 font-weight: 500; 1387 flex: 1; 1388 } 1389 .security-description-mobile { 1390 color: rgba(255, 255, 255, 0.6); 1391 font-size: 0.75rem; 1392 line-height: 1.4; 1393 } 1394 } 1395 @media (min-width: 768px) { 1396 .security-tables { 1397 display: flex; 1398 flex-direction: row; 1399 gap: 1rem; 1400 } 1401 .security-table-container { 1402 width: 50%; 1403 background: #141416; 1404 border-radius: 0.5rem; 1405 padding: 0.5rem; 1406 overflow-x: auto; 1407 min-height: 300px; 1408 } 1409 .security-table { 1410 width: 100%; 1411 border-collapse: collapse; 1412 } 1413 .security-table th { 1414 color: rgba(255, 255, 255, 0.6); 1415 font-size: 0.75rem; 1416 font-weight: 600; 1417 padding: 0.5rem 0.75rem; 1418 text-align: left; 1419 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 1420 } 1421 .security-table td { 1422 padding: 0.5rem 0.75rem; 1423 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 1424 } 1425 .security-table tr:last-child td { 1426 border-bottom: none; 1427 } 1428 } 1429 `}),jsxRuntimeExports.jsx("div",{className:"md:hidden security-check-mobile",children:l.length>0?l.map((d,p)=>jsxRuntimeExports.jsxs("div",{className:"security-item-mobile",children:[jsxRuntimeExports.jsxs("div",{className:"security-header-mobile",children:[s(d.status),jsxRuntimeExports.jsx("span",{className:"security-title-mobile",children:d.title})]}),jsxRuntimeExports.jsx("p",{className:"security-description-mobile",children:d.description})]},p)):jsxRuntimeExports.jsx("div",{className:"text-white/60 text-sm py-4 text-center",children:"No security checks available"})}),jsxRuntimeExports.jsxs("div",{className:"hidden md:flex security-tables",children:[jsxRuntimeExports.jsx("div",{className:"security-table-container",children:jsxRuntimeExports.jsxs("table",{className:"security-table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"w-[60px]",children:"Status"}),jsxRuntimeExports.jsx("th",{children:"Title"}),jsxRuntimeExports.jsx("th",{children:"Description"})]})}),jsxRuntimeExports.jsx("tbody",{children:(()=>{const d=l.length,p=Math.ceil(d/2);return l.slice(0,p).map((h,x)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:s(h.status)}),jsxRuntimeExports.jsx("td",{className:"text-white text-sm font-medium truncate max-w-[150px]",children:h.title}),jsxRuntimeExports.jsx("td",{className:"text-white/60 text-sm break-words",children:h.description})]},x))})()})]})}),jsxRuntimeExports.jsx("div",{className:"security-table-container",children:jsxRuntimeExports.jsxs("table",{className:"security-table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"w-[60px]",children:"Status"}),jsxRuntimeExports.jsx("th",{children:"Title"}),jsxRuntimeExports.jsx("th",{children:"Description"})]})}),jsxRuntimeExports.jsx("tbody",{children:(()=>{const d=l.length,p=Math.ceil(d/2);return l.slice(p).map((h,x)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:s(h.status)}),jsxRuntimeExports.jsx("td",{className:"text-white text-sm font-medium truncate max-w-[150px]",children:h.title}),jsxRuntimeExports.jsx("td",{className:"text-white/60 text-sm break-words",children:h.description})]},x))})()})]})})]})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1430 .holders-container, .trade-container { 1431 padding: 1px; 1432 } 1433 @media (min-width: 640px) { 1434 .holders-container, .trade-container { 1435 padding: 2px; 1436 } 1437 } 1438 /* Mobile View for Top Holders */ 1439 @media (max-width: 767px) { 1440 .holders-header-mobile { 1441 display: grid; 1442 grid-template-columns: 40px 1fr 80px 60px; 1443 align-items: center; 1444 padding: 0.75rem 0.5rem; 1445 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 1446 } 1447 .holders-item-mobile { 1448 display: grid; 1449 grid-template-columns: 40px 1fr 80px 60px; 1450 align-items: center; 1451 padding: 0.75rem 0.5rem; 1452 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 1453 } 1454 .holders-item-mobile:last-child { 1455 border-bottom: none; 1456 } 1457 .holders-header-mobile span, 1458 .holders-item-mobile span, 1459 .holders-item-mobile button { 1460 font-size: 0.75rem; 1461 line-height: 1.2; 1462 } 1463 .holders-address-mobile {
1464 overflow-wrap: anywhere; 1465 text-align: left; 1466 } 1467 .holders-amount-mobile { 1468 text-align: center; 1469 } 1470 .holders-percent-mobile { 1471 text-align: right; 1472 } 1473 } 1474 /* Desktop View for Top Holders */ 1475 @media (min-width: 768px) { 1476 .holders-header-desktop { 1477 display: flex; 1478 align-items: center; 1479 justify-content: space-between; 1480 padding: 0.5rem 1rem; 1481 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 1482 } 1483 .holders-item-desktop { 1484 display: flex; 1485 align-items: center; 1486 justify-content: space-between; 1487 padding: 0.5rem 1rem; 1488 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 1489 } 1490 .holders-item-desktop:last-child { 1491 border-bottom: none; 1492 } 1493 .holders-address-desktop { 1494 flex: 2; 1495 margin-right: 1rem; 1496 } 1497 .holders-amount-desktop { 1498 flex: 1; 1499 text-align: center; 1500 } 1501 .holders-percent-desktop { 1502 flex: 1; 1503 text-align: right; 1504 } 1505 } 1506 1507 `}),jsxRuntimeExports.jsxs("div",{className:"w-full max-w-[100vw] px-1 sm:px-2 box-border overflow-x-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"mb-4 sm:mb-6 md:mb-8 w-full",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/75 text-xs sm:text-sm md:text-base font-semibold mb-4 sm:mb-3 md:mb-4 mt-6 sm:mt-0 block tracking-wide",children:"SECURITY CHECKS"}),u()]}),jsxRuntimeExports.jsxs("div",{className:"mb-4 sm:mb-6 md:mb-8 w-full",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/75 text-xs sm:text-sm md:text-base font-semibold mb-4 sm:mb-3 md:mb-4 mt-6 sm:mt-0 block tracking-wide",children:"TOP HOLDERS"}),jsxRuntimeExports.jsxs("div",{className:"holders-container bg-[#141416] rounded-lg w-full",children:[jsxRuntimeExports.jsxs("div",{className:"md:hidden",children:[jsxRuntimeExports.jsxs("div",{className:"holders-header-mobile",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 font-semibold",children:"#"}),jsxRuntimeExports.jsx("span",{className:"text-white/60 font-semibold",children:"Address"}),jsxRuntimeExports.jsx("span",{className:"text-white/60 font-semibold holders-amount-mobile",children:"Amount"}),jsxRuntimeExports.jsx("span",{className:"text-white/60 font-semibold holders-percent-mobile",children:"%"})]}),(e.topHolders||[]).slice(0,10).map((d,p)=>{const h=d.address||"",x=a(h,4,4);return jsxRuntimeExports.jsxs("div",{className:"holders-item-mobile",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/75 font-semibold",children:p+1}),jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard$1(h),title:h,type:"button",className:"text-white holders-address-mobile","aria-label":`Copy address ${h}`,disabled:!h,children:x}),jsxRuntimeExports.jsx("span",{className:"text-white font-medium holders-amount-mobile truncate",children:n(Number(d.amount||0))}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold holders-percent-mobile",children:d.percent?`${d.percent}%`:"0%"})]},p)})]}),jsxRuntimeExports.jsxs("div",{className:"hidden md:block",children:[jsxRuntimeExports.jsxs("div",{className:"holders-header-desktop",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-xs sm:text-sm font-semibold w-6 sm:w-8 flex-shrink-0",children:"#"}),jsxRuntimeExports.jsx("span",{className:"text-white/60 text-xs sm:text-sm font-semibold holders-address-desktop text-left",children:"Address"}),jsxRuntimeExports.jsx("span",{className:"text-white/60 text-xs sm:text-sm font-semibold holders-amount-desktop",children:"Amount"}),jsxRuntimeExports.jsx("span",{className:"text-white/60 text-xs sm:text-sm font-semibold holders-percent-desktop",children:"Percentage"})]}),(e.topHolders||[]).slice(0,10).map((d,p)=>{const h=d.address||"";return jsxRuntimeExports.jsxs("div",{className:"holders-item-desktop",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/75 text-xs sm:text-sm font-semibold w-6 sm:w-8 flex-shrink-0",children:p+1}),jsxRuntimeExports.jsx("div",{className:"holders-address-desktop flex-2 min-w-0",children:jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard$1(h),title:h,type:"button",className:"text-white text-xs sm:text-sm text-left w-full truncate","aria-label":`Copy address ${h}`,disabled:!h,children:h||"Invalid address"})}),jsxRuntimeExports.jsx("span",{className:"holders-amount-desktop text-white text-xs sm:text-sm font-medium flex-1 text-center truncate",children:n(Number(d.amount||0))}),jsxRuntimeExports.jsx("span",{className:"holders-percent-desktop text-white text-xs sm:text-sm font-semibold flex-1 text-right truncate",children:d.percent?`${d.percent}%`:"0%"})]},p)})]})]})]})]})]})},AiTokenScan=()=>{const[e,t]=reactExports.useState(""),[r,n]=reactExports.useState(""),[s,a]=reactExports.useState("Solana"),[l,u]=reactExports.useState(!1),[d,p]=reactExports.useState(null),[h,x]=reactExports.useState(""),[w,g]=reactExports.useState(!1),[b,v]=reactExports.useState(typeof window<"u"?window.matchMedia("(min-width: 768px)").matches:!1);reactExports.useEffect(()=>{if(typeof window>"u")return;const z=window.matchMedia("(min-width: 768px)"),L=V=>v(V.matches);
1507return z.addEventListener("change",L),()=>z.removeEventListener("change",L)},[]);const E=(z,L)=>{const V="https://coinguardbackend.up.railway.app";switch(z){case"BSC":return`${V}/api/aitoken/bsc/${L}`;case"Ethereum":return`${V}/api/aitoken/eth/${L}`;case"Solana":default:return`${V}/api/aitoken/sol/${L}`}},j=(z,L)=>{if(!L||L.trim().length===0)return!1;const V=L.trim();return z==="Ethereum"||z==="BSC"?/^0x[a-fA-F0-9]{40}$/.test(V):z==="Solana"?/^[1-9A-HJ-NP-Za-km-z]{25,50}$/.test(V):!1},R=async()=>{x(""),p(null),g(!0);const z=e.trim();if(!j(s,z)){x(`Invalid address format for ${s}`);return}n(z),u(!0);try{const L=E(s,z),V=await axios.get(L);V.data&&V.data.success!==!1?p(V.data):x(V.data?.message||V.data?.error||"Token not found or invalid address")}catch(L){L.response?.status===404?x("Token not found"):L.response?.status===400?x("Invalid token address format"):x(L?.response?.data?.message||L?.response?.data?.error||"Failed to scan token address")}finally{u(!1)}},T=z=>{window.open(z,"_blank")};return jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"block xl:hidden",children:jsxRuntimeExports.jsxs("div",{className:"pt-5 px-[20px] max-[425px]:px-[16px] pb-8 max-w-3xl mx-auto",children:[jsxRuntimeExports.jsx("h1",{className:"text-2xl xs:text-3xl sm:text-4xl font-bold mb-6 text-center text-white",children:"Token Scan"}),jsxRuntimeExports.jsx(SearchArea,{address:e,setAddress:t,chain:s,setChain:a,loading:l,fetchScan:R,hasSearched:w,error:h}),d&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TokenOverview,{tokenData:d,address:r,showGauge:!0}),jsxRuntimeExports.jsx(TokenOverview,{tokenData:d,address:r,showGauge:!1}),jsxRuntimeExports.jsx(TokenDetails,{tokenData:d,handleOpenUrl:T})]})]})}),jsxRuntimeExports.jsx("div",{className:"hidden xl:block",children:jsxRuntimeExports.jsxs("div",{className:"pt-4 pb-8",children:[jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto px-8",children:jsxRuntimeExports.jsx("h1",{className:"text-xl sm:text-2xl lg:text-3xl font-bold mb-4 text-center text-white mt-0",children:"Token Scan"})}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-800 mb-6 w-full"}),jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto px-1 lg:px-[64px] lg:py-8",children:[!d&&jsxRuntimeExports.jsx("div",{className:"mb-6 pb-6",style:{maxWidth:"700px",margin:"0 auto"},children:jsxRuntimeExports.jsx(SearchArea,{address:e,setAddress:t,chain:s,setChain:a,loading:l,fetchScan:R,hasSearched:w,error:h})}),d&&jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"60px",alignItems:"stretch"},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[jsxRuntimeExports.jsx("div",{style:{marginBottom:"24px"},children:jsxRuntimeExports.jsx(SearchArea,{address:e,setAddress:t,chain:s,setChain:a,loading:l,fetchScan:R,hasSearched:w,error:h})}),jsxRuntimeExports.jsx("div",{style:{flex:1},children:jsxRuntimeExports.jsx(TokenOverview,{tokenData:d,address:r,showGauge:!1})})]}),b&&jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"stretch"},children:jsxRuntimeExports.jsx(TokenOverview,{tokenData:d,address:r,showGauge:!0})})]}),d&&jsxRuntimeExports.jsx("div",{style:{width:"100%",marginTop:"32px"},children:jsxRuntimeExports.jsx(TokenDetails,{tokenData:d,handleOpenUrl:T})})]})]})})]})},CHAINS$2=[{name:"Ethereum",key:"ethereum"},{name:"BSC",key:"binance"}],HoneySearch=({network:e,setNetwork:t,tokenAddress:r,setTokenAddress:n,isLoading:s,checkHoneypot:a,hasSearched:l,error:u})=>{const[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(""),[w,g]=reactExports.useState(""),b=reactExports.useRef(null),v=reactExports.useRef(null);reactExports.useEffect(()=>{e||t("Ethereum")},[e,t]),reactExports.useEffect(()=>{let T;return s?T=setInterval(()=>{g(z=>z.length>=3?"":z+".")},500):g(""),()=>clearInterval(T)},[s]),reactExports.useEffect(()=>{function T(z){const L=b.current?.querySelector('button[type="button"]');d&&!L?.contains(z.target)&&!v.current?.contains(z.target)&&p(!1)}return document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}},[d]);const E=()=>
1507{if(!r.trim()){x("Please enter a token address");return}x(""),a()},j=T=>{T.key==="Enter"&&E()},R=CHAINS$2.find(T=>T.name===e)||CHAINS$2[0];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1508 @media (max-width: 429px) { 1509 .search-wrapper { 1510 flex-direction: column !important; 1511 align-items: stretch !important; 1512 } 1513 .search-input { 1514 margin-right: 0 !important; 1515 margin-bottom: 12px !important; 1516 height: 56px !important; 1517 } 1518 .scan-btn { 1519 width: 100% !important; 1520 height: 48px !important; 1521 } 1522 } 1523 1524 @media (min-width: 431px) { 1525 .search-wrapper { 1526 flex-direction: row !important; 1527 align-items: center !important; 1528 } 1529 .search-input { 1530 margin-right: 12px; 1531 margin-bottom: 0 !important; 1532 height: 60px !important; 1533 } 1534 .scan-btn { 1535 width: 140px; 1536 height: 60px !important; 1537 flex-shrink: 0; 1538 } 1539 } 1540 1541 /* Consistent dropdown background for all screens */ 1542 .dropdown-background { 1543 background-color: rgba(31, 31, 31, 0.95) !important; 1544 backdrop-filter: blur(10px); 1545 } 1546 `}),jsxRuntimeExports.jsxs("div",{className:`mb-6 relative ${l?"lg:w-full lg:max-w-3xl lg:mx-auto lg:px-2":""}`,ref:b,children:[jsxRuntimeExports.jsxs("div",{className:"search-wrapper flex flex-col w-full",children:[jsxRuntimeExports.jsxs("div",{className:"search-input flex items-center h-16 rounded-xl bg-[#111] border border-[#333] px-3 mb-3 w-full",children:[jsxRuntimeExports.jsxs("button",{className:"flex items-center mr-2 pr-2 border-r border-[#333]",onClick:()=>p(T=>!T),type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${R.key}/info/logo.png`,alt:R.name,className:"w-7 h-7 mr-1"}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${d?"rotate-180":""}`})]}),jsxRuntimeExports.jsx("input",{className:"flex-1 text-white text-sm bg-transparent outline-none placeholder:text-white/40",placeholder:"Search Token By Address",value:r,onChange:T=>{n(T.target.value),h&&x("")},onKeyDown:j})]}),jsxRuntimeExports.jsx("button",{className:"scan-btn w-full h-12 bg-[#CCFF00]/10 rounded-lg flex items-center justify-center border border-[#CCFF00]/80 disabled:opacity-50",onClick:E,disabled:s,type:"button",children:s?jsxRuntimeExports.jsxs("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:["Scanning",w]}):jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(AiOutlineScan,{className:"text-[#CCFF00]/80 text-xl mr-2"}),jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:"Scan"})]})})]}),jsxRuntimeExports.jsx(AnimatePresence,{children:d&&jsxRuntimeExports.jsx(motion.div,{ref:v,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute top-[70px] left-0 rounded-lg py-1.5 w-48 z-50 border border-[#333] dropdown-background",children:CHAINS$2.map(T=>jsxRuntimeExports.jsxs("button",{className:"flex items-center w-full py-2.5 px-3 hover:bg-[#333]/50 rounded transition-colors",onClick:()=>{t(T.name),p(!1)},type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${T.key}/info/logo.png`,alt:T.name,className:"w-6 h-6 mr-2.5"}),jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:T.name})]},T.name))})}),h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdInfoOutline,{className:"text-[#FFC107]/80 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/80 text-lg font-semibold mb-1.5",children:"Address Required"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/70 text-sm font-normal text-center px-10 leading-5",children:h})]}),!l&&!u&&!h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdSearch,{className:"text-white/30 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-white/50 text-lg font-medium mb-2",children:"No search yet"}),jsxRuntimeExports.jsx("span",{className:"text-white/30 text-sm font-normal text-center px-10 leading-5",children:"Enter a token address to begin scanning"})]}),l&&r&&u&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(GoAlertFill,{className:"text-red-500 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-lg font-semibold mb-1.5",children:"Scan Failed"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-sm font-normal text-center px-10 leading-5",children:"Token not found!"})]})]})]})}
1546,baseDiamondSvg=`<svg width="100" height="100" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 1547<path d="M20.9485 11.0195C21.2909 11.6283 21.2909 12.3717 20.9485 12.9805L17.5735 18.9805C17.2192 19.6103 16.5529 20 15.8303 20H8.16969C7.44715 20 6.78078 19.6103 6.42654 18.9805L3.05154 12.9805C2.70908 12.3717 2.70908 11.6283 3.05154 11.0195L6.42654 5.01948C6.78078 4.38972 7.44715 4 8.16969 4H15.8303C16.5529 4 17.2192 4.38972 17.5735 5.01948L20.9485 11.0195Z" fill="{{FILL_COLOR}}" {{STROKE}} stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/> 1548</svg>`,HoneyOverview=({data:e,network:t,tokenAddress:r})=>{const n=z=>z?z.length<=10?z:`${z.substring(0,4)}....${z.substring(z.length-4)}`:"N/A",s=(z,L)=>z?z.length>L?z.substring(0,L)+"...":z:"N/A",a=z=>z>=1e12?(z/1e12).toFixed(2)+"T":z>=1e9?(z/1e9).toFixed(2)+"B":z>=1e6?(z/1e6).toFixed(2)+"M":z>=1e3?(z/1e3).toFixed(2)+"K":z.toString(),l=z=>{let L="";return z!==null?L=`stroke="${z?"red":"#ccff00"}"`:L='stroke="rgba(200, 200, 200, 0.5)"',baseDiamondSvg.replace("{{STROKE}}",L).replace("{{FILL_COLOR}}","#000000")},[u,d]=reactExports.useState("#000000"),[p,h]=reactExports.useState("#000000"),[x,w]=reactExports.useState(!0),[g,b]=reactExports.useState(null),[v,E]=reactExports.useState(l(null));reactExports.useEffect(()=>{let z=!0;const L=V=>{z&&(V("rgba(0, 191, 255, 0.09)"),setTimeout(()=>{z&&V("#000000")},250))};return setTimeout(()=>L(d),0),setTimeout(()=>L(h),500),setTimeout(()=>{if(!z)return;const V=e.is_honeypot==="1"||e.is_honeypot===1||e.is_honeypot===!0;b(V),E(l(V)),w(!1)},1e3),()=>{z=!1}},[e.is_honeypot]);const j=()=>{const z=g||g===!1?"#fff":"gray",L=g?"#ef4444":g===!1?"#CCFF00":"gray",V=g?"red":g===!1?"#CCFF00":"gray",$=g?X:g===!1?Check:null,U=g?TriangleAlert:ShieldCheck;return jsxRuntimeExports.jsx("div",{className:"w-full flex items-center justify-center mb-6 lg:mb-0",children:jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] rounded-3xl lg:rounded-[36px] w-full max-w-4xl lg:max-w-none mx-auto relative lg:aspect-square lg:max-h-[500px]",style:{height:"410px"},children:[jsxRuntimeExports.jsxs("div",{className:"absolute top-5 left-0 right-0 text-center",children:[jsxRuntimeExports.jsxs("h1",{className:"text-white text-xl md:text-2xl lg:text-xl font-bold capitalize",children:[jsxRuntimeExports.jsx("span",{className:"block sm:hidden",children:s(e.token_name,20)}),jsxRuntimeExports.jsx("span",{className:"hidden sm:block",children:s(e.token_name,25)})]}),jsxRuntimeExports.jsxs("p",{className:"text-[#8ca714] text-sm font-medium mt-1",children:["$",e.token_symbol||"N/A"]})]}),jsxRuntimeExports.jsxs("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 flex items-center justify-center",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntimeExports.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 lg:w-20 lg:h-20 xl:w-24 xl:h-24",dangerouslySetInnerHTML:{__html:baseDiamondSvg.replace("{{FILL_COLOR}}",u).replace("{{STROKE}}",'stroke="rgba(200, 200, 200, 0.5)"').replace('width="100"','width="100%"').replace('height="100"','height="100%"')}}),jsxRuntimeExports.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 lg:w-20 lg:h-20 xl:w-24 xl:h-24 -mt-4",dangerouslySetInnerHTML:{__html:baseDiamondSvg.replace("{{FILL_COLOR}}",p).replace("{{STROKE}}",'stroke="rgba(200, 200, 200, 0.5)"').replace('width="100"','width="100%"').replace('height="100"','height="100%"')}})]}),jsxRuntimeExports.jsxs("div",{className:"relative ",children:[jsxRuntimeExports.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 lg:w-20 lg:h-20 xl:w-24 xl:h-24 -ml-4",dangerouslySetInnerHTML:{__html:v.replace('width="100"','width="100%"').replace('height="100"','height="100%"')}}),!x&&$&&jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntimeExports.jsx($,{color:V,size:20,className:"md:w-6 md:h-6 lg:w-5 lg:h-5 xl:w-6 xl:h-6 -ml-4"})})]})]}),!x&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-5 left-1/2 transform -translate-x-1/2",children:jsxRuntimeExports.jsxs("div",{className:"flex justify-center items-center px-2 py-2 rounded-2xl w-[220px] sm:w-full lg:w-[200px] xl:w-[220px] border bg-transparent",style:{borderColor:z},children:[jsxRuntimeExports.jsx(U,{color:L,size:18,className:"lg:w-4 lg:h-4 xl:w-5 xl:h-5"}),jsxRuntimeExports.jsx("span",{className:"ml-2 font-bold text-xs lg:text-xs xl:text-sm",style:{color:L},children:g?"Honeypot Detected!":g===!1?"No Honeypot Found":"Loading..."})]})})]})})},R=()=>{const z=()=>{if(e.chainId)return e.chainId.toUpperCase();if(e.topLiquidityPools&&Array.isArray(e.topLiquidityPools)&&e.topLiquidityPools.length>0){const G=e.topLiquidityPools[0].chainId;if(G)return G.toLowerCase()==="solana"?"SOL":G.toLowerCase()==="bsc"?"BSC":G.toLowerCase()==="ethereum"?"ETH":G.toUpperCase()}if(e.dex&&Array.isArray(e.dex))switch(t?t.toLowerCase():""){case"ethereum":case"eth":return"ETH";case"bsc":case"binance":return"BSC";default:return"BSC"}return"N/A"},L=e.topLiquidityPools&&Array.isArray(e.topLiquidityPools)&&e.topLiquidityPools.length>0;let V=e.topLiquidityPools||[];const $=L&&V&&Array.isArray(V)&&V.length>0,U=!L&&e.dex&&Array.isArray(e.dex);let B=null,P="N/A",H="N/A",Z="N/A",O="N/A",S="N/A";const N=()=>{const G=(ne,ae="")=>{if(!ne||typeof ne!="object")return null;for(const[fe,Se]of Object.entries(ne)){const Ce=ae?`${ae}.${fe}`:fe;if((fe.toLowerCase().includes("price")||fe.toLowerCase().includes("usd"))&&Se&&!isNaN(Number(Se))&&Number(Se)>0)return Se;if(typeof Se=="object"&&Se!==null&&ae.split(".").length<3){const _e=G(Se,Ce);if(_e)return _e}}return null};let Q=null;const te=[e.priceUSD,e.price_usd,e.price,e.token_price,e.current_price,e.usd_price];for(const ne of te)if(ne&&!isNaN(Number(ne))&&Number(ne)>0){Q=ne;break}if(!Q&&$&&V&&V.length>0){const ne=V[0].priceUSD;ne&&!isNaN(Number(ne))&&Number(ne)>0&&(Q=ne)}if(Q||(Q=G(e)),!Q){for(const[ne,ae]of Object.entries(e))if(typeof ae=="string"||typeof ae=="number"){const fe=Number(ae);if(!isNaN(fe)&&fe>0&&fe<10&&(ne.includes("price")||ne.includes("usd")||ne.includes("Price"))){Q=ae;break}}}return Q?`$${Number(Q).toFixed(8)}`:"N/A"};$&&V.length>0?(B=V[0],P=B.dex?B.dex.toUpperCase():"N/A",H=B.pairAddress||"N/A",Z=B.liquidityUSD?`$${a(Number(B.liquidityUSD))}`:"N/A",S=B.volume24h?`$${a(Number(B.volume24h))}`:"N/A"):U&&e.dex.length>0&&(B=e.dex[0],P=B.name||"N/A",H=B.pair||"N/A",Z=B.liquidity?`$${a(Number(B.liquidity))}`:"N/A",S="N/A"),O=N();let F=e.totalSupply||e.total_supply,k="N/A";$&&V&&V.length>0?k=V[0].baseTokenAddress||"N/A":k=e.token_address||"N/A";const q=(()=>
1548{if($)return{label:"Volume",value:S||"N/A"};{const G=e.holder_count||e.holderCount||"N/A";return{label:"Holder Count",value:G!=="N/A"?a(Number(G)):"N/A"}}})(),A=[{label:"Total Supply",value:F?a(Number(F)):"N/A"},{label:"Token Address",value:k,copyable:k&&k!=="N/A",hideIcon:!0},{label:"Chain",value:z()},{label:"DEX",value:P||"N/A"},{label:"Pair Address",value:H||"N/A",copyable:H&&H!=="N/A",hideIcon:!0},{label:"Liquidity",value:Z||"N/A"},{label:"Price",value:O||"N/A"},q];if(A.length===0)return null;const D=A.slice(0,Math.ceil(A.length/2)),_=A.slice(Math.ceil(A.length/2)),M=G=>{let Q=window.innerWidth;return Q<935&&Q>768||Q<430?G.substring(0,27):G};return jsxRuntimeExports.jsxs("div",{className:"w-full max-w-6xl lg:max-w-none mx-auto px-1.5 lg:px-0 h-full flex flex-col",children:[jsxRuntimeExports.jsx("h2",{className:"text-[#CCFF00] text-base md:text-lg lg:text-base font-semibold mb-3 lg:mb-2 tracking-wider opacity-75",children:"KEY METRICS"}),jsxRuntimeExports.jsx("div",{className:"bg-[#141416] rounded-2xl p-4 md:p-6 lg:p-4 xl:p-5 flex-1 flex flex-col justify-center",children:jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2 gap-4 lg:gap-2.5 xl:gap-3.5",children:[jsxRuntimeExports.jsx("div",{className:"space-y-3 lg:space-y-2 xl:space-y-2.5",children:D.map((G,Q)=>jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-xl p-4 lg:p-3 xl:p-3.5 min-h-[60px] lg:min-h-[48px] xl:min-h-[52px] flex flex-col justify-center",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-xs md:text-sm lg:text-xs xl:text-sm mb-1",children:G.label}),G.copyable?jsxRuntimeExports.jsxs("button",{onClick:()=>copyToClipboard$1(G.value||""),className:"text-left flex items-center group",children:[jsxRuntimeExports.jsx("span",{className:"text-white text-sm md:text-base lg:text-sm xl:text-base font-medium",children:n(G.value||"N/A")}),!G.hideIcon&&jsxRuntimeExports.jsx(Copy,{size:12,className:"ml-2 text-gray-400 group-hover:text-white transition-colors lg:w-3 lg:h-3 xl:w-3.5 xl:h-3.5"})]}):jsxRuntimeExports.jsx("span",{className:"text-white text-sm md:text-base lg:text-sm xl:text-base font-medium",children:G.value||"N/A"})]},Q))}),jsxRuntimeExports.jsx("div",{className:"space-y-3 lg:space-y-2 xl:space-y-2.5",children:_.map((G,Q)=>jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-xl p-4 lg:p-3 xl:p-3.5 min-h-[60px] lg:min-h-[48px] xl:min-h-[52px] flex flex-col justify-center",children:[jsxRuntimeExports.jsx("span",{className:"text-white/60 text-xs md:text-sm lg:text-xs xl:text-sm mb-1",children:G.label}),G.copyable?jsxRuntimeExports.jsxs("button",{onClick:()=>copyToClipboard$1(G.value||""),className:"text-left flex items-center group",children:[jsxRuntimeExports.jsx("span",{className:"text-white text-sm md:text-base lg:text-sm xl:text-base font-medium",children:n(G.value||"N/A")}),!G.hideIcon&&jsxRuntimeExports.jsx(Copy,{size:12,className:"ml-2 text-gray-400 group-hover:text-white transition-colors lg:w-3 lg:h-3 xl:w-3.5 xl:h-3.5"})]}):jsxRuntimeExports.jsx("span",{className:"text-white text-sm md:text-base lg:text-sm xl:text-base font-medium",children:M(G.value)||"N/A"})]},Q))})]})})]})},T=()=>{const z=[{label:"Honeypot",value:e.is_honeypot==="1",type:"danger",icon:MdSecurity,description:"Token may prevent selling"},{label:"Blacklisted",value:e.is_blacklisted==="1",type:"danger",icon:MdBlock,description:"Token is on blacklist"},{label:"Anti-Whale",value:e.is_anti_whale==="1",type:"warning",icon:MdShield,description:"Large transaction limits"},{label:"Whitelisted",value:e.is_whitelisted==="1",type:"success",icon:MdVerified,description:"Token is verified"},{label:"Proxy Contract",value:e.is_proxy==="1",type:"warning",icon:MdInfo,description:"Uses proxy pattern"}];return jsxRuntimeExports.jsxs("div",{className:"w-full max-w-6xl mx-auto px-1.5 mt-8 lg:mt-0",children:[jsxRuntimeExports.jsx("h2",{className:"text-[#CCFF00be] text-base md:text-lg font-semibold mb-6 tracking-wider",children:"SECURITY FLAGS"}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4",children:z.map((L,V)=>{const U=(()=>
1548{if(L.value){if(L.type==="danger")return{bg:"bg-red-500/10",border:"border-red-500/30",icon:"text-red-400",text:"text-red-400",status:"text-red-400"};if(L.type==="warning")return{bg:"bg-yellow-500/10",border:"border-yellow-500/30",icon:"text-yellow-400",text:"text-yellow-400",status:"text-yellow-400"};if(L.type==="success")return{bg:"bg-green-500/10",border:"border-green-500/30",icon:"text-green-400",text:"text-green-400",status:"text-green-400"}}return{bg:"bg-gray-500/5",border:"border-gray-600/20",icon:"text-gray-500",text:"text-gray-400",status:"text-gray-500"}})(),B=L.icon;return jsxRuntimeExports.jsxs("div",{className:`${U.bg} ${U.border} border rounded-xl p-4 transition-all duration-200 hover:scale-105`,children:[jsxRuntimeExports.jsxs("div",{className:"flex sm:hidden items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-3",children:[jsxRuntimeExports.jsx(B,{className:`${U.icon} text-xl`}),jsxRuntimeExports.jsx("div",{className:`${U.text} text-sm font-semibold`,children:L.label})]}),jsxRuntimeExports.jsx("div",{className:`${U.status} text-xs font-medium`,children:L.value?jsxRuntimeExports.jsx("span",{children:"Active"}):jsxRuntimeExports.jsx("span",{children:"Inactive"})})]}),jsxRuntimeExports.jsxs("div",{className:"hidden sm:flex flex-col items-center text-center space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center",children:jsxRuntimeExports.jsx(B,{className:`${U.icon} text-2xl`})}),jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsx("div",{className:`${U.text} text-sm font-semibold`,children:L.label}),jsxRuntimeExports.jsx("div",{className:`${U.status} text-xs font-medium`,children:L.value?jsxRuntimeExports.jsx("span",{children:"Active"}):jsxRuntimeExports.jsx("span",{children:"Inactive"})})]})]})]},V)})})]})};return jsxRuntimeExports.jsx("div",{className:"py-6",children:jsxRuntimeExports.jsxs("div",{className:"w-full max-w-6xl mx-auto",children:[jsxRuntimeExports.jsxs("div",{className:"block lg:hidden",children:[j(),R(),T()]}),jsxRuntimeExports.jsxs("div",{className:"hidden lg:block",children:[jsxRuntimeExports.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 mb-8 items-stretch",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center h-[410px]",children:j()}),jsxRuntimeExports.jsx("div",{className:"flex items-center h-[410px]",children:jsxRuntimeExports.jsx("div",{className:"w-full",children:R()})})]}),T()]})]})})},HoneyDetails=({data:e})=>{const t=a=>a?String(a):null,r=a=>a==null?null:Number(a).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}),n=a=>a==="0"?"No":a==="1"?"Yes":null;return(()=>{const a=[{label:"Holder Count:",value:t(e.holder_count)},{label:"Transfer Tax:",value:e.transfer_tax?`${r(e.transfer_tax)}%`:null},{label:"LP Holder Count:",value:t(e.lp_holder_count)},{label:"LP Total Supply:",value:r(e.lp_total_supply)}].filter(u=>u.value!==null),l=[{label:"Is Open Source:",value:n(e.is_open_source)},{label:"Is in DEX:",value:n(e.is_in_dex)},{label:"Is Proxy:",value:n(e.is_proxy)},{label:"Is Anti-Whale:",value:n(e.is_anti_whale)},{label:"Anti-Whale Modifiable:",value:n(e.anti_whale_modifiable)},{label:"Can Take Back Ownership:",value:n(e.can_take_back_ownership)},{label:"Cannot Buy:",value:n(e.cannot_buy)},{label:"Cannot Sell All:",value:n(e.cannot_sell_all)},{label:"External Call:",value:n(e.external_call)},{label:"Hidden Owner:",value:n(e.hidden_owner)},{label:"Is Blacklisted:",value:n(e.is_blacklisted)},{label:"Is Mintable:",value:n(e.is_mintable)},{label:"Is Whitelisted:",value:n(e.is_whitelisted)},{label:"Personal Slippage Modifiable:",value:n(e.personal_slippage_modifiable)},{label:"Selfdestruct:",value:n(e.selfdestruct)},{label:"Slippage Modifiable:",value:n(e.slippage_modifiable)},{label:"Trading Cooldown:",value:n(e.trading_cooldown)},{label:"Transfer Pausable:",value:n(e.transfer_pausable)},{label:"Launchpad Token:",value:e.launchpad_token?.is_launchpad_token==="1"?`Yes (${t(e.launchpad_token?.launchpad_name)})`:e.launchpad_token?.is_launchpad_token==="0"?"No":null},{label:"Honeypot with Same Creator:",value:t(e.honeypot_with_same_creator)}].filter(u=>u.value!==null);return a.length===0&&l.length===0?null:jsxRuntimeExports.jsxs("div",{className:"w-full max-w-6xl mx-auto px-1.5 py-4",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg sm:text-xl font-semibold text-[#CCFF00be] mb-4 border-b border-gray-700 pb-2 tracking-wider",children:"TOKEN DETAILS"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-3 sm:gap-4",children:[a.map((u,d)=>jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] p-3 sm:p-4 roun
1548ded-lg border border-[#212121b8] flex flex-col sm:flex-row sm:justify-between sm:items-center gap-1 sm:gap-0",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-400 text-xs sm:text-sm font-medium",children:u.label}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-sm sm:text-base break-words",children:u.value})]},`metric-${d}`)),l.map((u,d)=>jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] p-3 sm:p-4 rounded-lg border border-[#212121b8] flex flex-col sm:flex-row sm:justify-between sm:items-center gap-1 sm:gap-0",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-400 text-xs sm:text-sm font-medium break-words",children:u.label}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-sm sm:text-base",children:u.value})]},`detail-${d}`))]})]})})()},HoneyTokenHolders=({data:e,network:t})=>{const[r,n]=reactExports.useState(window.innerWidth),s=(d,p)=>p>1180?`${d.slice(0,12)}...${d.slice(-8)}`:p<=480?`${d.slice(0,5)}...${d.slice(-5)}`:`${d.slice(0,10)}....${d.slice(-10)}`,a=d=>{if(!d||d===0)return"0";const p=Number(d);return p>=1e12?`${(p/1e12).toFixed(2)}T`:p>=1e9?`${(p/1e9).toFixed(2)}B`:p>=1e6?`${(p/1e6).toFixed(2)}M`:p>=1e3?`${(p/1e3).toFixed(2)}K`:p.toFixed(2)};reactExports.useEffect(()=>{const d=()=>n(window.innerWidth);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]);const l=d=>{if(!e?.holders||!Array.isArray(e.holders)||e.holders.length===0)return null;const p=(x,w)=>{let g;return x==="Solana"?w!=null&&(g=Number(w).toFixed(4)+"%"):w!=null&&(g=(Number(w)*100).toFixed(4)+"%"),g},h={section:{marginBottom:32},title:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:600,marginBottom:16,letterSpacing:1},table:{backgroundColor:"#141416",borderRadius:8,padding:r>1180?"16px":"12px",display:"flex",flexDirection:"column",alignItems:"center"},row:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},rank:{color:"#CCFF00be",fontWeight:600,marginRight:8,textAlign:"center"},addressBtn:{flex:1,background:"none",border:"none",cursor:"pointer",padding:0,textAlign:"left"},address:{color:"#fff",margin:"0 8px",whiteSpace:r>1180?"normal":"nowrap",overflow:r>1180?"visible":"hidden",textOverflow:r>1180?"unset":"ellipsis",display:"block",wordBreak:r>1180?"break-all":"normal"},balance:{color:"#fff",fontWeight:600,textAlign:"center",marginLeft:r>1180?"-270px":"0",marginRight:r>1180?"270px":"0",minWidth:r<=480?60:80,maxWidth:r<=480?70:90},percent:{color:"#fff",fontWeight:600,textAlign:"right",minWidth:80},headerRow:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},headerText:{color:"#ccc",fontWeight:600,fontSize:"0.85rem",textTransform:"none",letterSpacing:"0px"}};return jsxRuntimeExports.jsxs("div",{style:{...h.section,fontFamily:"sans-serif"},children:[jsxRuntimeExports.jsx("h3",{style:h.title,children:"TOP HOLDERS"}),jsxRuntimeExports.jsxs("div",{style:h.table,children:[jsxRuntimeExports.jsxs("div",{style:h.headerRow,children:[jsxRuntimeExports.jsx("span",{style:{...h.headerText,width:r<=480?18:20,marginRight:8,textAlign:"center"},children:"#"}),jsxRuntimeExports.jsx("span",{style:{...h.headerText,flex:1,textAlign:"left",margin:r<=480?"0 4px":"0 8px"},children:"Address"}),jsxRuntimeExports.jsx("span",{style:{...h.headerText,textAlign:"center",marginLeft:r>1180?"-270px":"0",marginRight:r>1180?"270px":"0",minWidth:r<=480?60:80,maxWidth:r<=480?70:90},children:"Balance"}),jsxRuntimeExports.jsx("span",{style:{...h.headerText,minWidth:80,textAlign:"right"},children:"Share"})]}),e.holders.map((x,w)=>jsxRuntimeExports.jsxs("div",{style:h.row,children:[jsxRuntimeExports.jsx("span",{style:{...h.rank,fontSize:r<=480?"0.75rem":"0.9rem",width:r<=480?18:20},children:w+1}),jsxRuntimeExports.jsx("button",{style:h.addressBtn,onClick:()=>copyToClipboard$1(x.address),children:jsxRuntimeExports.jsx("span",{style:{...h.address,fontSize:r<=480?"0.7rem":"0.9rem",margin:r<=480?"0 4px":"0 8px"},children:s(x.address,r)})}),jsxRuntimeExports.jsx("span",{style:{...h.balance,fontSize:r<=480?"0.75rem":"0.9rem"},children:a(x.balance)}),jsxRuntimeExports.jsx("span",{style:{...h.percent,fontSize:r<=480?"0.75rem":"0.9rem"},children:p(d,x.percent)}
1548)]},w))]})]})},u=()=>{if(!e?.lp_holders||!Array.isArray(e.lp_holders)||e.lp_holders.length===0)return null;const d={section:{marginBottom:32},title:{color:"#CCFF00be",fontSize:"clamp(1rem, 1.5vw, 1.2rem)",fontWeight:600,marginBottom:16,letterSpacing:1},table:{backgroundColor:"#141416",borderRadius:8,padding:r>1180?"16px":"12px",display:"flex",flexDirection:"column",alignItems:"center"},row:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},rank:{color:"#CCFF00be",fontWeight:600,marginRight:8,textAlign:"center"},addressBtn:{flex:1,background:"none",border:"none",cursor:"pointer",padding:0,textAlign:"left"},address:{color:"#fff",margin:"0 8px",whiteSpace:r>1180?"normal":"nowrap",overflow:r>1180?"visible":"hidden",textOverflow:r>1180?"unset":"ellipsis",display:"block",wordBreak:r>1180?"break-all":"normal"},balance:{color:"#fff",fontWeight:600,textAlign:"center",marginLeft:r>1180?"-270px":"0",marginRight:r>1180?"270px":"0",minWidth:r<=480?60:80,maxWidth:r<=480?70:90},percent:{color:"#fff",fontWeight:600,textAlign:"right",minWidth:80},headerRow:{display:"flex",alignItems:"center",padding:"8px 0",borderBottom:"1px solid #212121b8",whiteSpace:"nowrap",overflow:"hidden",width:"100%"},headerText:{color:"#ccc",fontWeight:600,fontSize:"0.85rem",textTransform:"none",letterSpacing:"0px"}};return jsxRuntimeExports.jsxs("div",{style:{...d.section,fontFamily:"sans-serif"},children:[jsxRuntimeExports.jsx("h3",{style:d.title,children:"LP HOLDERS"}),jsxRuntimeExports.jsxs("div",{style:d.table,children:[jsxRuntimeExports.jsxs("div",{style:d.headerRow,children:[jsxRuntimeExports.jsx("span",{style:{...d.headerText,width:r<=480?18:20,marginRight:8,textAlign:"center"},children:"#"}),jsxRuntimeExports.jsx("span",{style:{...d.headerText,flex:1,textAlign:"left",margin:r<=480?"0 4px":"0 8px"},children:"Address"}),jsxRuntimeExports.jsx("span",{style:{...d.headerText,textAlign:"center",marginLeft:r>1180?"-270px":"0",marginRight:r>1180?"270px":"0",minWidth:r<=480?60:80,maxWidth:r<=480?70:90},children:"Balance"}),jsxRuntimeExports.jsx("span",{style:{...d.headerText,minWidth:80,textAlign:"right"},children:"Share"})]}),e.lp_holders.slice(0,10).map((p,h)=>jsxRuntimeExports.jsxs("div",{style:d.row,children:[jsxRuntimeExports.jsx("span",{style:{...d.rank,fontSize:r<=480?"0.75rem":"0.9rem",width:r<=480?18:20},children:h+1}),jsxRuntimeExports.jsx("button",{style:d.addressBtn,onClick:()=>copyToClipboard$1(p.address),children:jsxRuntimeExports.jsx("span",{style:{...d.address,fontSize:r<=480?"0.7rem":"0.9rem",margin:r<=480?"0 4px":"0 8px"},children:s(p.address,r)})}),jsxRuntimeExports.jsx("span",{style:{...d.balance,fontSize:r<=480?"0.75rem":"0.9rem"},children:a(p.balance)}),jsxRuntimeExports.jsx("span",{style:{...d.percent,fontSize:r<=480?"0.75rem":"0.9rem"},children:p.percent!=null?(Number(p.percent)*100).toFixed(2)+"%":"--"})]},h))]})]})};return jsxRuntimeExports.jsxs("div",{className:"w-full max-w-6xl mx-auto px-1.5",children:[l(t),u()]})},LiquidityPools=({data:e})=>{const[t,r]=reactExports.useState(2),[n,s]=reactExports.useState(window.innerWidth);reactExports.useEffect(()=>{const u=()=>s(window.innerWidth);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]);const a=e?.topLiquidityPools||[];if(!a||!Array.isArray(a)||a.length===0)return null;const l=()=>{const u=a.length,d=u>2,p=a.slice(0,t),h=t>=u,x=()=>{r(R=>Math.min(R+2,u))},w=()=>{r(2)},g=R=>R?{xs:`${R.slice(0,6)}...${R.slice(-6)}`,sm:`${R.slice(0,8)}...${R.slice(-8)}`,md:`${R.slice(0,12)}...${R.slice(-12)}`,full:R}:"N/A",b=R=>R>=1e6?`$${(R/1e6).toFixed(2)}M`:R>=1e3?`$${(R/1e3).toFixed(2)}K`:`$${R.toFixed(2)}`,v=R=>R>=1e6?`$${(R/1e6).toFixed(2)}M`:R>=1e3?`$${(R/1e3).toFixed(2)}K`:`$${R.toFixed(2)}`,E=(R,T=!1)=>{if(!R||R==="N/A")return"N/A";const z=String(R),L=z.indexOf(".");if(L===-1)return z;const V=T?11:3;return z.slice(0,L+V+1)},j=R=>{if(!R||R===0)return"0";const T=Number(R);return T>=1e12?`${(T/1e12).toFixed(2)}T`:T>=1e9?`${(T/1e9).toFixed(2)}B`:T>=1e6?`${(T/1e6).toFixed(2)}M`:T>=1e3?`${(T/1e3).toFixed(2)}
1548K`:T.toLocaleString()};return jsxRuntimeExports.jsxs("div",{className:"mb-8 w-full",children:[jsxRuntimeExports.jsx("p",{className:"text-lg sm:text-xl font-semibold mb-4 tracking-wider text-[#CCFF00be]",children:"LIQUIDITY POOLS"}),jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 gap-4",children:p.map((R,T)=>jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("div",{className:"bg-[#141416] rounded-lg p-4 border border-[#212121b8] h-full",children:jsxRuntimeExports.jsxs("div",{className:"bg-[#0a0a0b] rounded-lg p-4 h-full",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3 mb-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00] text-sm font-bold uppercase",children:R.dex}),jsxRuntimeExports.jsx("span",{className:"bg-gray-700 text-gray-300 px-2 py-1 rounded text-xs uppercase",children:R.chainId})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-2",children:[jsxRuntimeExports.jsxs("span",{className:"text-white font-bold text-xl",children:[R.baseToken,"/",R.quoteToken]}),jsxRuntimeExports.jsxs("div",{className:"text-left sm:text-right",children:[jsxRuntimeExports.jsx("div",{className:"text-white font-bold text-xl",children:R.liquidityUSD?b(R.liquidityUSD):"N/A"}),jsxRuntimeExports.jsx("div",{className:"text-gray-400 text-sm",children:"Total Liquidity"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"mb-4",children:[jsxRuntimeExports.jsxs("div",{className:"sm:hidden space-y-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-600/30",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-400 text-sm",children:"Price USD"}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-lg",children:R.priceUSD?`$${Number(R.priceUSD).toFixed(6)}`:"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-600/30",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-400 text-sm",children:"24h Volume"}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-lg",children:R.volume24h?v(R.volume24h):"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-600/30",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-400 text-sm",children:"Native Price"}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold text-lg",children:E(R.priceNative,n<640)})]})]}),jsxRuntimeExports.jsxs("div",{className:"hidden sm:grid sm:grid-cols-3 gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"bg-black/50 rounded-lg p-3 text-center",children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 text-sm mb-1",children:"Price USD"}),jsxRuntimeExports.jsx("div",{className:"text-white font-semibold text-lg",children:R.priceUSD?`$${Number(R.priceUSD).toFixed(6)}`:"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"bg-black/50 rounded-lg p-3 text-center",children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 text-sm mb-1",children:"24h Volume"}),jsxRuntimeExports.jsx("div",{className:"text-white font-semibold text-lg",children:R.volume24h?v(R.volume24h):"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"bg-black/50 rounded-lg p-3 text-center",children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 text-sm mb-1",children:"Native Price"}),jsxRuntimeExports.jsx("div",{className:"text-white font-semibold text-lg",children:E(R.priceNative,!1)})]})]})]}),R.pooledTokens&&R.pooledTokens.length>0&&jsxRuntimeExports.jsxs("div",{className:"mb-4",children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 text-sm mb-3 font-medium",children:"Pooled Tokens"}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 gap-3",children:R.pooledTokens.map((z,L)=>jsxRuntimeExports.jsxs("div",{className:"bg-black/50 rounded-lg p-3",children:[jsxRuntimeExports.jsxs("div",{className:"hidden sm:flex justify-between items-center",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00] font-bold text-sm",children:z.symbol}),jsxRuntimeExports.jsx("span",{className:"text-gray-300 text-sm",children:z.amount?j(z.amount):"N/A"})]}),jsxRuntimeExports.jsx("div",{className:"flex-1 text-center mx-4",children:jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard(z.address),className:"text-gray-400 text-xs font-mono curs
1548or-pointer",title:"Click to copy token address",children:z.address?`${z.address.slice(0,8)}...${z.address.slice(-8)}`:"N/A"})}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold",children:z.usd?b(z.usd):"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"sm:hidden",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00] font-bold text-sm",children:z.symbol}),jsxRuntimeExports.jsx("span",{className:"text-gray-300 text-sm",children:z.amount?j(z.amount):"N/A"})]}),jsxRuntimeExports.jsx("span",{className:"text-white font-semibold",children:z.usd?b(z.usd):"N/A"})]}),jsxRuntimeExports.jsx("button",{onClick:()=>copyToClipboard(z.address),className:"text-gray-400 text-xs font-mono cursor-pointer block",title:"Click to copy token address",children:z.address?`${z.address.slice(0,12)}...${z.address.slice(-12)}`:"N/A"})]})]},L))})]}),jsxRuntimeExports.jsx("div",{className:"border-t border-[#212121b8] pt-3",children:jsxRuntimeExports.jsxs("button",{className:"w-full bg-black/50 rounded-lg p-3 text-left",onClick:()=>copyToClipboard(R.pairAddress),title:"Click to copy pair address",children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 text-sm mb-1",children:"Pair Address"}),jsxRuntimeExports.jsxs("div",{className:"text-white text-sm font-mono",children:[jsxRuntimeExports.jsx("span",{className:"block sm:hidden",children:g(R.pairAddress).xs}),jsxRuntimeExports.jsx("span",{className:"hidden sm:block md:hidden",children:g(R.pairAddress).sm}),jsxRuntimeExports.jsx("span",{className:"hidden md:block lg:hidden",children:g(R.pairAddress).md}),jsxRuntimeExports.jsx("span",{className:"hidden lg:block break-all",children:R.pairAddress})]})]})})]})})},T))}),d&&jsxRuntimeExports.jsx("div",{className:"flex justify-center mt-6 pt-4",children:jsxRuntimeExports.jsx("button",{onClick:h?w:x,className:"border-2 border-[#CCFF00be] text-[#CCFF00be] px-6 py-2 rounded-lg font-semibold hover:bg-[#CCFF00be]/10 transition-colors",children:h?"View Less":"View More"})})]})]})};return jsxRuntimeExports.jsx("div",{className:"w-full max-w-6xl mx-auto px-1.5",children:l()})},HoneypotDetector=()=>{const[e,t]=reactExports.useState("Ethereum"),[r,n]=reactExports.useState(""),[s,a]=reactExports.useState(""),[l,u]=reactExports.useState(!1),[d,p]=reactExports.useState(""),[h,x]=reactExports.useState(null),[w,g]=reactExports.useState(!1);reactExports.useEffect(()=>{e||t("Ethereum")},[e]);const b=(j,R)=>R?j==="Ethereum"||j==="BSC"?/^0x[a-fA-F0-9]{40}$/.test(R):j==="Solana"?/^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(R):!1:!1,v=(j,R)=>{const T="https://coinguardbackend.up.railway.app";switch(j){case"BSC":return`${T}/api/honeypot-check/bsc/${R}`;case"Ethereum":return`${T}/api/honeypot-check/eth/${R}`;case"Solana":default:return`${T}/api/honeypot-check/sol/${R}`}},E=async()=>{if(p(""),x(null),g(!0),!b(e,r)){p(`Invalid address format for ${e}`);return}a(r),u(!0);try{const j=v(e,r),R=await fetch(j);if(!R.ok)throw new Error(`API Error: ${R.status} ${R.statusText}`);const T=await R.json();if(!T.honeypot||typeof T.honeypot!="object")throw new Error("Invalid response from server");const z={...T.honeypot,topLiquidityPools:T.honeypot.topLiquidityPools||T.topLiquidityPools||[]};x(z)}catch(j){let R="An unexpected error occurred. Please try again.";j instanceof Error&&(j.message.includes("Failed to fetch")?R="Network error. Please check your internet connection.":j.message.includes("API Error: 404")?R=`${e} endpoint not available. Please try Solana or contact support.`:j.message.includes("API Error:")?R=`Server error: ${j.message}`:j.message==="Invalid response from server"&&(R="Please select correct chain")),p(R)}finally{u(!1)}};return jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"block lg:hidden",children:jsxRuntimeExports.jsxs("div",{className:"pt-5 px-[20px] max-[425px]:px-[16px] pb-8 max-w-3xl mx-auto",children:[jsxRuntimeExports.jsx("h1",{className:"text-2xl xs:text-3xl sm:text-4xl font-bold mb-6 text-center text-white",children:"Honeypot Detector"}),jsxRuntimeExports.jsx(HoneySearch,{network:e,setNetwork:t,tokenAddress:r,setTokenAddress:n,isLoading:l,checkHoneypot:E,hasSearched:w,error:d}),h&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HoneyOverview,{data:h,network:e,tokenAddress:s}),jsxRuntimeExports.jsx(HoneyDetails,{data:h}),jsxRuntimeExports.jsx(LiquidityPools,{data:h}),jsxRuntimeExports.jsx(HoneyTokenHolders,{data:h,network:e})]})]})}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block",children:jsxRuntimeExports.jsxs("div",{className:"pt-4 pb-8",children:[jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto px-8",children:jsxRuntimeExports.jsx("h1",{className:"text-xl sm:text-2xl lg:text-3xl font-bold mb-4 text-center text-white mt-0",children:"Honeypot Detector"})}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-800 mb
1548-6 w-full"}),jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto px-1 lg:px-[64px] lg:py-8",children:[!h&&jsxRuntimeExports.jsx("div",{className:"mb-6 pb-6",style:{maxWidth:"700px",margin:"0 auto"},children:jsxRuntimeExports.jsx(HoneySearch,{network:e,setNetwork:t,tokenAddress:r,setTokenAddress:n,isLoading:l,checkHoneypot:E,hasSearched:w,error:d})}),h&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{marginBottom:"24px"},children:jsxRuntimeExports.jsx(HoneySearch,{network:e,setNetwork:t,tokenAddress:r,setTokenAddress:n,isLoading:l,checkHoneypot:E,hasSearched:w,error:d})}),jsxRuntimeExports.jsx(HoneyOverview,{data:h,network:e,tokenAddress:s}),jsxRuntimeExports.jsxs("div",{style:{marginTop:"32px"},children:[jsxRuntimeExports.jsx(HoneyDetails,{data:h}),jsxRuntimeExports.jsx(LiquidityPools,{data:h}),jsxRuntimeExports.jsx(HoneyTokenHolders,{data:h,network:e})]})]})]})]})})]})},CHAINS$1=[{name:"Solana",key:"solana"},{name:"Ethereum",key:"ethereum"},{name:"BSC",key:"binance"}],DAYS_OPTIONS=[{label:"24 Hours",value:"1"},{label:"7 Days",value:"7"},{label:"15 Days",value:"15"},{label:"1 Month",value:"30"}],WhaleSearch=({address:e,setAddress:t,chain:r,setChain:n,days:s,setDays:a,loading:l,fetchWalletData:u,hasSearched:d,hasSuccessfulSearch:p,error:h})=>{const[x,w]=reactExports.useState(!1),[g,b]=reactExports.useState(!1),[v,E]=reactExports.useState(""),[j,R]=reactExports.useState(""),T=reactExports.useRef(null);reactExports.useEffect(()=>{r||n("BSC")},[r,n]),reactExports.useEffect(()=>{let $;return l?$=setInterval(()=>{R(U=>U.length>=3?"":U+".")},500):R(""),()=>clearInterval($)},[l]),reactExports.useEffect(()=>{p&&e.trim()&&u()},[s]),reactExports.useEffect(()=>{function $(U){T.current&&!T.current.contains(U.target)&&(w(!1),b(!1))}return document.addEventListener("mousedown",$),document.addEventListener("touchstart",$),()=>{document.removeEventListener("mousedown",$),document.removeEventListener("touchstart",$)}},[]);const z=CHAINS$1.find($=>$.name===r)||CHAINS$1[2],L=DAYS_OPTIONS.find($=>$.value===s)||DAYS_OPTIONS[0],V=()=>{if(!e.trim()){E("Please enter a wallet address");return}E(""),u()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1549 @media (min-width: 640px) { 1550 /* Desktop layout â¥640px */ 1551 .search-wrapper { 1552 flex-direction: row !important; 1553 align-items: center !important; 1554 } 1555 .search-input { 1556 margin-right: 12px; 1557 margin-bottom: 0 !important; 1558 height: 60px !important; 1559 flex: 1; 1560 } 1561 .scan-btn { 1562 width: 140px; 1563 height: 60px !important; 1564 flex-shrink: 0; 1565 } 1566 .interval-row { 1567 display: flex; 1568 justify-content: space-between; 1569 align-items: center; 1570 margin-top: 12px; 1571 } 1572 .interval-text { 1573 padding-top: 8px; 1574 } 1575 .interval-dropdown { 1576 width: 140px; 1577 padding-top: 2px; 1578 } 1579 } 1580 1581 @media (max-width: 639px) { 1582 /* Mobile layout <640px */ 1583 .search-wrapper { 1584 flex-direction: column !important; 1585 } 1586 .search-input { 1587 margin-bottom: 12px !important; 1588 height: 50px !important; 1589 } 1590 .scan-btn { 1591 width: 100%; 1592 height: 50px !important; 1593 } 1594 } 1595 1596 .dropdown-background { 1597 background-color: rgba(31, 31, 31, 0.95) !important; 1598 backdrop-filter: blur(10px); 1599 } 1600 `}),jsxRuntimeExports.jsxs("div",{className:"mb-6 relative",ref:T,children:[jsxRuntimeExports.jsxs("div",{className:"search-wrapper flex flex-col w-full",children:[jsxRuntimeExports.jsxs("div",{className:"search-input flex items-center rounded-xl bg-[#111] border border-[#333] px-3 mb-3 w-full",children:[jsxRuntimeExports.jsxs("button",{className:"flex items-center mr-2 pr-2 border-r border-[#333]",onClick:()=>w($=>!$),type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${z.key}/info/logo.png`,alt:z.name,className:"w-7 h-7 mr-1"}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${x?"rotate-180":""}`})]}
1600),jsxRuntimeExports.jsx("input",{id:"wallet-address-input",name:"walletAddress",className:"flex-1 text-white text-sm bg-transparent outline-none placeholder:text-white/40",placeholder:"Search Wallet By Address",value:e,onChange:$=>{t($.target.value),v&&E("")},onKeyDown:$=>$.key==="Enter"&&V(),autoComplete:"off"})]}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-3 px-1 sm:hidden",children:[jsxRuntimeExports.jsx("span",{className:"text-white text-sm font-medium",children:"Activity Interval"}),jsxRuntimeExports.jsxs("button",{className:"flex items-center py-1.5 px-2.5 rounded-lg bg-[#111] border border-[#333]",onClick:()=>b($=>!$),type:"button",children:[jsxRuntimeExports.jsx("span",{className:"text-white mr-1",children:L.label}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${g?"rotate-180":""}`})]})]}),jsxRuntimeExports.jsx("button",{className:"scan-btn w-full bg-[#CCFF00]/10 rounded-lg flex items-center justify-center border border-[#CCFF00]/80 disabled:opacity-50",onClick:V,disabled:l,type:"button",children:l?jsxRuntimeExports.jsxs("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:["Scanning",j]}):jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(AiOutlineScan,{className:"text-[#CCFF00]/80 text-xl mr-2"}),jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:"Scan"})]})})]}),jsxRuntimeExports.jsxs("div",{className:"interval-row hidden sm:flex",children:[jsxRuntimeExports.jsx("span",{className:"interval-text text-white text-sm font-medium",children:"Activity Interval"}),jsxRuntimeExports.jsxs("button",{className:"interval-dropdown flex items-center py-1.5 px-2.5 rounded-lg bg-[#111] border border-[#333]",onClick:()=>b($=>!$),type:"button",children:[jsxRuntimeExports.jsx("span",{className:"text-white mr-1",children:L.label}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${g?"rotate-180":""}`})]})]}),jsxRuntimeExports.jsx(AnimatePresence,{children:x&&jsxRuntimeExports.jsx(motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute top-[70px] left-0 rounded-lg py-1.5 w-48 z-50 border border-[#333] dropdown-background",children:CHAINS$1.map($=>jsxRuntimeExports.jsxs("button",{className:"flex items-center w-full py-2.5 px-3 hover:bg-[#333]/50 rounded transition-colors",onClick:()=>{n($.name),w(!1)},type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${$.key}/info/logo.png`,alt:$.name,className:"w-6 h-6 mr-2.5"}),jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:$.name})]},$.name))})}),jsxRuntimeExports.jsx(AnimatePresence,{children:g&&jsxRuntimeExports.jsx(motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute top-[130px] right-0 rounded-lg py-1.5 w-48 z-50 border border-[#333] dropdown-background",children:DAYS_OPTIONS.map($=>jsxRuntimeExports.jsx("button",{className:"flex items-center w-full py-2.5 px-3 hover:bg-[#333]/50 rounded transition-colors",onClick:async()=>{if(a($.value),b(!1),p)try{await u()}catch{}},type:"button",children:jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:$.label})},$.value))})}),v&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdInfoOutline,{className:"text-[#FFC107]/80 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/80 text-lg font-semibold mb-1.5",children:"Address Required"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/70 text-sm font-normal text-center px-10 leading-5",children:v})]}),!d&&!h&&!v&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdSearch,{className:"text-white/30 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-white/50 text-lg font-medium mb-2",children:"No search yet"}),jsxRuntimeExports.jsx("span",{className:"text-white/30 text-sm font-normal text-center px-10 leading-5",children:"Enter a wallet address to begin scanning"})]}),d&&e&&h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(GoAlertFill,{className:"text-red-500 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-lg font-semibold mb-1.5",children:"Scan Failed"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-sm font-normal text-center px-10 leading-5",children:h})]})]})]})},colors$1=["#FFC971","#FF6F91","#9DFF8C","#66E0FF","#5BA0FF","#9A7DFF","#FF9DFF","#F0F0F0","#f4a12dff"],otherColor$1="#87CEEB",formatValue=e=>e>=1e12?`$${(e/1e12).toFixed(2)}T`:e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toFixed(2)}`,WhaleChart=({walletData:e,address:t,size:r=200,strokeWidth:n=20,spacing:s=8,showLabels:a=!1,labelColor:l="#f3f4f6",labelSize:u=10,showCenterText:d=!0,centerText:p,subText:h="Total Value"})=>{const[x,w]=reactExports.useState(null),v=[...(e?.holdings||e?.tokenHoldings||[]).map(S=>({...S,numericValue:S.value||parseFloat(S.balance||"0")})).filter(S=>S.numericValue>0)].sort((S,N)=>N.numericValue-S.numericValue);let E=[];if(v.length>0){let S=[],N=0;v.length>10?(S=v.slice(0,9),N=v.slice(9).reduce((k,W)=>k+W.numericValue,0)):S=v,E=S.map((F,k)=>({label:F.name||F.symbol||"Unknown",value:F.numericValue,color:colors$1[k%colors$1.length],symbol:F.symbol||"â"})),v.length>10&&N>0&&E.push({label:"Other",value:N,color:otherColor$1,symbol:"OTHER"})}const j=E.length===0,R=()=>x?formatValue(x.value):j?"$0.00":formatValue(E.reduce((S,N)=>S+N.value,0)),T=()=>{if(x){const S=x.symbol||x.label;return S.length>10?`${S.substring(0,10)}...`:S}return j?"No Holdings":h},z=p||R(),L=T(),V=(r-n)/2,$=r/2,U=E.reduce((S,N)=>S+N.value,0);let B=0;const P=E.length===1,H=E.map((S,N)=>{let k=S.value/U*360;P&&(k=360);const W=P?0:s,q=B+W/2,A=B+k-W/2;B+=k;const D=q*Math.PI/180,_=A*Math.PI/180,M=$+V*Math.cos(D),G=$+V*Math.sin(D),Q=$+V*Math.cos(_),te=$+V*Math.sin(_);let ne;if(P){const fe=$,Se=$-V,Ce=$,_e=$+V;ne=[`M ${fe} ${Se}`,`A ${V} ${V} 0 0 1 ${Ce} ${_e}`,`A ${V} ${V} 0 0 1 ${fe} ${Se}`].join(" ")}else{const fe=A-q>180?1:0;ne=[`M ${M} ${G}`,`A ${V} ${V} 0 ${fe} 1 ${Q} ${te}`].join(" ")}const ae=(q+A)/2;return{pathData:ne,color:S.color,angle:k,data:S,midAngle:ae,startAngle:q,endAngle:A}}),Z=S=>{if(j||P)return;const N=S.currentTarget.getBoundingClientRect(),F=S.clientX-N.left-$-20,k=S.clientY-N.top-$-20,W=Math.sqrt(F
1600*F+k*k);if(W>V+n/2||W<V-n/2){w(null);return}let q=Math.atan2(k,F)*180/Math.PI;q<0&&(q+=360);let A=null;for(const D of H){let _=D.startAngle,M=D.endAngle;if(M>360){if(M=M-360,q>=_||q<=M){A=D.data;break}}else if(_<0){if(_=_+360,q>=_||q<=M){A=D.data;break}}else if(q>=_&&q<=M){A=D.data;break}}w(A)},O=S=>{if(j||P)return;const N=S.currentTarget.getBoundingClientRect(),F=S.clientX-N.left-$-20,k=S.clientY-N.top-$-20,W=Math.sqrt(F*F+k*k);if(W>V+n/2||W<V-n/2){w(null);return}let q=Math.atan2(k,F)*180/Math.PI;q<0&&(q+=360);let A=null;for(const D of H){let _=D.startAngle,M=D.endAngle;if(M>360){if(M=M-360,q>=_||q<=M){A=D.data;break}}else if(_<0){if(_=_+360,q>=_||q<=M){A=D.data;break}}else if(q>=_&&q<=M){A=D.data;break}}w(A)};return jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center p-4",children:jsxRuntimeExports.jsx("svg",{width:r+40,height:r+40,onMouseMove:Z,onMouseLeave:()=>!P&&w(null),onClick:O,style:{cursor:P||j?"default":"pointer"},children:jsxRuntimeExports.jsxs("g",{transform:"translate(20,20)",children:[!j&&jsxRuntimeExports.jsx("circle",{cx:$,cy:$,r:V,stroke:"#212121",strokeWidth:n,fill:"none"}),j&&jsxRuntimeExports.jsx("circle",{cx:$,cy:$,r:V,stroke:"#333333",strokeWidth:n,fill:"none",opacity:"0.3"}),H.map((S,N)=>{const k=x&&x.label===S.data.label&&x.value===S.data.value?6:0,W=k*Math.cos(S.midAngle*Math.PI/180),q=k*Math.sin(S.midAngle*Math.PI/180);return jsxRuntimeExports.jsx(motion.path,{d:S.pathData,stroke:S.color,strokeWidth:n,fill:"none",initial:{pathLength:0},animate:{pathLength:1,translateX:W,translateY:q},transition:{pathLength:{duration:.8},translateX:{duration:.1},translateY:{duration:.1}}},`${S.data.label}-${N}`)}),jsxRuntimeExports.jsx("circle",{cx:$,cy:$,r:V-n/2,fill:"#141416"}),d&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("text",{x:$,y:$-2,textAnchor:"middle",fontSize:"16",fontWeight:"bold",fill:"#f3f4f6",children:z}),jsxRuntimeExports.jsx("text",{x:$,y:$+18,textAnchor:"middle",fontSize:"11",fill:"#9ca3af",children:L})]})]})})})},WhaleOverview=({walletData:e,address:t,blockchain:r="sol"})=>{const s=(a=>{const l=a.toLowerCase();return l.includes("sol")||l.includes("solana")?"SOL":l.includes("eth")||l.includes("ethereum")?"ETH":l.includes("bsc")||l.includes("binance")?"BNB":"SOL"})(r);return jsxRuntimeExports.jsx("div",{className:"mb-6",children:jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] rounded-xl p-4 flex flex-col items-center -mt-3",children:[jsxRuntimeExports.jsxs("div",{className:"text-white text-base mb-4 font-medium",children:[t.slice(0,8),"...",t.slice(-8)]}),jsxRuntimeExports.jsx("div",{className:"w-[215px] h-[215px] flex justify-center items-center my-4",children:jsxRuntimeExports.jsx(WhaleChart,{walletData:e,address:t,size:230,strokeWidth:48,spacing:.4,showLabels:!1,labelColor:"#f3f4f6",labelSize:10,showCenterText:!0,subText:"Total Value"})}),jsxRuntimeExports.jsx("div",{className:"flex flex-row justify-center w-full mt-4",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntimeExports.jsx("div",{className:"text-[#888] text-sm mb-1",children:"Balance"}),jsxRuntimeExports.jsx("div",{className:"text-white text-base font-semibold",children:e.Balance?`${e.Balance} ${s}`:`â ${s}`})]})})]})})},colors=["#FFC971","#FF6F91","#9DFF8C","#66E0FF","#5BA0FF","#9A7DFF","#FF9DFF","#F0F0F0","#f4a12d"],otherColor="#87CEEB",addTransparency=(e,t)=>{const r=e.replace("#",""),n=Math.round(t*255).toString(16).padStart(2,"0");return`#${r}${n}`},formatBalance=e=>{if(!isFinite(e))return"â";const t=Math.abs(e);return t>=1e12?`${(e/1e12).toFixed(2)}T`:t>=1e9?`${(e/1e9).toFixed(2)}B`:t>=1e6?`${(e/1e6).toFixed(2)}M`:t>=1e3?`${(e/1e3).toFixed(2)}K`:e.toFixed(2)},WhaleHoldings=({walletData:e,blockchain:t})=>{const[r,n]=reactExports.useState(window.innerWidth),a=[...e?.tokenHoldings||e?.holdings||[]].map(v=>({...v,numericValue:v.value||parseFloat(v.balance||"0")})).sort((v,E)=>E.numericValue-v.numericValue),l=a.reduce((v,E)=>v+E.numericValue,0),u=(v,E)=>{if(!v)return null;const j=E?.toLowerCase();return j==="solana"||j==="sol"?`https://dexscreener.com/solana/${v}`:j==="ethereum"||j==="eth"?`https://dexscreener.com/ethereum/${v}`:j==="bsc"||j==="binance"?`https://dexscreener.com/bsc/${v}`:`https://dexscreener.com/solana/${v}`},[d,p]=reactExports.useState(10);reactExports.useEffect(()=>{const v=()=>{n(window.innerWidth)};return window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[]);const h=()=>r>=1536?"300px":r>=1280?"250px":r>=1024?"200px":r>=768?"160px":r>=640?"140px":r>
1600=480?"120px":"100px",x=v=>{if(!v)return!1;const E=parseInt(h());return v.length*9>E},w=a.slice(0,d),g=a.length>10,b=()=>{d>=a.length?p(10):p(v=>v+10)};return jsxRuntimeExports.jsxs("div",{className:"mb-6 px-0.5",children:[jsxRuntimeExports.jsx("h2",{className:"text-[#CCFF00]/75 text-base font-semibold mb-4 tracking-wide",children:"TOKEN HOLDINGS"}),jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] rounded-2xl p-4 shadow-lg",children:[a.length>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[r>=768&&jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center py-2 mb-3 border-b border-[#2A2A2E]",children:[jsxRuntimeExports.jsxs("div",{className:"col-span-4 flex items-center",children:[jsxRuntimeExports.jsx("div",{className:"w-2.5 h-2.5 mr-3 flex-shrink-0"}),jsxRuntimeExports.jsx("div",{className:"text-[#888] text-xs font-semibold uppercase tracking-wide",children:"Token"})]}),jsxRuntimeExports.jsx("div",{className:"col-span-5 text-center",children:jsxRuntimeExports.jsx("div",{className:"text-[#888] text-xs font-semibold uppercase tracking-wide",children:"Address"})}),jsxRuntimeExports.jsx("div",{className:"col-span-3 text-right",children:jsxRuntimeExports.jsx("div",{className:"text-[#888] text-xs font-semibold uppercase tracking-wide",children:"Balance"})})]}),w.map((v,E)=>{const j=E<9?colors[E]:otherColor,R=v.numericValue,T=l>0?R/l*100:0,z=addTransparency(j,.2);return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:`py-2 ${r>=768?"grid grid-cols-12 gap-4 items-center":"flex justify-between items-center"}`,children:[jsxRuntimeExports.jsxs("div",{className:`${r>=768?"col-span-4 flex items-center":"flex items-center flex-1"}`,children:[jsxRuntimeExports.jsx("div",{className:"w-2.5 h-2.5 rounded-full mr-3 flex-shrink-0",style:{backgroundColor:j}}),jsxRuntimeExports.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntimeExports.jsx("div",{className:`text-white font-semibold transition-all duration-200 ${r<768?"text-sm":"text-[15px]"} ${x(v?.name)?"truncate":""}`,style:{maxWidth:x(v?.name)?h():"none"},title:v?.name??"Unknown",children:v?.name??"Unknown"}),jsxRuntimeExports.jsx("div",{className:`text-[#888] mt-0.5 transition-all duration-200 ${r<768?"text-xs":"text-[13px]"}`,children:v?.symbol??"â"}),v?.tokenAddress&&r<768&&jsxRuntimeExports.jsx("a",{href:u(v.tokenAddress,t),target:"_blank",rel:"noopener noreferrer",className:"text-[#666] mt-1 font-mono text-[10px] inline-block",title:"View on DexScreener",children:r<480?`${v.tokenAddress.slice(0,6)}...${v.tokenAddress.slice(-4)}`:`${v.tokenAddress.slice(0,8)}...${v.tokenAddress.slice(-6)}`})]})]}),r>=768&&jsxRuntimeExports.jsx("div",{className:"col-span-5 text-center",children:v?.tokenAddress?jsxRuntimeExports.jsx("a",{href:u(v.tokenAddress,t),target:"_blank",rel:"noopener noreferrer",className:"text-[#ccc] font-mono text-sm inline-block",title:"View on DexScreener",children:`${v.tokenAddress.slice(0,10)}...${v.tokenAddress.slice(-10)}`}):jsxRuntimeExports.jsx("span",{className:"text-[#666] text-sm",children:"â"})}),jsxRuntimeExports.jsxs("div",{className:`flex flex-col items-end ${r>=768?"col-span-3":"min-w-[80px] flex-shrink-0"}`,children:[jsxRuntimeExports.jsx("div",{className:`text-white font-semibold transition-all duration-200 ${r<768?"text-sm":"text-[15px]"}`,children:formatBalance(R)}),jsxRuntimeExports.jsx("div",{className:"mt-1 py-0.5 px-1.5 rounded-[10px] self-end",style:{backgroundColor:z},children:jsxRuntimeExports.jsxs("div",{className:`font-semibold transition-all duration-200 ${r<768?"text-[10px]":"text-[11px]"}`,style:{color:j},children:[T.toFixed(1),"%"]})})]})]}),E<w.length-1&&jsxRuntimeExports.jsx("div",{className:"h-px bg-[#333] my-2"})]},E)})]}):jsxRuntimeExports.jsx("div",{className:"text-[#888] text-center py-4 text-[15px]",children:"No token holdings found"}),g&&jsxRuntimeExports.jsx("button",{className:"bg-transparent border border-[#CCFF00] rounded-[25px] py-2.5 px-6 self-center mt-3 mx-auto block",onClick:b,children:jsxRuntimeExports.jsx("div",{className:"text-[#CCFF00] text-[13px] font-semibold uppercase",children:d>=a.length?"View less":"View more"})})]})]})},formatNumber=e=>{const t=Number(e);if(isNaN(t))return"â";const r=Math.abs(t);return r>=1e12?`$${(t/1e12).toFixed(2)}T`:r>=1e9?`$${(t/1e9).toFixed(2)}B`:r>=1e6?`$${(t/1e6).toFixed(2)}M`:r>=1e3?`$${(t/1e3).toFixed(2)}K`:`$${t.toFixed(2)}`},WhalePerformance=({walletData:e})=>{const r=(e?.tokenHoldings??[]).length,n=formatNumber(e.walletValue),s=formatNumber(e.totalAmountUSD),a=[{label:"Available Tokens",value:r},{label:"Total Trades",value:Number(e.trades)||0},{label:"Value",value:n},{label:"Total USD",value:s},{label:"Tokens Traded",value:Number(e.tokensTraded)||0,isFullWidth:!0}];return jsxRuntimeExports.jsxs("div",{className:"mb-6 w-full",children:[jsxRuntimeExports.jsx("h2",{className:"text-[#CCFF00]/75 text-base font-semibold mb-4 tracking-wide -mt-3",children:"WALLET PERFORMANCE"}),jsxRuntimeExports.jsx("div",{className:"bg-[#141416] rounded-xl p-4 h-[343px] flex flex-col justify-center",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3 h-full",children:[jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-3 h-[200px]",children:a.slice(0,4).map((l,u)=>jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-xl p-3 flex flex-col justify-center h-full",children:[jsxRuntimeExports.jsx("div",{className:"text-white/60 text-xs mb-0.5",children:l.label}),jsxRuntimeExports.jsx("div",{className:"text-white text-sm font-medium",children:l.value})]},u))}),jsxRuntimeExports.jsxs("div",{className:"bg-black rounded-xl p-3 flex flex-col justify-center h-[100px]",children:[jsxRuntimeExports.jsx("div",{className:"text-white/60 text-xs mb-0.5",children:a[4].label}),jsxRuntimeExports.jsx("div",{className:"text-white text-sm font-medium",children:a[4].value})]})]})})]})},daysToPhrase=e=>{switch(e){case"1":return"24 hours";case"7":return"7 days";case"30":return"1 month";case"60":return"2 months";case"90":return"3 months";default:return"selected interval"}},shorten=(e,t=6,r=4)=>e?e.length>t+r?`${e.slice(0,t)}...${e.slice(-r)}`:e:"N/A",WhaleActivity=({walletData:e,chain:t,days:r})=>{const[n,s]=reactExports.useState(10),[a,l]=reactExports.useState(window.innerWidth<=768),u=e?.recentActivity??[];reactExports.useEffect(()=>{const g=()=>{l(window.innerWidth<=768)};return window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]);const d=reactExports.useMemo(()=>u.map(g=>{const b=t!=="Solana"?g.type?g.type.toString().toUpperCase():g.amount>0?"IN":"OUT":void 0,v=String(g.tx_hash||"â"),E=String(g.block||"â"),j=String(g.from||"â"),R=String(g.to||"â"),T=g.amount!==null&&g.amount!==void 0?parseFloat(String(g.amount)):null,z=T!==null&&Number.isFinite(T)?T>1e3?`${(T/1e3).toFixed(1)}K`:T.toFixed(4):"â",L=g.txnFee!==null&&g.txnFee!==void 0?parseFloat(String(g.txnFee)):null,V=L!==null&&Number.isFinite(L)?L.toFixed(4):"â",$=(g.status||"â").toString(),U=g.date||g.TIMESTAMP||"â";let B="â",P="â";try{const H=typeof U=="number"?new Date(U*1e3):new Date(String(U));isNaN(H.getTime())||(B=H.toLocaleDateString("en-US",{month:"short",day:"numeric"}),P=H.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}))}catch{B="â",P="â"}return{...t!=="Solana"&&{type:b},tx_hash:v,block:E,from:j,to:R,amount:z,txnFee:V,status:$,date:B,time:P,rawData:g}}),[u,t]),p=d.slice(0,n),h=(g,b)=>{if(!g||g==="â")return;let v="";b==="BSC"?v=`https://bscscan.com/tx/${g}`:b==="Ethereum"?v=`https://etherscan.io/tx/${g}`:v=`https://solscan.io/tx/${g}`,window.open(v,"_blank")},x=d.length>0,w=({item:g,index:b})=>{const v=g.status==="Success"||g.status==="SUCCESS",E=g.type==="IN",j=t!=="Solana";return jsxRuntimeExports.jsxs("div",{className:"bg-[#1A1A1E] rounded-lg p-3 mb-2 border border-[#2A2A2E]",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[j&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:`p-1 rounded mr-2 ${E?"bg-green-900/20":"bg-blue-900/20"}`,children:E?jsxRuntimeExports.jsx(FiArrowDownLeft,{size:12,className:"text-green-400"}):jsxRuntimeExports.jsx(FiArrowUpRight,{size:12,className:"text-blue-400"})}),jsxRuntimeExports.jsx("span",{className:`text-xs font-medium ${E?"text-green-400":"text-blue-400"}`,children:E?"IN":"OUT"}),jsxRuntimeExports.jsx("div",{className:`w-1.5 h-1.5 rounded-full mx-2 ${v?"bg-green-500":"bg-red-500"}`})]}),jsxRuntimeExports.jsx("span",{className:`text-xs ${v?"text-green-400":"text-red-400"}`,children:v?"Success":"Failed"})]}),jsxRuntimeExports.jsxs("div",{className:"text-right",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-400",children:g.date}),jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500",children:g.time})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-2",children:[jsxRuntimeExports.jsx("div",{className:"text-sm font-semibold text-white",children:g.amount}),jsxRuntimeExports.jsxs("div",{className:"flex items-center bg-[#25252A] rounded-md px-2 py-1 cursor-pointer",onClick:()=>h(g.tx_hash,t),children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-blue-400 mr-1",children:"View TX"}),jsxRuntimeExports.jsx(FiExternalLink,{size:12,className:"text-blue-400"})]})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs mb-3",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 mb-1",children:"From"}),jsxRuntimeExports.jsx("div",{className:"text-gray-200 truncate",title:g.from,children:shorten(g.from,6,4)})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-gray-400 mb-1",children:"To"}),jsxRuntimeExports.jsx("div",{className:"text-gray-200 truncate",title:g.to,children:shorten(g.to,6,4)})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center pt-3 border-t border-[#2A2A2E]",children:[jsxRuntimeExports.jsxs("div",{className:"text-xs text-gray-400",children:["Fee: ",jsxRuntimeExports.jsx("span",{className:"text-gray-300",children:g.txnFee})]}),g.block&&g.block!=="â"&&jsxRuntimeExports.jsxs("div",{className:"text-xs text-gray-400",children:["Block: ",jsxRuntimeExports.jsx("span",{className:"text-gray-300",children:g.block})]})]})]})};return jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsxs("div",{className:"bg-[#141416] rounded-2xl mb-4 overflow-hidden",children:[jsxRuntimeExports.jsx("div",{className:"flex justify-between items-center p-4 bg-[#141416] border-b border-[#2A2A2E]",children:jsxRuntimeExports.jsx("h2",{className:"font-bold text-[#CCFF00] text-lg",children:"Recent Activity"})}),jsxRuntimeExports.jsx("div",{className:"p-3",children:x?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a?jsxRuntimeExports.jsx("div",{children:p.map((g,b)=>jsxRuntimeExports.jsx(w,{item:g,index:b},b))}):jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsxs("table",{className:"w-full",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{className:"bg-[#1f1f23]",children:[t!=="Solana"&&jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Type"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Date"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Tx Hash"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Status"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"From"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"To"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Amount"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Txn Fee"}),jsxRuntimeExports.jsx("th",{className:"py-2.5 text-center text-sm font-bold text-[#a1a1aa]",children:"Block"})]})}),jsxRuntimeExports.jsx("tbody",{children:p.map((g,b)=>jsxRuntimeExports.jsxs("tr",{className:"border-b border-[#374151]",children:[t!=="Solana"&&jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center",children:jsxRuntimeExports.jsx("div",{className:`text-sm font-medium ${g.type==="IN"?"text-[#22c55e]":"text-[#ef4444]"}`,children:g.type})}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center text-sm text-[#e4e4e7]",children:g.date}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center",children:jsxRuntimeExports.jsx("div",{className:"text-[#60a5fa] underline text-sm cursor-pointer",onClick:()=>h(g.tx_hash,t),children:shorten(g.tx_hash)})}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center",children:jsxRuntimeExports.jsx("div",{className:`text-sm font-medium ${g.status==="Success"?"text-[#22c55e]":"text-[#ef4444]"}`,children:g.status})}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center text-sm text-[#e4e4e7]",children:shorten(g.from)}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center text-sm text-[#e4e4e7]",children:shorten(g.to)}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center text-sm text-[#e4e4e7]",children:g.amount}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center text-sm text-[#e4e4e7]",children:g.txnFee}),jsxRuntimeExports.jsx("td",{className:"py-2.5 text-center text-sm text-[#e4e4e7]",children:g.block})]},b))})]})})}):jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[jsxRuntimeExports.jsx("div",{className:"w-14 h-14 bg-[#2A2A2E] rounded-full flex items-center justify-center mb-3",children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})}),jsxRuntimeExports.jsxs("div",{className:"text-gray-400 text-sm text-center",children:["No recent activity found in the last ",daysToPhrase(r)]})]})})]}),x&&d.length>10&&jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:jsxRuntimeExports.jsx("button",{className:"bg-transparent border border-[#CCFF00] rounded-[25px] py-2.5 px-6 self-center mt-3 mx-auto block",onClick:()=>{n<d.length?s(g=>g+10):s(10)},children:jsxRuntimeExports.jsx("div",{className:"text-[#CCFF00] text-[13px] font-semibold uppercase",children:n<d.length?"Load More":"Show Less"})})})]})},WhaleLoader=()=>{const e=reactExports.useRef({value:0}),t=reactExports.useRef({value:0}),r=reactExports.useRef({value:1});return reactExports.useEffect(()=>{let n,s=null;const a=w=>{s||(s=w);const b=(w-s)/2e3*360;e.current.value=b%360;
1600const v=document.querySelector(".loaderSpan");v&&(v.style.transform=`rotate(${e.current.value}deg)`),n=requestAnimationFrame(a)},l=w=>{s||(s=w);const g=w-s,b=3e3,v=g%b/b;v<.5?t.current.value=-10*(v*2):t.current.value=-10*(2-v*2);const E=document.querySelector(".whaleSvg");if(E){const j=document.querySelector(".loader"),R=j?Math.min(j.offsetWidth/235,1):1,T=.6*R,z=-67*R,L=-67*R;E.style.transform=`scale(${T}) translateX(${z}px) translateY(${L}px) translateY(${t.current.value*R}px)`}n=requestAnimationFrame(l)},u=w=>{s||(s=w);const g=w-s,b=1500,v=g%b/b;v<.5?r.current.value=1-v*2*.5:r.current.value=.5+(v-.5)*2*.5,document.querySelectorAll(".blinkElement").forEach(j=>{j.style.opacity=r.current.value}),n=requestAnimationFrame(u)},d=performance.now(),p=performance.now(),h=performance.now(),x=w=>{a(w-d),l(w-p),u(w-h),n=requestAnimationFrame(x)};return n=requestAnimationFrame(x),()=>{n&&cancelAnimationFrame(n)}},[]),jsxRuntimeExports.jsxs("div",{className:"loader",style:styles.loader,children:[jsxRuntimeExports.jsx("div",{className:"loaderSpan",style:styles.loaderSpan,children:jsxRuntimeExports.jsx("div",{style:styles.loaderSpanBefore})}),jsxRuntimeExports.jsx("div",{style:styles.loaderBefore}),jsxRuntimeExports.jsx("div",{style:styles.loaderAfter}),jsxRuntimeExports.jsx("div",{style:styles.container,children:jsxRuntimeExports.jsx("div",{className:"whaleSvg",style:styles.whaleSvg,children:jsxRuntimeExports.jsxs("svg",{style:{width:"100%",height:"100%"},viewBox:"0 0 512 512",children:[jsxRuntimeExports.jsx("path",{className:"blinkElement",d:"M0 0 C1.17369141 -0.02513672 1.17369141 -0.02513672 2.37109375 -0.05078125 C4.5625 0.3125 4.5625 0.3125 6.21875 1.4296875 C16.28489569 15.53399628 14.80403073 43.11043504 12.24267578 59.33886719 C9.42764192 74.30955734 2.50691761 87.77343119 -8.4375 98.3125 C-7.03963759 102.83661628 -5.2022604 107.00885638 -3.125 111.25 C12.43808791 144.03569885 15.36921379 181.88167852 3.66918945 216.31665039 C-1.72616101 231.18307465 -9.28170589 245.17382589 -19.4375 257.3125 C-20.29884455 258.37445898 -21.15949377 259.43698221 -22.01953125 260.5 C-31.41555015 271.98025142 -41.69560286 282.22396663 -53.4375 291.3125 C-53.99856445 291.75529297 -54.55962891 292.19808594 -55.13769531 292.65429688 C-66.33641177 301.47532799 -78.15101629 309.09647589 -90.4375 316.3125 C-91.15486328 316.73660156 -91.87222656 317.16070312 -92.61132812 317.59765625 C-117.0098197 331.82815278 -145.94565204 341.1672634 -173.4375 347.3125 C-161.50831108 363.10113239 -141.09181947 374.94660433 -124.14941406 384.66015625 C-123.07191895 385.29244141 -123.07191895 385.29244141 -121.97265625 385.9375 C-121.337229 386.30101562 -120.70180176 386.66453125 -120.04711914 387.0390625 C-118.0562305 388.61413836 -117.31893592 389.94191451 -116.4375 392.3125 C-116.65498616 398.51085548 -116.65498616 398.51085548 -119.09521484 401.01074219 C-127.07002993 405.44285747 -141.0302117 401.98304613 -149.8125 401.0625 C-151.11687012 400.92682617 -152.42124023 400.79115234 -153.76513672 400.65136719 C-194.80566305 396.2688541 -245.15082239 388.52263874 -273.4375 355.3125 C-276.77256341 350.85271241 -279.65595704 346.13134647 -282.4375 341.3125 C-282.99308594 340.35730469 -283.54867187 339.40210938 -284.12109375 338.41796875 C-290.58364254 326.41609242 -295.52217643 311.98923787 -295.4375 298.3125 C-296.30624756 298.32821045 -297.17499512 298.3439209 -298.07006836 298.36010742 C-345.72452393 299.10387469 -391.93062405 290.60563972 -434.4375 268.3125 C-432.71696593 269.78921016 -430.9957676 271.26513064 -429.2734375 272.73974609 C-427.87826968 273.93491512 -426.48546177 275.13283961 -425.09375 276.33203125 C-396.70564938 299.93735405 -357.82156127 312.2931878 -321.390625 314.73046875 C-320.30894043 314.80692627 -319.22725586 314.88338379 -318.11279297 314.9621582 C-315.94629657 315.11008513 -313.77853486 315.24070373 -311.60986328 315.35229492 C-310.61196777 315.41908447 -309.61407227 315.48587402 -308.5859375 315.5546875 C-307.24281494 315.62985596 -307.24281494 315.62985596 -305.87255859 315.70654297 C-302.73641953 316.48696177 -301.46552331 317.84474816 -299.4375 320.3125 C-298.72867697 323.22034881 -299.09778211 325.255039 -299.4375 328.3125 C-300.92639179 330.29040031 -301.9
16000241559 331.15757185 -304.28833008 331.84838867 C-310.63694995 332.43490195 -316.77897786 332.17019091 -323.125 331.625 C-324.2171582 331.53250977 -325.30931641 331.44001953 -326.43457031 331.34472656 C-356.29055848 328.60540724 -383.94603596 320.27348805 -410.4375 306.3125 C-411.60023438 305.70792969 -412.76296875 305.10335938 -413.9609375 304.48046875 C-428.00577348 296.84740572 -440.28524301 286.79444342 -451.80078125 275.7734375 C-453.93917321 273.77760501 -456.05456506 271.99923305 -458.4375 270.3125 C-452.82030605 281.11692985 -446.69360023 290.35780667 -438.4375 299.3125 C-437.86773437 299.96347656 -437.29796875 300.61445313 -436.7109375 301.28515625 C-415.88199478 323.87654797 -383.65663853 334.40320156 -354.4375 340.3125 C-353.68194824 340.46702637 -352.92639648 340.62155273 -352.14794922 340.78076172 C-343.26021548 342.5230319 -334.38725903 343.36822076 -325.3515625 343.83203125 C-324.54552078 343.87357834 -323.73947906 343.91512543 -322.90901184 343.95793152 C-318.8272795 344.16234049 -314.7460138 344.34250812 -310.66186523 344.4909668 C-309.14045956 344.5564155 -307.61905645 344.62192402 -306.09765625 344.6875 C-305.39947784 344.70621658 -304.70129944 344.72493317 -303.98196411 344.74421692 C-299.68713378 344.94221536 -296.87269308 345.69796992 -293.4375 348.3125 C-292.01087781 351.16574437 -292.12716132 353.14704549 -292.4375 356.3125 C-293.73828125 358.98046875 -293.73828125 358.98046875 -296.4375 361.3125 C-300.27212771 362.05532517 -304.04505108 361.9213058 -307.9375 361.8125 C-309.08589355 361.79405029 -310.23428711 361.77560059 -311.41748047 361.7565918 C-332.75180064 361.23226152 -353.71772567 358.3764747 -374.4375 353.3125 C-375.59765625 353.03067871 -375.59765625 353.03067871 -376.78125 352.74316406 C-415.59319068 343.02285213 -449.34193326 319.94019304 -470.05395508 285.52124023 C-479.02781906 270.01460429 -487.78396507 249.51064021 -485.4375 231.3125 C-483.31986005 224.45863306 -479.12072568 220.00795412 -473.0990839 216.20304966 C-467.31099215 213.40015186 -461.41371409 213.76399062 -455.10215759 213.81370544 C-453.75045517 213.80997443 -452.39875666 213.80448169 -451.0470677 213.79738861 C-447.34688119 213.78298264 -443.64711774 213.79328064 -439.9469465 213.80767167 C-435.94999598 213.81881126 -431.95310733 213.80678361 -427.9561615 213.79748535 C-421.03073696 213.78440314 -414.10543318 213.78555405 -407.18000603 213.79607964 C-397.14203924 213.81104992 -387.10421337 213.80107979 -377.06625456 213.78456045 C-360.74623298 213.75810082 -344.42624304 213.7472402 -328.10620117 213.74829102 C-327.12985545 213.74834934 -326.15350973 213.74840766 -325.14757777 213.74846775 C-321.19307551 213.74873353 -317.23857325 213.74905078 -313.28407099 213.74943101 C-302.43083531 213.75039502 -291.57760059 213.74907263 -280.72436523 213.74633789 C-279.26846151 213.74597805 -279.26846151 213.74597805 -277.7831456 213.74561094 C-261.54109756 213.74118882 -245.29907871 213.72489028 -229.0570479 213.7011171 C-219.05908101 213.68711703 -209.06122591 213.68410278 -199.06325532 213.69573999 C-192.19411482 213.70311947 -185.32503021 213.69992398 -178.455895 213.68878155 C-174.50568933 213.68276855 -170.55564073 213.68145408 -166.60544586 213.69365883 C-125.8468958 213.81138534 -86.78633698 208.88610951 -56.23046875 179.265625 C-44.76268485 167.54948415 -37.48891939 152.79349162 -37.1875 136.375 C-37.26420885 130.48759605 -37.96758358 125.00842612 -39.4375 119.3125 C-40.45070313 119.58964844 -41.46390625 119.86679688 -42.5078125 120.15234375 C-43.85933394 120.51838081 -45.21089876 120.88425772 -46.5625 121.25 C-47.22765625 121.43240234 -47.8928125 121.61480469 -48.578125 121.80273438 C-66.14638362 126.53927469 -83.83399777 125.34887729 -100.1875 117.25 C-120.08520527 105.67583976 -132.32780545 85.36238397 -140 64.1875 C-140.25160889 63.50147705 -140.50321777 62.8154541 -140.76245117 62.10864258 C-142.25707343 57.72473975 -142.79707645 53.92991827 -142.4375 49.3125 C-140.31110068 45.8571011 -138.72777439 45.39257569 -134.8125 44.3125 C-131.34053851 44.4415692 -130.43693954 45.31308003 -127.9765625 47.859375 C-126.67237836 49.46258688 -125.41295804 51.09454908 -124.15649414 52.73535156 C-120.77636803 57.10007507 -117.83490418 59.9291317 -112.4375 61.3125 C-108.50090172 61.74194708 -105.33375291 61.31141152 -101.5625 60.3125 C-90.58677574 57.68583095 -78.33715558 58.96035853 -67.4375 61.3125 C-66.85355469 60.07886719 -66.85355469 60.07886719 -66.2578125 58.8203125 C-59.78791616 45.910335 -52.32091894 38.13386475 -38.4375 33.3125 C-28.22486213 29.39146212 -17.38548595 25.06443045 -11.4375 15.3125 C-9.98837794 11.94731654 -8.71117971 8.56859224 -7.515625 5.10546875 C-5.83999307 0.76461068 -4.4661184 0.02200058 0 0 Z M-7.625 35.375 C-15.17818827 42.03957788 -24.41214237 45.72875726 -33.875 48.8125 C-43.23514547 52.08228296 -46.80134149 56.58502182 -51.
16001875 65.3125 C-52.90201141 68.90175753 -54.51633361 72.50502991 -56.015625 76.1875 C-57.4375 79.3125 -57.4375 79.3125 -59.4375 80.3125 C-65.0550155 80.89765786 -68.87991147 79.57059457 -74.0078125 77.28515625 C-82.48311258 73.89231104 -92.47084921 74.51923136 -101.16015625 76.80078125 C-105.51876612 77.78016014 -109.98933236 77.99655538 -114.4375 78.3125 C-110.37129184 89.5289486 -100.8117008 98.24335142 -90.4375 103.6875 C-75.82673547 110.45923973 -61.42615248 109.35367783 -46.4375 104.3125 C-45.19347893 103.78243179 -43.95378466 103.24208775 -42.71875 102.69140625 C-38.55518652 100.94171826 -36.6992006 100.76279069 -32.4375 102.3125 C-22.57824412 112.54914366 -21.01888852 127.21986339 -21.234375 140.6796875 C-21.94223473 161.906847 -34.71872649 180.83510205 -49.4375 195.3125 C-83.02254189 225.98401302 -126.07457848 229.61224744 -169.1507411 229.62917423 C-173.11227494 229.63291864 -177.07376863 229.64809802 -181.03527832 229.66178894 C-187.8753745 229.68390969 -194.7154561 229.69901353 -201.55558014 229.70915604 C-211.4448723 229.72383028 -221.3341136 229.74939069 -231.22337565 229.77748732 C-247.27357802 229.82279776 -263.32378778 229.85947712 -279.37402344 229.890625 C-294.9521616 229.92087542 -310.53028177 229.95525517 -326.10839844 229.99511719 C-327.07093053 229.99757874 -328.03346263 230.00004028 -329.02516237 230.00257643 C-333.85458894 230.01495229 -338.6840153 230.02740858 -343.51344156 230.03990483 C-383.4881027 230.14323645 -423.46278572 230.23251699 -463.4375 230.3125 C-459.30092826 234.5001676 -459.30092826 234.5001676 -454.6015625 238.00390625 C-453.5182666 238.69939575 -453.5182666 238.69939575 -452.41308594 239.40893555 C-451.63739258 239.89273682 -450.86169922 240.37653809 -450.0625 240.875 C-449.23524414 241.39167236 -448.40798828 241.90834473 -447.55566406 242.44067383 C-403.25478987 269.66948373 -354.83433145 282.44035034 -303.1015625 282.76879883 C-300.24709599 282.79033036 -297.39329906 282.82966093 -294.5390625 282.87109375 C-293.23142441 282.87126747 -293.23142441 282.87126747 -291.89736938 282.8714447 C-290.68867691 282.89145287 -290.68867691 282.89145287 -289.45556641 282.91186523 C-288.39663681 282.91947121 -288.39663681 282.91947121 -287.3163147 282.92723083 C-284.87459794 283.42792852 -283.9973765 284.40934612 -282.4375 286.3125 C-281.14050171 288.90649657 -280.96762605 291.48163783 -280.58886719 294.32958984 C-277.8248413 314.58185443 -271.15899551 332.83815876 -257.4375 348.3125 C-256.60798828 349.26576172 -256.60798828 349.26576172 -255.76171875 350.23828125 C-238.18839133 369.15372437 -206.98609957 375.44470223 -182.75 380.1875 C-181.71222412 380.39076904 -180.67444824 380.59403809 -179.60522461 380.8034668 C-172.23903576 382.16295285 -164.91200269 382.86592212 -157.4375 383.3125 C-160.44462301 380.24178708 -163.51151565 377.70515449 -167 375.1875 C-172.26322876 371.28976177 -177.10870515 367.12292969 -181.90625 362.65625 C-184.12232777 360.60432614 -186.38255634 358.63783694 -188.6875 356.6875 C-191.89010822 353.89813155 -194.64939206 350.91089952 -197.39453125 347.67578125 C-200.49191149 344.09276969 -203.73119076 340.64377125 -206.95507812 337.17480469 C-209.92237255 333.97481779 -212.8289887 330.73578227 -215.6875 327.4375 C-218.73007402 323.99260214 -221.94615036 320.94276727 -225.4609375 317.984375 C-226.74258305 316.90029537 -228.00009398 315.78675716 -229.2265625 314.640625 C-237.3483345 307.10638544 -247.11797433 301.37538982 -256.86328125 296.1875 C-258.4375 295.3125 -258.4375 295.3125 -259.4375 294.3125 C-260.02440745 287.03484763 -260.02440745 287.03484763 -257.8125 284.3125 C-254.29027384 282.82945741 -251.23096032 282.66398248 -247.58349609 283.98291016 C-245.48827357 284.95817329 -243.46413496 286.01411921 -241.4375 287.125 C-240.69129395 287.52952393 -239.94508789 287.93404785 -239.17626953 288.35083008 C-222.5127596 297.66529577 -205.9383669 312.09683917 -194.7890625 327.60546875 C-194.21929687 328.35441406 -193.64953125 329.10335938 -193.0625 329.875 C-192.58039063 330.55691406 -192.09828125 331.23882812 -191.6015625 331.94140625 C-187.38493641 334.61295094 -182.20956723 332.703733
160064 -177.60107422 331.6862793 C-174.57543182 330.95886091 -171.56927273 330.1766779 -168.5625 329.375 C-167.53125 329.11009766 -166.5 328.84519531 -165.4375 328.57226562 C-159.66229944 327.09374511 -159.66229944 327.09374511 -154.4375 324.3125 C-164.94801656 320.55053915 -174.90221539 317.87997768 -186.078125 316.89453125 C-186.89047607 316.81807373 -187.70282715 316.74161621 -188.53979492 316.6628418 C-190.15301624 316.51507924 -191.76791534 316.38441829 -193.3840332 316.27270508 C-198.94846636 315.77102861 -198.94846636 315.77102861 -201.44140625 313.43359375 C-202.8045025 310.53100056 -202.84170115 308.47874236 -202.4375 305.3125 C-201.375 303.5 -201.375 303.5 -199.4375 302.3125 C-180.17292303 298.47911776 -156.44736858 305.31225353 -139.6875 314.640625 C-135.91911048 316.57917153 -133.21617918 317.75183501 -129.01586914 316.71435547 C-128.17660889 316.37291504 -127.33734863 316.03147461 -126.47265625 315.6796875 C-125.51883057 315.29248535 -124.56500488 314.9052832 -123.58227539 314.50634766 C-122.56512451 314.07112793 -121.54797363 313.6359082 -120.5 313.1875 C-119.43966553 312.73810059 -118.37933105 312.28870117 -117.28686523 311.82568359 C-90.48152427 300.12236381 -66.51158394 282.43677573 -45.4375 262.3125 C-44.8791748 261.77971436 -44.32084961 261.24692871 -43.74560547 260.69799805 C-21.46533813 238.96812649 -5.71115927 208.01771009 -5.19555664 176.55297852 C-5.11509721 151.68126165 -10.95196727 126.70319744 -24.56494141 105.56152344 C-27.26019584 101.29887489 -28.35934626 98.32253403 -27.4375 93.3125 C-25.43983894 91.09254283 -23.68271759 89.44643619 -21.375 87.625 C-9.39622785 77.33988458 -3.97278236 64.24478774 -2.76513672 48.56713867 C-2.41998809 43.01409416 -2.31248407 37.80876103 -3.4375 32.3125 C-5.23782532 32.3125 -6.39429718 34.18103458 -7.625 35.375 Z",fill:"#E0E0E0",transform:"translate(492.4375,53.6875)",style:{opacity:1}}),jsxRuntimeExports.jsx("ellipse",{className:"blinkElement",cx:420,cy:120,rx:3,ry:3,fill:"#123881",transform:"translate(492.4375,53.6875)",style:{opacity:1}})]})})})]})},styles={loader:{position:"relative",width:"min(235px, calc(100vw - 60px))",height:"min(235px, calc(100vw - 60px))",maxWidth:"235px",maxHeight:"235px",backgroundColor:"transparent",borderRadius:"50%",border:"1px solid #333",display:"flex",justifyContent:"center",alignItems:"center",margin:"10px auto",overflow:"hidden",marginBottom:"30px",boxSizing:"border-box"},loaderBefore:{position:"absolute",top:"min(25px, 10.6%)",left:"min(25px, 10.6%)",right:"min(25px, 10.6%)",bottom:"min(25px, 10.6%)",backgroundColor:"transparent",border:"1px dashed #444",borderRadius:"50%",boxShadow:"inset -3.33px -3.33px 16.67px rgba(0, 0, 0, 0.25)"},loaderAfter:{position:"absolute",width:"min(125px, 53.2%)",height:"min(125px, 53.2%)",borderRadius:"50%",border:"1px dashed #444",boxShadow:"inset -3.33px -3.33px 16.67px rgba(0, 0, 0, 0.25)"},loaderSpan:{position:"absolute",top:"50%",left:"50%",width:"50%",height:"100%",backgroundColor:"transparent",transformOrigin:"top left",borderTop:"1px dashed rgba(255, 255, 255, 0.45)",zIndex:1},loaderSpanBefore:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(46, 139, 87, 0.7)",transform:"rotate(-55deg)",transformOrigin:"top left",filter:"blur(30px)",boxShadow:"20px 20px 20px rgba(46, 139, 87, 0.7)"},container:{position:"absolute",width:"min(167.5px, 71.3%)",height:"min(167.5px, 71.3%)",top:"min(33px, 14%)",left:"min(33px, 14%)",zIndex:2},whaleSvg:{position:"absolute",width:"100%",height:"100%",top:"20%",left:"20%",zIndex:3}},WhaleTracker=()=>{const[e,t]=reactExports.useState(""),[r,n]=reactExports.useState(""),[s,a]=reactExports.useState("Solana"),[l,u]=reactExports.useState("1"),[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(null),[w,g]=reactExports.useState(""),[b,v]=reactExports.useState(!1),[E,j]=reactExports.useState(!1),R=(L,V,$)=>`https://coinguardbackend.up.railway.app/api/whale/${L==="BSC"?"bsc":L==="Ethereum"?"eth":"sol"}/${V}?days=${$}`,T=(L,V)=>V?L==="Ethereum"||L==="BSC"?/^0x[a-fA-F0-9]{40}$/.test(V):L==="Solana"?/^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(V):!1:!1,z=async()=>
1600{if(g(""),v(!0),p(!0),!T(s,e))throw g(`Invalid address format for ${s}`),p(!1),new Error(`Invalid address format for ${s}`);try{const L=R(s,e,l),V=await axios.get(L);V.data&&(x(V.data),n(e),g(""),j(!0),p(!1))}catch(L){throw console.error("API Error:",L),g(L?.response?.data?.details||L.message||"Failed to fetch wallet data. Please check the address or server."),x(null),p(!1),L}};return jsxRuntimeExports.jsxs("div",{className:"flex-1 text-white",children:[jsxRuntimeExports.jsxs("div",{className:"pt-4 sm:pt-5 pb-6 sm:pb-8",children:[jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto px-5 sm:px-8 lg:px-8 max-[425px]:px-4",children:jsxRuntimeExports.jsx("h1",{className:"text-2xl xs:text-3xl sm:text-4xl lg:text-3xl font-bold lg:mb-[12px] text-center text-white lg:mt-0",children:"Whale Tracker"})}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block border-b border-gray-800 mb-6 w-full"})]}),jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto px-5 lg:px-16",children:[jsxRuntimeExports.jsx("div",{className:"mb-6 pb-6",style:{maxWidth:"700px",margin:"0 auto"},children:jsxRuntimeExports.jsx(WhaleSearch,{address:e,setAddress:t,chain:s,setChain:a,days:l,setDays:u,loading:d,fetchWalletData:z,hasSearched:b,hasSuccessfulSearch:E,error:w})}),d?jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center p-10 w-full overflow-hidden",children:jsxRuntimeExports.jsx(WhaleLoader,{})}):h?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(WhaleOverview,{walletData:h,address:r,blockchain:s.toLowerCase()})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(WhalePerformance,{walletData:h})})]}),jsxRuntimeExports.jsx(WhaleHoldings,{walletData:h,blockchain:s}),jsxRuntimeExports.jsx(WhaleActivity,{walletData:h,chain:s,days:l})]}):null]})]})},ChatInput=({placeholder:e="Ask anything",onSend:t,onVoice:r,onNewChat:n,isStreaming:s=!1,onStopStream:a})=>{const[l,u]=reactExports.useState(""),[d,p]=reactExports.useState(!1),h=l.trim().length===0,[x,w]=reactExports.useState(24),[g,b]=reactExports.useState(!1),v=reactExports.useRef(null),E=reactExports.useRef(null),j=reactExports.useRef(""),R=reactExports.useRef(""),T=reactExports.useRef(null),z=reactExports.useRef(null),L=()=>{const P=l.trim();P&&(t?.(P),u(""),w(24))},V=()=>{n?.(),b(!1)},$=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),L())};reactExports.useEffect(()=>{if("webkitSpeechRecognition"in window||"SpeechRecognition"in window){const P=window.SpeechRecognition||window.webkitSpeechRecognition;E.current=new P,E.current.continuous=!0,E.current.interimResults=!0,E.current.lang="en-US",E.current.onresult=H=>{T.current&&clearTimeout(T.current);let Z="";for(let N=0;N<H.results.length;N++)Z+=H.results[N][0].transcript;const O=j.current+Z;u(O),setTimeout(()=>{if(z.current){z.current.style.height="auto";const N=z.current.scrollHeight,F=24,k=window.innerWidth<768?100:70,W=Math.min(Math.max(F,N),k);z.current.style.height=W+"px",w(W)}},0);let S="";for(let N=0;N<H.results.length;N++)H.results[N].isFinal&&(S+=H.results[N][0].transcript);S&&(R.current=S),T.current=setTimeout(()=>{E.current&&d&&(E.current.stop(),p(!1),R.current="")},5e3)},E.current.onerror=H=>{p(!1)},E.current.onend=()=>{if(d)try{E.current.start()}catch{p(!1)}}}return()=>{E.current&&E.current.stop()}},[]);const U=()=>{if(!E.current){alert("Speech recognition is not supported in your browser.");return}try{d?(E.current.stop(),p(!1),R.current="",T.current&&(clearTimeout(T.current),T.current=null)):(j.current=l,R.current="",E.current.start(),p(!0))}catch(P){alert("Error: "+P.message)}r?.()};reactExports.useEffect(()=>{const P=H=>{v.current&&!v.current.contains(H.target)&&b(!1)};return g&&document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[g]);const B=P=>{u(P.target.value);const H=P.target;H.style.height="auto";const Z=H.scrollHeight,O=24,S=window.innerWidth<768?100:70,N=Math.min(Math.max(O,Z),S);H.style.height=N+"px",w(N)};return jsxRuntimeExports.jsxs("div",{className:"w-full flex items-center justify-center -mt-4",children:[jsxRuntimeExports.jsx("style",{children:` 1601 .mic { 1602 position: relative; 1603 display: inline-flex; 1604 justify-content: center; 1605 align-items: center; 1606 border-radius: 9999px; /* fully rounded */ 1607 overflow: visible; /* allow pseudo element to show */ 1608 } 1609 .mic::before { 1610 content: ""; 1611 position: absolute; 1612 width: 100%; 1613 height: 100%; 1614 border-radius: inherit; 1615 background-color: #CCFF00be; /* pulse color as requested */ 1616 z-index: 0; /* ensure visibility behind icon but above background */ 1617 pointer-events: none; 1618 opacity: 0; /* hidden when not listening */ 1619 } 1620 .mic.listening::before { 1621 opacity: 0.25; 1622 animation: listening 1.3s infinite; 1623 } 1624 @keyframes listening { 1625 from { opacity: 0.25; transform: scale(1); } 1626 to { opacity: 0; transform: scale(1.5); } 1627 } 1628 `}),jsxRuntimeExports.jsx("div",{className:"flex items-center gap-4 w-full max-w-3xl",children:jsxRuntimeExports.jsxs("div",{className:"flex-1 bg-black border border-[#ccff0040] rounded-3xl flex flex-col transition-all duration-200",style:{minHeight:Math.max(64,x+32)+"px"},children:[jsxRuntimeExports.jsx("div",{className:"flex-1 px-4 pt-4 pb-2",children:jsxRuntimeExports.jsx("textarea",{ref:z,value:l,onCh
1628ange:B,onKeyDown:$,onClick:()=>{d&&E.current&&(E.current.stop(),p(!1),R.current="",T.current&&(clearTimeout(T.current),T.current=null))},placeholder:e,className:"w-full bg-transparent outline-none text-white placeholder:text-gray-400 resize-none overflow-y-auto scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-transparent leading-6",style:{height:x+"px",maxHeight:window.innerWidth<768?"100px":"70px"},rows:1})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 pb-3",children:[jsxRuntimeExports.jsxs("div",{className:"relative",ref:v,children:[jsxRuntimeExports.jsx("button",{onClick:()=>b(!g),className:"flex items-center justify-center w-8 h-8 rounded-full hover:bg-[#4a4a4a] transition-colors","aria-label":"Menu",children:jsxRuntimeExports.jsx(FiPlus,{className:"w-5 h-5 text-gray-400"})}),g&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-full left-0 mb-2 bg-[#2a2a2a] border border-gray-700 rounded-lg shadow-lg py-1 min-w-[150px] z-50",children:jsxRuntimeExports.jsx("button",{onClick:V,className:"w-full px-4 py-2 text-left text-white text-sm",children:"New Chat"})})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("button",{onClick:U,"aria-pressed":d,className:`mic flex items-center justify-center w-10 h-10 rounded-full transition ${d?"listening":""}`,"aria-label":"Voice input",children:jsxRuntimeExports.jsx(FiMic,{className:`w-6 h-6 transition-colors ${d?"text-[#ccff00]":"text-gray-500"}`})}),s?jsxRuntimeExports.jsx("button",{onClick:()=>a?.(),className:"flex items-center justify-center w-10 h-10 rounded-full bg-[#1a1a1a] transition focus:outline-none focus:ring-2 focus:ring-[#ccff00]","aria-label":"Stop",title:"Stop",children:jsxRuntimeExports.jsx("span",{className:"block",style:{width:"14px",height:"14px",backgroundColor:"#CCFF00be",borderRadius:"2px"}})}):jsxRuntimeExports.jsx("button",{onClick:L,disabled:h,"aria-disabled":h,className:`flex items-center justify-center w-10 h-10 rounded-full bg-[#1a1a1a] transition ${h?"opacity-50 cursor-not-allowed":""}`,"aria-label":"Send",children:jsxRuntimeExports.jsx(TbSend,{className:"w-5 h-5 text-[#ccff00]"})})]})]})]})})]})},TypingIndicator=()=>jsxRuntimeExports.jsxs("div",{className:"flex space-x-2 items-center h-6",children:[jsxRuntimeExports.jsx("span",{className:"typing-dot w-2.5 h-2.5 bg-[#CCFF00] rounded-full"}),jsxRuntimeExports.jsx("span",{className:"typing-dot w-2.5 h-2.5 bg-[#CCFF00] rounded-full"}),jsxRuntimeExports.jsx("span",{className:"typing-dot w-2.5 h-2.5 bg-[#CCFF00] rounded-full"})]}),ChatBubbles=({history:e=[],loading:t=!1,stopped:r=!1,onTypingComplete:n})=>{const s=reactExports.useRef(null),a=reactExports.useRef(null),l=reactExports.useRef(null),u=reactExports.useRef(null),[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(!0),w={bubbleUser:"bg-[#CCFF00]/10 text-white border border-[#CCFF00]/20",bubbleAI:"bg-[#1a1a1a] text-white border border-white/10"},g=()=>{if(!l.current)return!0;const{scrollTop:E,scrollHeight:j,clientHeight:R}=l.current;return j-E-R<100},b=()=>{l.current&&(u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{const E=g();p(!E),x(E)},50))};reactExports.useEffect(()=>{h&&s.current&&s.current.scrollIntoView({behavior:"smooth"})},[e,e[0]?.ai,h]),reactExports.useEffect(()=>{if(s.current&&h){const E=new ResizeObserver(()=>{h&&s.current?.scrollIntoView({behavior:"smooth"})}),j=s.current.parentElement;return j&&E.observe(j),()=>{E.disconnect()}}},[e.length,h]),reactExports.useEffect(()=>()=>{a.current&&clearTimeout(a.current),u.current&&clearTimeout(u.current)},[]);const v=E=>{if(!E)return E;const j=E.split(` 1629`),R=[];return j.forEach((T,z)=>{z>0&&R.push(jsxRuntimeExports.jsx("br",{},`br-${z}`));const L=[];let V=0;const $=/\*\*([^*]+)\*\*|\*([^*]+)\*/g;let U,B=0;for(;(U=$.exec(T))!==null;)U.index>V&&L.push(T.substring(V,U.index)),U[1]!==void 0?L.push(jsxRuntimeExports.jsx("strong",{className:"font-bold",children:U[1]},`bold-${z}-${B++}`)):U[2]!==void 0&&L.push(jsxRuntimeExports.jsx("em",{className:"font-semibold italic",children:U[2]},`italic-${z}-${B++}`)),V=U.index+U[0].length;V<T.length&&L.push(T.substring(V)),R.push(...L)}),R.length>0?R:E};return jsxRuntimeExports.jsxs("div",{ref:l,className:"chat-container flex-1 overflow-y-auto px-2 py-2 pb-[65px] lg:pb-24 custom-scrollbar flex flex-col",onScroll:b,children:[jsxRuntimeExports.jsx("style",{children:` 1630 .chat-container::-webkit-scrollbar {
1631 width: 4px; 1632 } 1633 .chat-container::-webkit-scrollbar-thumb { 1634 background-color: rgba(255,255,255,0.2); 1635 border-radius: 2px; 1636 } 1637 .message-container { 1638 display: flex; 1639 flex-direction: column; 1640 gap: 0.75rem; 1641 padding: 0.5rem 0; 1642 max-width: 48rem; 1643 margin-left: auto; 1644 margin-right: auto; 1645 width: 100%; 1646 } 1647 .message-content { 1648 max-width: 80%; 1649 padding: 0.75rem 1.25rem; 1650 border-radius: 1.25rem; 1651 line-height: 1.5; 1652 word-break: break-word; 1653 transition: all 0.2s ease; 1654 } 1655 .user-message { 1656 display: flex; 1657 justify-content: flex-end; 1658 } 1659 .ai-message { 1660 display: flex; 1661 justify-content: flex-start; 1662 } 1663 .user-message .message-content { 1664 border-bottom-right-radius: 0.25rem; 1665 margin-left: auto; 1666 background-color: rgba(204, 255, 0, 0.1); 1667 } 1668 .ai-message .message-content { 1669 border-bottom-left-radius: 0.25rem; 1670 margin-right: auto; 1671 } 1672 @keyframes bounce { 1673 0%, 100% { transform: translateY(0); } 1674 50% { transform: translateY(-5px); } 1675 } 1676 .typing-dot { 1677 animation: bounce 1s infinite ease-in-out; 1678 } 1679 .typing-dot:nth-child(1) { animation-delay: 0s; } 1680 .typing-dot:nth-child(2) { animation-delay: 0.2s; } 1681 .typing-dot:nth-child(3) { animation-delay: 0.4s; } 1682 .typewriter-caret { 1683 display: inline-block; 1684 width: 1px; 1685 background: rgba(255,255,255,0.8); 1686 margin-left: 2px; 1687 animation: caretBlink 1s step-start infinite; 1688 height: 1em; 1689 vertical-align: text-bottom; 1690 } 1691 @keyframes caretBlink { 1692 50% { opacity: 0; } 1693 } 1694 @media (max-width: 768px) { 1695 .message-container { 1696 padding-left: 9px; 1697 padding-right: 9px; 1698 } 1699 } 1700 @media (max-width: 425px) { 1701 .message-content { 1702 max-width: 90%; 1703 } 1704 } 1705 `}),[...e].reverse().map((E,j)=>{const R=e.length-1-j,T=R===0;return jsxRuntimeExports.jsxs("div",{className:"message-container",children:[jsxRuntimeExports.jsx("div",{className:"user-message",children:jsxRuntimeExports.jsx("div",{className:`${w.bubbleUser} message-content`,children:E.user})}),jsxRuntimeExports.jsx("div",{className:"ai-message",children:jsxRuntimeExports.jsx("div",{className:`${w.bubbleAI} message-content`,children:E.ai?jsxRuntimeExports.jsxs("div",{style:{whiteSpace:"pre-wrap"},children:[v(E.ai),T&&t&&jsxRuntimeExports.jsx("span",{className:"typewriter-caret"})]}):T&&t?jsxRuntimeExports.jsx(TypingIndicator,{}):null})})]},`message-${R}-${E.user?.substring(0,10)}`)}),d&&jsxRuntimeExports.jsx("div",{className:"fixed bottom-20 lg:bottom-32 right-4 z-10",children:jsxRuntimeExports.jsx("button",{onClick:()=>{x(!0),p(!1),s.current?.scrollIntoView({behavior:"smooth"})},className:"bg-[#CCFF00]/20 hover:bg-[#CCFF00]/30 border border-[#CCFF00]/50 text-[#CCFF00] p-3 rounded-full shadow-lg transition-all duration-200 backdrop-blur-sm",title:"Scroll to bottom",children:jsxRuntimeExports.jsx(IoChevronDown,{className:"w-5 h-5"})})}),jsxRuntimeExports.jsx("div",{ref:s})]})},AIAssistant=()=>{const[e,t]=reactExports.useState([]),[r,n]=reactExports.useState(!1),[s,a]=reactExports.useState(!1),[l,u]=reactExports.useState(!1),d=reactExports.useRef(null),p=async b=>{if(!b.trim()||r)return;const v={user:b,ai:""};t(E=>[v,...E]),n(!0),u(!1),a(!0),d.current&&d.current.abort(),d.current=new AbortController;try{const E=await fetch("https://coinguardbackend.up.railway.app/api/aichat/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:b}),signal:d.current.signal});if(!E.ok)throw new Error(`HTTP error! status: ${E.status}`);const j=E.body.getReader(),R=new TextDecoder;let T="",z=0;for(;;){const{done:L,value:V}=await j.read();if(L)break;const U=R.decode(V,{stream:!0}).split(` 1706`);for(const B of U)if(B.trim().startsWith("data: "))try{const P=B.substring(6).trim();if(P==="")continue;const H=JSON.parse(P);if(H.type==="text"&&H.content)T+=H.content;else if(H.type==="done")break}catch{}t(B=>{const P=[...B];return P[0]&&(P[0]={...P[0],ai:T}),P})}}catch(E){E.name!=="AbortError"&&t(j=>{const R=[...j];return R[0]&&(R[0]={...R[0],ai:"Sorry, I encountered an error. Please try again."}),R})}finally{n(!1),a(!1)}},h=()=>{},x=()=>{t([]),n(!1),u(!1),a(!1),d.current&&d.current.abort()},w=()=>{d.current&&d.current.abort(),n(!1),u(!0),a(!1)},g=()=>{a(!1)};return reactExports.useEffect(()=>()=>{d.current&&d.current.abort()},[]),jsxRuntimeExports.jsxs("div",{className:"flex flex-col h-[90vh]",children:[jsxRuntimeExports.jsx("div",{className:"block lg:hidden flex-1 flex flex-col pb-32",children:e.length===0?jsxRuntimeExports.jsx("div",{className:"flex-1 flex flex-col items-center justify-center px-4",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center text-center w-full max-w-lg",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 mb-3 sm:mb-4",children:[jsxRuntimeExports.jsx(RiRobot2Fill,{className:"text-[#CCFF00] shrink-0",size:28}),jsxRuntimeExports.jsx("h3",{className:"text-xl sm:text-2xl md:text-3xl font-medium text-white whitespace-nowrap",children:"How can I help you today?"})]}),jsxRuntimeExports.jsx("p",{className:"max-w-lg text-white/40 text-sm sm:text-base md:text-lg leading-relaxed",children:"Ask me anything about market trends, token insights, or explore the latest trading signals."})]})}):jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-hidden",children:jsxRuntimeExports.jsx(ChatBubbles,{history:e,loading:r,stopped:l,onTypingComplete:g})})}),jsxRuntimeExports.jsxs("div",{className:"hidden lg:flex flex-col flex-1",children:[jsxRuntimeExports.jsx("div",{className:"fixed top-0 left-0 right-0 z-30 bg-black lg:pl-64",children:jsxRuntimeExports.jsxs("div",{className:"pt-4 pb-4",children:[jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto px-8",children:jsxRuntimeExports.jsx("h1",{className:"text-xl sm:text-2xl lg:text-3xl font-bold mb-4 text-center text-white mt-0",children:"Coinguard AI"})}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-800 w-full"})]})}),jsxRuntimeExports.jsx("div",{className:"flex-1 overflow-hidden pt-24 pb-32",children:e.length===0?jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center h-full",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center text-center px-4 w-full max-w-2xl",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 mb-3 sm:mb-4",children:[jsxRuntimeExports.jsx(RiRobot2Fill,{className:"text-[#CCFF00] shrink-0",size:24}),jsxRuntimeExports.jsx("h3",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl font-medium text-white",children:"How can I help you today?"})]}),jsxRuntimeExports.jsx("p",{className:"max-w-lg text-white/40 text-sm sm:text-base md:text-lg leading-relaxed",children:"Ask me anything about market trends, token insights, or explore the latest trading signals."})]})}):jsxRuntimeExports.jsx("div",{className:"h-full overflow-hidden",children:jsxRuntimeExports.jsx(ChatBubbles,{history:e,loading:r,stopped:l,onTypingComplete:g})})})]}),jsxRuntimeExports.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 bg-black/90 backdrop-blur-md lg:pl-64 pb-2 lg:pb-8",children:jsxRuntimeExports.jsx("div",{className:"max-w-full mx-auto px-4 lg:px-8 py-6",children:jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"w-full max-w-4xl",children:jsxRuntimeExports.jsx(ChatInput,{placeholder:"Ask anything",onSend:p,onVoice:h,onNewChat:x,isStreaming:r||s,onStopStream:w})})})})})]})},CHAINS=[{name:"Solana",key:"solana"},{name:"Ethereum",key:"ethereum"},{name:"BSC",key:"binance"}],RugSearch=({address:e,setAddress:t,chain:r,setChain:n,loading:s,fetchScan:a,hasSearched:l,error:u})=>{const[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(""),[w,g]=reactExports.useState(""),b=reactExports.useRef(null),v=reactExports.useRef(null);reactExports.useEffect(()=>{r||n("Solana")},[r,n]),reactExports.useEffect(()=>{let T;return s?T=setInterval(()=>{g(z=>z.length>=3?"":z+".")},500):g(""),()=>clearInterval(T)},[s]),reactExports.useEffect(()=>{function T(z){const L=b.current?.querySelector('button[type="button"]');d&&!L?.contains(z.target)&&!v.current?.contains(z.target)&&p(!1)}return document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}},[d]);const E=CHAINS.find(T=>T.name===r)||CHAINS[0],j=()=>
1706{if(!e.trim()){x("Please enter a token address");return}x(""),a()},R=T=>{T.key==="Enter"&&j()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 1707 @media (min-width: 431px) { 1708 .search-wrapper { 1709 flex-direction: row !important; 1710 align-items: center !important; 1711 } 1712 .search-input { 1713 margin-right: 12px; 1714 margin-bottom: 0 !important; 1715 height: 60px !important; 1716 } 1717 .scan-btn { 1718 width: 140px; 1719 height: 60px !important; 1720 flex-shrink: 0; 1721 } 1722 } 1723 1724 /* Consistent dropdown background for all screens */ 1725 .dropdown-background { 1726 background-color: rgba(31, 31, 31, 0.95) !important; 1727 backdrop-filter: blur(10px); 1728 } 1729 `}),jsxRuntimeExports.jsxs("div",{className:"mb-6 relative",ref:b,children:[jsxRuntimeExports.jsxs("div",{className:"search-wrapper flex flex-col w-full",children:[jsxRuntimeExports.jsxs("div",{className:"search-input flex items-center h-16 rounded-xl bg-[#111] border border-[#333] px-3 mb-3 w-full",children:[jsxRuntimeExports.jsxs("button",{className:"flex items-center mr-2 pr-2 border-r border-[#333]",onClick:()=>p(T=>!T),type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${E.key}/info/logo.png`,alt:E.name,className:"w-7 h-7 mr-1"}),jsxRuntimeExports.jsx(FiChevronDown,{className:`text-white/40 text-lg transition-transform ${d?"rotate-180":""}`})]}),jsxRuntimeExports.jsx("input",{className:"flex-1 text-white text-sm bg-transparent outline-none placeholder:text-white/40",placeholder:"Search Token By Address",value:e,onChange:T=>{t(T.target.value),h&&x("")},onKeyDown:R})]}),jsxRuntimeExports.jsx("button",{className:"scan-btn w-full h-12 bg-[#CCFF00]/10 rounded-lg flex items-center justify-center border border-[#CCFF00]/80 disabled:opacity-50",onClick:j,disabled:s,type:"button",children:s?jsxRuntimeExports.jsxs("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:["Searching",w]}):jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(AiOutlineScan,{className:"text-[#CCFF00]/80 text-xl mr-2"}),jsxRuntimeExports.jsx("span",{className:"text-[#CCFF00]/80 text-base font-semibold",children:"Search"})]})})]}),jsxRuntimeExports.jsx(AnimatePresence,{children:d&&jsxRuntimeExports.jsx(motion.div,{ref:v,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute top-[70px] left-0 rounded-lg py-1.5 w-48 z-50 border border-[#333] dropdown-background",children:CHAINS.map(T=>jsxRuntimeExports.jsxs("button",{className:"flex items-center w-full py-2.5 px-3 hover:bg-[#333]/50 rounded transition-colors",onClick:()=>{n(T.name),p(!1)},type:"button",children:[jsxRuntimeExports.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${T.key}/info/logo.png`,alt:T.name,className:"w-6 h-6 mr-2.5"}),jsxRuntimeExports.jsx("span",{className:"text-white text-base",children:T.name})]},T.name))})}),h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdInfoOutline,{className:"text-[#FFC107]/80 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/80 text-lg font-semibold mb-1.5",children:"Address Required"}),jsxRuntimeExports.jsx("span",{className:"text-[#FFC107]/70 text-sm font-normal text-center px-10 leading-5",children:h})]}),!l&&!u&&!h&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(MdSearch,{className:"text-white/30 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-white/50 text-lg font-medium mb-2",children:"No search yet"}),jsxRuntimeExports.jsx("span",{className:"text-white/30 text-sm font-normal text-center px-10 leading-5",children:"Enter a token address to begin scanning"})]}),l&&e&&u&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center pt-24",children:[jsxRuntimeExports.jsx(GoAlertFill,{className:"text-red-500 text-5xl mb-4 opacity-50"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-lg font-semibold mb-1.5",children:"Scan Failed"}),jsxRuntimeExports.jsx("span",{className:"text-red-500 text-sm font-normal text-center px-10 leading-5",children:u})]})]})]})},RugDetails=({data:e,formatNumber:t})=>jsxRuntimeExports.jsxs("div",{className:"rug-dt-container",children:[jsxRuntimeExports.jsx("style",{children:` 1730 .rug-dt-container { 1731 width: 100%; 1732 display: grid; 1733 grid-template-columns: 1fr; 1734 gap: 16px; 1735 margin-bottom: 24px; 1736 } 1737 1738 .token-details-card { 1739 background: #141416; 1740 border-radius: 16px; 1741 padding: 20px; 1742 } 1743 1744 .section-title { 1745 color: #CCFF00; 1746 opacity: 0.75; 1747 font-size: 16px; 1748 font-weight: 600; 1749 margin-bottom: 16px; 1750 display: block; 1751 } 1752 1753 .metrics-grid { 1754 display: grid; 1755 grid-template-columns: 1fr 1fr; 1756 gap: 12px; 1757 } 1758 1759 .metric-box { 1760 background: #000000; 1761 border: 1px solid rgba(255, 255, 255, 0.08); 1762 border-radius: 12px; 1763 padding: 16px; 1764 display: flex; 1765 flex-direction: column; 1766 gap: 8px; 1767 } 1768 1769 .metric-label { 1770 color: rgba(255, 255, 255, 0.6); 1771 font-size: 12px; 1772 font-weight: 500; 1773 } 1774 1775 .metric-value { 1776 color: #fff; 1777 font-size: 16px; 1778 font-weight: 600; 1779 } 1780 1781 .token-info-card { 1782 background: #141416; 1783 border-radius: 16px; 1784 padding: 20px; 1785 padding-bottom: 80px; 1786 display: flex; 1787 flex-direction: column; 1788 align-items: center; 1789 justify-content: center; 1790 position: relative; 1791 overflow: hidden; 1792 } 1793 1794 .bg-image-container { 1795 position: absolute; 1796 top: 0; 1797 left: 0; 1798 right: 0; 1799 height: 120px; 1800 overflow: hidden; 1801 border-radius: 16px 16px 0 0; 1802 } 1803 1804 .bg-image { 1805 width: 100%; 1806 height: 100%; 1807 object-fit: cover; 1808 opacity: 0.3; 1809 } 1810 1811 .token-content { 1812 position: relative; 1813 z-index: 1; 1814 display: flex; 1815 flex-direction: column; 1816 align-items: center; 1817 gap: 0; 1818 padding-top: 60px; 1819 } 1820 1821 .token-logo { 1822 width: 80px; 1823 height: 80px; 1824 border-radius: 50%; 1825 border: 4px solid rgba(255, 255, 255, 0.1); 1826 object-fit: cover; 1827 background: #1a1a1c; 1828 } 1829 1830 .token-name { 1831 color: #fff; 1832 font-size: 24px; 1833 font-weight: 700; 1834 text-align: center; 1835 margin-top: 12px; 1836 } 1837 1838 .token-symbol { 1839 color: #CCFF00; 1840 font-size: 16px; 1841 font-weight: 500; 1842 margin-top: 4px; 1843 } 1844 1845 .token-price { 1846 color: #ffffff; 1847 font-size: 20px; 1848 font-weight: 700; 1849 margin-top: 50px;
1850 margin-bottom:-50px; 1851 } 1852 1853 @media (min-width: 1024px) { 1854 .rug-dt-container { 1855 grid-template-columns: 1fr 1fr; 1856 gap: 24px; 1857 } 1858 } 1859 1860 @media (max-width: 1023px) { 1861 .token-details-card { 1862 order: 2; 1863 } 1864 1865 .bg-image-container { 1866 height: 120px; 1867 } 1868 1869 .token-info-card { 1870 order: 1; 1871 height: 350px; 1872 } 1873 1874 .token-content { 1875 padding-top: 80px; 1876 } 1877 1878 .token-logo { 1879 margin-top:-20px; 1880 } 1881 } 1882 1883 `}),jsxRuntimeExports.jsxs("div",{className:"token-details-card",children:[jsxRuntimeExports.jsx("span",{className:"section-title",children:"TOKEN DETAILS"}),jsxRuntimeExports.jsxs("div",{className:"metrics-grid",children:[jsxRuntimeExports.jsxs("div",{className:"metric-box",children:[jsxRuntimeExports.jsx("span",{className:"metric-label",children:"Launch Date"}),jsxRuntimeExports.jsx("span",{className:"metric-value",children:e?.dexData?.launchDate||e?.launchDate||"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"metric-box",children:[jsxRuntimeExports.jsx("span",{className:"metric-label",children:"Liquidity"}),jsxRuntimeExports.jsxs("span",{className:"metric-value",children:["$",t(e?.dexData?.liquidity||e?.liquidity||0)]})]}),jsxRuntimeExports.jsxs("div",{className:"metric-box",children:[jsxRuntimeExports.jsx("span",{className:"metric-label",children:"24h Volume"}),jsxRuntimeExports.jsxs("span",{className:"metric-value",children:["$",t(e?.dexData?.volume24h||e?.volume24h||0)]})]}),jsxRuntimeExports.jsxs("div",{className:"metric-box",children:[jsxRuntimeExports.jsx("span",{className:"metric-label",children:"Market Cap"}),jsxRuntimeExports.jsxs("span",{className:"metric-value",children:["$",t(e?.dexData?.marketCap||e?.marketCap||0)]})]}),jsxRuntimeExports.jsxs("div",{className:"metric-box",children:[jsxRuntimeExports.jsx("span",{className:"metric-label",children:"Buyers"}),jsxRuntimeExports.jsx("span",{className:"metric-value",children:t(e?.dexData?.buyers||e?.buyers||0)})]}),jsxRuntimeExports.jsxs("div",{className:"metric-box",children:[jsxRuntimeExports.jsx("span",{className:"metric-label",children:"Sellers"}),jsxRuntimeExports.jsx("span",{className:"metric-value",children:t(e?.dexData?.sellers||e?.sellers||0)})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"token-info-card",children:[(e?.dexData?.bgImage||e?.bgImage)&&jsxRuntimeExports.jsx("div",{className:"bg-image-container",children:jsxRuntimeExports.jsx("img",{src:e?.dexData?.bgImage||e?.bgImage,alt:"Token background",className:"bg-image",onError:r=>{r.currentTarget.style.display="none"}})}),jsxRuntimeExports.jsxs("div",{className:"token-content",children:[(e?.dexData?.logo||e?.logo)&&jsxRuntimeExports.jsx("img",{src:e?.dexData?.logo||e?.logo,alt:"Token logo",className:"token-logo",onError:r=>{r.currentTarget.style.display="none"}}),jsxRuntimeExports.jsx("h2",{className:"token-name",children:e?.dexData?.tokenName||e?.tokenName||e?.name||"Unknown Token"}),jsxRuntimeExports.jsxs("span",{className:"token-symbol",children:["$",e?.dexData?.symbol||e?.symbol||e?.tokenSymbol||"N/A"]}),jsxRuntimeExports.jsxs("span",{className:"token-price",children:["$",Number(e?.dexData?.priceUsd||e?.priceUsd||0).toFixed(6)]})]})]})]});function VscError(e){return GenIcon({attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6zM7.9 7.5L10.3 5l.7.7-2.4 2.5 2.4 2.5-.7.7-2.4-2.5-2.4 2.5-.7-.7 2.4-2.5-2.4-2.5.7-.7 2.4 2.5z"},child:[]}]})(e)}const KeyMetrics=({data:e,formatNumber:t,handleOpenUrl:r})=>{const n=u=>{try{return new URL(u).hostname.replace(/^www\./,"")}catch{return u}},s=u=>u?typeof u=="string"?u:typeof u=="object"&&u!==null&&u.url||"":"",a=u=>{if(u&&typeof u=="object"&&u.label)return u.label;const d=s(u);return d?n(d):"Link"},l=u=>u&&typeof u=="object"?u.type&&u.type.trim()?u.type:u.url?n(u.url):"Link":typeof u=="string"?n(u):"Link";return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"section-title",children:"KEY METRICS"}),jsxRuntimeExports.jsxs("div",{className:"extra-grid",children:[jsxRuntimeExports.jsxs("div",{className:"extra-card metric-card",children:[jsxRuntimeExports.jsx("span",{className:"overview-label",children:"Chain"}),jsxRuntimeExports.jsx("span",{className:"pill",children:e?.dexData?.chainId||e?.chainId||"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"extra-card metric-card",children:[jsxRuntimeExports.jsx("span",{className:"overview-label",children:"1h Price Change"}),jsxRuntimeExports.jsx("span",{className:"pill",style:{color:(e?.dexData?.priceChange1h||e?.priceChange1h||0)>=0?"#16a34a":"#dc2626"},children:e?.dexData?.priceChange1h!==void 0||e?.priceChange1h!==void 0?`${(e?.dexData?.priceChange1h||e?.priceChange1h||0)>=0?"+":""}${Number(e?.dexData?.priceChange1h||e?.priceChange1h||0).toFixed(2)}%`:"N/A"})]}),jsxRuntimeExports.jsxs("div",{className:"extra-card metric-card",children:[jsxRuntimeExports.jsx("span",{className:"overview-label",children:"24h Transactions"}),jsxRuntimeExports.jsx("span",{className:"pill",children:t(e?.dexData?.recentTxCount24h||e?.recentTxCount24h||0)})]}),jsxRuntimeExports.jsxs("div",{className:"extra-card website-card",children:[jsxRuntimeExports.jsx("span",{className:"overview-label",children:"Websites"}),jsxRuntimeExports.jsx("div",{className:"chips-row",children:(e?.dexData?.websites||e?.websites)&&(e?.dexData?.websites||e?.websites).length>0?(e?.dexData?.websites||e?.websites).slice(0,2).map((u,d)=>{const p=s(u),h=a(u);return jsxRuntimeExports.jsxs("span",{className:"chip",onClick:()=>p&&r(p),title:p||h,children:[jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h5V3H5c-1.1 0-2 .9-2 2v5
1883h2V5zm0 14v-5H3v5c0 1.1.9 2 2 2h5v-2H5zm14 0h-5v2h5c1.1 0 2-.9 2-2v-5h-2v5z"})}),h]},(p||h)+d)}):jsxRuntimeExports.jsx("span",{className:"empty-icon",title:"No websites available","aria-label":"No websites",children:jsxRuntimeExports.jsx(VscError,{})})})]}),jsxRuntimeExports.jsxs("div",{className:"extra-card socials-card",children:[jsxRuntimeExports.jsx("span",{className:"overview-label",children:"Socials"}),(e?.dexData?.socials||e?.socials)&&(e?.dexData?.socials||e?.socials).length>0?(()=>{const u=(e?.dexData?.socials||e?.socials||[]).slice(0,3);return jsxRuntimeExports.jsxs("div",{className:"socials-layout",children:[jsxRuntimeExports.jsx("div",{className:"socials-row",children:u.slice(0,2).map((d,p)=>{const h=s(d),x=l(d),w=(h||x||"").toLowerCase(),g=w.includes("twitter.com")||w.includes("x.com")||w.includes("twitter"),b=w.includes("t.me")||w.includes("telegram"),v=g?"X.com":x;return jsxRuntimeExports.jsxs("span",{className:"chip",onClick:()=>h&&r(h),title:h||x,children:[g?jsxRuntimeExports.jsx(FaXTwitter,{}):b?jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M9.04 15.83l-.37 5.3c.53 0 .76-.23 1.03-.5l2.48-2.38 5.14 3.76c.94.52 1.61.25 1.87-.87l3.39-15.9h.01c.3-1.4-.5-1.95-1.41-1.61L1.6 9.22c-1.35.53-1.33 1.29-.23 1.63l5.27 1.64 12.25-7.72c.58-.35 1.11-.16.68.19"})}):jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h5V3H5c-1.1 0-2 .9-2 2v5h2V5zm0 14v-5H3v5c0 1.1.9 2 2 2h5v-2H5zm14 0h-5v2h5c1.1 0 2-.9 2-2v-5h-2v5z"})}),v]},(h||x)+p)})}),u[2]?jsxRuntimeExports.jsx("div",{className:"socials-row single",children:(()=>{const d=u[2],p=s(d),h=l(d),x=(p||h||"").toLowerCase(),w=x.includes("twitter.com")||x.includes("x.com")||x.includes("twitter"),g=x.includes("t.me")||x.includes("telegram"),b=w?"X.com":h;return jsxRuntimeExports.jsxs("span",{className:"chip",onClick:()=>p&&r(p),title:p||h,children:[w?jsxRuntimeExports.jsx(FaXTwitter,{}):g?jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M9.04 15.83l-.37 5.3c.53 0 .76-.23 1.03-.5l2.48-2.38 5.14 3.76c.94.52 1.61.25 1.87-.87l3.39-15.9h.01c.3-1.4-.5-1.95-1.41-1.61L1.6 9.22c-1.35.53-1.33 1.29-.23 1.63l5.27 1.64 12.25-7.72c.58-.35 1.11-.16.68.19"})}):jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h5V3H5c-1.1 0-2 .9-2 2v5h2V5zm0 14v-5H3v5c0 1.1.9 2 2 2h5v-2H5zm14 0h-5v2h5c1.1 0 2-.9 2-2v-5h-2v5z"})}),b]},(p||h)+"-3")})()}):null]})})():jsxRuntimeExports.jsx("span",{className:"overview-value",children:"N/A"})]})]}),jsxRuntimeExports.jsx("style",{children:` 1884 .extra-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; } 1885 .extra-card { background: #141416; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; } 1886 @media (min-width: 640px) { .extra-grid { grid-template-columns: repeat(2, 1fr); } } 1887 @media (min-width: 1024px) { .extra-grid { grid-template-columns: repeat(5, 1fr); } } 1888 1889 /* Mobile: align titles left, values right for metrics/websites/socials */ 1890 @media (max-width: 767px) { 1891 .metric-card, .website-card, .socials-card { flex-direction: row; align-items: center; justify-content: space-between; } 1892 .metric-card .overview-label, .website-card .overview-label, .socials-card .overview-label { margin: 0; text-align: left; font-size: 12px; } 1893 .metric-card .pill { margin-left: auto; } 1894 .website-card .chips-row { justify-content: flex-end; } 1895 .socials-card .socials-layout { flex-direction: row; justify-content: flex-end; gap: 8px; } 1896 .socials-card .socials-row { display: flex; gap: 8px; } 1897 .socials-card .socials-row.single { display: none; } 1898 } 1899 @media (min-width: 768px) { .metric-card .overview-label, .website-card .overview-label, .socials-card .overview-label { font-size: 13px; } } 1900 1901 .chips-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; } 1902 .chip { background: rgba(255,255,255,0.04); color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s ease, border-color 0.2s ease; } 1903 .chip:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); } 1904 .chip svg { width: 14px; height: 14px; display: block; } 1905 1906 .pill { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; min-width: 80px; justify-content: center; } 1907 .empty-icon { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px; min-width: 80px; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); } 1908 .empty-icon svg { width: 14px; height: 14px; display: block; } 1909 1910 /* Socials layout default (desktop) */ 1911 .socials-layout { display: flex; flex-direction: column; gap: 10px; width: 100%; } 1912 .socials-row { display: flex; gap: 10px; justify-content: center; } 1913 .socials-row.single { justify-content: center; } 1914 1915 .overview-label { color: rgba(255, 255, 255, 0.7); font-size: 11px; margin-bottom: 6px; text-align: center; } 1916 .overview-value { color: #fff; font-size: 13px; font-weight: 500; } 1917 `})]})},RugDex=({data:e})=>{const t=e?.dexData?.dexUrls||e?.dexUrls||[],r=e?.dexData?.isVerified||e?.isVerified||!1,n=a=>{window.open(a,"_blank")},s=a=>{try{return new URL(a).hostname.replace("www.","").split(".")[0]}catch{return"DEX"}};return t.length===0?null:jsxRuntimeExports.jsxs("div",{className:"rug-dex-container",children:[jsxRuntimeExports.jsx("style",{children:` 1918 .rug-dex-container { 1919 width: 100%; 1920 margin-bottom: 24px; 1921 } 1922 1923 .dex-header { 1924 display: flex; 1925 align-items: center; 1926 gap: 12px; 1927 margin-bottom: 16px; 1928 flex-wrap: wrap; 1929 } 1930 1931 .section-title { 1932 color: #CCFF00; 1933 opacity: 0.75; 1934 font-size: 16px; 1935 font-weight: 600; 1936 } 1937 1938 1939 .dex-table-container { 1940 background: #141416; 1941 border-radius: 16px; 1942 padding: 1px; 1943 overflow: hidden; 1944 } 1945 1946 .dex-table { 1947 width: 100%; 1948 border-collapse: collapse; 1949 } 1950 1951 .dex-table thead { 1952 background: rgba(255, 255, 255, 0.02); 1953 } 1954 1955 .dex-table th { 1956 color: rgba(255, 255, 255, 0.6); 1957 font-size: 12px; 1958 font-weight: 600; 1959 text-align: left; 1960 padding: 12px 16px; 1961 border-bottom: 1px solid rgba(255, 255, 255, 0.08); 1962 } 1963 1964 .dex-table th:first-child { 1965 width: 60px; 1966 text-align: center; 1967 } 1968 1969 .dex-table th:last-child { 1970 width: 80px; 1971 text-align: center; 1972 } 1973 1974 .dex-table tbody tr { 1975 border-bottom: 1px solid rgba(255, 255, 255, 0.06); 1976 transition: all 0.2s ease; 1977 cursor: pointer; 1978 } 1979 1980 .dex-table tbody tr:last-child { 1981 border-bottom: none; 1982 } 1983 1984 .dex-table tbody tr:hover { 1985 background: transparent; 1986 } 1987 1988 .dex-table td { 1989 padding: 14px 16px; 1990 color: #fff; 1991 font-size: 14px; 1992 } 1993 1994 .dex-number-cell { 1995 text-align: center; 1996 } 1997 1998 .dex-number { 1999 color: #CCFF00; 2000 font-size: 14px; 2001 font-weight: 700; 2002 } 2003 2004 .dex-name-cell { 2005 font-weight: 600; 2006 text-transform: capitalize; 2007 letter-spacing: 0.3px; 2008 display: flex; 2009 align-items: center; 2010 gap: 8px; 2011 } 2012 2013 .verified-badge-inline { 2014 display: inline-flex; 2015 align-items: center; 2016 gap: 4px; 2017 background: rgba(22, 163, 74, 0.15); 2018 color: #16a34a; 2019 border: 1px solid rgba(22, 163, 74, 0.4); 2020 border-radius: 999px; 2021 padding: 3px 8px; 2022 font-size: 11px; 2023 font-weight: 700; 2024 } 2025 2026 .verified-badge-inline svg { 2027 width: 12px; 2028 height: 12px; 2029 } 2030 2031 .dex-action-cell { 2032 text-align: center; 2033 } 2034 2035 .dex-icon { 2036 color: rgba(255, 255, 255, 0.5); 2037 transition: all 0.2s ease; 2038 display: inline-flex; 2039 align-items: center; 2040 justify-content: center; 2041 } 2042 2043 .dex-table tbody tr:hover .dex-icon { 2044 color: #CCFF00; 2045 transform: translateX(3px); 2046 } 2047 2048 .no-pairs { 2049 text-align: center; 2050 padding: 40px 20px; 2051 color: rgba(255, 255, 255, 0.5); 2052 font-size: 14px; 2053 } 2054 2055 @media (max-width: 640px) { 2056 .dex-table th, 2057 .dex-table td { 2058 padding: 10px 12px; 2059 font-size: 13px; 2060 } 2061 2062 .dex-number { 2063 font-size: 13px; 2064 } 2065 2066 .verified-badge-inline { 2067 font-size: 10px; 2068 padding: 2px 6px; 2069 } 2070 } 2071 `}),jsxRuntimeExports.jsx("div",{className:"dex-header",children:jsxRuntimeExports.jsx("span",{className:"section-title",children:"DEX PAIRS"})}),jsxRuntimeExports.jsx("div",{className:"dex-table-container",children:t.length>0?jsxRuntimeExports.jsxs("table",{className:"dex-table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"#"}),jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntimeExports.jsx("span",{children:"DEX Platform"}),r&&jsxRuntimeExports.jsxs("span",{className:"verified-badge-inline",children:[jsxRuntimeExports.jsx(MdVerified,{}),"Verified"]})]})}),jsxRuntimeExports.jsx("th",{children:"Action"})]})}),jsxRuntimeExports.jsx("tbody",{children:t.map((a,l)=>jsxRuntimeExports.jsxs("tr",{onClick:()=>n(a),title:a,children:[jsxRuntimeExports.jsx("td",{className:"dex-number-cell",children:jsxRuntimeExports.jsx("span",{className:"dex-number",children:l+1})}),jsxRuntimeExports.jsx("td",{className:"dex-name-cell",children:s(a)}),jsxRuntimeExports.jsx("td",{className:"dex-action-cell",children:jsxRuntimeExports.jsx(FiExternalLink,{className:"dex-icon",size:18})})]},l))})]}):jsxRuntimeExports.jsx("div",{className:"no-pairs",children:"No DEX pairs available"})})]})},TopHolders=({data:e,formatNumber:t})=>{const r=(s,a=4,l=4)=>
2071!s||typeof s!="string"?"Invalid address":s.length<=a+l+5?s:`${s.slice(0,a)}.....${s.slice(-l)}`,n=async s=>{try{await navigator.clipboard.writeText(s)}catch(a){console.error("Failed to copy:",a)}};return!e||!Array.isArray(e.topHolders)||e.topHolders.length===0?null:jsxRuntimeExports.jsxs("div",{className:"mb-4",style:{width:"100%"},children:[jsxRuntimeExports.jsx("style",{children:` 2072 /* Top Holders Container */ 2073 .holders-container { 2074 padding: 1px; 2075 background: #141416; 2076 border-radius: 12px; 2077 overflow: hidden; 2078 } 2079 2080 /* Responsive visibility classes */ 2081 .md-hidden { display: block; } 2082 .md-block { display: none; } 2083 2084 @media (min-width: 768px) { 2085 .md-hidden { display: none; } 2086 .md-block { display: block; } 2087 } 2088 2089 @media (min-width: 640px) { 2090 .holders-container { 2091 padding: 2px; 2092 } 2093 } 2094 2095 /* Mobile View for Top Holders */ 2096 @media (max-width: 767px) { 2097 .holders-header-mobile { 2098 display: grid; 2099 grid-template-columns: 32px 1fr 80px 60px; 2100 align-items: center; 2101 padding: 12px 8px; 2102 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 2103 } 2104 2105 .holders-item-mobile { 2106 display: grid; 2107 grid-template-columns: 32px 1fr 80px 60px; 2108 align-items: center; 2109 padding: 12px 8px; 2110 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 2111 } 2112 2113 .holders-item-mobile:last-child { 2114 border-bottom: none; 2115 } 2116 2117 .holders-address-mobile { 2118 overflow-wrap: anywhere; 2119 text-align: left; 2120 color: #fff; 2121 font-size: 12px; 2122 justify-self: stretch; 2123 } 2124 2125 .holders-amount-mobile { 2126 text-align: center; 2127 color: #fff; 2128 font-weight: 600; 2129 font-size: 12px; 2130 justify-self: center; 2131 } 2132 2133 .holders-percent-mobile { 2134 text-align: right; 2135 color: #fff; 2136 font-weight: 600; 2137 font-size: 12px; 2138 justify-self: end; 2139 } 2140 2141 .holders-header-mobile span, 2142 .holders-item-mobile span, 2143 .holders-item-mobile button { 2144 font-size: 12px; 2145 line-height: 1.2; 2146 } 2147 } 2148 2149 /* Desktop View for Top Holders */ 2150 @media (min-width: 768px) { 2151 .holders-header-desktop { 2152 display: flex; 2153 align-items: center; 2154 justify-content: space-between; 2155 padding: 8px 16px; 2156 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 2157 } 2158 2159 .holders-item-desktop { 2160 display: flex; 2161 align-items: center; 2162 justify-content: space-between; 2163 padding: 8px 16px; 2164 border-bottom: 1px solid rgba(33, 33, 33, 0.7); 2165 } 2166 2167 .holders-item-desktop:last-child { 2168 border-bottom: none; 2169 } 2170 2171 .holders-address-desktop { 2172 flex: 2; 2173 margin-right: 16px; 2174 } 2175 2176 .holders-amount-desktop { 2177 flex: 1; 2178 text-align: center; 2179 } 2180 2181 .holders-percent-desktop { 2182 flex: 1; 2183 text-align: right; 2184 } 2185 2186 .holders-header-desktop span { 2187 font-size: 12px; 2188 } 2189 2190 .holders-amount-desktop, 2191 .holders-percent-desktop { 2192 font-size: 12px; 2193 } 2194 } 2195 2196 .clickable { 2197 cursor: pointer; 2198 transition: opacity 0.2s; 2199 background: none; 2200 border: none; 2201 padding: 0; 2202 } 2203 2204 .clickable:hover { 2205 opacity: 0.7; 2206 } 2207 2208 .clickable:disabled { 2209 cursor: not-allowed; 2210 opacity: 0.5; 2211 } 2212 2213 .section-title { 2214 display: block; 2215 color: #CCFF00; 2216 opacity: 0.75; 2217 font-size: 16px; 2218 font-weight: 600; 2219 margin-bottom: 12px; 2220 } 2221 `}),jsxRuntimeExports.jsx("span",{className:"section-title",children:"TOP HOLDERS"}),jsxRuntimeExports.jsxs("div",{className:"holders-container",children:[jsxRuntimeExports.jsxs("div",{className:"md-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"holders-header-mobile",children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontWeight:600},children:"#"}),jsxRuntimeExports.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontWeight:600},children:"Address"}),jsxRuntimeExports.jsx("span",{className:"holders-amount-mobile",style:{color:"rgba(255,255,255,0.6)",fontWeight:600},children:"Amount"}),jsxRuntimeExports.jsx("span",{className:"holders-percent-mobile",style:{color:"rgba(255,255,255,0.6)",fontWeight:600},children:"%"})]}),e.topHolders.filter(s=>{const a=Number(s?.amount);return s&&s.address&&!Number.isNaN(a)&&isFinite(a)}).slice(0,20).map((s,a)=>{const l=s.address||"",u=r(l,4,4);return jsxRuntimeExports.jsxs("div",{className:"holders-item-mobile",children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00",opacity:.75,fontWeight:600},children:a+1}),jsxRuntimeExports.jsx("button",{onClick:()=>n(l),title:l,type:"button",className:"holders-address-mobile clickable","aria-label":`Copy address ${l}`,disabled:!l,children:u}),jsxRuntimeExports.jsx("span",{className:"holders-amount-mobile",children:t(Number(s.amount||0))}),jsxRuntimeExports.jsx("span",{className:"holders-percent-mobile",children:`${Number(s.percent||0).toFixed(2)}%`})]},a)})]}),jsxRuntimeExports.jsxs("div",{className:"md-block",children:[jsxRuntimeExports.jsxs("div",{className:"holders-header-desktop",children:[jsxRuntimeExports.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontWeight:600,width:32,flexShrink:0},children:"#"}),jsxRuntimeExports.jsx("span",{className:"holders-address-desktop",style:{color:"rgba(255,255,255,0.6)",fontWeight:600,textAlign:"left"},children:"Address"}),jsxRuntimeExports.jsx("span",{className:"holders-amount-desktop",style:{color:"rgba(255,255,255,0.6)",fontWeight:600},children:"Amount"}),jsxRuntimeExports.jsx("span",{className:"holders-percent-desktop",style:{color:"rgba(255,255,255,0.6)",fontWeight:600},children:"Percentage"})]}),e.topHolders.filter(s=>{const a=Number(s?.amount);return s&&s.address&&!Number.isNaN(a)&&isFinite(a)}).slice(0,20).map((s,a)=>{const l=s.address||"";return jsxRuntimeExports.jsxs("div",{className:"holders-item-desktop",children:[jsxRuntimeExports.jsx("span",{style:{color:"#CCFF00",opacity:.75,fontWeight:600,width:32,flexShrink:0},children:a+1}),jsxRuntimeExports.jsx("div",{className:"holders-address-desktop",style:{minWidth:0},children:jsxRuntimeExports.jsx("button",{onClick:()=>n(l),title:l,type:"button",className:"clickable",style:{color:"#fff",fontSize:13,textAlign:"left",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"aria-label":`Copy address ${l}`,disabled:!l,children:l||"Invalid address"})}),jsxRuntimeExports.jsx("span",{className:"holders-amount-desktop",style:{color:"#fff",fontWeight:600},children:t(Number(s.amount||0))}),jsxRuntimeExports.jsx("span",{className:"holders-percent-desktop",style:{color:"#fff",fontWeight:600},children:`${Number(s.percent||0).toFixed(2)}%`})]},a)})]})]})]})},RugShield=()=>{const[e,t]=reactExports.useState(""),[r,n]=reactExports.useState(""),[s,a]=reactExports.useState("Solana"),[l,u]=reactExports.useState(!1),[d,p]=reactExports.useState(null),[h,x]=reactExports.useState(""),[w,g]=reactExports.useState(!1),b=(T,z)=>{const L="https://coinguardbackend.up.railway.app";switch(T){case"BSC":return`${L}/api/rugshield/bsc/${z}`;case"Ethereum":return`${L}/api/rugshield/eth/${z}`;case"Solana":default:return`${L}/api/rugshield/sol/${z}`}},v=(T,z)=>z?T==="Ethereum"||T==="BSC"?/^0x[a-fA-F0-9]{40}$/.test(z):T==="Solana"?/^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(z):!1:!1,E=T=>T==null?"0":T>=1e12?(T/1e12).toFixed(2)+"T":T>=1e9?(T/1e9).toFixed(2)+"B":T>=1e6?(T/1e6).toFixed(2)+"M":T>=1e3?(T/1e3).toFixed(2)+"K":T.toString(),j=async()=>
2221{if(x(""),p(null),g(!0),!v(s,e)){x(`Invalid address format for ${s}`);return}n(e),u(!0);try{const T=b(s,e),z=await axios.get(T);p(z.data)}catch(T){x(T?.response?.data?.error||"Failed to scan token address")}finally{u(!1)}},R=T=>{window.open(T,"_blank")};return jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[jsxRuntimeExports.jsx("div",{className:"block lg:hidden",children:jsxRuntimeExports.jsxs("div",{className:"pt-5 px-[20px] max-[425px]:px-[16px] pb-8 max-w-3xl mx-auto",children:[jsxRuntimeExports.jsx("h1",{className:"text-2xl xs:text-3xl sm:text-4xl font-bold mb-6 text-center text-white",children:"Rug Shield"}),jsxRuntimeExports.jsx(RugSearch,{address:e,setAddress:t,chain:s,setChain:a,loading:l,fetchScan:j,hasSearched:w,error:h}),d&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(RugDetails,{data:d,formatNumber:E}),jsxRuntimeExports.jsx("div",{style:{marginTop:16},children:jsxRuntimeExports.jsx(KeyMetrics,{data:d,formatNumber:E,handleOpenUrl:R})}),jsxRuntimeExports.jsx("div",{style:{marginTop:16},children:jsxRuntimeExports.jsx(RugDex,{data:d})}),jsxRuntimeExports.jsx("div",{style:{marginTop:16},children:jsxRuntimeExports.jsx(TopHolders,{data:d,formatNumber:E})})]})]})}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block",children:jsxRuntimeExports.jsxs("div",{className:"pt-4 pb-8",children:[jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto px-8",children:jsxRuntimeExports.jsx("h1",{className:"text-xl sm:text-2xl lg:text-3xl font-bold mb-4 text-center text-white mt-0",children:"Rug Shield"})}),jsxRuntimeExports.jsx("div",{className:"border-b border-gray-800 mb-6 w-full"}),jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto px-1 lg:px-[64px] lg:py-8",children:[!d&&jsxRuntimeExports.jsx("div",{className:"mb-6 pb-6",style:{maxWidth:"700px",margin:"0 auto"},children:jsxRuntimeExports.jsx(RugSearch,{address:e,setAddress:t,chain:s,setChain:a,loading:l,fetchScan:j,hasSearched:w,error:h})}),d&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{marginBottom:"24px",maxWidth:"700px",margin:"0 auto 24px auto"},children:jsxRuntimeExports.jsx(RugSearch,{address:e,setAddress:t,chain:s,setChain:a,loading:l,fetchScan:j,hasSearched:w,error:h})}),jsxRuntimeExports.jsx(RugDetails,{data:d,formatNumber:E}),jsxRuntimeExports.jsx("div",{style:{marginTop:"32px"},children:jsxRuntimeExports.jsx(KeyMetrics,{data:d,formatNumber:E,handleOpenUrl:R})}),jsxRuntimeExports.jsx("div",{style:{marginTop:"32px"},children:jsxRuntimeExports.jsx(RugDex,{data:d})}),jsxRuntimeExports.jsx("div",{style:{marginTop:"32px"},children:jsxRuntimeExports.jsx(TopHolders,{data:d,formatNumber:E})})]})]})]})})]})},WebAppPages=()=>{const[e,t]=reactExports.useState(!1),r=useLocation(),n=()=>t(!e),s=console.error;console.error=(...u)=>{/Cannot update a component/.test(u[0])||s.apply(console,u)};const l=(()=>{switch(r.pathname){case"/app":case"/app/":return"ai-token-scan";case"/app/support":return"support";case"/app/liquidity-scanner":return"liquidity-scanner";case"/app/nft-generator":return"nft-generator";case"/app/ai-token-scan":return"ai-token-scan";case"/app/honeypot-detector":return"honeypot-detector";case"/app/whale-tracker":return"whale-tracker";case"/app/ai-chat":return"ai-assistant";case"/app/rugshield":return"rugshield";default:return"ai-token-scan"}})();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"min-h-screen transition-all duration-300",children:[jsxRuntimeExports.jsx(Header,{toggleSidebar:n,isSidebarOpen:e,activePage:l}),jsxRuntimeExports.jsx(Sidebar,{isOpen:e,setIsOpen:t,activePage:l}),jsxRuntimeExports.jsxs("div",{className:"lg:flex",children:[jsxRuntimeExports.jsx("div",{className:"hidden lg:block w-64 shrink-0"}),jsxRuntimeExports.jsx("main",{className:`flex-1 pt-[56px] lg:pt-0 min-h-screen transition-all duration-300 ${e?"lg:ml-0":""}`,children:jsxRuntimeExports.jsx("div",{className:"max-w-7xl mx-auto",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(AiTokenScan,{})}),jsxRuntimeExports.jsx(Route,{path:"/support",element:jsxRuntimeExports.jsx(Support,{})}),jsxRuntimeExports.jsx(Route,{path:"/liquidity-scanner",element:jsxRuntimeExports.jsx(LiquidityScanner,{})}),jsxRuntimeExports.jsx(Route,{path:"/nft-generator",element:jsxRuntimeExports.jsx(NFT,{})}),jsxRuntimeExports.jsx(Route,{path:"/ai-token-scan",element:jsxRuntimeExports.jsx(AiTokenScan,{})}),jsxRuntimeExports.jsx(Route,{path:"/honeypot-detector",element:jsxRuntimeExports.jsx(HoneypotDetector,{})}),jsxRuntimeExports.jsx(Route,{path:"/whale-tracker",element:jsxRuntimeExports.jsx(WhaleTracker,{})}),jsxRuntimeExports.jsx(Route,{path:"/ai-chat",element:jsxRuntimeExports.jsx(AIAssistant,{})}),jsxRuntimeExports.jsx(Route,{path:"/rugshield",element:jsxRuntimeExports.jsx(RugShield,{})})]})})})]})]}),jsxRuntimeExports.jsx(CopyAlert,{})]})},App=()=>jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/app/*",element:jsxRuntimeExports.jsx(WebAppPages,{})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(LandingPage,{})})]})});var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=u,base64Js.toByteArray=p,base64Js.fromByteArray=w;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 21,294 bytes, lines 2221-2226
2221+/",s=0,a=n.length;s<a;++s)e[s]=n[s],t[n.charCodeAt(s)]=s;t[45]=62,t[95]=63;function l(g){var b=g.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=g.indexOf("=");v===-1&&(v=b);var E=v===b?0:4-v%4;return[v,E]}function u(g){var b=l(g),v=b[0],E=b[1];return(v+E)*3/4-E}function d(g,b,v){return(b+v)*3/4-v}function p(g){var b,v=l(g),E=v[0],j=v[1],R=new r(d(g,E,j)),T=0,z=j>0?E-4:E,L;for(L=0;L<z;L+=4)b=t[g.charCodeAt(L)]<<18|t[g.charCodeAt(L+1)]<<12|t[g.charCodeAt(L+2)]<<6|t[g.charCodeAt(L+3)],R[T++]=b>>16&255,R[T++]=b>>8&255,R[T++]=b&255;return j===2&&(b=t[g.charCodeAt(L)]<<2|t[g.charCodeAt(L+1)]>>4,R[T++]=b&255),j===1&&(b=t[g.charCodeAt(L)]<<10|t[g.charCodeAt(L+1)]<<4|t[g.charCodeAt(L+2)]>>2,R[T++]=b>>8&255,R[T++]=b&255),R}function h(g){return e[g>>18&63]+e[g>>12&63]+e[g>>6&63]+e[g&63]}function x(g,b,v){for(var E,j=[],R=b;R<v;R+=3)E=(g[R]<<16&16711680)+(g[R+1]<<8&65280)+(g[R+2]&255),j.push(h(E));return j.join("")}function w(g){for(var b,v=g.length,E=v%3,j=[],R=16383,T=0,z=v-E;T<z;T+=R)j.push(x(g,T,T+R>z?z:T+R));return E===1?(b=g[v-1],j.push(e[b>>2]+e[b<<4&63]+"==")):E===2&&(b=(g[v-2]<<8)+g[v-1],j.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),j.join("")}return base64Js}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,n,s){var a,l,u=s*8-n-1,d=(1<<u)-1,p=d>>1,h=-7,x=r?s-1:0,w=r?-1:1,g=e[t+x];for(x+=w,a=g&(1<<-h)-1,g>>=-h,h+=u;h>0;a=a*256+e[t+x],x+=w,h-=8);for(l=a&(1<<-h)-1,a>>=-h,h+=n;h>0;l=l*256+e[t+x],x+=w,h-=8);if(a===0)a=1-p;else{if(a===d)return l?NaN:(g?-1:1)*(1/0);l=l+Math.pow(2,n),a=a-p}return(g?-1:1)*l*Math.pow(2,a-n)},ieee754.write=function(e,t,r,n,s,a){var l,u,d,p=a*8-s-1,h=(1<<p)-1,x=h>>1,w=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,b=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=h):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+x>=1?t+=w/d:t+=w*Math.pow(2,1-x),t*d>=2&&(l++,d/=2),l+x>=h?(u=0,l=h):l+x>=1?(u=(t*d-1)*Math.pow(2,s),l=l+x):(u=t*Math.pow(2,x-1)*Math.pow(2,s),l=0));s>=8;e[r+g]=u&255,g+=b,u/=256,s-=8);for(l=l<<s|u,p+=s;p>0;e[r+g]=l&255,g+=b,l/=256,p-=8);e[r+g-b]|=v*128}),ieee754}/*! 2222 * The buffer module from node.js, for the browser. 2223 * 2224 * @author Feross Aboukhadijeh <https://feross.org> 2225 * @license MIT 2226 */var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,(function(e){const t=requireBase64Js(),r=requireIeee754(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=R,e.INSPECT_MAX_BYTES=50;const s=2147483647;e.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=a(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const ee=new Uint8Array(1),K={foo:function(){return 42}};return Object.setPrototypeOf(K,Uint8Array.prototype),Object.setPrototypeOf(ee,K),ee.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(ee){if(ee>s)throw new RangeError('The value "'+ee+'" is invalid for option "size"');const K=new Uint8Array(ee);return Object.setPrototypeOf(K,u.prototype),K}function u(ee,K,Y){if(typeof ee=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(ee)}return d(ee,K,Y)}u.poolSize=8192;function d(ee,K,Y){if(typeof ee=="string")return w(ee,K);if(ArrayBuffer.isView(ee))return b(ee);if(ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(at(ee,ArrayBuffer)||ee&&at(ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(at(ee,SharedArrayBuffer)||ee&&at(ee.buffer,SharedArrayBuffer)))return v(ee,K,Y);if(typeof ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=ee.valueOf&&ee.valueOf();if(se!=null&&se!==ee)return u.from(se,K,Y);const ce=E(ee);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ee[Symbol.toPrimitive]=="function")return u.from(ee[Symbol.toPrimitive]("string"),K,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee)}u.from=function(ee,K,Y){return d(ee,K,Y)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function p(ee){if(typeof ee!="number")throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function h(ee,K,Y){return p(ee),ee<=0?l(ee):K!==void 0?typeof Y=="string"?l(ee).fill(K,Y):l(ee).fill(K):l(ee)}u.alloc=function(ee,K,Y){return h(ee,K,Y)};function x(ee){return p(ee),l(ee<0?0:j(ee)|0)}u.allocUnsafe=function(ee){return x(ee)},u.allocUnsafeSlow=function(ee){return x(ee)};function w(ee,K){if((typeof K!="string"||K==="")&&(K="utf8"),!u.isEncoding(K))throw new TypeError("Unknown encoding: "+K);const Y=T(ee,K)|0;let se=l(Y);const ce=se.write(ee,K);return ce!==Y&&(se=se.slice(0,ce)),se}function g(ee){const K=ee.length<0?0:j(ee.length)|0,Y=l(K);for(let se=0;se<K;se+=1)Y[se]=ee[se]&255;return Y}function b(ee){if(at(ee,Uint8Array)){const K=new Uint8Array(ee);return v(K.buffer,K.byteOffset,K.byteLength)}return g(ee)}function v(ee,K,Y){if(K<0||ee.byteLength<K)throw new RangeError('"offset" is outside of buffer bounds');if(ee.byteLength<K+(Y||0))throw new RangeError('"length" is outside of buffer bounds');let se;return K===void 0&&Y===void 0?se=new Uint8Array(ee):Y===void 0?se=new Uint8Array(ee,K):se=new Uint8Array(ee,K,Y),Object.setPrototypeOf(se,u.prototype),se}function E(ee){if(u.isBuffer(ee)){const K=j(ee.length)|0,Y=l(K);return Y.length===0||ee.copy(Y,0,0,K),Y}if(ee.length!==void 0)return typeof ee.length!="number"||qe(ee.length)?l(0):g(ee);if(ee.type==="Buffer"&&Array.isArray(ee.data))return g(ee.data)}function j(ee){if(ee>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return ee|0}function R(ee){return+ee!=ee&&(ee=0),u.alloc(+ee)}u.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==u.prototype},u.compare=function(K,Y){if(at(K,Uint8Array)&&(K=u.from(K,K.offset,K.byteLength)),at(Y,Uint8Array)&&(Y=u.from(Y,Y.offset,Y.byteLength)),!u.isBuffer(K)||!u.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===Y)return 0;let se=K.length,ce=Y.length;for(let he=0,ye=Math.min(se,ce);he<ye;++he)if(K[he]!==Y[he]){se=K[he],ce=Y[he];break}return se<ce?-1:ce<se?1:0},u.isEncoding=function(K){switch(String(K).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(K,Y){if(!Array.isArray(K))throw new TypeError('"list" argument must be an Array of Buffers');if(K.length===0)return u.alloc(0);let se;if(Y===void 0)for(Y=0,se=0;se<K.length;++se)Y+=K[se].length;const ce=u.allocUnsafe(Y);let he=0;for(se=0;se<K.length;++se){let ye=K[se];if(at(ye,Uint8Array))he+ye.length>ce.length?(u.isBuffer(ye)||(ye=u.from(ye)),ye.copy(ce,he)):Uint8Array.prototype.set.call(ce,ye,he);else if(u.isBuffer(ye))ye.copy(ce,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=ye.length}return ce};function T(ee,K){if(u.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||at(ee,ArrayBuffer))return ee.byteLength;if(typeof ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);const Y=ee.length,se=arguments.length>2&&arguments[2]===!0;if(!se&&Y===0)return 0;let ce=!1;for(;;)switch(K){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return Te(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ie(ee).length;default:if(ce)return se?-1:Te(ee).length;K=(""+K).toLowerCase(),ce=!0}}u.byteLength=T;function z(ee,K,Y){let se=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,K>>>=0,Y<=K))return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return q(this,K,Y);case"utf8":case"utf-8":return S(this,K,Y);case"ascii":return k(this,K,Y);case"latin1":case"binary":return W(this,K,Y);case"base64":return O(this,K,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,K,Y);default:if(se)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),se=!0}}u.prototype._isBuffer=!0;function L(ee,K,Y){const se=ee[K];ee[K]=ee[Y],ee[Y]=se}u.prototype.swap16=function(){const K=this.length;if(K%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<K;Y+=2)L(this,Y,Y+1);return this},u.prototype.swap32=function(){const K=this.length;if(K%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<K;Y+=4)L(this,Y,Y+3),L(this,Y+1,Y+2);return this},u.prototype.swap64=function(){const K=this.length;if(K%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<K;Y+=8)L(this,Y,Y+7),L(this,Y+1,Y+6),L(this,Y+2,Y+5),L(this,Y+3,Y+4);return this},u.prototype.toString=function(){const K=this.length;return K===0?"":arguments.length===0?S(this,0,K):z.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(K){if(!u.isBuffer(K))throw new TypeError("Argument must be a Buffer");return this===K?!0:u.compare(this,K)===0},u.prototype.inspect=function(){let K="";const Y=e.INSPECT_MAX_BYTES;return K=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(K+=" ... "),"<Buffer "+K+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(K,Y,se,ce,he){if(at(K,Uint8Array)&&(K=u.from(K,K.offset,K.byteLength)),!u.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof K);if(Y===void 0&&(Y=0),se===void 0&&(se=K?K.length:0),ce===void 0&&(ce=0),he===void 0&&(he=this.length),Y<0||se>K.length||ce<0||he>this.length)throw new RangeError("out of range index");if(ce>=he&&Y>=se)return 0;if(ce>=he)return-1;if(Y>=se)return 1;if(Y>>>=0,se>>>=0,ce>>>=0,he>>>=0,this===K)return 0;let ye=he-ce,Ue=se-Y;const Ne=Math.min(ye,Ue),Fe=this.slice(ce,he),Je=K.slice(Y,se);for(let Ve=0;Ve<Ne;++Ve)if(Fe[Ve]!==Je[Ve]){ye=Fe[Ve],Ue=Je[Ve];break}return ye<Ue?-1:Ue<ye?1:0};function V(ee,K,Y,se,ce){if(ee.length===0)return-1;if(typeof Y=="string"?(se=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,qe(Y)&&(Y=ce?0:ee.length-1),Y<0&&(Y=ee.length+Y),Y>=ee.length){if(ce)return-1;Y=ee.length-1}else if(Y<0)if(ce)Y=0;else return-1;if(typeof K=="string"&&(K=u.from(K,se)),u.isBuffer(K))return K.length===0?-1:$(ee,K,Y,se,ce);if(typeof K=="number")return K=K&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(ee,K,Y):Uint8Array.prototype.lastIndexOf.call(ee,K,Y):$(ee,[K],Y,se,ce);throw new TypeError("val must be string, number or Buffer")}function $(ee,K,Y,se,ce){let he=1,ye=ee.length,Ue=K.length;if(se!==void 0&&(se=String(se).toLowerCase(),se==="ucs2"||se==="ucs-2"||se==="utf16le"||se==="utf-16le")){if(ee.length<2||K.length<2)return-1;he=2,ye/=2,Ue/=2,Y/=2}function Ne(Je,Ve){return he===1?Je[Ve]:Je.readUInt16BE(Ve*he)}let Fe;if(ce){let Je=-1;for(Fe=Y;Fe<ye;Fe++)if(Ne(ee,Fe)===Ne(K,Je===-1?0:Fe-Je)){if(Je===-1&&(Je=Fe),Fe-Je+1===Ue)return Je*he}else Je!==-1&&(Fe-=Fe-Je),Je=-1}else for(Y+Ue>ye&&(Y=ye-Ue),Fe=Y;Fe>=0;Fe--){let Je=!0;for(let Ve=0;Ve<Ue;Ve++)if(Ne(ee,Fe+Ve)!==Ne(K,Ve)){Je=!1;break}if(Je)return Fe}return-1}u.prototype.includes=function(K,Y,se){return this.indexOf(K,Y,se)!==-1},u.prototype.indexOf=function(K,Y,se){return V(this,K,Y,se,!0)},u.prototype.lastIndexOf=function(K,Y,se){return V(this,K,Y,se,!1)};function U(ee,K,Y,se){Y=Number(Y)||0;const ce=ee.length-Y;se?(se=Number(se),se>ce&&(se=ce)):se=ce;const he=K.length;se>he/2&&(se=he/2);let ye;for(ye=0;ye<se;++ye){const Ue=parseInt(K.substr(ye*2,2),16);if(qe(Ue))return ye;ee[Y+ye]=Ue}return ye}function B(ee,K,Y,se){return ze(Te(K,ee.length-Y),ee,Y,se)}function P(ee,K,Y,se){return ze(Be(K),ee,Y,se)}function H(ee,K,Y,se){return ze(Ie(K),ee,Y,se)}function Z(ee,K,Y,se){return ze(Ye(K,ee.length-Y),ee,Y,se)}u.prototype.write=function(K,Y,se,ce){if(Y===void 0)ce="utf8",se=this.length,Y=0;else if(se===void 0&&typeof Y=="string")ce=Y,se=this.length,Y=0;else if(isFinite(Y))Y=Y>>>0,isFinite(se)?(se=se>>>0,ce===void 0&&(ce="utf8")):(ce=se,se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const he=this.length-Y;if((se===void 0||se>he)&&(se=he),K.length>0&&(se<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let ye=!1;for(;;)switch(ce){case"hex":return U(this,K,Y,se);case"utf8":case"utf-8":return B(this,K,Y,se);case"ascii":case"latin1":case"binary":return P(this,K,Y,se);case"base64":return H(this,K,Y,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,K,Y,se);default:if(ye)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ye=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(ee,K,Y){return K===0&&Y===ee.length?t.fromByteArray(ee):t.fromByteArray(ee.slice(K,Y))}function S(ee,K,Y){Y=Math.min(ee.length,Y);const se=[];let ce=K;for(;ce<Y;){const he=ee[ce];let ye=null,Ue=he>239?4:he>223?3:he>191?2:1;if(ce+Ue<=Y){let Ne,Fe,Je,Ve;switch(Ue){case 1:he<128&&(ye=he);break;case 2:Ne=ee[ce+1],(Ne&192)===128&&(Ve=(he&31)<<6|Ne&63,Ve>127&&(ye=Ve));break;case 3:Ne=ee[ce+1],Fe=ee[ce+2],(Ne&192)===128&&(Fe&192)===128&&(Ve=(he&15)<<12|(Ne&63)<<6|Fe&63,Ve>2047&&(Ve<55296||Ve>57343)&&(ye=Ve));break;case 4:Ne=ee[ce+1],Fe=ee[ce+2],Je=ee[ce+3],(Ne&192)===128&&(Fe&192)===128&&(Je&192)===128&&(Ve=(he&15)<<18|(Ne&63)<<12|(Fe&63)<<6|Je&63,Ve>65535&&Ve<1114112&&(ye=Ve))}}ye===null?(ye=65533,Ue=1):ye>65535&&(ye-=65536,se.push(ye>>>10&1023|55296),ye=56320|ye&1023),se.push(ye),ce+=Ue}return F(se)}const N=4096;function F(ee){const K=ee.length;if(K<=N)return String.fromCharCode.apply(String,ee);let Y="",se=0;for(;se<K;)Y+=String.fromCharCode.apply(String,ee.slice(se,se+=N));return Y}function k(ee,K,Y){let se="";Y=Math.min(ee.length,Y);for(let ce=K;ce<Y;++ce)se+=String.fromCharCode(ee[ce]&127);return se}function W(ee,K,Y){let se="";Y=Math.min(ee.length,Y);for(let ce=K;ce<Y;++ce)se+=String.fromCharCode(ee[ce]);return se}function q(ee,K,Y){const se=ee.length;(!K||K<0)&&(K=0),(!Y||Y<0||Y>se)&&(Y=se);let ce="";for(let he=K;he<Y;++he)ce+=Xe[ee[he]];return ce}function A(ee,K,Y){const se=ee.slice(K,Y);let ce="";for(let he=0;he<se.length-1;he+=2)ce+=String.fromCharCode(se[he]+se[he+1]*256);return ce}u.prototype.slice=function(K,Y){const se=this.length;K=~~K,Y=Y===void 0?se:~~Y,K<0?(K+=se,K<0&&(K=0)):K>se&&(K=se),Y<0?(Y+=se,Y<0&&(Y=0)):Y>se&&(Y=se),Y<K&&(Y=K);const ce=this.subarray(K,Y);return Object.setPrototypeOf(ce,u.prototype),ce};function D(ee,K,Y){if(ee%1!==0||ee<0)throw new RangeError("offset is not uint");if(ee+K>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(K,Y,se){K=K>>>0,Y=Y>>>0,se||D(K,Y,this.length);let ce=this[K],he=1,ye=0;for(;++ye<Y&&(he*=256);)ce+=this[K+ye]*he;return ce},u.prototype.readUintBE=u.prototype.readUIntBE=function(K,Y,se){K=K>>>0,Y=Y>>>0,se||D(K,Y,this.length);let ce=this[K+--Y],he=1;for(;Y>0&&(he*=256);)ce+=this[K+--Y]*he;return ce},u.prototype.readUint8=u.prototype.readUInt8=function(K,Y){return K=K>>>0,Y||D(K,1,this.length),this[K]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(K,Y){return K=K>>>0,Y||D(K,2,this.length),this[K]|this[K+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(K,Y){return K=K>>>0,Y||D(K,2,this.length),this[K]<<8|this[K+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(K,Y){return K=K>>>0,Y||D(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+this[K+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(K,Y){return K=K>>>0,Y||D(K,4,this.length),this[K]*16777216+(this[K+1]<<16|this[K+2]<<8|this[K+3])},u.prototype.readBigUInt64LE=ot(function(K){K=K>>>0,Me(K,"offset");const Y=this[K],se=this[K+7];(Y===void 0||se===void 0)&&ve(K,this.length-8);const ce=Y+this[++K]*2**8+this[++K]*2**16+this[++K]*2**24,he=this[++K]+this[++K]*2**8+this[++K]*2**16+se*2**24;return BigInt(ce)+(BigInt(he)<<BigInt(32))}),u.prototype.readBigUInt64BE=ot(function(K){K=K>>>0,Me(K,"offset");const Y=this[K],se=this[K+7];(Y===void 0||se===void 0)&&ve(K,this.length-8);const ce=Y*2**24+this[++K]*2**16+this[++K]*2**8+this[++K],he=this[++K]*2**24+this[++K]*2**16+this[++K]*2**8+se;return(BigInt(ce)<<BigInt(32))+BigInt(he)}),u.prototype.readIntLE=function(K,Y,se){K=K>>>0,Y=Y>>>0,se||D(K,Y,this.length);let ce=this[K],he=1,ye=0;for(;++ye<Y&&(he*=256);)ce+=this[K+ye]*he;return he*=128,ce>=he&&(ce-=Math.pow(2,8*Y)),ce},u.prototype.readIntBE=function(K,Y,se){K=K>>>0,Y=Y>>>0,se||D(K,Y,this.length);let ce=Y,he=1,ye=this[K+--ce];for(;ce>0&&(he*=256);)ye+=this[K+--ce]*he;return he*=128,ye>=he&&(ye-=Math.pow(2,8*Y)),ye},u.prototype.readInt8=function(K,Y){return K=K>>>0,Y||D(K,1,this.length),this[K]&128?(255-this[K]+1)*-1:this[K]},u.prototype.readInt16LE=function(K,Y){K=K>>>0,Y||D(K,2,this.length);const se=this[K]|this[K+1]<<8;return se&32768?se|4294901760:se},u.prototype.readInt16BE=function(K,Y){K=K>>>0,Y||D(K,2,this.length);const se=this[K+1]|this[K]<<8;return se&32768?se|4294901760:se},u.prototype.readInt32LE=function(K,Y){return K=K>>>0,Y||D(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},u.prototype.readInt32BE=function(K,Y){return K=K>>>0,Y||D(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},u.prototype.readBigInt64LE=ot(function(K){K=K>>>0,Me(K,"offset");const Y=this[K],se=this[K+7];(Y===void 0||se===void 0)&&ve(K,this.length-8);const ce=this[K+4]+this[K+5]*2**8+this[K+6]*2**16+(se<<24);return(BigInt(ce)<<BigInt(32))+BigInt(Y+this[++K]*2**8+this[++K]*2**16+this[++K]*2**24)}),u.prototype.readBigInt64BE=ot(function(K){K=K>>>0,Me(K,"offset");const Y=this[K],se=this[K+7];(Y===void 0||se===void 0)&&ve(K,this.length-8);const ce=(Y<<24)+this[++K]*2**16+this[++K]*2**8+this[++K];return(BigInt(ce)<<BigInt(32))+BigInt(this[++K]*2**24+this[++K]*2**16+this[++K]*2**8+se)}),u.prototype.readFloatLE=function(K,Y){return K=K>>>0,Y||D(K,4,this.length),r.read(this,K,!0,23,4)},u.prototype.readFloatBE=function(K,Y){return K=K>>>0,Y||D(K,4,this.length),r.read(this,K,!1,23,4)},u.prototype.readDoubleLE=function(K,Y){return K=K>>>0,Y||D(K,8,this.length),r.read(this,K,!0,52,8)},u.prototype.readDoubleBE=function(K,Y){return K=K>>>0,Y||D(K,8,this.length),r.read(this,K,!1,52,8)};function _(ee,K,Y,se,ce,he){if(!u.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>ce||K<he)throw new RangeError('"value" argument is out of bounds');if(Y+se>ee.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(K,Y,se,ce){if(K=+K,Y=Y>>>0,se=se>>>0,!ce){const Ue=Math.pow(2,8*se)-1;_(this,K,Y,se,Ue,0)}let he=1,ye=0;for(this[Y]=K&255;++ye<se&&(he*=256);)this[Y+ye]=K/he&255;return Y+se},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(K,Y,se,ce){if(K=+K,Y=Y>>>0,se=se>>>0,!ce){const Ue=Math.pow(2,8*se)-1;_(this,K,Y,se,Ue,0)}let he=se-1,ye=1;for(this[Y+he]=K&255;--he>=0&&(ye*=256);)this[Y+he]=K/ye&255;return Y+se},u.prototype.writeUint8=u.prototype.writeUInt8=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,1,255,0),this[Y]=K&255,Y+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,2,65535,0),this[Y]=K&255,this[Y+1]=K>>>8,Y+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,2,65535,0),this[Y]=K>>>8,this[Y+1]=K&255,Y+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,4,4294967295,0),this[Y+3]=K>>>24,this[Y+2]=K>>>16,this[Y+1]=K>>>8,this[Y]=K&255,Y+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,4,4294967295,0),this[Y]=K>>>24,this[Y+1]=K>>>16,this[Y+2]=K>>>8,this[Y+3]=K&255,Y+4};function M(ee,K,Y,se,ce){_e(K,se,ce,ee,Y,7);let he=Number(K&BigInt(4294967295));ee[Y++]=he,he=he>>8,ee[Y++]=he,he=he>>8,ee[Y++]=he,he=he>>8,ee[Y++]=he;let ye=Number(K>>BigInt(32)&BigInt(4294967295));return ee[Y++]=ye,ye=ye>>8,ee[Y++]=ye,ye=ye>>8,ee[Y++]=ye,ye=ye>>8,ee[Y++]=ye,Y}function G(ee,K,Y,se,ce){_e(K,se,ce,ee,Y,7);let he=Number(K&BigInt(4294967295));ee[Y+7]=he,he=he>>8,ee[Y+6]=he,he=he>>8,ee[Y+5]=he,he=he>>
vendor: 6,516 bytes, line 2226
22268,ee[Y+4]=he;let ye=Number(K>>BigInt(32)&BigInt(4294967295));return ee[Y+3]=ye,ye=ye>>8,ee[Y+2]=ye,ye=ye>>8,ee[Y+1]=ye,ye=ye>>8,ee[Y]=ye,Y+8}u.prototype.writeBigUInt64LE=ot(function(K,Y=0){return M(this,K,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ot(function(K,Y=0){return G(this,K,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(K,Y,se,ce){if(K=+K,Y=Y>>>0,!ce){const Ne=Math.pow(2,8*se-1);_(this,K,Y,se,Ne-1,-Ne)}let he=0,ye=1,Ue=0;for(this[Y]=K&255;++he<se&&(ye*=256);)K<0&&Ue===0&&this[Y+he-1]!==0&&(Ue=1),this[Y+he]=(K/ye>>0)-Ue&255;return Y+se},u.prototype.writeIntBE=function(K,Y,se,ce){if(K=+K,Y=Y>>>0,!ce){const Ne=Math.pow(2,8*se-1);_(this,K,Y,se,Ne-1,-Ne)}let he=se-1,ye=1,Ue=0;for(this[Y+he]=K&255;--he>=0&&(ye*=256);)K<0&&Ue===0&&this[Y+he+1]!==0&&(Ue=1),this[Y+he]=(K/ye>>0)-Ue&255;return Y+se},u.prototype.writeInt8=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,1,127,-128),K<0&&(K=255+K+1),this[Y]=K&255,Y+1},u.prototype.writeInt16LE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,2,32767,-32768),this[Y]=K&255,this[Y+1]=K>>>8,Y+2},u.prototype.writeInt16BE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,2,32767,-32768),this[Y]=K>>>8,this[Y+1]=K&255,Y+2},u.prototype.writeInt32LE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,4,2147483647,-2147483648),this[Y]=K&255,this[Y+1]=K>>>8,this[Y+2]=K>>>16,this[Y+3]=K>>>24,Y+4},u.prototype.writeInt32BE=function(K,Y,se){return K=+K,Y=Y>>>0,se||_(this,K,Y,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[Y]=K>>>24,this[Y+1]=K>>>16,this[Y+2]=K>>>8,this[Y+3]=K&255,Y+4},u.prototype.writeBigInt64LE=ot(function(K,Y=0){return M(this,K,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ot(function(K,Y=0){return G(this,K,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(ee,K,Y,se,ce,he){if(Y+se>ee.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function te(ee,K,Y,se,ce){return K=+K,Y=Y>>>0,ce||Q(ee,K,Y,4),r.write(ee,K,Y,se,23,4),Y+4}u.prototype.writeFloatLE=function(K,Y,se){return te(this,K,Y,!0,se)},u.prototype.writeFloatBE=function(K,Y,se){return te(this,K,Y,!1,se)};function ne(ee,K,Y,se,ce){return K=+K,Y=Y>>>0,ce||Q(ee,K,Y,8),r.write(ee,K,Y,se,52,8),Y+8}u.prototype.writeDoubleLE=function(K,Y,se){return ne(this,K,Y,!0,se)},u.prototype.writeDoubleBE=function(K,Y,se){return ne(this,K,Y,!1,se)},u.prototype.copy=function(K,Y,se,ce){if(!u.isBuffer(K))throw new TypeError("argument should be a Buffer");if(se||(se=0),!ce&&ce!==0&&(ce=this.length),Y>=K.length&&(Y=K.length),Y||(Y=0),ce>0&&ce<se&&(ce=se),ce===se||K.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(se<0||se>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),K.length-Y<ce-se&&(ce=K.length-Y+se);const he=ce-se;return this===K&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Y,se,ce):Uint8Array.prototype.set.call(K,this.subarray(se,ce),Y),he},u.prototype.fill=function(K,Y,se,ce){if(typeof K=="string"){if(typeof Y=="string"?(ce=Y,Y=0,se=this.length):typeof se=="string"&&(ce=se,se=this.length),ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!u.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);if(K.length===1){const ye=K.charCodeAt(0);(ce==="utf8"&&ye<128||ce==="latin1")&&(K=ye)}}else typeof K=="number"?K=K&255:typeof K=="boolean"&&(K=Number(K));if(Y<0||this.length<Y||this.length<se)throw new RangeError("Out of range index");if(se<=Y)return this;Y=Y>>>0,se=se===void 0?this.length:se>>>0,K||(K=0);let he;if(typeof K=="number")for(he=Y;he<se;++he)this[he]=K;else{const ye=u.isBuffer(K)?K:u.from(K,ce),Ue=ye.length;if(Ue===0)throw new TypeError('The value "'+K+'" is invalid for argument "value"');for(he=0;he<se-Y;++he)this[he+Y]=ye[he%Ue]}return this};const ae={};function fe(ee,K,Y){ae[ee]=class extends Y{constructor(){super(),Object.defineProperty(this,"message",{value:K.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ee}]`,this.stack,delete this.name}get code(){return ee}set code(ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ce,writable:!0})}toString(){return`${this.name} [${ee}]: ${this.message}`}}}fe("ERR_BUFFER_OUT_OF_BOUNDS",function(ee){return ee?`${ee} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),fe("ERR_INVALID_ARG_TYPE",function(ee,K){return`The "${ee}" argument must be of type number. Received type ${typeof K}`},TypeError),fe("ERR_OUT_OF_RANGE",function(ee,K,Y){let se=`The value of "${ee}" is out of range.`,ce=Y;return Number.isInteger(Y)&&Math.abs(Y)>2**32?ce=Se(String(Y)):typeof Y=="bigint"&&(ce=String(Y),(Y>BigInt(2)**BigInt(32)||Y<-(BigInt(2)**BigInt(32)))&&(ce=Se(ce)),ce+="n"),se+=` It must be ${K}. Received ${ce}`,se},RangeError);function Se(ee){let K="",Y=ee.length;const se=ee[0]==="-"?1:0;for(;Y>=se+4;Y-=3)K=`_${ee.slice(Y-3,Y)}${K}`;return`${ee.slice(0,Y)}${K}`}function Ce(ee,K,Y){Me(K,"offset"),(ee[K]===void 0||ee[K+Y]===void 0)&&ve(K,ee.length-(Y+1))}function _e(ee,K,Y,se,ce,he){if(ee>Y||ee<K){const ye=typeof K=="bigint"?"n":"";let Ue;throw K===0||K===BigInt(0)?Ue=`>= 0${ye} and < 2${ye} ** ${(he+1)*8}${ye}`:Ue=`>= -(2${ye} ** ${(he+1)*8-1}${ye}) and < 2 ** ${(he+1)*8-1}${ye}`,new ae.ERR_OUT_OF_RANGE("value",Ue,ee)}Ce(se,ce,he)}function Me(ee,K){if(typeof ee!="number")throw new ae.ERR_INVALID_ARG_TYPE(K,"number",ee)}function ve(ee,K,Y){throw Math.floor(ee)!==ee?(Me(ee,Y),new ae.ERR_OUT_OF_RANGE("offset","an integer",ee)):K<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${K}`,ee)}const Le=/[^+/0-9A-Za-z-_]/g;function et(ee){if(ee=ee.split("=")[0],ee=ee.trim().replace(Le,""),ee.length<2)return"";for(;ee.length%4!==0;)ee=ee+"=";return ee}function Te(ee,K){K=K||1/0;let Y;const se=ee.length;let ce=null;const he=[];for(let ye=0;ye<se;++ye){if(Y=ee.charCodeAt(ye),Y>55295&&Y<57344){if(!ce){if(Y>56319){(K-=3)>-1&&he.push(239,191,189);continue}else if(ye+1===se){(K-=3)>-1&&he.push(239,191,189);continue}ce=Y;continue}if(Y<56320){(K-=3)>-1&&he.push(239,191,189),ce=Y;continue}Y=(ce-55296<<10|Y-56320)+65536}else ce&&(K-=3)>-1&&he.push(239,191,189);if(ce=null,Y<128){if((K-=1)<0)break;he.push(Y)}else if(Y<2048){if((K-=2)<0)break;he.push(Y>>6|192,Y&63|128)}
vendor: 10,602 bytes, line 2226
2226else if(Y<65536){if((K-=3)<0)break;he.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((K-=4)<0)break;he.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return he}function Be(ee){const K=[];for(let Y=0;Y<ee.length;++Y)K.push(ee.charCodeAt(Y)&255);return K}function Ye(ee,K){let Y,se,ce;const he=[];for(let ye=0;ye<ee.length&&!((K-=2)<0);++ye)Y=ee.charCodeAt(ye),se=Y>>8,ce=Y%256,he.push(ce),he.push(se);return he}function Ie(ee){return t.toByteArray(et(ee))}function ze(ee,K,Y,se){let ce;for(ce=0;ce<se&&!(ce+Y>=K.length||ce>=ee.length);++ce)K[ce+Y]=ee[ce];return ce}function at(ee,K){return ee instanceof K||ee!=null&&ee.constructor!=null&&ee.constructor.name!=null&&ee.constructor.name===K.name}function qe(ee){return ee!==ee}const Xe=(function(){const ee="0123456789abcdef",K=new Array(256);for(let Y=0;Y<16;++Y){const se=Y*16;for(let ce=0;ce<16;++ce)K[se+ce]=ee[Y]+ee[ce]}return K})();function ot(ee){return typeof BigInt>"u"?Ze:ee}function Ze(){throw new Error("BigInt not supported")}})(buffer)),buffer}var bufferExports=requireBuffer();const crypto$1=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function isBytes(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function anumber(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function abytes(e,...t){if(!isBytes(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function ahash(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");anumber(e.outputLen),anumber(e.blockLen)}function aexists(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function aoutput(e,t){abytes(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function u32(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function clean(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function createView(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function rotr(e,t){return e<<32-t|e>>>t}const isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function byteSwap(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function byteSwap32(e){for(let t=0;t<e.length;t++)e[t]=byteSwap(e[t]);return e}const swap32IfBE=isLE?e=>e:byteSwap32,hasHexBuiltin=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",hexes=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function bytesToHex(e){if(abytes(e),hasHexBuiltin)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=hexes[e[r]];return t}const asciis={_0:48,_9:57,A:65,F:70,a:97,f:102};function asciiToBase16(e){if(e>=asciis._0&&e<=asciis._9)return e-asciis._0;if(e>=asciis.A&&e<=asciis.F)return e-(asciis.A-10);if(e>=asciis.a&&e<=asciis.f)return e-(asciis.a-10)}function hexToBytes(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(hasHexBuiltin)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let s=0,a=0;s<r;s++,a+=2){const l=asciiToBase16(e.charCodeAt(a)),u=asciiToBase16(e.charCodeAt(a+1));if(l===void 0||u===void 0){const d=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}n[s]=l*16+u}return n}function utf8ToBytes(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function toBytes(e){return typeof e=="string"&&(e=utf8ToBytes(e)),abytes(e),e}function concatBytes(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];abytes(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}class Hash{}function createHasher(e){const t=n=>e().update(toBytes(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function randomBytes(e=32){if(crypto$1&&typeof crypto$1.getRandomValues=="function")return crypto$1.getRandomValues(new Uint8Array(e));if(crypto$1&&typeof crypto$1.randomBytes=="function")return Uint8Array.from(crypto$1.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function setBigUint64(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const s=BigInt(32),a=BigInt(4294967295),l=Number(r>>s&a),u=Number(r&a),d=n?4:0,p=n?0:4;e.setUint32(t+d,l,n),e.setUint32(t+p,u,n)}function Chi(e,t,r){return e&t^~e&r}function Maj(e,t,r){return e&t^e&r^t&r}class HashMD extends Hash{constructor(t,r,n,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(t),this.view=createView(this.buffer)}update(t){aexists(this),t=toBytes(t),abytes(t);const{view:r,buffer:n,blockLen:s}=this,a=t.length;for(let l=0;l<a;){const u=Math.min(s-this.pos,a-l);if(u===s){const d=createView(t);for(;s<=a-l;l+=s)this.process(d,l);continue}n.set(t.subarray(l,l+u),this.pos),this.pos+=u,l+=u,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){aexists(this),aoutput(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:a}=this;let{pos:l}=this;r[l++]=128,clean(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(n,0),l=0);for(let x=l;x<s;x++)r[x]=0;setBigUint64(n,s-8,BigInt(this.length*8),a),this.process(n,0);const u=createView(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=d/4,h=this.get();if(p>h.length)throw new Error("_sha2: outputLen bigger than state");for(let x=0;x<p;x++)u.setUint32(4*x,h[x],a)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:a,destroyed:l,pos:u}=this;return t.destroyed=l,t.finished=a,t.length=s,t.pos=u,s%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(e,t=!1){return t?{h:Number(e&U32_MASK64),l:Number(e>>_32n&U32_MASK64)}:{h:Number(e>>_32n&U32_MASK64)|0,l:Number(e&U32_MASK64)|0}}function split(e,t=!1){const r=e.length;let n=new Uint32Array(r),s=new Uint32Array(r);for(let a=0;a<r;a++){const{h:l,l:u}=fromBig(e[a],t);[n[a],s[a]]=[l,u]}return[n,s]}const shrSH=(e,t,r)=>e>>>r,shrSL=(e,t,r)=>e<<32-r|t>>>r,rotrSH=(e,t,r)=>e>>>r|t<<32-r,rotrSL=(e,t,r)=>e<<32-r|t>>>r,rotrBH=(e,t,r)=>e<<64-r|t>>>r-32,rotrBL=(e,t,r)=>e>>>r-32|t<<64-r,rotlSH=(e,t,r)=>e<<r|t>>>32-r,rotlSL=(e,t,r)=>t<<r|e>>>32-r,rotlBH=(e,t,r)=>t<<r-32|e>>>64-r,rotlBL=(e,t,r)=>e<<r-32|t>>>64-r;function add(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const add3L=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0,add5L=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0),add5H=(e,t,r,n,s,a)=>t+r+n+s+a+(e/2**32|0)|0,SHA256_K=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),SHA256_W=new Uint32Array(64);class SHA256 extends HashMD{constructor(t=32){super(64,t,8,!1),this.A=SHA256_IV[0]|0,this.B=SHA256_IV[1]|0,this.C=SHA256_IV[2]|0,this.D=SHA256_IV[3]|0,this.E=SHA256_IV[4]|0,this.F=SHA256_IV[5]|0,this.G=SHA256_IV[6]|0,this.H=SHA256_IV[7]|0}get(){const{A:t,B:r,C:n,D:s,E:a,F:l,G:u,H:d}=this;return[t,r,n,s,a,l,u,d]}set(t,r,n,s,a,l,u,d){this.A=t|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=a|0,this.F=l|0,this.G=u|0,this.H=d|0}process(t,r){for(let x=0;x<16;x++,r+=4)SHA256_W[x]=t.getUint32(r,!1);for(let x=16;x<64;x++){const w=SHA256_W[x-15],g=SHA256_W[x-2],b=rotr(w,7)^rotr(w,18)^w>>>3,v=rotr(g,17)^rotr(g,19)^g>>>10;SHA256_W[x]=v+SHA256_W[x-7]+b+SHA256_W[x-16]|0}let{A:n,B:s,C:a,D:l,E:u,F:d,G:p,H:h}=this;for(let x=0;x<64;x++){const w=rotr(u,6)^rotr(u,11)^rotr(u,25),g=h+w+Chi(u,d,p)+SHA256_K[x]+SHA256_W[x]|0,v=(rotr(n,2)^rotr(n,13)^rotr(n,22))+Maj(n,s,a)|0;h=p,p=d,d=u,u=l+g|0,l=a,a=s,s=n,n=g+v|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,p=p+this.G|0,h=h+this.H|0,this.set(n,s,a,l,u,d,p,h)}roundClean(){clean(SHA256_W)}destroy(){this.set(0,0,0,0,0,0,0,0),clean(this.buffer)}}const K512=split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
22265771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),SHA512_Kh=K512[0],SHA512_Kl=K512[1],SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=SHA512_IV[0]|0,this.Al=SHA512_IV[1]|0,this.Bh=SHA512_IV[2]|0,this.Bl=SHA512_IV[3]|0,this.Ch=SHA512_IV[4]|0,this.Cl=SHA512_IV[5]|0,this.Dh=SHA512_IV[6]|0,this.Dl=SHA512_IV[7]|0,this.Eh=SHA512_IV[8]|0,this.El=SHA512_IV[9]|0,this.Fh=SHA512_IV[10]|0,this.Fl=SHA512_IV[11]|0,this.Gh=SHA512_IV[12]|0,this.Gl=SHA512_IV[13]|0,this.Hh=SHA512_IV[14]|0,this.Hl=SHA512_IV[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:s,Ch:a,Cl:l,Dh:u,Dl:d,Eh:p,El:h,Fh:x,Fl:w,Gh:g,Gl:b,Hh:v,Hl:E}=this;return[t,r,n,s,a,l,u,d,p,h,x,w,g,b,v,E]}set(t,r,n,s,a,l,u,d,p,h,x,w,g,b,v,E){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=a|0,this.Cl=l|0,this.Dh=u|0,this.Dl=d|0,this.Eh=p|0,this.El=h|0,this.Fh=x|0,this.Fl=w|0,this.Gh=g|0,this.Gl=b|0,this.Hh=v|0,this.Hl=E|0}process(t,r){for(let T=0;T<16;T++,r+=4)SHA512_W_H[T]=t.getUint32(r),SHA512_W_L[T]=t.getUint32(r+=4);for(let T=16;T<80;T++){const z=SHA512_W_H[T-15]|0,L=SHA512_W_L[T-15]|0,V=rotrSH(z,L,1)^rotrSH(z,L,8)^shrSH(z,L,7),$=rotrSL(z,L,1)^rotrSL(z,L,8)^shrSL(z,L,7),U=SHA512_W_H[T-2]|0,B=SHA512_W_L[T-2]|0,P=rotrSH(U,B,19)^rotrBH(U,B,61)^shrSH(U,B,6),H=rotrSL(U,B,19)^rotrBL(U,B,61)^shrSL(U,B,6),Z=add4L($,H,SHA512_W_L[T-7],SHA512_W_L[T-16]),O=add4H(Z,V,P,SHA512_W_H[T-7],SHA512_W_H[T-16]);SHA512_W_H[T]=O|0,SHA512_W_L[T]=Z|0}let{Ah:n,Al:s,Bh:a,Bl:l,Ch:u,Cl:d,Dh:p,Dl:h,Eh:x,El:w,Fh:g,Fl:b,Gh:v,Gl:E,Hh:j,Hl:R}=this;for(let T=0;T<80;T++){const z=rotrSH(x,w,14)^rotrSH(x,w,18)^rotrBH(x,w,41),L=rotrSL(x,w,14)^rotrSL(x,w,18)^rotrBL(x,w,41),V=x&g^~x&v,$=w&b^~w&E,U=add5L(R,L,$,SHA512_Kl[T],SHA512_W_L[T]),B=add5H(U,j,z,V,SHA512_Kh[T],SHA512_W_H[T]),P=U|0,H=rotrSH(n,s,28)^rotrBH(n,s,34)^rotrBH(n,s,39),Z=rotrSL(n,s,28)^rotrBL(n,s,34)^rotrBL(n,s,39),O=n&a^n&u^a&u,S=s&l^s&d^l&d;j=v|0,R=E|0,v=g|0,E=b|0,g=x|0,b=w|0,{h:x,l:w}=add(p|0,h|0,B|0,P|0),p=u|0,h=d|0,u=a|0,d=l|0,a=n|0,l=s|0;const N=add3L(P,Z,S);n=add3H(N,B,H,O),s=N|0}({h:n,l:s}=add(this.Ah|0,this.Al|0,n|0,s|0)),{h:a,l}=add(this.Bh|0,this.Bl|0,a|0,l|0),{h:u,l:d}=add(this.Ch|0,this.Cl|0,u|0,d|0),{h:p,l:h}=add(this.Dh|0,this.Dl|0,p|0,h|0),{h:x,l:w}=add(this.Eh|0,this.El|0,x|0,w|0),{h:g,l:b}=add(this.Fh|0,this.Fl|0,g|0,b|0),{h:v,l:E}=add(this.Gh|0,this.Gl|0,v|0,E|0),{h:j,l:R}=add(this.Hh|0,this.Hl|0,j|0,R|0),this.set(n,s,a,l,u,d,p,h,x,w,g,b,v,E,j,R)}roundClean(){clean(SHA512_W_H,SHA512_W_L)}destroy(){clean(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const sha256$1=createHasher(()=>new SHA256),sha512=createHasher(()=>new SHA512);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$5=BigInt(0),_1n$6=BigInt(1);function _abool2(e,t=""){if(typeof e!="boolean"){const r=t&&`"${t}"`;throw new Error(r+"expected boolean, got type="+typeof e)}return e}function _abytes2(e,t,r=""){const n=isBytes(e),s=e?.length,a=t!==void 0;if(!n||a&&s!==t){const l=r&&`"${r}" `,u=a?` of length ${t}`:"",d=n?`length=${s}`:`type=${typeof e}`;throw new Error(l+"expected Uint8Array"+u+", got "+d)}return e}function numberToHexUnpadded(e){const t=e.toString(16);return t.length&1?"0"+t:t}function hexToNumber(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?_0n$5:BigInt("0x"+e)}function bytesToNumberBE(e){return hexToNumber(bytesToHex(e))}function bytesToNumberLE(e){return abytes(e),hexToNumber(bytesToHex(Uint8Array.from(e).reverse()))}function numberToBytesBE(e,t){return hexToBytes(e.toString(16).padStart(t*2,"0"))}function numberToBytesLE(e,t){return numberToBytesBE(e,t).reverse()}function ensureBytes(e,t,r){let n;if(typeof t=="string")try{n=hexToBytes(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(isBytes(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=n.length;if(typeof r=="number"&&s!==r)throw new Error(e+" of length "+r+" expected, got "+s);return n}function copyBytes(e){return Uint8Array.from(e)}const isPosBig=e=>typeof e=="bigint"&&_0n$5<=e;function inRange$1(e,t,r){return isPosBig(e)&&isPosBig(t)&&isPosBig(r)&&t<=e&&e<r}function aInRange(e,t,r,n){if(!inRange$1(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function bitLen(e){let t;for(t=0;e>_0n$5;e>>=_1n$6,t+=1);return t}const bitMask=e=>(_1n$6<<BigInt(e))-_1n$6;function createHmacDrbg(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const n=g=>new Uint8Array(g),s=g=>Uint8Array.of(g);let a=n(e),l=n(e),u=0;const d=()=>{a.fill(1),l.fill(0),u=0},p=(...g)=>r(l,a,...g),h=(g=n(0))=>{l=p(s(0),g),a=p(),g.length!==0&&(l=p(s(1),g),a=p())},x=()=>
vendor: 11,713 bytes, line 2226
2226{if(u++>=1e3)throw new Error("drbg: tried 1000 values");let g=0;const b=[];for(;g<t;){a=p();const v=a.slice();b.push(v),g+=a.length}return concatBytes(...b)};return(g,b)=>{d(),h(g);let v;for(;!(v=b(x()));)h();return d(),v}}function _validateObject(e,t,r={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function n(s,a,l){const u=e[s];if(l&&u===void 0)return;const d=typeof u;if(d!==a||u===null)throw new Error(`param "${s}" is invalid: expected ${a}, got ${d}`)}Object.entries(t).forEach(([s,a])=>n(s,a,!1)),Object.entries(r).forEach(([s,a])=>n(s,a,!0))}function memoized(e){const t=new WeakMap;return(r,...n)=>{const s=t.get(r);if(s!==void 0)return s;const a=e(r,...n);return t.set(r,a),a}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$4=BigInt(0),_1n$5=BigInt(1),_2n$5=BigInt(2),_3n$1=BigInt(3),_4n$1=BigInt(4),_5n$1=BigInt(5),_7n$1=BigInt(7),_8n$2=BigInt(8),_9n=BigInt(9),_16n=BigInt(16);function mod(e,t){const r=e%t;return r>=_0n$4?r:t+r}function pow2(e,t,r){let n=e;for(;t-- >_0n$4;)n*=n,n%=r;return n}function invert(e,t){if(e===_0n$4)throw new Error("invert: expected non-zero number");if(t<=_0n$4)throw new Error("invert: expected positive modulus, got "+t);let r=mod(e,t),n=t,s=_0n$4,a=_1n$5;for(;r!==_0n$4;){const u=n/r,d=n%r,p=s-a*u;n=r,r=d,s=a,a=p}if(n!==_1n$5)throw new Error("invert: does not exist");return mod(s,t)}function assertIsSquare(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}function sqrt3mod4(e,t){const r=(e.ORDER+_1n$5)/_4n$1,n=e.pow(t,r);return assertIsSquare(e,n,t),n}function sqrt5mod8(e,t){const r=(e.ORDER-_5n$1)/_8n$2,n=e.mul(t,_2n$5),s=e.pow(n,r),a=e.mul(t,s),l=e.mul(e.mul(a,_2n$5),s),u=e.mul(a,e.sub(l,e.ONE));return assertIsSquare(e,u,t),u}function sqrt9mod16(e){const t=Field(e),r=tonelliShanks(e),n=r(t,t.neg(t.ONE)),s=r(t,n),a=r(t,t.neg(n)),l=(e+_7n$1)/_16n;return(u,d)=>{let p=u.pow(d,l),h=u.mul(p,n);const x=u.mul(p,s),w=u.mul(p,a),g=u.eql(u.sqr(h),d),b=u.eql(u.sqr(x),d);p=u.cmov(p,h,g),h=u.cmov(w,x,b);const v=u.eql(u.sqr(h),d),E=u.cmov(p,h,v);return assertIsSquare(u,E,d),E}}function tonelliShanks(e){if(e<_3n$1)throw new Error("sqrt is not defined for small field");let t=e-_1n$5,r=0;for(;t%_2n$5===_0n$4;)t/=_2n$5,r++;let n=_2n$5;const s=Field(e);for(;FpLegendre(s,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return sqrt3mod4;let a=s.pow(n,t);const l=(t+_1n$5)/_2n$5;return function(d,p){if(d.is0(p))return p;if(FpLegendre(d,p)!==1)throw new Error("Cannot find square root");let h=r,x=d.mul(d.ONE,a),w=d.pow(p,t),g=d.pow(p,l);for(;!d.eql(w,d.ONE);){if(d.is0(w))return d.ZERO;let b=1,v=d.sqr(w);for(;!d.eql(v,d.ONE);)if(b++,v=d.sqr(v),b===h)throw new Error("Cannot find square root");const E=_1n$5<<BigInt(h-b-1),j=d.pow(x,E);h=b,x=d.sqr(j),w=d.mul(w,x),g=d.mul(g,j)}return g}}function FpSqrt(e){return e%_4n$1===_3n$1?sqrt3mod4:e%_8n$2===_5n$1?sqrt5mod8:e%_16n===_9n?sqrt9mod16(e):tonelliShanks(e)}const isNegativeLE=(e,t)=>(mod(e,t)&_1n$5)===_1n$5,FIELD_FIELDS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=FIELD_FIELDS.reduce((n,s)=>(n[s]="function",n),t);return _validateObject(e,r),e}function FpPow(e,t,r){if(r<_0n$4)throw new Error("invalid exponent, negatives unsupported");if(r===_0n$4)return e.ONE;if(r===_1n$5)return t;let n=e.ONE,s=t;for(;r>_0n$4;)r&_1n$5&&(n=e.mul(n,s)),s=e.sqr(s),r>>=_1n$5;return n}function FpInvertBatch(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),s=t.reduce((l,u,d)=>e.is0(u)?l:(n[d]=l,e.mul(l,u)),e.ONE),a=e.inv(s);return t.reduceRight((l,u,d)=>e.is0(u)?l:(n[d]=e.mul(l,n[d]),e.mul(l,u)),a),n}function FpLegendre(e,t){const r=(e.ORDER-_1n$5)/_2n$5,n=e.pow(t,r),s=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),l=e.eql(n,e.neg(e.ONE));if(!s&&!a&&!l)throw new Error("invalid Legendre symbol result");return s?1:a?0:-1}function nLength(e,t){t!==void 0&&anumber(t);const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Field(e,t,r=!1,n={}){if(e<=_0n$4)throw new Error("invalid field: expected ORDER > 0, got "+e);let s,a,l=!1,u;if(typeof t=="object"&&t!=null){if(n.sqrt||r)throw new Error("cannot specify opts in two arguments");const w=t;w.BITS&&(s=w.BITS),w.sqrt&&(a=w.sqrt),typeof w.isLE=="boolean"&&(r=w.isLE),typeof w.modFromBytes=="boolean"&&(l=w.modFromBytes),u=w.allowedLengths}else typeof t=="number"&&(s=t),n.sqrt&&(a=n.sqrt);const{nBitLength:d,nByteLength:p}=nLength(e,s);if(p>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let h;const x=Object.freeze({ORDER:e,isLE:r,BITS:d,BYTES:p,MASK:bitMask(d),ZERO:_0n$4,ONE:_1n$5,allowedLengths:u,create:w=>mod(w,e),isValid:w=>{if(typeof w!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof w);return _0n$4<=w&&w<e},is0:w=>w===_0n$4,isValidNot0:w=>!x.is0(w)&&x.isValid(w),isOdd:w=>(w&_1n$5)===_1n$5,neg:w=>mod(-w,e),eql:(w,g)=>w===g,sqr:w=>mod(w*w,e),add:(w,g)=>mod(w+g,e),sub:(w,g)=>mod(w-g,e),mul:(w,g)=>mod(w*g,e),pow:(w,g)=>FpPow(x,w,g),div:(w,g)=>mod(w*invert(g,e),e),sqrN:w=>w*w,addN:(w,g)=>w+g,subN:(w,g)=>w-g,mulN:(w,g)=>w*g,inv:w=>invert(w,e),sqrt:a||(w=>(h||(h=FpSqrt(e)),h(x,w))),toBytes:w=>r?numberToBytesLE(w,p):numberToBytesBE(w,p),fromBytes:(w,g=!0)=>{if(u){if(!u.includes(w.length)||w.length>p)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+w.length);const v=new Uint8Array(p);v.set(w,r?0:v.length-w.length),w=v}if(w.length!==p)throw new Error("Field.fromBytes: expected "+p+" bytes, got "+w.length);let b=r?bytesToNumberLE(w):bytesToNumberBE(w);if(l&&(b=mod(b,e)),!g&&!x.isValid(b))throw new Error("invalid field element: outside of range 0..ORDER");return b},invertBatch:w=>FpInvertBatch(x,w),cmov:(w,g,b)=>b?g:w});return Object.freeze(x)}function getFieldBytesLength(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function getMinHashLength(e){const t=getFieldBytesLength(e);return t+Math.ceil(t/2)}function mapHashToField(e,t,r=!1){const n=e.length,s=getFieldBytesLength(t),a=getMinHashLength(t);if(n<16||n<a||n>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+n);const l=r?bytesToNumberLE(e):bytesToNumberBE(e),u=mod(l,t-_1n$5)+_1n$5;return r?numberToBytesLE(u,s):numberToBytesBE(u,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$3=BigInt(0),_1n$4=BigInt(1);function negateCt(e,t){const r=t.negate();return e?r:t}function normalizeZ(e,t){const r=FpInvertBatch(e.Fp,t.map(n=>n.Z));return t.map((n,s)=>e.fromAffine(n.toAffine(r[s])))}function validateW(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function calcWOpts(e,t){validateW(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1),s=2**e,a=bitMask(e),l=BigInt(e);return{windows:r,windowSize:n,mask:a,maxNumber:s,shiftBy:l}}function calcOffsets(e,t,r){const{windowSize:n,mask:s,maxNumber:a,shiftBy:l}=r;let u=Number(e&s),d=e>>l;u>n&&(u-=a,d+=_1n$4);const p=t*n,h=p+Math.abs(u)-1,x=u===0,w=u<0,g=t%2!==0;return{nextN:d,offset:h,isZero:x,isNeg:w,isNegF:g,offsetF:p}}function validateMSMPoints(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function validateMSMScalars(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const pointPrecomputes=new WeakMap,pointWindowSizes=new WeakMap;function getW(e){return pointWindowSizes.get(e)||1}function assert0(e){if(e!==_0n$3)throw new Error("invalid wNAF")}class wNAF{constructor(t,r){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=r}_unsafeLadder(t,r,n=this.ZERO){let s=t;for(;r>_0n$3;)r&_1n$4&&(n=n.add(s)),s=s.double(),r>>=_1n$4;return n}precomputeWindow(t,r){const{windows:n,windowSize:s}=calcWOpts(r,this.bits),a=[];let l=t,u=l;for(let d=0;d<n;d++){u=l,a.push(u);for(let p=1;p<s;p++)u=u.add(l),a.push(u);l=u.double()}return a}wNAF(t,r,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let s=this.ZERO,a=this.BASE;const l=calcWOpts(t,this.bits);for(let u=0;u<l.windows;u++){const{nextN:d,offset:p,isZero:h,isNeg:x,isNegF:w,offsetF:g}=calcOffsets(n,u,l);n=d,h?a=a.add(negateCt(w,r[g])):s=s.add(negateCt(x,r[p]))}return assert0(n),{p:s,f:a}}wNAFUnsafe(t,r,n,s=this.ZERO){const a=calcWOpts(t,this.bits);for(let l=0;l<a.windows&&n!==_0n$3;l++){const{nextN:u,offset:d,isZero:p,isNeg:h}=calcOffsets(n,l,a);if(n=u,!p){const x=r[d];s=s.add(h?x.negate():x)}}return assert0(n),s}getPrecomputes(t,r,n){let s=pointPrecomputes.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&(typeof n=="function"&&(s=n(s)),pointPrecomputes.set(r,s))),s}cached(t,r,n){const s=getW(t);return this.wNAF(s,this.getPrecomputes(s,t,n),r)}unsafe(t,r,n,s){const a=getW(t);return a===1?this._unsafeLadder(t,r,s):this.wNAFUnsafe(a,this.getPrecomputes(a,t,n),r,s)}createCache(t,r){validateW(r,this.bits),pointWindowSizes.set(t,r),pointPrecomputes.delete(t)}hasCache(t){return getW(t)!==1}}function mulEndoUnsafe(e,t,r,n){let s=t,a=e.ZERO,l=e.ZERO;for(;r>_0n$3||n>_0n$3;)r&_1n$4&&(a=a.add(s)),n&_1n$4&&(l=l.add(s)),s=s.double(),r>>=_1n$4,n>>=_1n$4;return{p1:a,p2:l}}function pippenger(e,t,r,n){validateMSMPoints(r,e),validateMSMScalars(n,t);const s=r.length,a=n.length;if(s!==a)throw new Error("arrays of points and scalars must have equal length");const l=e.ZERO,u=bitLen(BigInt(s));let d=1;u>12?d=u-3:u>4?d=u-2:u>0&&(d=2);const p=bitMask(d),h=new Array(Number(p)+1).fill(l),x=Math.floor((t.BITS-1)/d)*d;let w=l;for(let g=x;g>=0;g-=d){h.fill(l);for(let v=0;v<a;v++){const E=n[v],j=Number(E>>BigInt(g)&p);h[j]=h[j].add(r[v])}let b=l;for(let v=h.length-1,E=l;v>0;v--)E=E.add(h[v]),b=b.add(E);if(w=w.add(b),g!==0)for(let v=0;v<d;v++)w=w.double()}return w}function createField(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return validateField(t),t}else return Field(e,{isLE:r})}function _createCurveFields(e,t,r={},n){if(n===void 0&&(n=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const d of["p","n","h"]){const p=t[d];if(!(typeof p=="bigint"&&p>_0n$3))throw new Error(`CURVE.${d} must be positive bigint`)}const s=createField(t.p,r.Fp,n),a=createField(t.n,r.Fn,n),u=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(const d of u)if(!s.isValid(t[d]))throw new Error(`CURVE.${d} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:s,Fn:a}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$2=BigInt(0),_1n$3=BigInt(1),_2n$4=BigInt(2),_8n$1=BigInt(8);function isEdValidXY(e,t,r,n){const s=e.sqr(r),a=e.sqr(n),l=e.add(e.mul(t.a,s),a),u=e.add(e.ONE,e.mul(t.d,e.mul(s,a)));return e.eql(l,u)}function edwards(e,t={}){const r=_createCurveFields("edwards",e,t,t.FpFnLE),{Fp:n,Fn:s}=r;let a=r.CURVE;const{h:l}=a;_validateObject(t,{},{uvRatio:"function"});const u=_2n$4<<BigInt(s.BYTES*8)-_1n$3,d=E=>n.create(E),p=t.uvRatio||((E,j)=>{try{return{isValid:!0,value:n.sqrt(n.div(E,j))}}catch{return{isValid:!1,value:_0n$2}}});if(!isEdValidXY(n,a,a.Gx,a.Gy))throw new Error("bad curve params: generator point");function h(E,j,R=!1){const T=R?_1n$3:_0n$2;return aInRange("coordinate "+E,j,T,u),j}function x(E){if(!(E instanceof b))throw new Error("ExtendedPoint expected")}const w=memoized((E,j)=>{const{X:R,Y:T,Z:z}=E,L=E.is0();j==null&&(j=L?_8n$1:n.inv(z));const V=d(R*j),$=d(T*j),U=n.mul(z,j);if(L)return{x:_0n$2,y:_1n$3};
2226if(U!==_1n$3)throw new Error("invZ was invalid");return{x:V,y:$}}),g=memoized(E=>{const{a:j,d:R}=a;if(E.is0())throw new Error("bad point: ZERO");const{X:T,Y:z,Z:L,T:V}=E,$=d(T*T),U=d(z*z),B=d(L*L),P=d(B*B),H=d($*j),Z=d(B*d(H+U)),O=d(P+d(R*d($*U)));if(Z!==O)throw new Error("bad point: equation left != right (1)");const S=d(T*z),N=d(L*V);if(S!==N)throw new Error("bad point: equation left != right (2)");return!0});class b{constructor(j,R,T,z){this.X=h("x",j),this.Y=h("y",R),this.Z=h("z",T,!0),this.T=h("t",z),Object.freeze(this)}static CURVE(){return a}static fromAffine(j){if(j instanceof b)throw new Error("extended point not allowed");const{x:R,y:T}=j||{};return h("x",R),h("y",T),new b(R,T,_1n$3,d(R*T))}static fromBytes(j,R=!1){const T=n.BYTES,{a:z,d:L}=a;j=copyBytes(_abytes2(j,T,"point")),_abool2(R,"zip215");const V=copyBytes(j),$=j[T-1];V[T-1]=$&-129;const U=bytesToNumberLE(V),B=R?u:n.ORDER;aInRange("point.y",U,_0n$2,B);const P=d(U*U),H=d(P-_1n$3),Z=d(L*P-z);let{isValid:O,value:S}=p(H,Z);if(!O)throw new Error("bad point: invalid y coordinate");const N=(S&_1n$3)===_1n$3,F=($&128)!==0;if(!R&&S===_0n$2&&F)throw new Error("bad point: x=0 and x_0=1");return F!==N&&(S=d(-S)),b.fromAffine({x:S,y:U})}static fromHex(j,R=!1){return b.fromBytes(ensureBytes("point",j),R)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(j=8,R=!0){return v.createCache(this,j),R||this.multiply(_2n$4),this}assertValidity(){g(this)}equals(j){x(j);const{X:R,Y:T,Z:z}=this,{X:L,Y:V,Z:$}=j,U=d(R*$),B=d(L*z),P=d(T*$),H=d(V*z);return U===B&&P===H}is0(){return this.equals(b.ZERO)}negate(){return new b(d(-this.X),this.Y,this.Z,d(-this.T))}double(){const{a:j}=a,{X:R,Y:T,Z:z}=this,L=d(R*R),V=d(T*T),$=d(_2n$4*d(z*z)),U=d(j*L),B=R+T,P=d(d(B*B)-L-V),H=U+V,Z=H-$,O=U-V,S=d(P*Z),N=d(H*O),F=d(P*O),k=d(Z*H);return new b(S,N,k,F)}add(j){x(j);const{a:R,d:T}=a,{X:z,Y:L,Z:V,T:$}=this,{X:U,Y:B,Z:P,T:H}=j,Z=d(z*U),O=d(L*B),S=d($*T*H),N=d(V*P),F=d((z+L)*(U+B)-Z-O),k=N-S,W=N+S,q=d(O-R*Z),A=d(F*k),D=d(W*q),_=d(F*q),M=d(k*W);return new b(A,D,M,_)}subtract(j){return this.add(j.negate())}multiply(j){if(!s.isValidNot0(j))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:R,f:T}=v.cached(this,j,z=>normalizeZ(b,z));return normalizeZ(b,[R,T])[0]}multiplyUnsafe(j,R=b.ZERO){if(!s.isValid(j))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return j===_0n$2?b.ZERO:this.is0()||j===_1n$3?this:v.unsafe(this,j,T=>normalizeZ(b,T),R)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return v.unsafe(this,a.n).is0()}toAffine(j){return w(this,j)}clearCofactor(){return l===_1n$3?this:this.multiplyUnsafe(l)}toBytes(){const{x:j,y:R}=this.toAffine(),T=n.toBytes(R);return T[T.length-1]|=j&_1n$3?128:0,T}toHex(){return bytesToHex(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(j){return normalizeZ(b,j)}static msm(j,R){return pippenger(b,s,j,R)}_setWindowSize(j){this.precompute(j)}toRawBytes(){return this.toBytes()}}b.BASE=new b(a.Gx,a.Gy,_1n$3,d(a.Gx*a.Gy)),b.ZERO=new b(_0n$2,_1n$3,_1n$3,_0n$2),b.Fp=n,b.Fn=s;const v=new wNAF(b,s.BITS);return b.BASE.precompute(8),b}function eddsa(e,t,r={}){if(typeof t!="function")throw new Error('"hash" function param is required');_validateObject(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:n}=r,{BASE:s,Fp:a,Fn:l}=e,u=r.randomBytes||randomBytes,d=r.adjustScalarBytes||(B=>B),p=r.domain||((B,P,H)=>{if(_abool2(H,"phflag"),P.length||H)throw new Error("Contexts/pre-hash are not supported");return B});function h(B){return l.create(bytesToNumberLE(B))}function x(B){const P=T.secretKey;B=ensureBytes("private key",B,P);const H=ensureBytes("hashed private key",t(B),2*P),Z=d(H.slice(0,P)),O=H.slice(P,2*P),S=h(Z);return{head:Z,prefix:O,scalar:S}}function w(B){const{head:P,prefix:H,scalar:Z}=x(B),O=s.multiply(Z),S=O.toBytes();return{head:P,prefix:H,scalar:Z,point:O,pointBytes:S}}function g(B){return w(B).pointBytes}function b(B=Uint8Array.of(),...P){const H=concatBytes(...P);return h(t(p(H,ensureBytes("context",B),!!n)))}function v(B,P,H={}
2226){B=ensureBytes("message",B),n&&(B=n(B));const{prefix:Z,scalar:O,pointBytes:S}=w(P),N=b(H.context,Z,B),F=s.multiply(N).toBytes(),k=b(H.context,F,S,B),W=l.create(N+k*O);if(!l.isValid(W))throw new Error("sign failed: invalid s");const q=concatBytes(F,l.toBytes(W));return _abytes2(q,T.signature,"result")}const E={zip215:!0};function j(B,P,H,Z=E){const{context:O,zip215:S}=Z,N=T.signature;B=ensureBytes("signature",B,N),P=ensureBytes("message",P),H=ensureBytes("publicKey",H,T.publicKey),S!==void 0&&_abool2(S,"zip215"),n&&(P=n(P));const F=N/2,k=B.subarray(0,F),W=bytesToNumberLE(B.subarray(F,N));let q,A,D;try{q=e.fromBytes(H,S),A=e.fromBytes(k,S),D=s.multiplyUnsafe(W)}catch{return!1}if(!S&&q.isSmallOrder())return!1;const _=b(O,A.toBytes(),q.toBytes(),P);return A.add(q.multiplyUnsafe(_)).subtract(D).clearCofactor().is0()}const R=a.BYTES,T={secretKey:R,publicKey:R,signature:2*R,seed:R};function z(B=u(T.seed)){return _abytes2(B,T.seed,"seed")}function L(B){const P=U.randomSecretKey(B);return{secretKey:P,publicKey:g(P)}}function V(B){return isBytes(B)&&B.length===l.BYTES}function $(B,P){try{return!!e.fromBytes(B,P)}catch{return!1}}const U={getExtendedPublicKey:w,randomSecretKey:z,isValidSecretKey:V,isValidPublicKey:$,toMontgomery(B){const{y:P}=e.fromBytes(B),H=T.publicKey,Z=H===32;if(!Z&&H!==57)throw new Error("only defined for 25519 and 448");const O=Z?a.div(_1n$3+P,_1n$3-P):a.div(P-_1n$3,P+_1n$3);return a.toBytes(O)},toMontgomerySecret(B){const P=T.secretKey;_abytes2(B,P);const H=t(B.subarray(0,P));return d(H).subarray(0,P)},randomPrivateKey:z,precompute(B=8,P=e.BASE){return P.precompute(B,!1)}};return Object.freeze({keygen:L,getPublicKey:g,sign:v,verify:j,utils:U,Point:e,lengths:T})}function _eddsa_legacy_opts_to_new(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,n=Field(t.n,e.nBitLength,!0),s={Fp:r,Fn:n,uvRatio:e.uvRatio},a={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:s,hash:e.hash,eddsaOpts:a}}function _eddsa_new_output_to_legacy(e,t){const r=t.Point;return Object.assign({},t,{ExtendedPoint:r,CURVE:e,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function twistedEdwards(e){const{CURVE:t,curveOpts:r,hash:n,eddsaOpts:s}=_eddsa_legacy_opts_to_new(e),a=edwards(t,r),l=eddsa(a,n,s);return _eddsa_new_output_to_legacy(e,l)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _1n$2=BigInt(1),_2n$3=BigInt(2);BigInt(3);const _5n=BigInt(5),_8n=BigInt(8),ed25519_CURVE_p=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),ed25519_CURVE={p:ed25519_CURVE_p,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:_8n,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function ed25519_pow_2_252_3(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),s=BigInt(80),a=ed25519_CURVE_p,u=e*e%a*e%a,d=pow2(u,_2n$3,a)*u%a,p=pow2(d,_1n$2,a)*e%a,h=pow2(p,_5n,a)*p%a,x=pow2(h,t,a)*h%a,w=pow2(x,r,a)*x%a,g=pow2(w,n,a)*w%a,b=pow2(g,s,a)*g%a,v=pow2(b,s,a)*g%a,E=pow2(v,t,a)*h%a;return{pow_p_5_8:pow2(E,_2n$3,a)*e%a,b2:u}}function adjustScalarBytes(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const ED25519_SQRT_M1=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function uvRatio(e,t){const r=ed25519_CURVE_p,n=mod(t*t*t,r),s=mod(n*n*t,r),a=ed25519_pow_2_252_3(e*s).pow_p_5_8;let l=mod(e*n*a,r);const u=mod(t*l*l,r),d=l,p=mod(l*ED25519_SQRT_M1,r),h=u===e,x=u===mod(-e,r),w=u===mod(-e*ED25519_SQRT_M1,r);return h&&(l=d),(x||w)&&(l=p),isNegativeLE(l,r)&&(l=mod(-l,r)),{isValid:h||x,value:l}}const Fp=Field(ed25519_CURVE.p,{isLE:!0}),ed25519Defaults={...ed25519_CURVE,Fp,hash:sha512,adjustScalarBytes,uvRatio},ed25519=twistedEdwards(ed25519Defaults);var bn$1={exports:{}};const nodeCrypto={},__viteBrowserExternal=Object.freeze(Object.defineProperty({__proto__:null,default:nodeCrypto},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal);var bn=bn$1.exports,hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,(function(e){(function(t,r){function n(O,S){if(!O)throw new Error(S||"Assertion failed")}function s(O,S){O.super_=S;var N=function(){};N.prototype=S.prototype,O.prototype=new N,O.prototype.constructor=O}function a(O,S,N){if(a.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((S==="le"||S==="be")&&(N=S,S=10),this._init(O||0,S||10,N||"be"))}
vendor: 53,374 bytes, line 2226
2226typeof t=="object"?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=require$$0.Buffer}catch{}a.isBN=function(S){return S instanceof a?!0:S!==null&&typeof S=="object"&&S.constructor.wordSize===a.wordSize&&Array.isArray(S.words)},a.max=function(S,N){return S.cmp(N)>0?S:N},a.min=function(S,N){return S.cmp(N)<0?S:N},a.prototype._init=function(S,N,F){if(typeof S=="number")return this._initNumber(S,N,F);if(typeof S=="object")return this._initArray(S,N,F);N==="hex"&&(N=16),n(N===(N|0)&&N>=2&&N<=36),S=S.toString().replace(/\s+/g,"");var k=0;S[0]==="-"&&(k++,this.negative=1),k<S.length&&(N===16?this._parseHex(S,k,F):(this._parseBase(S,N,k),F==="le"&&this._initArray(this.toArray(),N,F)))},a.prototype._initNumber=function(S,N,F){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[S&67108863],this.length=1):S<4503599627370496?(this.words=[S&67108863,S/67108864&67108863],this.length=2):(n(S<9007199254740992),this.words=[S&67108863,S/67108864&67108863,1],this.length=3),F==="le"&&this._initArray(this.toArray(),N,F)},a.prototype._initArray=function(S,N,F){if(n(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var W,q,A=0;if(F==="be")for(k=S.length-1,W=0;k>=0;k-=3)q=S[k]|S[k-1]<<8|S[k-2]<<16,this.words[W]|=q<<A&67108863,this.words[W+1]=q>>>26-A&67108863,A+=24,A>=26&&(A-=26,W++);else if(F==="le")for(k=0,W=0;k<S.length;k+=3)q=S[k]|S[k+1]<<8|S[k+2]<<16,this.words[W]|=q<<A&67108863,this.words[W+1]=q>>>26-A&67108863,A+=24,A>=26&&(A-=26,W++);return this._strip()};function u(O,S){var N=O.charCodeAt(S);if(N>=48&&N<=57)return N-48;if(N>=65&&N<=70)return N-55;if(N>=97&&N<=102)return N-87;n(!1,"Invalid character in "+O)}function d(O,S,N){var F=u(O,N);return N-1>=S&&(F|=u(O,N-1)<<4),F}a.prototype._parseHex=function(S,N,F){this.length=Math.ceil((S.length-N)/6),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var W=0,q=0,A;if(F==="be")for(k=S.length-1;k>=N;k-=2)A=d(S,N,k)<<W,this.words[q]|=A&67108863,W>=18?(W-=18,q+=1,this.words[q]|=A>>>26):W+=8;else{var D=S.length-N;for(k=D%2===0?N+1:N;k<S.length;k+=2)A=d(S,N,k)<<W,this.words[q]|=A&67108863,W>=18?(W-=18,q+=1,this.words[q]|=A>>>26):W+=8}this._strip()};function p(O,S,N,F){for(var k=0,W=0,q=Math.min(O.length,N),A=S;A<q;A++){var D=O.charCodeAt(A)-48;k*=F,D>=49?W=D-49+10:D>=17?W=D-17+10:W=D,n(D>=0&&W<F,"Invalid character"),k+=W}return k}a.prototype._parseBase=function(S,N,F){this.words=[0],this.length=1;for(var k=0,W=1;W<=67108863;W*=N)k++;k--,W=W/N|0;for(var q=S.length-F,A=q%k,D=Math.min(q,q-A)+F,_=0,M=F;M<D;M+=k)_=p(S,M,M+k,N),this.imuln(W),this.words[0]+_<67108864?this.words[0]+=_:this._iaddn(_);if(A!==0){var G=1;for(_=p(S,M,S.length,N),M=0;M<A;M++)G*=N;this.imuln(G),this.words[0]+_<67108864?this.words[0]+=_:this._iaddn(_)}this._strip()},a.prototype.copy=function(S){S.words=new Array(this.length);for(var N=0;N<this.length;N++)S.words[N]=this.words[N];S.length=this.length,S.negative=this.negative,S.red=this.red};function h(O,S){O.words=S.words,O.length=S.length,O.negative=S.negative,O.red=S.red}if(a.prototype._move=function(S){h(S,this)},a.prototype.clone=function(){var S=new a(null);return this.copy(S),S},a.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=x}catch{a.prototype.inspect=x}else a.prototype.inspect=x;function x(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(S,N){S=S||10,N=N|0||1;var F;if(S===16||S==="hex"){F="";for(var k=0,W=0,q=0;q<this.length;q++){var A=this.words[q],D=((A<<k|W)&16777215).toString(16);W=A>>>24-k&16777215,k+=2,k>=26&&(k-=26,q--),W!==0||q!==this.length-1?F=w[6-D.length]+D+F:F=D+F}for(W!==0&&(F=W.toString(16)+F);F.length%N!==0;)F="0"+F;return this.negative!==0&&(F="-"+F),F}if(S===(S|0)&&S>=2&&S<=36){var _=g[S],M=b[S];F="";var G=this.clone();for(G.negative=0;!G.isZero();){var Q=G.modrn(M).toString(S);G=G.idivn(M),G.isZero()?F=Q+F:F=w[_-Q.length]+Q+F}for(this.isZero()&&(F="0"+F);F.length%N!==0;)F="0"+F;return this.negative!==0&&(F="-"+F),F}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=this.words[1]*67108864:this.length===3&&this.words[2]===1?S+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},a.prototype.toJSON=function(){return this.toString(16,2)},l&&(a.prototype.toBuffer=function(S,N){return this.toArrayLike(l,S,N)}),a.prototype.toArray=function(S,N){return this.toArrayLike(Array,S,N)};var v=function(S,N){return S.allocUnsafe?S.allocUnsafe(N):new S(N)};a.prototype.toArrayLike=function(S,N,F){this._strip();var k=this.byteLength(),W=F||Math.max(1,k);n(k<=W,"byte array longer than desired length"),n(W>0,"Requested array length <= 0");var q=v(S,W),A=N==="le"?"LE":"BE";return this["_toArrayLike"+A](q,k),q},a.prototype._toArrayLikeLE=function(S,N){for(var F=0,k=0,W=0,q=0;W<this.length;W++){var A=this.words[W]<<q|k;S[F++]=A&255,F<S.length&&(S[F++]=A>>8&255),F<S.length&&(S[F++]=A>>16&255),q===6?(F<S.length&&(S[F++]=A>>24&255),k=0,q=0):(k=A>>>24,q+=2)}if(F<S.length)for(S[F++]=k;F<S.length;)S[F++]=0},a.prototype._toArrayLikeBE=function(S,N){for(var F=S.length-1,k=0,W=0,q=0;W<this.length;W++){var A=this.words[W]<<q|k;S[F--]=A&255,F>=0&&(S[F--]=A>>8&255),F>=0&&(S[F--]=A>>16&255),q===6?(F>=0&&(S[F--]=A>>24&255),k=0,q=0):(k=A>>>24,q+=2)}if(F>=0)for(S[F--]=k;F>=0;)S[F--]=0},Math.clz32?a.prototype._countBits=function(S){return 32-Math.clz32(S)}:a.prototype._countBits=function(S){var N=S,F=0;return N>=4096&&(F+=13,N>>>=13),N>=64&&(F+=7,N>>>=7),N>=8&&(F+=4,N>>>=4),N>=2&&(F+=2,N>>>=2),F+N},a.prototype._zeroBits=function(S){if(S===0)return 26;var N=S,F=0;return(N&8191)===0&&(F+=13,N>>>=13),(N&127)===0&&(F+=7,N>>>=7),(N&15)===0&&(F+=4,N>>>=4),(N&3)===0&&(F+=2,N>>>=2),(N&1)===0&&F++,F},a.prototype.bitLength=function(){var S=this.words[this.length-1],N=this._countBits(S);return(this.length-1)*26+N};function E(O){for(var S=new Array(O.bitLength()),N=0;N<S.length;N++){var F=N/26|0,k=N%26;S[N]=O.words[F]>>>k&1}return S}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,N=0;N<this.length;N++){var F=this._zeroBits(this.words[N]);if(S+=F,F!==26)break}return S},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},a.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var N=0;N<S.length;N++)this.words[N]=this.words[N]|S.words[N];return this._strip()},a.prototype.ior=function(S){return n((this.negative|S.negative)===0),this.iuor(S)},a.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},a.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},a.prototype.iuand=function(S){var N;this.length>S.length?N=S:N=this;for(var F=0;F<N.length;F++)this.words[F]=this.words[F]&S.words[F];return this.length=N.length,this._strip()},a.prototype.iand=function(S){return n((this.negative|S.negative)===0),this.iuand(S)},a.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},a.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},a.prototype.iuxor=function(S){var N,F;this.length>S.length?(N=this,F=S):(N=S,F=this);for(var k=0;k<F.length;k++)this.words[k]=N.words[k]^F.words[k];if(this!==N)for(;k<N.length;k++)this.words[k]=N.words[k];return this.length=N.length,this._strip()},a.prototype.ixor=function(S){return n((this.negative|S.negative)===0),this.iuxor(S)},a.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},a.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},a.prototype.inotn=function(S){n(typeof S=="number"&&S>=0);var N=Math.ceil(S/26)|0,F=S%26;this._expand(N),F>0&&N--;for(var k=0;k<N;k++)this.words[k]=~this.words[k]&67108863;return F>0&&(this.words[k]=~this.words[k]&67108863>>26-F),this._strip()},a.prototype.notn=function(S){return this.clone().inotn(S)},a.prototype.setn=function(S,N){n(typeof S=="number"&&S>=0);var F=S/26|0,k=S%26;return this._expand(F+1),N?this.words[F]=this.words[F]|1<<k:this.words[F]=this.words[F]&~(1<<k),this._strip()},a.prototype.iadd=function(S){var N;if(this.negative!==0&&S.negative===0)return this.negative=0,N=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,N=this.isub(S),S.negative=1,N._normSign();var F,k;this.length>S.length?(F=this,k=S):(F=S,k=this);for(var W=0,q=0;q<k.length;q++)N=(F.words[q]|0)+(k.words[q]|0)+W,this.words[q]=N&67108863,W=N>>>26;for(;W!==0&&q<F.length;q++)N=(F.words[q]|0)+W,this.words[q]=N&67108863,W=N>>>26;if(this.length=F.length,W!==0)this.words[this.length]=W,this.length++;else if(F!==this)for(;q<F.length;q++)this.words[q]=F.words[q];return this},a.prototype.add=function(S){var N;return S.negative!==0&&this.negative===0?(S.negative=0,N=this.sub(S),S.negative^=1,N):S.negative===0&&this.negative!==0?(this.negative=0,N=S.sub(this),this.negative=1,N):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},a.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var N=this.iadd(S);return S.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var F=this.cmp(S);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var k,W;F>0?(k=this,W=S):(k=S,W=this);for(var q=0,A=0;A<W.length;A++)N=(k.words[A]|0)-(W.words[A]|0)+q,q=N>>26,this.words[A]=N&67108863;for(;q!==0&&A<k.length;A++)N=(k.words[A]|0)+q,q=N>>26,this.words[A]=N&67108863;if(q===0&&A<k.length&&k!==this)for(;A<k.length;A++)this.words[A]=k.words[A];return this.length=Math.max(this.length,A),k!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(S){return this.clone().isub(S)};function j(O,S,N){N.negative=S.negative^O.negative;var F=O.length+S.length|0;N.length=F,F=F-1|0;var k=O.words[0]|0,W=S.words[0]|0,q=k*W,A=q&67108863,D=q/67108864|0;N.words[0]=A;for(var _=1;_<F;_++){for(var M=D>>>26,G=D&67108863,Q=Math.min(_,S.length-1),te=Math.max(0,_-O.length+1);te<=Q;te++){var ne=_-te|0;k=O.words[ne]|0,W=S.words[te]|0,q=k*W+G,M+=q/67108864|0,G=q&67108863}N.words[_]=G|0,D=M|0}return D!==0?N.words[_]=D|0:N.length--,N._strip()}var R=function(S,N,F){var k=S.words,W=N.words,q=F.words,A=0,D,_,M,G=k[0]|0,Q=G&8191,te=G>>>13,ne=k[1]|0,ae=ne&8191,fe=ne>>>13,Se=k[2]|0,Ce=Se&8191,_e=Se>>>13,Me=k[3]|0,ve=Me&8191,Le=Me>>>13,et=k[4]|0,Te=et&8191,Be=et>>>13,Ye=k[5]|0,Ie=Ye&8191,ze=Ye>>>13,at=k[6]|0,qe=at&8191,Xe=at>>>13,ot=k[7]|0,Ze=ot&8191,ee=ot>>>13,K=k[8]|0,Y=K&8191,se=K>>>13,ce=k[9]|0,he=ce&8191,ye=ce>>>13,Ue=W[0]|0,Ne=Ue&8191,Fe=Ue>>>13,Je=W[1]|0,Ve=Je&8191,mt=Je>>>13,Mr=W[2]|0,bt=Mr&8191,xt=Mr>>>13,zr=W[3]|0,lt=zr&8191,_t=zr>>>13,Cr=W[4]|0,Tt=Cr&8191,At=Cr>>>13,Vr=W[5]|0,ct=Vr&8191,Qe=Vr>>>13,Ot=W[6]|0,dt=Ot&8191,gt=Ot>>>13,Nr=W[7]|0,kt=Nr&8191,Mt=Nr>>>13,gr=W[8]|0,Et=gr&8191,ht=gr>>>13,lr=W[9]|0,vt=lr&8191,ft=lr>>>13;F.negative=S.negative^N.negative,F.length=19,D=Math.imul(Q,Ne),_=Math.imul(Q,Fe),_=_+Math.imul(te,Ne)|0,M=Math.imul(te,Fe);var Pt=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,D=Math.imul(ae,Ne),_=Math.imul(ae,Fe),_=_+Math.imul(fe,Ne)|0,M=Math.imul(fe,Fe),D=D+Math.imul(Q,Ve)|0,_=_+Math.imul(Q,mt)|0,_=_+Math.imul(te,Ve)|0,M=M+Math.imul(te,mt)|0;var Wr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,D=Math.imul(Ce,Ne),_=Math.imul(Ce,Fe),_=_+Math.imul(_e,Ne)|0,M=Math.imul(_e,Fe),D=D+Math.imul(ae,Ve)|0,_=_+Math.imul(ae,mt)|0,_=_+Math.imul(fe,Ve)|0,M=M+Math.imul(fe,mt)|0,D=D+Math.imul(Q,bt)|0,_=_+Math.imul(Q,xt)|0,_=_+Math.imul(te,bt)|0,M=M+Math.imul(te,xt)|0;var Ur=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,D=Math.imul(ve,Ne),_=Math.imul(ve,Fe),_=_+Math.imul(Le,Ne)|0,M=Math.imul(Le,Fe),D=D+Math.imul(Ce,Ve)|0,_=_+Math.imul(Ce,mt)|0,_=_+Math.imul(_e,Ve)|0,M=M+Math.imul(_e,mt)|0,D=D+Math.imul(ae,bt)|0,_=_+Math.imul(ae,xt)|0,_=_+Math.imul(fe,bt)|0,M=M+Math.imul(fe,xt)|0,D=D+Math.imul(Q,lt)|0,_=_+Math.imul(Q,_t)|0,_=_+Math.imul(te,lt)|0,M=M+Math.imul(te,_t)|0;var rr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(rr>>>26)|0,rr&=67108863,D=Math.imul(Te,Ne),_=Math.imul(Te,Fe),_=_+Math.imul(Be,Ne)|0,M=Math.imul(Be,Fe),D=D+Math.imul(ve,Ve)|0,_=_+Math.imul(ve,mt)|0,_=_+Math.imul(Le,Ve)|0,M=M+Math.imul(Le,mt)|0,D=D+Math.imul(Ce,bt)|0,_=_+Math.imul(Ce,xt)|0,_=_+Math.imul(_e,bt)|0,M=M+Math.imul(_e,xt)|0,D=D+Math.imul(ae,lt)|0,_=_+Math.imul(ae,_t)|0,_=_+Math.imul(fe,lt)|0,M=M+Math.imul(fe,_t)|0,D=D+Math.imul(Q,Tt)|0,_=_+Math.imul(Q,At)|0,_=_+Math.imul(te,Tt)|0,M=M+Math.imul(te,At)|0;var cr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(cr>>>26)|0,cr&=67108863,D=Math.imul(Ie,Ne),_=Math.imul(Ie,Fe),_=_+Math.imul(ze,Ne)|0,M=Math.imul(ze,Fe),D=D+Math.imul(Te,Ve)|0,_=_+Math.imul(Te,mt)|0,_=_+Math.imul(Be,Ve)|0,M=M+Math.imul(Be,mt)|0,D=D+Math.imul(ve,bt)|0,_=_+Math.imul(ve,xt)|0,_=_+Math.imul(Le,bt)|0,M=M+Math.imul(Le,xt)|0,D=D+Math.imul(Ce,lt)|0,_=_+Math.imul(Ce,_t)|0,_=_+Math.imul(_e,lt)|0,M=M+Math.imul(_e,_t)|0,D=D+Math.imul(ae,Tt)|0,_=_+Math.imul(ae,At)|0,_=_+Math.imul(fe,Tt)|0,M=M+Math.imul(fe,At)|0,D=D+Math.imul(Q,ct)|0,_=_+Math.imul(Q,Qe)|0,_=_+Math.imul(te,ct)|0,M=M+Math.imul(te,Qe)|0;var Bn=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,D=Math.imul(qe,Ne),_=Math.imul(qe,Fe),_=_+Math.imul(Xe,Ne)|0,M=Math.imul(Xe,Fe),D=D+Math.imul(Ie,Ve)|0,_=_+Math.imul(Ie,mt)|0,_=_+Math.imul(ze,Ve)|0,M=M+Math.imul(ze,mt)|0,D=D+Math.imul(Te,bt)|0,_=_+Math.imul(Te,xt)|0,_=_+Math.imul(Be,bt)|0,M=M+Math.imul(Be,xt)|0,D=D+Math.imul(ve,lt)|0,_=_+Math.imul(ve,_t)|0,_=_+Math.imul(Le,lt)|0,M=M+Math.imul(Le,_t)|0,D=D+Math.imul(Ce,Tt)|0,_=_+Math.imul(Ce,At)|0,_=_+Math.imul(_e,Tt)|0,M=M+Math.imul(_e,At)|0,D=D+Math.imul(ae,ct)|0,_=_+Math.imul(ae,Qe)|0,_=_+Math.imul(fe,ct)|0,M=M+Math.imul(fe,Qe)|0,D=D+Math.imul(Q,dt)|0,_=_+Math.imul(Q,gt)|0,_=_+Math.imul(te,dt)|0,M=M+Math.imul(te,gt)|0;var hn=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(hn>>>26)|0,hn&=67108863,D=Math.imul(Ze,Ne),_=Math.imul(Ze,Fe),_=_+Math.imul(ee,Ne)|0,M=Math.imul(ee,Fe),D=D+Math.imul(qe,Ve)|0,_=_+Math.imul(qe,mt)|0,_=_+Math.imul(Xe,Ve)|0,M=M+Math.imul(Xe,mt)|0,D=D+Math.imul(Ie,bt)|0,_=_+Math.imul(Ie,xt)|0,_=_+Math.imul(ze,bt)|0,M=M+Math.imul(ze,xt)|0,D=D+Math.imul(Te,lt)|0,_=_+Math.imul(Te,_t)|0,_=_+Math.imul(Be,lt)|0,M=M+Math.imul(Be,_t)|0,D=D+Math.imul(ve,Tt)|0,_=_+Math.imul(ve,At)|0,_=_+Math.imul(Le,Tt)|0,M=M+Math.imul(Le,At)|0,D=D+Math.imul(Ce,ct)|0,_=_+Math.imul(Ce,Qe)|0,_=_+Math.imul(_e,ct)|0,M=M+Math.imul(_e,Qe)|0,D=D+Math.imul(ae,dt)|0,_=_+Math.imul(ae,gt)|0,_=_+Math.imul(fe,dt)|0,M=M+Math.imul(fe,gt)|0,D=D+Math.imul(Q,kt)|0,_=_+Math.imul(Q,Mt)|0,_=_+Math.imul(te,kt)|0,M=M+Math.imul(te,Mt)|0;var _r=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(_r>>>26)|0,_r&=67108863,D=Math.imul(Y,Ne),_=Math.imul(Y,Fe),_=_+Math.imul(se,Ne)|0,M=Math.imul(se,Fe),D=D+Math.imul(Ze,Ve)|0,_=_+Math.imul(Ze,mt)|0,_=_+Math.imul(ee,Ve)|0,M=M+Math.imul(ee,mt)|0,D=D+Math.imul(qe,bt)|0,_=_+Math.imul(qe,xt)|0,_=_+Math.imul(Xe,bt)|0,M=M+Math.imul(Xe,xt)|0,D=D+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,_t)|0,_=_+Math.imul(ze,lt)|0,M=M+Math.imul(ze,_t)|0,D=D+Math.imul(Te,Tt)|0,_=_+Math.imul(Te,At)|0,_=_+Math.imul(Be,Tt)|0,M=M+Math.imul(Be,At)|0,D=D+Math.imul(ve,ct)|0,_=_+Math.imul(ve,Qe)|0,_=_+Math.imul(Le,ct)|0,M=M+Math.imul(Le,Qe)|0,D=D+Math.imul(Ce,dt)|0,_=_+Math.imul(Ce,gt)|0,_=_+Math.imul(_e,dt)|0,M=M+Math.imul(_e,gt)|0,D=D+Math.imul(ae,kt)|0,_=_+Math.imul(ae,Mt)|0,_=_+Math.imul(fe,kt)|0,M=M+Math.imul(fe,Mt)|0,D=D+Math.imul(Q,Et)|0,_=_+Math.imul(Q,ht)|0,_=_+Math.imul(te,Et)|0,M=M+Math.imul(te,ht)|0;var fn=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(fn>>>26)|0,fn&=67108863,D=Math.imul(he,Ne),_=Math.imul(he,Fe),_=_+Math.imul(ye,Ne)|0,M=Math.imul(ye,Fe),D=D+Math.imul(Y,Ve)|0,_=_+Math.imul(Y,mt)|0,_=_+Math.imul(se,Ve)|0,M=M+Math.imul(se,mt)|0,D=D+Math.imul(Ze,bt)|0,_=_+Math.imul(Ze,xt)|0,_=_+Math.imul(ee,bt)|0,M=M+Math.imul(ee,xt)|0,D=D+Math.imul(qe,lt)|0,_=_+Math.imul(qe,_t)|0,_=_+Math.imul(Xe,lt)|0,M=M+Math.imul(Xe,_t)|0,D=D+Math.imul(Ie,Tt)|0,_=_+Math.imul(Ie,At)|0,_=_+Math.imul(ze,Tt)|0,M=M+Math.imul(ze,At)|0,D=D+Math.imul(Te,ct)|0,_=_+Math.imul(Te,Qe)|0,_=_+Math.imul(Be,ct)|0,M=M+Math.imul(Be,Qe)|0,D=D+Math.imul(ve,dt)|0,_=_+Math.imul(ve,gt)|0,_=_+Math.imul(Le,dt)|0,M=M+Math.imul(Le,gt)|0,D=D+Math.imul(Ce,kt)|0,_=_+Math.imul(Ce,Mt)|0,_=_+Math.imul(_e,kt)|0,M=M+Math.imul(_e,Mt)|0,D=D+Math.imul(ae,Et)|0,_=_+Math.imul(ae,ht)|0,_=_+Math.imul(fe,Et)|0,M=M+Math.imul(fe,ht)|0,D=D+Math.imul(Q,vt)|0,_=_+Math.imul(Q,ft)|0,_=_+Math.imul(te,vt)|0,M=M+Math.imul(te,ft)|0;var Pr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,D=Math.imul(he,Ve),_=Math.imul(he,mt),_=_+Math.imul(ye,Ve)|0,M=Math.imul(ye,mt),D=D+Math.imul(Y,bt)|0,_=_+Math.imul(Y,xt)|0,_=_+Math.imul(se,bt)|0,M=M+Math.imul(se,xt)|0,D=D+Math.imul(Ze,lt)|0,_=_+Math.imul(Ze,_t)|0,_=_+Math.imul(ee,lt)|0,M=M+Math.imul(ee,_t)|0,D=D+Math.imul(qe,Tt)|0,_=_+Math.imul(qe,At)|0,_=_+Math.imul(Xe,Tt)|0,M=M+Math.imul(Xe,At)|0,D=D+Math.imul(Ie,ct)|0,_=_+Math.imul(Ie,Qe)|0,_=_+Math.imul(ze,ct)|0,M=M+Math.imul(ze,Qe)|0,D=D+Math.imul(Te,dt)|0,_=_+Math.imul(Te,gt)|0,_=_+Math.imul(Be,dt)|0,M=M+Math.imul(Be,gt)|0,D=D+Math.imul(ve,kt)|0,_=_+Math.imul(ve,Mt)|0,_=_+Math.imul(Le,kt)|0,M=M+Math.imul(Le,Mt)|0,D=D+Math.imul(Ce,Et)|0,_=_+Math.imul(Ce,ht)|0,_=_+Math.imul(_e,Et)|0,M=M+Math.imul(_e,ht)|0,D=D+Math.imul(ae,vt)|0,_=_+Math.imul(ae,ft)|0,_=_+Math.imul(fe,vt)|0,M=M+Math.imul(fe,ft)|0;var Lr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,D=Math.imul(he,bt),_=Math.imul(he,xt),_=_+Math.imul(ye,bt)|0,M=Math.imul(ye,xt),D=D+Math.imul(Y,lt)|0,_=_+Math.imul(Y,_t)|0,_=_+Math.imul(se,lt)|0,M=M+Math.imul(se,_t)|0,D=D+Math.imul(Ze,Tt)|0,_=_+Math.imul(Ze,At)|0,_=_+Math.imul(ee,Tt)|0,M=M+Math.imul(ee,At)|0,D=D+Math.imul(qe,ct)|0,_=_+Math.imul(qe,Qe)|0,_=_+Math.imul(Xe,ct)|0,M=M+Math.imul(Xe,Qe)|0,D=D+Math.imul(Ie,dt)|0,_=_+Math.imul(Ie,gt)|0,_=_+Math.imul(ze,dt)|0,M=M+Math.imul(ze,gt)|0,D=D+Math.imul(Te,kt)|0,_=_+Math.imul(Te,Mt)|0,_=_+Math.imul(Be,kt)|0,M=M+Math.imul(Be,Mt)|0,D=D+Math.imul(ve,Et)|0,_=_+Math.imul(ve,ht)|0,_=_+Math.imul(Le,Et)|0,M=M+Math.imul(Le,ht)|0,D=D+Math.imul(Ce,vt)|0,_=_+Math.imul(Ce,ft)|0,_=_+Math.imul(_e,vt)|0,M=M+Math.imul(_e,ft)|0;var er=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(er>>>26)|0,er&=67108863,D=Math.imul(he,lt),_=Math.imul(he,_t),_=_+Math.imul(ye,lt)|0,M=Math.imul(ye,_t),D=D+Math.imul(Y,Tt)|0,_=_+Math.imul(Y,At)|0,_=_+Math.imul(se,Tt)|0,M=M+Math.imul(se,At)|0,D=D+Math.imul(Ze,ct)|0,_=_+Math.imul(Ze,Qe)|0,_=_+Math.imul(ee,ct)|0,M=M+Math.imul(ee,Qe)|0,D=D+Math.imul(qe,dt)|0,_=_+Math.imul(qe,gt)|0,_=_+Math.imul(Xe,dt)|0,M=M+Math.imul(Xe,gt)|0,D=D+Math.imul(Ie,kt)|0,_=_+Math.imul(Ie,Mt)|0,_=_+Math.imul(ze,kt)|0,M=M+Math.imul(ze,Mt)|0,D=D+Math.imul(Te,Et)|0,_=_+Math.imul(Te,ht)|0,_=_+Math.imul(Be,Et)|0,M=M+Math.imul(Be,ht)|0,D=D+Math.imul(ve,vt)|0,_=_+Math.imul(ve,ft)|0,_=_+Math.imul(Le,vt)|0,M=M+Math.imul(Le,ft)|0;var $r=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+($r>>>26)|0,$r&=67108863,D=Math.imul(he,Tt),_=Math.imul(he,At),_=_+Math.imul(ye,Tt)|0,M=Math.imul(ye,At),D=D+Math.imul(Y,ct)|0,_=_+Math.imul(Y,Qe)|0,_=_+Math.imul(se,ct)|0,M=M+Math.imul(se,Qe)|0,D=D+Math.imul(Ze,dt)|0,_=_+Math.imul(Ze,gt)|0,_=_+Math.imul(ee,dt)|0,M=M+Math.imul(ee,gt)|0,D=D+Math.imul(qe,kt)|0,_=_+Math.imul(qe,Mt)|0,_=_+Math.imul(Xe,kt)|0,M=M+Math.imul(Xe,Mt)|0,D=D+Math.imul(Ie,Et)|0,_=_+Math.imul(Ie,ht)|0,_=_+Math.imul(ze,Et)|0,M=M+Math.imul(ze,ht)|0,D=D+Math.imul(Te,vt)|0,_=_+Math.imul(Te,ft)|0,_=_+Math.imul(Be,vt)|0,M=M+Math.imul(Be,ft)|0;var pn=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(pn>>>26)|0,pn&=67108863,D=Math.imul(he,ct),_=Math.imul(he,Qe),_=_+Math.imul(ye,ct)|0,M=Math.imul(ye,Qe),D=D+Math.imul(Y,dt)|0,_=_+Math.imul(Y,gt)|0,_=_+Math.imul(se,dt)|0,M=M+Math.imul(se,gt)|0,D=D+Math.imul(Ze,kt)|0,_=_+Math.imul(Ze,Mt)|0,_=_+Math.imul(ee,kt)|0,M=M+Math.imul(ee,Mt)|0,D=D+Math.imul(qe,Et)|0,_=_+Math.imul(qe,ht)|0,_=_+Math.imul(Xe,Et)|0,M=M+Math.imul(Xe,ht)|0,D=D+Math.imul(Ie,vt)|0,_=_+Math.imul(Ie,ft)|0,_=_+Math.imul(ze,vt)|0,M=M+Math.imul(ze,ft)|0;var yr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(yr>>>26)|0,yr&=67108863,D=Math.imul(he,dt),_=Math.imul(he,gt),_=_+Math.imul(ye,dt)|0,M=Math.imul(ye,gt),D=D+Math.imul(Y,kt)|0,_=_+Math.imul(Y,Mt)|0,_=_+Math.imul(se,kt)|0,M=M+Math.imul(se,Mt)|0,D=D+Math.imul(Ze,Et)|0,_=_+Math.imul(Ze,ht)|0,_=_+Math.imul(ee,Et)|0,M=M+Math.imul(ee,ht)|0,D=D+Math.imul(qe,vt)|0,_=_+Math.imul(qe,ft)|0,_=_+Math.imul(Xe,vt)|0,M=M+Math.imul(Xe,ft)|0;var Hr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,D=Math.imul(he,kt),_=Math.imul(he,Mt),_=_+Math.imul(ye,kt)|0,M=Math.imul(ye,Mt),D=D+Math.imul(Y,Et)|0,_=_+Math.imul(Y,ht)|0,_=_+Math.imul(se,Et)|0,M=M+Math.imul(se,ht)|0,D=D+Math.imul(Ze,vt)|0,_=_+Math.imul(Ze,ft)|0,_=_+Math.imul(ee,vt)|0,M=M+Math.imul(ee,ft)|0;var qr=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(qr>>>26)|0,qr&=67108863,D=Math.imul(he,Et),_=Math.imul(he,ht),_=_+Math.imul(ye,Et)|0,M=Math.imul(ye,ht),D=D+Math.imul(Y,vt)|0,_=_+Math.imul(Y,ft)|0,_=_+Math.imul(se,vt)|0,M=M+Math.imul(se,ft)|0;var Fn=(A+D|0)+((_&8191)<<13)|0;A=(M+(_>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,D=Math.imul(he,vt),_=Math.imul(he,ft),_=_+Math.imul(ye,vt)|0,M=Math.imul(ye,ft);var Gr=(A+D|0)+((_&8191)<<13)|0;return A=(M+(_>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,q[0]=Pt,q[1]=Wr,q[2]=Ur,q[3]=rr,q[4]=cr,q[5]=Bn,q[6]=hn,q[7]=_r,q[8]=fn,q[9]=Pr,q[10]=Lr,q[11]=er,q[12]=$r,q[13]=pn,q[14]=yr,q[15]=Hr,q[16]=qr,q[17]=Fn,q[18]=Gr,A!==0&&(q[19]=A,F.length++),F};Math.imul||(R=j);function T(O,S,N){N.negative=S.negative^O.negative,N.length=O.length+S.length;for(var F=0,k=0,W=0;W<N.length-1;W++){var q=k;k=0;for(var A=F&67108863,D=Math.min(W,S.length-1),_=Math.max(0,W-O.length+1);_<=D;_++){var M=W-_,G=O.words[M]|0,Q=S.words[_]|0,te=G*Q,ne=te&67108863;q=q+(te/67108864|0)|0,ne=ne+A|0,A=ne&67108863,q=q+(ne>>>26)|0,k+=q>>>26,q&=67108863}N.words[W]=A,F=q,q=k}return F!==0?N.words[W]=F:N.length--,N._strip()}function z(O,S,N){return T(O,S,N)}a.prototype.mulTo=function(S,N){var F,k=this.length+S.length;return this.length===10&&S.length===10?F=R(this,S,N):k<63?F=j(this,S,N):k<1024?F=T(this,S,N):F=z(this,S,N),F},a.prototype.mul=function(S){var N=new a(null);return N.words=new Array(this.length+S.length),this.mulTo(S,N)},a.prototype.mulf=function(S){var N=new a(null);return N.words=new Array(this.length+S.length),z(this,S,N)},a.prototype.imul=function(S){return this.clone().mulTo(S,this)},a.prototype.imuln=function(S){var N=S<0;N&&(S=-S),n(typeof S=="number"),n(S<67108864);for(var F=0,k=0;k<this.length;k++){var W=(this.words[k]|0)*S,q=(W&67108863)+(F&67108863);F>>=26,F+=W/67108864|0,F+=q>>>26,this.words[k]=q&67108863}return F!==0&&(this.words[k]=F,this.length++),this.length=S===0?1:this.length,N?this.ineg():this},a.prototype.muln=function(S){return this.clone().imuln(S)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(S){var N=E(S);if(N.length===0)return new a(1);for(var F=this,k=0;k<N.length&&N[k]===0;k++,F=F.sqr());if(++k<N.length)for(var W=F.sqr();k<N.length;k++,W=W.sqr())N[k]!==0&&(F=F.mul(W));return F},a.prototype.iushln=function(S){n(typeof S=="number"&&S>=0);var N=S%26,F=(S-N)/26,k=67108863>>>26-N<<26-N,W;if(N!==0){var q=0;for(W=0;W<this.length;W++){var A=this.words[W]&k,D=(this.words[W]|0)-A<<N;this.words[W]=D|q,q=A>>>26-N}q&&(this.words[W]=q,this.length++)}if(F!==0){for(W=this.length-1;W>=0;W--)this.words[W+F]=this.words[W];for(W=0;W<F;W++)this.words[W]=0;this.length+=F}return this._strip()},a.prototype.ishln=function(S){return n(this.negative===0),this.iushln(S)},a.prototype.iushrn=function(S,N,F){n(typeof S=="number"&&S>=0);var k;N?k=(N-N%26)/26:k=0;var W=S%26,q=Math.min((S-W)/26,this.length),A=67108863^67108863>>>W<<W,D=F;if(k-=q,k=Math.max(0,k),D){for(var _=0;_<q;_++)D.words[_]=this.words[_];D.length=q}if(q!==0)if(this.length>q)for(this.length-=q,_=0;_<this.length;_++)this.words[_]=this.words[_+q];else this.words[0]=0,this.length=1;var M=0;for(_=this.length-1;_>=0&&(M!==0||_>=k);_--){var G=this.words[_]|0;this.words[_]=M<<26-W|G>>>W,M=G&A}return D&&M!==0&&(D.words[D.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(S,N,F){return n(this.negative===0),this.iushrn(S,N,F)},a.prototype.shln=function(S){return this.clone().ishln(S)},a.prototype.ushln=function(S){return this.clone().iushln(S)},a.prototype.shrn=function(S){return this.clone().ishrn(S)},a.prototype.ushrn=function(S){return this.clone().iushrn(S)},a.prototype.testn=function(S){n(typeof S=="number"&&S>=0);var N=S%26,F=(S-N)/26,k=1<<N;if(this.length<=F)return!1;var W=this.words[F];return!!(W&k)},a.prototype.imaskn=function(S){n(typeof S=="number"&&S>=0);var N=S%26,F=(S-N)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(N!==0&&F++,this.length=Math.min(F,this.length),N!==0){var k=67108863^67108863>>>N<<N;this.words[this.length-1]&=k}return this._strip()},a.prototype.maskn=function(S){return this.clone().imaskn(S)},a.prototype.iaddn=function(S){return n(typeof S=="number"),n(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(this.words[0]|0)<=S?(this.words[0]=S-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},a.prototype._iaddn=function(S){this.words[0]+=S;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},a.prototype.isubn=function(S){if(n(typeof S=="number"),n(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this._strip()},a.prototype.addn=function(S){return this.clone().iaddn(S)},a.prototype.subn=function(S){return this.clone().isubn(S)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(S,N,F){var k=S.length+F,W;this._expand(k);var q,A=0;for(W=0;W<S.length;W++){q=(this.words[W+F]|0)+A;var D=(S.words[W]|0)*N;q-=D&67108863,A=(q>>26)-(D/67108864|0),this.words[W+F]=q&67108863}for(;W<this.length-F;W++)q=(this.words[W+F]|0)+A,A=q>>26,this.words[W+F]=q&67108863;if(A===0)return this._strip();for(n(A===-1),A=0,W=0;W<this.length;W++)q=-(this.words[W]|0)+A,A=q>>26,this.words[W]=q&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(S,N){var F=this.length-S.length,k=this.clone(),W=S,q=W.words[W.length-1]|0,A=this._countBits(q);F=26-A,F!==0&&(W=W.ushln(F),k.iushln(F),q=W.words[W.length-1]|0);var D=k.length-W.length,_;if(N!=="mod"){_=new a(null),_.length=D+1,_.words=new Array(_.length);for(var M=0;M<_.length;M++)_.words[M]=0}var G=k.clone()._ishlnsubmul(W,1,D);G.negative===0&&(k=G,_&&(_.words[D]=1));for(var Q=D-1;Q>=0;Q--){var te=(k.words[W.length+Q]|0)*67108864+(k.words[W.length+Q-1]|0);for(te=Math.min(te/q|0,67108863),k._ishlnsubmul(W,te,Q);k.negative!==0;)te--,k.negative=0,k._ishlnsubmul(W,1,Q),k.isZero()||(k.negative^=1);_&&(_.words[Q]=te)}return _&&_._strip(),k._strip(),N!=="div"&&F!==0&&k.iushrn(F),{div:_||null,mod:k}},a.prototype.divmod=function(S,N,F){if(n(!S.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var k,W,q;return this.negative!==0&&S.negative===0?(q=this.neg().divmod(S,N),N!=="mod"&&(k=q.div.neg()),N!=="div"&&(W=q.mod.neg(),F&&W.negative!==0&&W.iadd(S)),{div:k,mod:W}):this.negative===0&&S.negative!==0?(q=this.divmod(S.neg(),N),N!=="mod"&&(k=q.div.neg()),{div:k,mod:q.mod}):(this.negative&S.negative)!==0?(q=this.neg().divmod(S.neg(),N),N!=="div"&&(W=q.mod.neg(),F&&W.negative!==0&&W.isub(S)),{div:q.div,mod:W}):S.length>this.length||this.cmp(S)<0?{div:new a(0),mod:this}:S.length===1?N==="div"?{div:this.divn(S.words[0]),mod:null}:N==="mod"?{div:null,mod:new a(this.modrn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new a(this.modrn(S.words[0]))}:this._wordDiv(S,N)},a.prototype.div=function(S){return this.divmod(S,"div",!1).div},a.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},a.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},a.prototype.divRound=function(S){var N=this.divmod(S);if(N.mod.isZero())return N.div;var F=N.div.negative!==0?N.mod.isub(S):N.mod,k=S.ushrn(1),W=S.andln(1),q=F.cmp(k);return q<0||W===1&&q===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},a.prototype.modrn=function(S){var N=S<0;N&&(S=-S),n(S<=67108863);for(var F=(1<<26)%S,k=0,W=this.length-1;W>=0;W--)k=(F*k+(this.words[W]|0))%S;return N?-k:k},a.prototype.modn=function(S){return this.modrn(S)},a.prototype.idivn=function(S){var N=S<0;N&&(S=-S),n(S<=67108863);for(var F=0,k=this.length-1;k>=0;k--){var W=(this.words[k]|0)+F*67108864;this.words[k]=W/S|0,F=W%S}return this._strip(),N?this.ineg():this},a.prototype.divn=function(S){return this.clone().idivn(S)},a.prototype.egcd=function(S){n(S.negative===0),n(!S.isZero());var N=this,F=S.clone();N.negative!==0?N=N.umod(S):N=N.clone();for(var k=new a(1),W=new a(0),q=new a(0),A=new a(1),D=0;N.isEven()&&F.isEven();)N.iushrn(1),F.iushrn(1),++D;for(var _=F.clone(),M=N.clone();!N.isZero();){for(var G=0,Q=1;(N.words[0]&Q)===0&&G<26;++G,Q<<=1);if(G>0)for(N.iushrn(G);G-- >0;)(k.isOdd()||W.isOdd())&&(k.iadd(_),W.isub(M)),k.iushrn(1),W.iushrn(1);for(var te=0,ne=1;(F.words[0]&ne)===0&&te<26;++te,ne<<=1);if(te>0)for(F.iushrn(te);te-- >0;)(q.isOdd()||A.isOdd())&&(q.iadd(_),A.isub(M)),q.iushrn(1),A.iushrn(1);N.cmp(F)>=0?(N.isub(F),k.isub(q),W.isub(A)):(F.isub(N),q.isub(k),A.isub(W))}return{a:q,b:A,gcd:F.iushln(D)}},a.prototype._invmp=function(S){n(S.negative===0),n(!S.isZero());var N=this,F=S.clone();N.negative!==0?N=N.umod(S):N=N.clone();for(var k=new a(1),W=new a(0),q=F.clone();N.cmpn(1)>0&&F.cmpn(1)>0;){for(var A=0,D=1;(N.words[0]&D)===0&&A<26;++A,D<<=1);if(A>0)for(N.iushrn(A);A-- >0;)k.isOdd()&&k.iadd(q),k.iushrn(1);for(var _=0,M=1;(F.words[0]&M)===0&&_<26;++_,M<<=1);if(_>0)for(F.iushrn(_);_-- >0;)W.isOdd()&&W.iadd(q),W.iushrn(1);N.cmp(F)>=0?(N.isub(F),k.isub(W)):(F.isub(N),W.isub(k))}var G;return N.cmpn(1)===0?G=k:G=W,G.cmpn(0)<0&&G.iadd(S),G},a.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var N=this.clone(),F=S.clone();N.negative=0,F.negative=0;for(var k=0;N.isEven()&&F.isEven();k++)N.iushrn(1),F.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;F.isEven();)F.iushrn(1);var W=N.cmp(F);if(W<0){var q=N;N=F,F=q}else if(W===0||F.cmpn(1)===0)break;N.isub(F)}while(!0);return F.iushln(k)},a.prototype.invm=function(S){return this.egcd(S).a.umod(S)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(S){return this.words[0]&S},a.prototype.bincn=function(S){n(typeof S=="number");var N=S%26,F=(S-N)/26,k=1<<N;if(this.length<=F)return this._expand(F+1),this.words[F]|=k,this;for(var W=k,q=F;W!==0&&q<this.length;q++){var A=this.words[q]|0;A+=W,W=A>>>26,A&=67108863,this.words[q]=A}return W!==0&&(this.words[q]=W,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(S){var N=S<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this._strip();var F;if(this.length>1)F=1;else{N&&(S=-S),n(S<=67108863,"Number is too big");var k=this.words[0]|0;F=k===S?0:k<S?-1:1}return this.negative!==0?-F|0:F},a.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var N=this.ucmp(S);return this.negative!==0?-N|0:N},a.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var N=0,F=this.length-1;F>=0;F--){var k=this.words[F]|0,W=S.words[F]|0;if(k!==W){k<W?N=-1:k>W&&(N=1);break}}return N},a.prototype.gtn=function(S){return this.cmpn(S)===1},a.prototype.gt=function(S){return this.cmp(S)===1},a.prototype.gten=function(S){return this.cmpn(S)>=0},a.prototype.gte=function(S){return this.cmp(S)>=0},a.prototype.ltn=function(S){return this.cmpn(S)===-1},a.prototype.lt=function(S){return this.cmp(S)===-1},a.prototype.lten=function(S){return this.cmpn(S)<=0},a.prototype.lte=function(S){return this.cmp(S)<=0},a.prototype.eqn=function(S){return this.cmpn(S)===0},a.prototype.eq=function(S){return this.cmp(S)===0},a.red=function(S){return new H(S)},a.prototype.toRed=function(S){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(S){return this.red=S,this},a.prototype.forceRed=function(S){return n(!this.red,"Already a number in reduction context"),this._forceRed(S)},a.prototype.redAdd=function(S){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},a.prototype.redIAdd=function(S){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},a.prototype.redSub=function(S){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},a.prototype.redISub=function(S){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},a.prototype.redShl=function(S){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},a.prototype.redMul=function(S){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},a.prototype.redIMul=function(S){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(S){return n(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var L={k256:null,p224:null,p192:null,p25519:null};function V(O,S){this.name=O,this.p=new a(S,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var S=new a(null);return S.words=new Array(Math.ceil(this.n/13)),S},V.prototype.ireduce=function(S){var N=S,F;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),F=N.bitLength();while(F>this.n);var k=F<this.n?-1:N.ucmp(this.p);return k===0?(N.words[0]=0,N.length=1):k>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},V.prototype.split=function(S,N){S.iushrn(this.n,0,N)},V.prototype.imulK=function(S){return S.imul(this.k)};function $(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s($,V),$.prototype.split=function(S,N){for(var F=4194303,k=Math.min(S.length,9),W=0;W<k;W++)N.words[W]=S.words[W];if(N.length=k,S.length<=9){S.words[0]=0,S.length=1;return}var q=S.words[9];for(N.words[N.length++]=q&F,W=10;W<S.length;W++){var A=S.words[W]|0;S.words[W-10]=(A&F)<<4|q>>>22,q=A}q>>>=22,S.words[W-10]=q,q===0&&S.length>10?S.length-=10:S.length-=9},$.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var N=0,F=0;F<S.length;F++){var k=S.words[F]|0;N+=k*977,S.words[F]=N&67108863,N=k*64+(N/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S};function U(){V.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(U,V);function B(){V.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(B,V);function P(){V.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(P,V),P.prototype.imulK=function(S){for(var N=0,F=0;F<S.length;F++){var k=(S.words[F]|0)*19+N,W=k&67108863;k>>>=26,S.words[F]=W,N=k}return N!==0&&(S.words[S.length++]=N),S},a._prime=function(S){if(L[S])return L[S];var N;if(S==="k256")N=new $;else if(S==="p224")N=new U;else if(S==="p192")N=new B;else if(S==="p25519")N=new P;else throw new Error("Unknown prime "+S);return L[S]=N,N};function H(O){if(typeof O=="string"){var S=a._prime(O);this.m=S.p,this.prime=S}else n(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}H.prototype._verify1=function(S){n(S.negative===0,"red works only with positives"),n(S.red,"red works only with red numbers")},H.prototype._verify2=function(S,N){n((S.negative|N.negative)===0,"red works only with positives"),n(S.red&&S.red===N.red,"red works only with red numbers")},H.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):(h(S,S.umod(this.m)._forceRed(this)),S)},H.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},H.prototype.add=function(S,N){this._verify2(S,N);var F=S.add(N);return F.cmp(this.m)>=0&&F.isub(this.m),F._forceRed(this)},H.prototype.iadd=function(S,N){this._verify2(S,N);var F=S.iadd(N);return F.cmp(this.m)>=0&&F.isub(this.m),F},H.prototype.sub=function(S,N){this._verify2(S,N);var F=S.sub(N);return F.cmpn(0)<0&&F.iadd(this.m),F._forceRed(this)},H.prototype.isub=function(S,N){this._verify2(S,N);var F=S.isub(N);return F.cmpn(0)<0&&F.iadd(this.m),F},H.prototype.shl=function(S,N){return this._verify1(S),this.imod(S.ushln(N))},H.prototype.imul=function(S,N){return this._verify2(S,N),this.imod(S.imul(N))},H.prototype.mul=function(S,N){return this._verify2(S,N),this.imod(S.mul(N))},H.prototype.isqr=function(S){return this.imul(S,S.clone())},H.prototype.sqr=function(S){return this.mul(S,S)},H.prototype.sqrt=function(S){if(S.isZero())return S.clone();var N=this.m.andln(3);if(n(N%2===1),N===3){var F=this.m.add(new a(1)).iushrn(2);return this.pow(S,F)}for(var k=this.m.subn(1),W=0;!k.isZero()&&k.andln(1)===0;)W++,k.iushrn(1);n(!k.isZero());var q=new a(1).toRed(this),A=q.redNeg(),D=this.m.subn(1).iushrn(1),_=this.m.bitLength();for(_=new a(2*_*_).toRed(this);this.pow(_,D).cmp(A)!==0;)_.redIAdd(A);for(var M=this.pow(_,k),G=this.pow(S,k.addn(1).iushrn(1)),Q=this.pow(S,k),te=W;Q.cmp(q)!==0;){for(var ne=Q,ae=0;ne.cmp(q)!==0;ae++)ne=ne.redSqr();n(ae<te);var fe=this.pow(M,new a(1).iushln(te-ae-1));G=G.redMul(fe),M=fe.redSqr(),Q=Q.redMul(M),te=ae}return G},H.prototype.invm=function(S){var N=S._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},H.prototype.pow=function(S,N){if(N.isZero())return new a(1).toRed(this);if(N.cmpn(1)===0)return S.clone();var F=4,k=new Array(1<<F);k[0]=new a(1).toRed(this),k[1]=S;for(var W=2;W<k.length;W++)k[W]=this.mul(k[W-1],S);var q=k[0],A=0,D=0,_=N.bitLength()%26;for(_===0&&(_=26),W=N.length-1;W>=0;W--){for(var M=N.words[W],G=_-1;G>=0;G--){var Q=M>>G&1;if(q!==k[0]&&(q=this.sqr(q)),Q===0&&A===0){D=0;continue}A<<=1,A|=Q,D++,!(D!==F&&(W!==0||G!==0))&&(q=this.mul(q,k[A]),D=0,A=0)}_=26}return q},H.prototype.convertTo=function(S){var N=S.umod(this.m);return N===S?N.clone():N},H.prototype.convertFrom=function(S){var N=S.clone();return N.red=null,N},a.mont=function(S){return new Z(S)};function Z(O){H.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(Z,H),Z.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},Z.prototype.convertFrom=function(S){var N=this.imod(S.mul(this.rinv));return N.red=null,N},Z.prototype.imul=function(S,N){if(S.isZero()||N.isZero())return S.words[0]=0,S.length=1,S;var F=S.imul(N),k=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),W=F.isub(k).iushrn(this.shift),q=W;return W.cmp(this.m)>=0?q=W.isub(this.m):W.cmpn(0)<0&&(q=W.iadd(this.m)),q._forceRed(this)},Z.prototype.mul=function(S,N){if(S.isZero()||N.isZero())return new a(0)._forceRed(this);var F=S.mul(N),k=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),W=F.isub(k).iushrn(this.shift),q=W;return W.cmp(this.m)>=0?q=W.isub(this.m):W.cmpn(0)<0&&(q=W.iadd(this.m)),q._forceRed(this)},Z.prototype.invm=function(S){var N=this.imod(S._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(e,bn)})(bn$1)),bn$1.exports}var bnExports=requireBn();const BN=getDefaultExportFromCjs$1(bnExports);var safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,(function(e,t){var r=requireBuffer(),n=r.Buffer;function s(l,u){for(var d in l)u[d]=l[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=a);function a(l,u,d){return n(l,u,d)}a.prototype=Object.create(n.prototype),s(n,a),a.from=function(l,u,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,u,d)},a.alloc=function(l,u,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=n(l);return u!==void 0?typeof d=="string"?p.fill(u,d):p.fill(u):p.fill(0),p},a.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},a.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}})(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var src$2,hasRequiredSrc$2;function requireSrc$2(){if(hasRequiredSrc$2)return src$2;hasRequiredSrc$2=1;var e=requireSafeBuffer().Buffer;function t(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),s=0;s<n.length;s++)n[s]=255;for(var a=0;a<r.length;a++){var l=r.charAt(a),u=l.charCodeAt(0);if(n[u]!==255)throw new TypeError(l+" is ambiguous");n[u]=a}var d=r.length,p=r.charAt(0),h=Math.log(d)/Math.log(256),x=Math.log(256)/Math.log(d);function w(v){if((Array.isArray(v)||v instanceof Uint8Array)&&(v=e.from(v)),!e.isBuffer(v))throw new TypeError("Expected Buffer");if(v.length===0)return"";for(var E=0,j=0,R=0,T=v.length;R!==T&&v[R]===0;)R++,E++;for(var z=(T-R)*x+1>>>0,L=new Uint8Array(z);R!==T;){for(var V=v[R],$=0,U=z-1;(V!==0||$<j)&&U!==-1;U--,$++)V+=256*L[U]>>>0,L[U]=V%d>>>0,V=V/d>>>0;if(V!==0)throw new Error("Non-zero carry");j=$,R++}for(var B=z-j;B!==z&&L[B]===0;)B++;for(var P=p.repeat(E);B<z;++B)P+=r.charAt(L[B]);return P}function g(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return e.alloc(0);for(var E=0,j=0,R=0;v[E]===p;)j++,E++;for(var T=(v.length-E)*h+1>>>0,z=new Uint8Array(T);E<v.length;){var L=v.charCodeAt(E);if(L>255)return;var V=n[L];if(V===255)return;for(var $=0,U=T-1;(V!==0||$<R)&&U!==-1;U--,$++)V+=d*z[U]>>>0,z[U]=V%256>>>0,V=V/256>>>0;if(V!==0)throw new Error("Non-zero carry");R=$,E++}for(var B=T-R;B!==T&&z[B]===0;)B++;var P=e.allocUnsafe(j+(T-B));P.fill(0,0,j);for(var H=j;B!==T;)P[H++]=z[B++];return P}function b(v){var E=g(v);if(E)return E;throw new Error("Non-base"+d+" character")}return{encode:w,decodeUnsafe:g,decode:b}}return src$2=t,src$2}var bs58$4,hasRequiredBs58$2;function requireBs58$2(){if(hasRequiredBs58$2)return bs58$4;hasRequiredBs58$2=1;var e=requireSrc$2(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return bs58$4=e(t),bs58$4}var bs58Exports=requireBs58$2();const bs58$3=getDefaultExportFromCjs$1(bs58Exports),sha256=sha256$1;var lib={},src$1,hasRequiredSrc$1;function requireSrc$1(){if(hasRequiredSrc$1)return src$1;hasRequiredSrc$1=1;var e=requireSafeBuffer().Buffer;function t(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),s=0;s<n.length;s++)n[s]=255;for(var a=0;a<r.length;a++){var l=r.charAt(a),u=l.charCodeAt(0);if(n[u]!==255)throw new TypeError(l+" is ambiguous");n[u]=a}var d=r.length,p=r.charAt(0),h=Math.log(d)/Math.log(256),x=Math.log(256)/Math.log(d);function w(v){if((Array.isArray(v)||v instanceof Uint8Array)&&(v=e.from(v)),!e.isBuffer(v))throw new TypeError("Expected Buffer");if(v.length===0)return"";for(var E=0,j=0,R=0,T=v.length;R!==T&&v[R]===0;)R++,E++;for(var z=(T-R)*x+1>>>0,L=new Uint8Array(z);R!==T;){for(var V=v[R],$=0,U=z-1;(V!==0||$<j)&&U!==-1;U--,$++)V+=256*L[U]>>>0,L[U]=V%d>>>0,V=V/d>>>0;if(V!==0)throw new Error("Non-zero carry");j=$,R++}for(var B=z-j;B!==z&&L[B]===0;)B++;for(var P=p.repeat(E);B<z;++B)P+=r.charAt(L[B]);return P}function g(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return e.alloc(0);for(var E=0,j=0,R=0;v[E]===p;)j++,E++;for(var T=(v.length-E)*h+1>>>0,z=new Uint8Array(T);E<v.length;){var L=v.charCodeAt(E);if(L>255)return;var V=n[L];if(V===255)return;for(var $=0,U=T-1;(V!==0||$<R)&&U!==-1;U--,$++)V+=d*z[U]>>>0,z[U]=V%256>>>0,V=V/256>>>0;if(V!==0)throw new Error("Non-zero carry");R=$,E++}for(var B=T-R;B!==T&&z[B]===0;)B++;var P=e.allocUnsafe(j+(T-B));P.fill(0,0,j);for(var H=j;B!==T;)P[H++]=z[B++];return P}function b(v){var E=g(v);if(E)return E;throw new Error("Non-base"+d+" character")}return{encode:w,decodeUnsafe:g,decode:b}}return src$1=t,src$1}var bs58$2,hasRequiredBs58$1;function requireBs58$1(){if(hasRequiredBs58$1)return bs58$2;hasRequiredBs58$1=1;var e=requireSrc$1(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return bs58$2=e(t),bs58$2}function inRange(e,t,r){return t<=e&&e<=r}function ToDictionary(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints(e){for(var t=String(e),r=t.length,n=0,s=[];n<r;){var a=t.charCodeAt(n);if(a<55296||a>57343)s.push(a);else if(56320<=a&&a<=57343)s.push(65533);else if(55296<=a&&a<=56319)if(n===r-1)s.push(65533);else{var l=e.charCodeAt(n+1);if(56320<=l&&l<=57343){var u=a&1023,d=l&1023;s.push(65536+(u<<10)+d),n+=1}else s.push(65533)}n+=1}return s}function codePointsToString(e){for(var t="",r=0;r<e.length;++r){var n=e[r];n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode((n>>10)+55296,(n&1023)+56320))}return t}var end_of_stream=-1;function Stream(e){this.tokens=[].slice.call(e)}Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var finished=-1;function decoderError(e,t){if(e)throw TypeError("Decoder error");return t||65533}var DEFAULT_ENCODING="utf-8";function TextDecoder$1(e,t){if(!(this instanceof TextDecoder$1))return new TextDecoder$1(e,t);if(e=e!==void 0?String(e).toLowerCase():DEFAULT_ENCODING,e!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");t=ToDictionary(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}TextDecoder$1.prototype={decode:function e(t,r){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),r=ToDictionary(r),this._streaming||(this._decoder=new UTF8Decoder({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var s=new Stream(n),a=[],l;!s.endOfStream()&&(l=this._decoder.handler(s,s.read()),l!==finished);)l!==null&&(Array.isArray(l)?a.push.apply(a,l):a.push(l));if(!this._streaming){do{if(l=this._decoder.handler(s,s.read()),l===finished)break;l!==null&&(Array.isArray(l)?a.push.apply(a,l):a.push(l))}while(!s.endOfStream());this._decoder=null}return a.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(a[0]===65279?(this._BOMseen=!0,a.shift()):this._BOMseen=!0),codePointsToString(a)}};function TextEncoder$1(e,t){if(!(this instanceof TextEncoder$1))return new TextEncoder$1(e,t);if(e=e!==void 0?String(e).toLowerCase():DEFAULT_ENCODING,e!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");t=ToDictionary(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}TextEncoder$1.prototype={encode:function e(t,r){t=t?String(t):"",r=ToDictionary(r),this._streaming||(this._encoder=new UTF8Encoder(this._options)),this._streaming=!!r.stream;for(var n=[],s=new Stream(stringToCodePoints(t)),a;!s.endOfStream()&&(a=this._encoder.handler(s,s.read()),a!==finished);)Array.isArray(a)?n.push.apply(n,a):n.push(a);if(!this._streaming){for(;a=this._encoder.handler(s,s.read()),a!==finished;)Array.isArray(a)?n.push.apply(n,a):n.push(a);this._encoder=null}return new Uint8Array(n)}};function UTF8Decoder(e){var t=e.fatal,r=0,n=0,s=0,a=128,l=191;this.handler=function(u,d){if(d===end_of_stream&&s!==0)return s=0,decoderError(t);if(d===end_of_stream)return finished;if(s===0){if(inRange(d,0,127))return d;if(inRange(d,194,223))s=1,r=d-192;else if(inRange(d,224,239))d===224&&(a=160),d===237&&(l=159),s=2,r=d-224;else if(inRange(d,240,244))d===240&&(a=144),d===244&&(l=143),s=3,r=d-240;else return decoderError(t);return r=r<<6*s,null}if(!inRange(d,a,l))return r=s=n=0,a=128,l=191,u.prepend(d),decoderError(t);if(a=128,l=191,n+=1,r+=d-128<<6*(s-n),n!==s)return null;var p=r;return r=s=n=0,p}}function UTF8Encoder(e){e.fatal,this.handler=function(t,r){if(r===end_of_stream)return finished;if(inRange(r,0,127))return r;var n,s;inRange(r,128,2047)?(n=1,s=192):inRange(r,2048,65535)?(n=2,s=224):inRange(r,65536,1114111)&&(n=3,s=240);for(var a=[(r>>6*n)+s];n>0;){var l=r>>6*(n-1);a.push(128|l&63),n-=1}return a}}const encoding=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:TextDecoder$1,TextEncoder:TextEncoder$1},Symbol.toStringTag,{value:"Module"})),require$$2$1=getAugmentedNamespace(encoding);var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var e=lib&&lib.__createBinding||(Object.create?(function(B,P,H,Z){Z===void 0&&(Z=H),Object.defineProperty(B,Z,{enumerable:!0,get:function(){return P[H]}})}):(function(B,P,H,Z){Z===void 0&&(Z=H),B[Z]=P[H]})),t=lib&&lib.__setModuleDefault||(Object.create?(function(B,P){Object.defineProperty(B,"default",{enumerable:!0,value:P})}):function(B,P){B.default=P}),r=lib&&lib.__decorate||function(B,P,H,Z){var O=arguments.length,S=O<3?P:Z===null?Z=Object.getOwnPropertyDescriptor(P,H):Z,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(B,P,H,Z);else for(var F=B.length-1;F>=0;F--)(N=B[F])&&(S=(O<3?N(S):O>3?N(P,H,S):N(P,H))||S);return O>3&&S&&Object.defineProperty(P,H,S),S},n=lib&&lib.__importStar||function(B){if(B&&B.__esModule)return B;var P={};if(B!=null)for(var H in B)H!=="default"&&Object.hasOwnProperty.call(B,H)&&e(P,B,H);return t(P,B),P},s=lib&&lib.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};
2226Object.defineProperty(lib,"__esModule",{value:!0}),lib.deserializeUnchecked=lib.deserialize=lib.serialize=lib.BinaryReader=lib.BinaryWriter=lib.BorshError=lib.baseDecode=lib.baseEncode=void 0;const a=s(requireBn()),l=s(requireBs58$1()),u=n(require$$2$1),d=typeof TextDecoder!="function"?u.TextDecoder:TextDecoder,p=new d("utf-8",{fatal:!0});function h(B){return typeof B=="string"&&(B=Buffer.from(B,"utf8")),l.default.encode(Buffer.from(B))}lib.baseEncode=h;function x(B){return Buffer.from(l.default.decode(B))}lib.baseDecode=x;const w=1024;class g extends Error{constructor(P){super(P),this.fieldPath=[],this.originalMessage=P}addToFieldPath(P){this.fieldPath.splice(0,0,P),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}lib.BorshError=g;class b{constructor(){this.buf=Buffer.alloc(w),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(w)]))}writeU8(P){this.maybeResize(),this.buf.writeUInt8(P,this.length),this.length+=1}writeU16(P){this.maybeResize(),this.buf.writeUInt16LE(P,this.length),this.length+=2}writeU32(P){this.maybeResize(),this.buf.writeUInt32LE(P,this.length),this.length+=4}writeU64(P){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(P).toArray("le",8)))}writeU128(P){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(P).toArray("le",16)))}writeU256(P){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(P).toArray("le",32)))}writeU512(P){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(P).toArray("le",64)))}writeBuffer(P){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),P,Buffer.alloc(w)]),this.length+=P.length}writeString(P){this.maybeResize();const H=Buffer.from(P,"utf8");this.writeU32(H.length),this.writeBuffer(H)}writeFixedArray(P){this.writeBuffer(Buffer.from(P))}writeArray(P,H){this.maybeResize(),this.writeU32(P.length);for(const Z of P)this.maybeResize(),H(Z)}toArray(){return this.buf.subarray(0,this.length)}}lib.BinaryWriter=b;function v(B,P,H){const Z=H.value;H.value=function(...O){try{return Z.apply(this,O)}catch(S){if(S instanceof RangeError){const N=S.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(N)>=0)throw new g("Reached the end of buffer when deserializing")}throw S}}}class E{constructor(P){this.buf=P,this.offset=0}readU8(){const P=this.buf.readUInt8(this.offset);return this.offset+=1,P}readU16(){const P=this.buf.readUInt16LE(this.offset);return this.offset+=2,P}readU32(){const P=this.buf.readUInt32LE(this.offset);return this.offset+=4,P}readU64(){const P=this.readBuffer(8);return new a.default(P,"le")}readU128(){const P=this.readBuffer(16);return new a.default(P,"le")}readU256(){const P=this.readBuffer(32);return new a.default(P,"le")}readU512(){const P=this.readBuffer(64);return new a.default(P,"le")}readBuffer(P){if(this.offset+P>this.buf.length)throw new g(`Expected buffer length ${P} isn't within bounds`);const H=this.buf.slice(this.offset,this.offset+P);return this.offset+=P,H}readString(){const P=this.readU32(),H=this.readBuffer(P);try{return p.decode(H)}catch(Z){throw new g(`Error decoding UTF-8 string: ${Z}`)}}readFixedArray(P){return new Uint8Array(this.readBuffer(P))}readArray(P){const H=this.readU32(),Z=Array();for(let O=0;O<H;++O)Z.push(P());return Z}}r([v],E.prototype,"readU8",null),r([v],E.prototype,"readU16",null),r([v],E.prototype,"readU32",null),r([v],E.prototype,"readU64",null),r([v],E.prototype,"readU128",null),r([v],E.prototype,"readU256",null),r([v],E.prototype,"readU512",null),r([v],E.prototype,"readString",null),r([v],E.prototype,"readFixedArray",null),r([v],E.prototype,"readArray",null),lib.BinaryReader=E;function j(B){return B.charAt(0).toUpperCase()+B.slice(1)}function R(B,P,H,Z,O){try{if(typeof Z=="string")O[`write${j(Z)}`](H);else if(Z instanceof Array)if(typeof Z[0]=="number"){if(H.length!==Z[0])throw new g(`Expecting byte array of length ${Z[0]}, but got ${H.length} bytes`);O.writeFixedArray(H)}else if(Z.length===2&&typeof Z[1]=="number"){if(H.length!==Z[1])throw new g(`Expecting byte array of length ${Z[1]}, but got ${H.length} bytes`);for(let S=0;
2226S<Z[1];S++)R(B,null,H[S],Z[0],O)}else O.writeArray(H,S=>{R(B,P,S,Z[0],O)});else if(Z.kind!==void 0)switch(Z.kind){case"option":{H==null?O.writeU8(0):(O.writeU8(1),R(B,P,H,Z.type,O));break}case"map":{O.writeU32(H.size),H.forEach((S,N)=>{R(B,P,N,Z.key,O),R(B,P,S,Z.value,O)});break}default:throw new g(`FieldType ${Z} unrecognized`)}else T(B,H,O)}catch(S){throw S instanceof g&&S.addToFieldPath(P),S}}function T(B,P,H){if(typeof P.borshSerialize=="function"){P.borshSerialize(H);return}const Z=B.get(P.constructor);if(!Z)throw new g(`Class ${P.constructor.name} is missing in schema`);if(Z.kind==="struct")Z.fields.map(([O,S])=>{R(B,O,P[O],S,H)});else if(Z.kind==="enum"){const O=P[Z.field];for(let S=0;S<Z.values.length;++S){const[N,F]=Z.values[S];if(N===O){H.writeU8(S),R(B,N,P[N],F,H);break}}}else throw new g(`Unexpected schema kind: ${Z.kind} for ${P.constructor.name}`)}function z(B,P,H=b){const Z=new H;return T(B,P,Z),Z.toArray()}lib.serialize=z;function L(B,P,H,Z){try{if(typeof H=="string")return Z[`read${j(H)}`]();if(H instanceof Array){if(typeof H[0]=="number")return Z.readFixedArray(H[0]);if(typeof H[1]=="number"){const O=[];for(let S=0;S<H[1];S++)O.push(L(B,null,H[0],Z));return O}else return Z.readArray(()=>L(B,P,H[0],Z))}if(H.kind==="option")return Z.readU8()?L(B,P,H.type,Z):void 0;if(H.kind==="map"){let O=new Map;const S=Z.readU32();for(let N=0;N<S;N++){const F=L(B,P,H.key,Z),k=L(B,P,H.value,Z);O.set(F,k)}return O}return V(B,H,Z)}catch(O){throw O instanceof g&&O.addToFieldPath(P),O}}function V(B,P,H){if(typeof P.borshDeserialize=="function")return P.borshDeserialize(H);const Z=B.get(P);if(!Z)throw new g(`Class ${P.name} is missing in schema`);if(Z.kind==="struct"){const O={};for(const[S,N]of B.get(P).fields)O[S]=L(B,S,N,H);return new P(O)}if(Z.kind==="enum"){const O=H.readU8();if(O>=Z.values.length)throw new g(`Enum index: ${O} is out of range`);const[S,N]=Z.values[O],F=L(B,S,N,H);return new P({[S]:F})}throw new g(`Unexpected schema kind: ${Z.kind} for ${P.constructor.name}`)}function $(B,P,H,Z=E){const O=new Z(H),S=V(B,P,O);if(O.offset<H.length)throw new g(`Unexpected ${H.length-O.offset} bytes after deserialized data`);return S}lib.deserialize=$;function U(B,P,H,Z=E){const O=new Z(H);return V(B,P,O)}return lib.deserializeUnchecked=U,lib}var libExports=requireLib(),Layout={},hasRequiredLayout;function requireLayout(){if(hasRequiredLayout)return Layout;hasRequiredLayout=1,Object.defineProperty(Layout,"__esModule",{value:!0}),Layout.s16=Layout.s8=Layout.nu64be=Layout.u48be=Layout.u40be=Layout.u32be=Layout.u24be=Layout.u16be=Layout.nu64=Layout.u48=Layout.u40=Layout.u32=Layout.u24=Layout.u16=Layout.u8=Layout.offset=Layout.greedy=Layout.Constant=Layout.UTF8=Layout.CString=Layout.Blob=Layout.Boolean=Layout.BitField=Layout.BitStructure=Layout.VariantLayout=Layout.Union=Layout.UnionLayoutDiscriminator=Layout.UnionDiscriminator=Layout.Structure=Layout.Sequence=Layout.DoubleBE=Layout.Double=Layout.FloatBE=Layout.Float=Layout.NearInt64BE=Layout.NearInt64=Layout.NearUInt64BE=Layout.NearUInt64=Layout.IntBE=Layout.Int=Layout.UIntBE=Layout.UInt=Layout.OffsetLayout=Layout.GreedyCount=Layout.ExternalLayout=Layout.bindConstructorLayout=Layout.nameWithProperty=Layout.Layout=Layout.uint8ArrayToBuffer=Layout.checkUint8Array=void 0,Layout.constant=Layout.utf8=Layout.cstr=Layout.blob=Layout.unionLayoutDiscriminator=Layout.union=Layout.seq=Layout.bits=Layout.struct=Layout.f64be=Layout.f64=Layout.f32be=Layout.f32=Layout.ns64be=Layout.s48be=Layout.s40be=Layout.s32be=Layout.s24be=Layout.s16be=Layout.ns64=Layout.s48=Layout.s40=Layout.s32=Layout.s24=void 0;const e=requireBuffer();function t(_){if(!(_ instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Layout.checkUint8Array=t;function r(_){return t(_),e.Buffer.from(_.buffer,_.byteOffset,_.length)}Layout.uint8ArrayToBuffer=r;let n=class{constructor(M,G){if(!Number.isInteger(M))throw new TypeError("span must be an integer");this.span=M,this.property=G}makeDestinationObject(){return{}}getSpan(M,G){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(M){const G=Object.create(this.constructor.prototype);return Object.assign(G,this),G.property=M,G}fromArray(M){}};Layout.Layout=n;function s(_,M){return M.property?_+"["+M.property+"]":_}Layout.nameWithProperty=s;function a(_,M){if(typeof _!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(_,"layout_"))throw new Error("Class is already bound to a layout");if(!(M&&M instanceof n))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(M,"boundConstructor_"))throw new Error("layout is already bound to a constructor");_.layout_=M,M.boundConstructor_=_,M.makeDestinationObject=(()=>new _),Object.defineProperty(_.prototype,"encode",{value(G,Q){return M.encode(this,G,Q)},writable:!0}),Object.defineProperty(_,"decode",{value(G,Q){return M.decode(G,Q)},writable:!0})}Layout.bindConstructorLayout=a;class l extends n{isCount(){throw new Error("ExternalLayout is abstract")}}Layout.ExternalLayout=l;class u extends l{constructor(M=1,G){if(!Number.isInteger(M)||0>=M)throw new TypeError("elementSpan must be a (positive) integer");super(-1,G),this.elementSpan=M}isCount(){return!0}decode(M,G=0){t(M);const Q=M.length-G;return Math.floor(Q/this.elementSpan)}encode(M,G,Q){return 0}}Layout.GreedyCount=u;class d extends l{constructor(M,G=0,Q){if(!(M instanceof n))throw new TypeError("layout must be a Layout");if(!Number.isInteger(G))throw new TypeError("offset must be integer or undefined");super(M.span,Q||M.property),this.layout=M,this.offset=G}isCount(){return this.layout instanceof p||this.layout instanceof h}decode(M,G=0){return this.layout.decode(M,G+this.offset)}encode(M,G,Q=0){return this.layout.encode(M,G,Q+this.offset)}}Layout.OffsetLayout=d;class p extends n{constructor(M,G){if(super(M,G),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(M,G=0){return r(M).readUIntLE(G,this.span)}encode(M,G,Q=0){return r(G).writeUIntLE(M,Q,this.span),this.span}}Layout.UInt=p;class h extends n{constructor(M,G){if(super(M,G),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(M,G=0){return r(M).readUIntBE(G,this.span)}encode(M,G,Q=0){return r(G).writeUIntBE(M,Q,this.span),this.span}}Layout.UIntBE=h;class x extends n{constructor(M,G){if(super(M,G),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(M,G=0){return r(M).readIntLE(G,this.span)}encode(M,G,Q=0){return r(G).writeIntLE(M,Q,this.span),this.span}}Layout.Int=x;class w extends n{constructor(M,G){if(super(M,G),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(M,G=0){return r(M).readIntBE(G,this.span)}encode(M,G,Q=0){return r(G).writeIntBE(M,Q,this.span),this.span}}Layout.IntBE=w;const g=Math.pow(2,32);function b(_){const M=Math.floor(_/g),G=_-M*g;return{hi32:M,lo32:G}}function v(_,M){return _*g+M}class E extends n{constructor(M){super(8,M)}decode(M,G=0){const Q=r(M),te=Q.readUInt32LE(G),ne=Q.readUInt32LE(G+4);return v(ne,te)}encode(M,G,Q=0){const te=b(M),ne=r(G);return ne.writeUInt32LE(te.lo32,Q),ne.writeUInt32LE(te.hi32,Q+4),8}}Layout.NearUInt64=E;class j extends n{constructor(M){super(8,M)}decode(M,G=0){const Q=r(M),te=Q.readUInt32BE(G),ne=Q.readUInt32BE(G+4);return v(te,ne)}encode(M,G,Q=0){const te=b(M),ne=r(G);return ne.writeUInt32BE(te.hi32,Q),ne.writeUInt32BE(te.lo32,Q+4),8}}Layout.NearUInt64BE=j;class R extends n{constructor(M){super(8,M)}decode(M,G=0){const Q=r(M),te=Q.readUInt32LE(G),ne=Q.readInt32LE(G+4);return v(ne,te)}encode(M,G,Q=0){const te=b(M),ne=r(G);return ne.writeUInt32LE(te.lo32,Q),ne.writeInt32LE(te.hi32,Q+4),8}}Layout.NearInt64=R;class T extends n{constructor(M){super(8,M)}decode(M,G=0){const Q=r(M),te=Q.readInt32BE(G),ne=Q.readUInt32BE(G+4);return v(te,ne)}encode(M,G,Q=0){const te=b(M),ne=r(G);return ne.writeInt32BE(te.hi32,Q),ne.writeUInt32BE(te.lo32,Q+4),8}}Layout.NearInt64BE=T;class z extends n{constructor(M){super(4,M)}decode(M,G=0){return r(M).readFloatLE(G)}encode(M,G,Q=0){return r(G).writeFloatLE(M,Q),4}}Layout.Float=z;class L extends n{constructor(M){super(4,M)}decode(M,G=0){return r(M).readFloatBE(G)}encode(M,G,Q=0){return r(G).writeFloatBE(M,Q),4}}Layout.FloatBE=L;class V extends n{constructor(M){super(8,M)}decode(M,G=0){return r(M).readDoubleLE(G)}encode(M,G,Q=0){return r(G).writeDoubleLE(M,Q),8}}Layout.Double=V;class $ extends n{constructor(M){super(8,M)}decode(M,G=0){return r(M).readDoubleBE(G)}encode(M,G,Q=0){return r(G).writeDoubleBE(M,Q),8}}Layout.DoubleBE=$;class U extends n{constructor(M,G,Q){if(!(M instanceof n))throw new TypeError("elementLayout must be a Layout");if(!(G instanceof l&&G.isCount()||Number.isInteger(G)&&0<=G))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let te=-1;!(G instanceof l)&&0<M.span&&(te=G*M.span),super(te,Q),this.elementLayout=M,this.count=G}getSpan(M,G=0){if(0<=this.span)return this.span;let Q=0,te=this.count;if(te instanceof l&&(te=te.decode(M,G)),0<this.elementLayout.span)Q=te*this.elementLayout.span;else{let ne=0;for(;ne<te;)Q+=this.elementLayout.getSpan(M,G+Q),++ne}return Q}decode(M,G=0){const Q=[];let te=0,ne=this.count;for(ne instanceof l&&(ne=ne.decode(M,G));te<ne;)Q.push(this.elementLayout.decode(M,G)),G+=this.elementLayout.getSpan(M,G),te+=1;return Q}encode(M,G,Q=0){const te=this.elementLayout,ne=M.reduce((ae,fe)=>ae+te.encode(fe,G,Q+ae),0);return this.count instanceof l&&this.count.encode(M.length,G,Q),ne}}Layout.Sequence=U;class B extends n{constructor(M,G,Q){if(!(Array.isArray(M)&&M.reduce((ne,ae)=>
vendor: 9,784 bytes, line 2226
2226ne&&ae instanceof n,!0)))throw new TypeError("fields must be array of Layout instances");typeof G=="boolean"&&Q===void 0&&(Q=G,G=void 0);for(const ne of M)if(0>ne.span&&ne.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let te=-1;try{te=M.reduce((ne,ae)=>ne+ae.getSpan(),0)}catch{}super(te,G),this.fields=M,this.decodePrefixes=!!Q}getSpan(M,G=0){if(0<=this.span)return this.span;let Q=0;try{Q=this.fields.reduce((te,ne)=>{const ae=ne.getSpan(M,G);return G+=ae,te+ae},0)}catch{throw new RangeError("indeterminate span")}return Q}decode(M,G=0){t(M);const Q=this.makeDestinationObject();for(const te of this.fields)if(te.property!==void 0&&(Q[te.property]=te.decode(M,G)),G+=te.getSpan(M,G),this.decodePrefixes&&M.length===G)break;return Q}encode(M,G,Q=0){const te=Q;let ne=0,ae=0;for(const fe of this.fields){let Se=fe.span;if(ae=0<Se?Se:0,fe.property!==void 0){const Ce=M[fe.property];Ce!==void 0&&(ae=fe.encode(Ce,G,Q),0>Se&&(Se=fe.getSpan(G,Q)))}ne=Q,Q+=Se}return ne+ae-te}fromArray(M){const G=this.makeDestinationObject();for(const Q of this.fields)Q.property!==void 0&&0<M.length&&(G[Q.property]=M.shift());return G}layoutFor(M){if(typeof M!="string")throw new TypeError("property must be string");for(const G of this.fields)if(G.property===M)return G}offsetOf(M){if(typeof M!="string")throw new TypeError("property must be string");let G=0;for(const Q of this.fields){if(Q.property===M)return G;0>Q.span?G=-1:0<=G&&(G+=Q.span)}}}Layout.Structure=B;class P{constructor(M){this.property=M}decode(M,G){throw new Error("UnionDiscriminator is abstract")}encode(M,G,Q){throw new Error("UnionDiscriminator is abstract")}}Layout.UnionDiscriminator=P;class H extends P{constructor(M,G){if(!(M instanceof l&&M.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(G||M.property||"variant"),this.layout=M}decode(M,G){return this.layout.decode(M,G)}encode(M,G,Q){return this.layout.encode(M,G,Q)}}Layout.UnionLayoutDiscriminator=H;class Z extends n{constructor(M,G,Q){let te;if(M instanceof p||M instanceof h)te=new H(new d(M));else if(M instanceof l&&M.isCount())te=new H(M);else if(M instanceof P)te=M;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(G===void 0&&(G=null),!(G===null||G instanceof n))throw new TypeError("defaultLayout must be null or a Layout");if(G!==null){if(0>G.span)throw new Error("defaultLayout must have constant span");G.property===void 0&&(G=G.replicate("content"))}let ne=-1;G&&(ne=G.span,0<=ne&&(M instanceof p||M instanceof h)&&(ne+=te.layout.span)),super(ne,Q),this.discriminator=te,this.usesPrefixDiscriminator=M instanceof p||M instanceof h,this.defaultLayout=G,this.registry={};let ae=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(fe){return ae(fe)},this.configGetSourceVariant=function(fe){ae=fe.bind(this)}}getSpan(M,G=0){if(0<=this.span)return this.span;const Q=this.getVariant(M,G);if(!Q)throw new Error("unable to determine span for unrecognized variant");return Q.getSpan(M,G)}defaultGetSourceVariant(M){if(Object.prototype.hasOwnProperty.call(M,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(M,this.defaultLayout.property))return;const G=this.registry[M[this.discriminator.property]];if(G&&(!G.layout||G.property&&Object.prototype.hasOwnProperty.call(M,G.property)))return G}else for(const G in this.registry){const Q=this.registry[G];if(Q.property&&Object.prototype.hasOwnProperty.call(M,Q.property))return Q}throw new Error("unable to infer src variant")}decode(M,G=0){let Q;const te=this.discriminator,ne=te.decode(M,G),ae=this.registry[ne];if(ae===void 0){const fe=this.defaultLayout;let Se=0;this.usesPrefixDiscriminator&&(Se=te.layout.span),Q=this.makeDestinationObject(),Q[te.property]=ne,Q[fe.property]=fe.decode(M,G+Se)}else Q=ae.decode(M,G);return Q}encode(M,G,Q=0){const te=this.getSourceVariant(M);if(te===void 0){const ne=this.discriminator,ae=this.defaultLayout;let fe=0;return this.usesPrefixDiscriminator&&(fe=ne.layout.span),ne.encode(M[ne.property],G,Q),fe+ae.encode(M[ae.property],G,Q+fe)}return te.encode(M,G,Q)}addVariant(M,G,Q){const te=new O(this,M,G,Q);return this.registry[M]=te,te}getVariant(M,G=0){let Q;return M instanceof Uint8Array?Q=this.discriminator.decode(M,G):Q=M,this.registry[Q]}}Layout.Union=Z;class O extends n{constructor(M,G,Q,te){if(!(M instanceof Z))throw new TypeError("union must be a Union");if(!Number.isInteger(G)||0>G)throw new TypeError("variant must be a (non-negative) integer");if(typeof Q=="string"&&te===void 0&&(te=Q,Q=null),Q){if(!(Q instanceof n))throw new TypeError("layout must be a Layout");if(M.defaultLayout!==null&&0<=Q.span&&Q.span>M.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof te!="string")throw new TypeError("variant must have a String property")}let ne=M.span;0>M.span&&(ne=Q?Q.span:0,0<=ne&&M.usesPrefixDiscriminator&&(ne+=M.discriminator.layout.span)),super(ne,te),this.union=M,this.variant=G,this.layout=Q||null}getSpan(M,G=0){if(0<=this.span)return this.span;let Q=0;this.union.usesPrefixDiscriminator&&(Q=this.union.discriminator.layout.span);let te=0;return this.layout&&(te=this.layout.getSpan(M,G+Q)),Q+te}decode(M,G=0){const Q=this.makeDestinationObject();if(this!==this.union.getVariant(M,G))throw new Error("variant mismatch");let te=0;return this.union.usesPrefixDiscriminator&&(te=this.union.discriminator.layout.span),this.layout?Q[this.property]=this.layout.decode(M,G+te):this.property?Q[this.property]=!0:this.union.usesPrefixDiscriminator&&(Q[this.union.discriminator.property]=this.variant),Q}encode(M,G,Q=0){let te=0;if(this.union.usesPrefixDiscriminator&&(te=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(M,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,G,Q);let ne=te;if(this.layout&&(this.layout.encode(M[this.property],G,Q+te),ne+=this.layout.getSpan(G,Q+te),0<=this.union.span&&ne>this.union.span))throw new Error("encoded variant overruns containing union");return ne}fromArray(M){if(this.layout)return this.layout.fromArray(M)}}Layout.VariantLayout=O;function S(_){return 0>_&&(_+=4294967296),_}class N extends n{constructor(M,G,Q){if(!(M instanceof p||M instanceof h))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof G=="string"&&Q===void 0&&(Q=G,G=!1),4<M.span)throw new RangeError("word cannot exceed 32 bits");super(M.span,Q),this.word=M,this.msb=!!G,this.fields=[];let te=0;this._packedSetValue=function(ne){return te=S(ne),this},this._packedGetValue=function(){return te}}decode(M,G=0){const Q=this.makeDestinationObject(),te=this.word.decode(M,G);this._packedSetValue(te);for(const ne of this.fields)ne.property!==void 0&&(Q[ne.property]=ne.decode(M));return Q}encode(M,G,Q=0){const te=this.word.decode(G,Q);this._packedSetValue(te);for(const ne of this.fields)if(ne.property!==void 0){const ae=M[ne.property];ae!==void 0&&ne.encode(ae)}return this.word.encode(this._packedGetValue(),G,Q)}addField(M,G){const Q=new F(this,M,G);return this.fields.push(Q),Q}addBoolean(M){const G=new k(this,M);return this.fields.push(G),G}fieldFor(M){if(typeof M!="string")throw new TypeError("property must be string");for(const G of this.fields)if(G.property===M)return G}}Layout.BitStructure=N;class F{constructor(M,G,Q){if(!(M instanceof N))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(G)||0>=G)throw new TypeError("bits must be positive integer");const te=8*M.span,ne=M.fields.reduce((ae,fe)=>ae+fe.bits,0);if(G+ne>te)throw new Error("bits too long for span remainder ("+(te-ne)+" of "+te+" remain)");this.container=M,this.bits=G,this.valueMask=(1<<G)-1,G===32&&(this.valueMask=4294967295),this.start=ne,this.container.msb&&(this.start=te-ne-G),this.wordMask=S(this.valueMask<<this.start),this.property=Q}decode(M,G){const Q=this.container._packedGetValue();return S(Q&this.wordMask)>>>this.start}encode(M){if(typeof M!="number"||!Number.isInteger(M)||M!==S(M&this.valueMask))throw new TypeError(s("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const G=this.container._packedGetValue(),Q=S(M<<this.start);this.container._packedSetValue(S(G&~this.wordMask)|Q)}}Layout.BitField=F;class k extends F{constructor(M,G){super(M,1,G)}decode(M,G){return!!super.decode(M,G)}encode(M){typeof M=="boolean"&&(M=+M),super.encode(M)}}Layout.Boolean=k;class W extends n{constructor(M,G){if(!(M instanceof l&&M.isCount()||Number.isInteger(M)&&0<=M))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let Q=-1;M instanceof l||(Q=M),super(Q,G),this.length=M}getSpan(M,G){let Q=this.span;return 0>Q&&(Q=this.length.decode(M,G)),Q}decode(M,G=0){let Q=this.span;return 0>Q&&(Q=this.length.decode(M,G)),r(M).slice(G,G+Q)}encode(M,G,Q){let te=this.length;if(this.length instanceof l&&(te=M.length),!(M instanceof Uint8Array&&te===M.length))throw new TypeError(s("Blob.encode",this)+" requires (length "+te+") Uint8Array as src");if(Q+te>G.length)throw new RangeError("encoding overruns Uint8Array");const ne=r(M);return r(G).write(ne.toString("hex"),Q,te,"hex"),this.length instanceof l&&this.length.encode(te,G,Q),te}}Layout.Blob=W;class q extends n{constructor(M){super(-1,M)}getSpan(M,G=0){t(M);let Q=G;for(;Q<M.length&&M[Q]!==0;)Q+=1;return 1+Q-G}decode(M,G=0){const Q=this.getSpan(M,G);return r(M).slice(G,G+Q-1).toString("utf-8")}encode(M,G,Q=0){typeof M!="string"&&(M=String(M));const te=e.Buffer.from(M,"utf8"),ne=te.length;if(Q+ne>G.length)throw new RangeError("encoding overruns Buffer");const ae=r(G);return te.copy(ae,Q),ae[Q+ne]=0,ne+1}}Layout.CString=q;
2226class A extends n{constructor(M,G){if(typeof M=="string"&&G===void 0&&(G=M,M=void 0),M===void 0)M=-1;else if(!Number.isInteger(M))throw new TypeError("maxSpan must be an integer");super(-1,G),this.maxSpan=M}getSpan(M,G=0){return t(M),M.length-G}decode(M,G=0){const Q=this.getSpan(M,G);if(0<=this.maxSpan&&this.maxSpan<Q)throw new RangeError("text length exceeds maxSpan");return r(M).slice(G,G+Q).toString("utf-8")}encode(M,G,Q=0){typeof M!="string"&&(M=String(M));const te=e.Buffer.from(M,"utf8"),ne=te.length;if(0<=this.maxSpan&&this.maxSpan<ne)throw new RangeError("text length exceeds maxSpan");if(Q+ne>G.length)throw new RangeError("encoding overruns Buffer");return te.copy(r(G),Q),ne}}Layout.UTF8=A;class D extends n{constructor(M,G){super(0,G),this.value=M}decode(M,G){return this.value}encode(M,G,Q){return 0}}return Layout.Constant=D,Layout.greedy=((_,M)=>new u(_,M)),Layout.offset=((_,M,G)=>new d(_,M,G)),Layout.u8=(_=>new p(1,_)),Layout.u16=(_=>new p(2,_)),Layout.u24=(_=>new p(3,_)),Layout.u32=(_=>new p(4,_)),Layout.u40=(_=>new p(5,_)),Layout.u48=(_=>new p(6,_)),Layout.nu64=(_=>new E(_)),Layout.u16be=(_=>new h(2,_)),Layout.u24be=(_=>new h(3,_)),Layout.u32be=(_=>new h(4,_)),Layout.u40be=(_=>new h(5,_)),Layout.u48be=(_=>new h(6,_)),Layout.nu64be=(_=>new j(_)),Layout.s8=(_=>new x(1,_)),Layout.s16=(_=>new x(2,_)),Layout.s24=(_=>new x(3,_)),Layout.s32=(_=>new x(4,_)),Layout.s40=(_=>new x(5,_)),Layout.s48=(_=>new x(6,_)),Layout.ns64=(_=>new R(_)),Layout.s16be=(_=>new w(2,_)),Layout.s24be=(_=>new w(3,_)),Layout.s32be=(_=>new w(4,_)),Layout.s40be=(_=>new w(5,_)),Layout.s48be=(_=>new w(6,_)),Layout.ns64be=(_=>new T(_)),Layout.f32=(_=>new z(_)),Layout.f32be=(_=>new L(_)),Layout.f64=(_=>new V(_)),Layout.f64be=(_=>new $(_)),Layout.struct=((_,M,G)=>new B(_,M,G)),Layout.bits=((_,M,G)=>new N(_,M,G)),Layout.seq=((_,M,G)=>new U(_,M,G)),Layout.union=((_,M,G)=>new Z(_,M,G)),Layout.unionLayoutDiscriminator=((_,M)=>new H(_,M)),Layout.blob=((_,M)=>new W(_,M)),Layout.cstr=(_=>new q(_)),Layout.utf8=((_,M)=>new A(_,M)),Layout.constant=((_,M)=>new D(_,M)),Layout}var LayoutExports=requireLayout(),SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY=8078e3,SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH=8078001,SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH=8078004,SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH=8078005,SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH=8078006,SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE=8078011;function encodeValue(e){return Array.isArray(e)?"%5B"+e.map(encodeValue).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function encodeObjectContextEntry([e,t]){return`${e}=${encodeValue(t)}`}function encodeContextObject(e){const t=Object.entries(e).map(encodeObjectContextEntry).join("&");return btoa(t)}function getErrorMessage(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${encodeContextObject(t)}'`),`${r}\``}}var SolanaError=class extends Error{cause=this.cause;context;constructor(...[e,t]){let r,n;if(t){const{cause:a,...l}=t;a&&(n={cause:a}),Object.keys(l).length>0&&(r=l)}const s=getErrorMessage(e,r);super(s,n),this.context={__code:e,...r},this.name="SolanaError"}};function getEncodedSize(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function createEncoder(e){return Object.freeze({...e,encode:t=>{const r=new Uint8Array(getEncodedSize(t,e));return e.write(t,r,0),r}})}function createDecoder(e){return Object.freeze({...e,decode:(t,r=0)=>e.read(t,r)[0]})}function isFixedSize(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function combineCodec(e,t){if(isFixedSize(e)!==isFixedSize(t))throw new SolanaError(SOLA
vendor: 26,611 bytes, line 2226
2226NA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH);if(isFixedSize(e)&&isFixedSize(t)&&e.fixedSize!==t.fixedSize)throw new SolanaError(SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!isFixedSize(e)&&!isFixedSize(t)&&e.maxSize!==t.maxSize)throw new SolanaError(SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function assertByteArrayIsNotEmptyForCodec(e,t,r=0){if(t.length-r<=0)throw new SolanaError(SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY,{codecDescription:e})}function assertByteArrayHasEnoughBytesForCodec(e,t,r,n=0){const s=r.length-n;if(s<t)throw new SolanaError(SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH,{bytesLength:s,codecDescription:e,expected:t})}function assertNumberIsBetweenForCodec(e,t,r,n){if(n<t||n>r)throw new SolanaError(SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE,{codecDescription:e,max:r,min:t,value:n})}function isLittleEndian(e){return e?.endian!==1}function numberEncoderFactory(e){return createEncoder({fixedSize:e.size,write(t,r,n){e.range&&assertNumberIsBetweenForCodec(e.name,e.range[0],e.range[1],t);const s=new ArrayBuffer(e.size);return e.set(new DataView(s),t,isLittleEndian(e.config)),r.set(new Uint8Array(s),n),n+e.size}})}function numberDecoderFactory(e){return createDecoder({fixedSize:e.size,read(t,r=0){assertByteArrayIsNotEmptyForCodec(e.name,t,r),assertByteArrayHasEnoughBytesForCodec(e.name,e.size,t,r);const n=new DataView(toArrayBuffer(t,r,e.size));return[e.get(n,isLittleEndian(e.config)),r+e.size]}})}function toArrayBuffer(e,t,r){const n=e.byteOffset+(t??0),s=r??e.byteLength;return e.buffer.slice(n,n+s)}var getU64Encoder=(e={})=>numberEncoderFactory({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,r,n)=>t.setBigUint64(0,BigInt(r),n),size:8}),getU64Decoder=(e={})=>numberDecoderFactory({config:e,get:(t,r)=>t.getBigUint64(0,r),name:"u64",size:8}),getU64Codec=(e={})=>combineCodec(getU64Encoder(e),getU64Decoder(e));class StructError extends TypeError{constructor(t,r){let n;const{message:s,explanation:a,...l}=t,{path:u}=t,d=u.length===0?s:`At path: ${u.join(".")} -- ${s}`;super(a??d),a!=null&&(this.cause=d),Object.assign(this,l),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}}function isIterable(e){return isObject(e)&&typeof e[Symbol.iterator]=="function"}function isObject(e){return typeof e=="object"&&e!=null}function isNonArrayObject(e){return isObject(e)&&!Array.isArray(e)}function print(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function shiftIterator(e){const{done:t,value:r}=e.next();return t?void 0:r}function toFailure(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:s,branch:a}=t,{type:l}=r,{refinement:u,message:d=`Expected a value of type \`${l}\`${u?` with refinement \`${u}\``:""}, but received: \`${print(n)}\``}=e;return{value:n,type:l,refinement:u,key:s[s.length-1],path:s,branch:a,...e,message:d}}function*toFailures(e,t,r,n){isIterable(e)||(e=[e]);for(const s of e){const a=toFailure(s,t,r,n);a&&(yield a)}}function*run(e,t,r={}){const{path:n=[],branch:s=[e],coerce:a=!1,mask:l=!1}=r,u={path:n,branch:s,mask:l};a&&(e=t.coercer(e,u));let d="valid";for(const p of t.validator(e,u))p.explanation=r.message,d="not_valid",yield[p,void 0];for(let[p,h,x]of t.entries(e,u)){const w=run(h,x,{path:p===void 0?n:[...n,p],branch:p===void 0?s:[...s,h],coerce:a,mask:l,message:r.message});for(const g of w)g[0]?(d=g[0].refinement!=null?"not_refined":"not_valid",yield[g[0],void 0]):a&&(h=g[1],p===void 0?e=h:e instanceof Map?e.set(p,h):e instanceof Set?e.add(h):isObject(e)&&(h!==void 0||p in e)&&(e[p]=h))}if(d!=="not_valid")for(const p of t.refiner(e,u))p.explanation=r.message,d="not_refined",yield[p,void 0];d==="valid"&&(yield[void 0,e])}let Struct$1=class{constructor(t){const{type:r,schema:n,validator:s,refiner:a,coercer:l=d=>d,entries:u=function*(){}}=t;this.type=r,this.schema=n,this.entries=u,this.coercer=l,s?this.validator=(d,p)=>{const h=s(d,p);return toFailures(h,p,this,d)}:this.validator=()=>[],a?this.refiner=(d,p)=>{const h=a(d,p);return toFailures(h,p,this,d)}:this.refiner=()=>[]}assert(t,r){return assert$1(t,this,r)}create(t,r){return create(t,this,r)}is(t){return is(t,this)}mask(t,r){return mask(t,this,r)}validate(t,r={}){return validate$1(t,this,r)}};function assert$1(e,t,r){const n=validate$1(e,t,{message:r});if(n[0])throw n[0]}function create(e,t,r){const n=validate$1(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function mask(e,t,r){const n=validate$1(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function is(e,t){return!validate$1(e,t)[0]}function validate$1(e,t,r={}){const n=run(e,t,r),s=shiftIterator(n);return s[0]?[new StructError(s[0],function*(){for(const l of n)l[0]&&(yield l[0])}),void 0]:[void 0,s[1]]}function define(e,t){return new Struct$1({type:e,schema:null,validator:t})}function any(){return define("any",()=>!0)}function array(e){return new Struct$1({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${print(t)}`}})}function boolean(){return define("boolean",e=>typeof e=="boolean")}function instance(e){return define("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${print(t)}`)}function literal(e){const t=print(e),r=typeof e;return new Struct$1({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(n){return n===e||`Expected the literal \`${t}\`, but received: ${print(n)}`}})}function never(){return define("never",()=>!1)}function nullable(e){return new Struct$1({...e,validator:(t,r)=>t===null||e.validator(t,r),refiner:(t,r)=>t===null||e.refiner(t,r)})}function number(){return define("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${print(e)}`)}function optional(e){return new Struct$1({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function record(e,t){return new Struct$1({type:"record",schema:null,*entries(r){if(isObject(r))for(const n in r){const s=r[n];yield[n,n,e],yield[n,s,t]}},validator(r){return isNonArrayObject(r)||`Expected an object, but received: ${print(r)}`},coercer(r){return isNonArrayObject(r)?{...r}:r}})}function string(){return define("string",e=>typeof e=="string"||`Expected a string, but received: ${print(e)}`)}function tuple(e){const t=never();return new Struct$1({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let s=0;s<n;s++)yield[s,r[s],e[s]||t]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${print(r)}`},coercer(r){return Array.isArray(r)?r.slice():r}})}function type(e){const t=Object.keys(e);return new Struct$1({type:"type",schema:e,*entries(r){if(isObject(r))for(const n of t)yield[n,r[n],e[n]]},validator(r){return isNonArrayObject(r)||`Expected an object, but received: ${print(r)}`},coercer(r){return isNonArrayObject(r)?{...r}:r}})}function union(e){const t=e.map(r=>r.type).join(" | ");return new Struct$1({type:"union",schema:null,coercer(r,n){for(const s of e){const[a,l]=s.validate(r,{coerce:!0,mask:n.mask});if(!a)return l}return r},validator(r,n){const s=[];for(const a of e){const[...l]=run(r,a,n),[u]=l;if(u[0])for(const[d]of l)d&&s.push(d);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${print(r)}`,...s]}})}function unknown(){return define("unknown",()=>!0)}function coerce(e,t,r){return new Struct$1({...e,coercer:(n,s)=>is(n,t)?e.coercer(r(n,s),s):e.coercer(n,s)})}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return typeof e=="string"&®EX.test(e)}var byteToHex=[];for(var i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase();if(!validate(r))throw TypeError("Stringified UUID is invalid");return r}var _nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(e,t,r){var n=t&&r||0,s=t||new Array(16);e=e||{};var a=e.node||_nodeId,l=e.clockseq!==void 0?e.clockseq:_clockseq;if(a==null||l==null){var u=e.random||(e.rng||rng)();a==null&&(a=_nodeId=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),l==null&&(l=_clockseq=(u[6]<<8|u[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:_lastNSecs+1,h=d-_lastMSecs+(p-_lastNSecs)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>_lastMSecs)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=d,_lastNSecs=p,_clockseq=l,d+=122192928e5;var x=((d&268435455)*1e4+p)%4294967296;s[n++]=x>>>24&255,s[n++]=x>>>16&255,s[n++]=x>>>8&255,s[n++]=x&255;var w=d/4294967296*1e4&268435455;s[n++]=w>>>8&255,s[n++]=w&255,s[n++]=w>>>24&15|16,s[n++]=w>>>16&255,s[n++]=l>>>8|128,s[n++]=l&255;for(var g=0;g<6;++g)s[n+g]=a[g];return t||stringify(s)}function parse(e){if(!validate(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function stringToBytes(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",URL$1="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function v35(e,t,r){function n(s,a,l,u){if(typeof s=="string"&&(s=stringToBytes(s)),typeof a=="string"&&(a=parse(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(a),d.set(s,a.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){u=u||0;for(var p=0;p<16;++p)l[u+p]=d[p];return l}return stringify(d)}try{n.name=e}catch{}return n.DNS=DNS,n.URL=URL$1,n}function md5(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return md5ToHexEncodedArray(wordsToMd5(bytesToWords(e),e.length*8))}function md5ToHexEncodedArray(e){for(var t=[],r=e.length*32,n="0123456789abcdef",s=0;s<r;s+=8){var a=e[s>>5]>>>s%32&255,l=parseInt(n.charAt(a>>>4&15)+n.charAt(a&15),16);t.push(l)}return t}function getOutputLength(e){return(e+64>>>9<<4)+14+1}function wordsToMd5(e,t){e[t>>5]|=128<<t%32,e[getOutputLength(t)-1]=t;for(var r=1732584193,n=-271733879,s=-1732584194,a=271733878,l=0;l<e.length;l+=16){var u=r,d=n,p=s,h=a;r=md5ff(r,n,s,a,e[l],7,-680876936),a=md5ff(a,r,n,s,e[l+1],12,-389564586),s=md5ff(s,a,r,n,e[l+2],17,606105819),n=md5ff(n,s,a,r,e[l+3],22,-1044525330),r=md5ff(r,n,s,a,e[l+4],7,-176418897),a=md5ff(a,r,n,s,e[l+5],12,1200080426),s=md5ff(s,a,r,n,e[l+6],17,-1473231341),n=md5ff(n,s,a,r,e[l+7],22,-45705983),r=md5ff(r,n,s,a,e[l+8],7,1770035416),a=md5ff(a,r,n,s,e[l+9],12,-1958414417),s=md5ff(s,a,r,n,e[l+10],17,-42063),n=md5ff(n,s,a,r,e[l+11],22,-1990404162),r=md5ff(r,n,s,a,e[l+12],7,1804603682),a=md5ff(a,r,n,s,e[l+13],12,-40341101),s=md5ff(s,a,r,n,e[l+14],17,-1502002290),n=md5ff(n,s,a,r,e[l+15],22,1236535329),r=md5gg(r,n,s,a,e[l+1],5,-165796510),a=md5gg(a,r,n,s,e[l+6],9,-1069501632),s=md5gg(s,a,r,n,e[l+11],14,643717713),n=md5gg(n,s,a,r,e[l],20,-373897302),r=md5gg(r,n,s,a,e[l+5],5,-701558691),a=md5gg(a,r,n,s,e[l+10],9,38016083),s=md5gg(s,a,r,n,e[l+15],14,-660478335),n=md5gg(n,s,a,r,e[l+4],20,-405537848),r=md5gg(r,n,s,a,e[l+9],5,568446438),a=md5gg(a,r,n,s,e[l+14],9,-1019803690),s=md5gg(s,a,r,n,e[l+3],14,-187363961),n=md5gg(n,s,a,r,e[l+8],20,1163531501),r=md5gg(r,n,s,a,e[l+13],5,-1444681467),a=md5gg(a,r,n,s,e[l+2],9,-51403784),s=md5gg(s,a,r,n,e[l+7],14,1735328473),n=md5gg(n,s,a,r,e[l+12],20,-1926607734),r=md5hh(r,n,s,a,e[l+5],4,-378558),a=md5hh(a,r,n,s,e[l+8],11,-2022574463),s=md5hh(s,a,r,n,e[l+11],16,1839030562),n=md5hh(n,s,a,r,e[l+14],23,-35309556),r=md5hh(r,n,s,a,e[l+1],4,-1530992060),a=md5hh(a,r,n,s,e[l+4],11,1272893353),s=md5hh(s,a,r,n,e[l+7],16,-155497632),n=md5hh(n,s,a,r,e[l+10],23,-1094730640),r=md5hh(r,n,s,a,e[l+13],4,681279174),a=md5hh(a,r,n,s,e[l],11,-358537222),s=md5hh(s,a,r,n,e[l+3],16,-722521979),n=md5hh(n,s,a,r,e[l+6],23,76029189),r=md5hh(r,n,s,a,e[l+9],4,-640364487),a=md5hh(a,r,n,s,e[l+12],11,-421815835),s=md5hh(s,a,r,n,e[l+15],16,530742520),n=md5hh(n,s,a,r,e[l+2],23,-995338651),r=md5ii(r,n,s,a,e[l],6,-198630844),a=md5ii(a,r,n,s,e[l+7],10,1126891415),s=md5ii(s,a,r,n,e[l+14],15,-1416354905),n=md5ii(n,s,a,r,e[l+5],21,-57434055),r=md5ii(r,n,s,a,e[l+12],6,1700485571),a=md5ii(a,r,n,s,e[l+3],10,-1894986606),s=md5ii(s,a,r,n,e[l+10],15,-1051523),n=md5ii(n,s,a,r,e[l+1],21,-2054922799),r=md5ii(r,n,s,a,e[l+8],6,1873313359),a=md5ii(a,r,n,s,e[l+15],10,-30611744),s=md5ii(s,a,r,n,e[l+6],15,-1560198380),n=md5ii(n,s,a,r,e[l+13],21,1309151649),r=md5ii(r,n,s,a,e[l+4],6,-145523070),a=md5ii(a,r,n,s,e[l+11],10,-1120210379),s=md5ii(s,a,r,n,e[l+2],15,718787259),n=md5ii(n,s,a,r,e[l+9],21,-343485551),r=safeAdd(r,u),n=safeAdd(n,d),s=safeAdd(s,p),a=safeAdd(a,h)}return[r,n,s,a]}function bytesToWords(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(getOutputLength(t)),n=0;n<t;n+=8)r[n>>5]|=(e[n/8]&255)<<n%32;return r}function safeAdd(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function bitRotateLeft(e,t){return e<<t|e>>>32-t}function md5cmn(e,t,r,n,s,a){return safeAdd(bitRotateLeft(safeAdd(safeAdd(t,e),safeAdd(n,a)),s),r)}function md5ff(e,t,r,n,s,a,l){return md5cmn(t&r|~t&n,e,t,s,a,l)}function md5gg(e,t,r,n,s,a,l){return md5cmn(t&n|r&~n,e,t,s,a,l)}function md5hh(e,t,r,n,s,a,l){return md5cmn(t^r^n,e,t,s,a,l)}function md5ii(e,t,r,n,s,a,l){return md5cmn(r^(t|~n),e,t,s,a,l)}var v3=v35("v3",48,md5);function v4(e,t,r){e=e||{};var n=e.random||(e.rng||rng)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=n[s];return t}return stringify(n)}function f(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function ROTL(e,t){return e<<t|e>>>32-t}function sha1(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=[];for(var s=0;s<n.length;++s)e.push(n.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,l=Math.ceil(a/16),u=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];u[d]=p}u[l-1][14]=(e.length-1)*8/Math.pow(2,32),u[l-1][14]=Math.floor(u[l-1][14]),u[l-1][15]=(e.length-1)*8&4294967295;for(var x=0;x<l;++x){for(var w=new Uint32Array(80),g=0;g<16;++g)w[g]=u[x][g];for(var b=16;b<80;++b)w[b]=ROTL(w[b-3]^w[b-8]^w[b-14]^w[b-16],1);for(var v=r[0],E=r[1],j=r[2],R=r[3],T=r[4],z=0;z<80;++z){var L=Math.floor(z/20),V=ROTL(v,5)+f(L,E,j,R)+T+t[L]+w[z]>>>0;T=R,R=j,j=ROTL(E,30)>>>0,E=v,v=V}r[0]=r[0]+v>>>0,r[1]=r[1]+E>>>0,r[2]=r[2]+j>>>0,r[3]=r[3]+R>>>0,r[4]=r[4]+T>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var v5=v35("v5",80,sha1);const nil="00000000-0000-0000-0000-000000000000";function version$1(e){if(!validate(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const esmBrowser=Object.freeze(Object.defineProperty({__proto__:null,NIL:nil,parse,stringify,v1,v3,v4,v5,validate,version:version$1},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(esmBrowser);var generateRequest_1,hasRequiredGenerateRequest;function requireGenerateRequest(){if(hasRequiredGenerateRequest)return generateRequest_1;hasRequiredGenerateRequest=1;const e=require$$4.v4;return generateRequest_1=function(r,n,s,a){if(typeof r!="string")throw new TypeError(r+" must be a string");a=a||{};const l=typeof a.version=="number"?a.version:2;if(l!==1&&l!==2)throw new TypeError(l+" must be 1 or 2");const u={method:r};if(l===2&&(u.jsonrpc="2.0"),n){if(typeof n!="object"&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");u.params=n}if(typeof s>"u"){const d=typeof a.generator=="function"?a.generator:function(){return e()};u.id=d(u,a)}else l===2&&s===null?a.notificationIdNull&&(u.id=null):u.id=s;return u},generateRequest_1}var browser$1,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$1;hasRequiredBrowser$1=1;const e=require$$4.v4,t=requireGenerateRequest(),r=function(n,s){if(!(this instanceof r))return new r(n,s);s||(s={}),this.options={reviver:typeof s.reviver<"u"?s.reviver:null,replacer:typeof s.replacer<"u"?s.replacer:null,generator:typeof s.generator<"u"?s.generator:function(){return e()},version:typeof s.version<"u"?s.version:2,notificationIdNull:typeof s.notificationIdNull=="boolean"?s.notificationIdNull:!1},this.callServer=n};return browser$1=r,r.prototype.request=function(n,s,a,l){const u=this;let d=null;const p=Array.isArray(n)&&typeof s=="function";if(this.options.version===1&&p)throw new TypeError("JSON-RPC 1.0 does not support batching");if(p||!p&&n&&typeof n=="object"&&typeof s=="function")l=s,d=n;else{typeof a=="function"&&(l=a,a=void 0);const w=typeof l=="function";try{d=t(n,s,a,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(g){if(w)return l(g);throw g}if(!w)return d}let x;try{x=JSON.stringify(d,this.options.replacer)}catch(w){return l(w)}return this.callServer(x,function(w,g){u._parseResponse(w,g,l)}),d},r.prototype._parseResponse=function(n,s,a){if(n){a(n);return}if(!s)return a();let l;try{l=JSON.parse(s,this.options.reviver)}catch(u){return a(u)}if(a.length===3)if(Array.isArray(l)){const u=function(p){return typeof p.error<"u"},d=function(p){return!u(p)};return a(null,l.filter(u),l.filter(d))}else return a(null,l.error,l.result);a(null,l)},browser$1}var browserExports=requireBrowser$1();const RpcClient=getDefaultExportFromCjs$1(browserExports);var eventemitter3={exports:{}},hasRequiredEventemitter3;function requireEventemitter3(){return hasRequiredEventemitter3||(hasRequiredEventemitter3=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function s(d,p,h){this.fn=d,this.context=p,this.once=h||!1}function a(d,p,h,x,w){if(typeof h!="function")throw new TypeError("The listener must be a function");var g=new s(h,x||d,w),b=r?r+p:p;return d._events[b]?d._events[b].fn?d._events[b]=[d._events[b],g]:d._events[b].push(g):(d._events[b]=g,d._eventsCount++),d}function l(d,p){--d._eventsCount===0?d._events=new n:delete d._events[p]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var p=[],h,x;if(this._eventsCount===0)return p;for(x in h=this._events)t.call(h,x)&&p.push(r?x.slice(1):x);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(h)):p},u.prototype.listeners=function(p){var h=r?r+p:p,x=this._events[h];if(!x)return[];if(x.fn)return[x.fn];for(var w=0,g=x.length,b=new Array(g);w<g;w++)b[w]=x[w].fn;return b},u.prototype.listenerCount=function(p){var h=r?r+p:p,x=this._events[h];return x?x.fn?1:x.length:0},u.prototype.emit=function(p,h,x,w,g,b){var v=r?r+p:p;if(!this._events[v])return!1;var E=this._events[v],j=arguments.length,R,T;if(E.fn){switch(E.once&&this.removeListener(p,E.fn,void 0,!0),j){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,h),!0;case 3:return E.fn.call(E.context,h,x),!0;case 4:return E.fn.call(E.context,h,x,w),!0;case 5:return E.fn.call(E.context,h,x,w,g),!0;case 6:return E.fn.call(E.context,h,x,w,g,b),!0}for(T=1,R=new Array(j-1);T<j;T++)R[T-1]=arguments[T];E.fn.apply(E.context,R)}else{var z=E.length,L;for(T=0;T<z;T++)switch(E[T].once&&this.removeListener(p,E[T].fn,void 0,!0),j){case 1:E[T].fn.call(E[T].context);break;case 2:E[T].fn.call(E[T].context,h);break;case 3:E[T].fn.call(E[T].context,h,x);break;case 4:E[T].fn.call(E[T].context,h,x,w);break;default:if(!R)for(L=1,R=new Array(j-1);L<j;L++)R[L-1]=arguments[L];E[T].fn.apply(E[T].context,R)}}return!0},u.prototype.on=function(p,h,x){return a(this,p,h,x,!1)},u.prototype.once=function(p,h,x){return a(this,p,h,x,!0)},u.prototype.removeListener=function(p,h,x,w){var g=r?r+p:p;if(!this._events[g])return this;if(!h)return l(this,g),this;var b=this._events[g];if(b.fn)b.fn===h&&(!w||b.once)&&(!x||b.context===x)&&l(this,g);else{for(var v=0,E=[],j=b.length;v<j;v++)(b[v].fn!==h||w&&!b[v].once||x&&b[v].context!==x)&&E.push(b[v]);E.length?this._events[g]=E.length===1?E[0]:E:l(this,g)}return this},u.prototype.removeAllListeners=function(p){var h;return p?(h=r?r+p:p,this._events[h]&&l(this,h)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(eventemitter3)),eventemitter3.exports}var eventemitter3Exports=requireEventemitter3();const EventEmitter=getDefaultExportFromCjs$1(eventemitter3Exports);var WebSocketBrowserImpl=class extends EventEmitter{socket;constructor(e,t,r){super(),this.socket=new window.WebSocket(e,r),this.socket.onopen=()=>this.emit("open"),this.socket.onmessage=n=>this.emit("message",n.data),this.socket.onerror=n=>this.emit("error",n),this.socket.onclose=n=>{this.emit("close",n.code,n.reason)}}send(e,t,r){const n=r||t;try{this.socket.send(e),n()}catch(s){n(s)}}close(e,t){this.socket.close(e,t)}addEventListener(e,t,r){this.socket.addEventListener(e,t,r)}};function WebSocket$1(e,t){return new WebSocketBrowserImpl(e,t)}var DefaultDataPack=class{encode(e){return JSON.stringify(e)}decode(e){return JSON.parse(e)}},CommonClient=class extends EventEmitter{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor(e,t="ws://localhost:8080",{autoconnect:r=!0,reconnect:n=!0,reconnect_interval:s=1e3,max_reconnects:a=5,...l}={},u,d){super(),this.webSocketFactory=e,this.queue={},this.rpc_id=0,this.address=t,this.autoconnect=r,this.ready=!1,this.reconnect=n,this.reconnect_timer_id=void 0,this.reconnect_interval=s,this.max_reconnects=a,this.rest_options=l,this.current_reconnects=0,this.generate_request_id=u||(()=>typeof this.rpc_id=="number"?++this.rpc_id:Number(this.rpc_id)+1),d?this.dataPack=d:this.dataPack=new DefaultDataPack,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(e,t,r,n){return!n&&typeof r=="object"&&(n=r,r=null),new Promise((s,a)=>{if(!this.ready)return a(new Error("socket not ready"));const l=this.generate_request_id(e,t),u={jsonrpc:"2.0",method:e,params:t||void 0,id:l};this.socket.send(this.dataPack.encode(u),n,d=>{if(d)return a(d);this.queue[l]={promise:[s,a]},r&&(this.queue[l].timeout=setTimeout(()=>{delete this.queue[l],a(new Error("reply timeout"))},r))})})}async login(e){const t=await this.call("rpc.login",e);if(!t)throw new Error("authentication failed");return t}async listMethods(){return await this.call("__listMethods")}notify(e,t){return new Promise((r,n)=>{if(!this.ready)return n(new Error("socket not ready"));const s={jsonrpc:"2.0",method:e,params:t};this.socket.send(this.dataPack.encode(s),a=>{if(a)return n(a);r()})})}async subscribe(e){typeof e=="string"&&(e=[e]);const t=await this.call("rpc.on",e);if(typeof e=="string"&&t[e]!=="ok")throw new Error("Failed subscribing to an event '"+e+"' with: "+t[e]);return t}async unsubscribe(e){typeof e=="string"&&(e=[e]);const t=await this.call("rpc.off",e);if(typeof e=="string"&&t[e]!=="ok")throw new Error("Failed unsubscribing from an event with: "+t);return t}close(e,t){this.socket&&this.socket.close(e||1e3,t)}setAutoReconnect(e){this.reconnect=e}setReconnectInterval(e){this.reconnect_interval=e}setMaxReconnects(e){this.max_reconnects=e}getCurrentReconnects(){return this.current_reconnects}getMaxReconnects(){return this.max_reconnects}isReconnecting(){return this.reconnect_timer_id!==void 0}willReconnect(){return this.reconnect&&(this.max_reconnects===0||this.current_reconnects<this.max_reconnects)}_connect(e,t){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:r})=>{r instanceof ArrayBuffer&&(r=bufferExports.Buffer.from(r).toString());try{r=this.dataPack.decode(r)}catch{return}if(r.notification&&this.listeners(r.notification).length){if(!Object.keys(r.params).length)return this.emit(r.notification);const n=[r.notification];if(r.params.constructor===Object)n.push(r.params);else for(let s=0;s<r.params.length;s++)n.push(r.params[s]);return Promise.resolve().then(()=>{this.emit.apply(this,n)})}if(!this.queue[r.id])return r.method?Promise.resolve().then(()=>
vendor: 5,332 bytes, line 2226
2226{this.emit(r.method,r?.params)}):void 0;"error"in r=="result"in r&&this.queue[r.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[r.id].timeout&&clearTimeout(this.queue[r.id].timeout),r.error?this.queue[r.id].promise[1](r.error):this.queue[r.id].promise[0](r.result),delete this.queue[r.id]}),this.socket.addEventListener("error",r=>this.emit("error",r)),this.socket.addEventListener("close",({code:r,reason:n})=>{this.ready&&setTimeout(()=>this.emit("close",r,n),0),this.ready=!1,this.socket=void 0,r!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)?this.reconnect_timer_id=setTimeout(()=>this._connect(e,t),this.reconnect_interval):this.reconnect&&this.max_reconnects>0&&this.current_reconnects>=this.max_reconnects&&setTimeout(()=>this.emit("max_reconnects_reached",r,n),1))})}};const _0n$1=BigInt(0),_1n$1=BigInt(1),_2n$2=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113),SHA3_PI=[],SHA3_ROTL=[],_SHA3_IOTA=[];for(let e=0,t=_1n$1,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],SHA3_PI.push(2*(5*n+r)),SHA3_ROTL.push((e+1)*(e+2)/2%64);let s=_0n$1;for(let a=0;a<7;a++)t=(t<<_1n$1^(t>>_7n)*_0x71n)%_256n,t&_2n$2&&(s^=_1n$1<<(_1n$1<<BigInt(a))-_1n$1);_SHA3_IOTA.push(s)}const IOTAS=split(_SHA3_IOTA,!0),SHA3_IOTA_H=IOTAS[0],SHA3_IOTA_L=IOTAS[1],rotlH=(e,t,r)=>r>32?rotlBH(e,t,r):rotlSH(e,t,r),rotlL=(e,t,r)=>r>32?rotlBL(e,t,r):rotlSL(e,t,r);function keccakP(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let l=0;l<10;l++)r[l]=e[l]^e[l+10]^e[l+20]^e[l+30]^e[l+40];for(let l=0;l<10;l+=2){const u=(l+8)%10,d=(l+2)%10,p=r[d],h=r[d+1],x=rotlH(p,h,1)^r[u],w=rotlL(p,h,1)^r[u+1];for(let g=0;g<50;g+=10)e[l+g]^=x,e[l+g+1]^=w}let s=e[2],a=e[3];for(let l=0;l<24;l++){const u=SHA3_ROTL[l],d=rotlH(s,a,u),p=rotlL(s,a,u),h=SHA3_PI[l];s=e[h],a=e[h+1],e[h]=d,e[h+1]=p}for(let l=0;l<50;l+=10){for(let u=0;u<10;u++)r[u]=e[l+u];for(let u=0;u<10;u++)e[l+u]^=~r[(u+2)%10]&r[(u+4)%10]}e[0]^=SHA3_IOTA_H[n],e[1]^=SHA3_IOTA_L[n]}clean(r)}class Keccak extends Hash{constructor(t,r,n,s=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=a,anumber(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=u32(this.state)}clone(){return this._cloneInto()}keccak(){swap32IfBE(this.state32),keccakP(this.state32,this.rounds),swap32IfBE(this.state32),this.posOut=0,this.pos=0}update(t){aexists(this),t=toBytes(t),abytes(t);const{blockLen:r,state:n}=this,s=t.length;for(let a=0;a<s;){const l=Math.min(r-this.pos,s-a);for(let u=0;u<l;u++)n[this.pos++]^=t[a++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:n,blockLen:s}=this;t[n]^=r,(r&128)!==0&&n===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){aexists(this,!1),abytes(t),this.finish();const r=this.state,{blockLen:n}=this;for(let s=0,a=t.length;s<a;){this.posOut>=n&&this.keccak();const l=Math.min(n-this.posOut,a-s);t.set(r.subarray(this.posOut,this.posOut+l),s),this.posOut+=l,s+=l}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return anumber(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(aoutput(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,clean(this.state)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:s,rounds:a,enableXOF:l}=this;return t||(t=new Keccak(r,n,s,l,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=s,t.enableXOF=l,t.destroyed=this.destroyed,t}}const gen=(e,t,r)=>createHasher(()=>new Keccak(t,e,r)),keccak_256=gen(1,136,256/8);class HMAC extends Hash{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,ahash(t);const n=toBytes(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,a=new Uint8Array(s);a.set(n.length>s?t.create().update(n).digest():n);for(let l=0;l<a.length;l++)a[l]^=54;this.iHash.update(a),this.oHash=t.create();for(let l=0;l<a.length;l++)a[l]^=106;this.oHash.update(a),clean(a)}update(t){return aexists(this),this.iHash.update(t),this}digestInto(t){aexists(this),abytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:s,destroyed:a,blockLen:l,outputLen:u}=this;return t=t,t.finished=s,t.destroyed=a,t.blockLen=l,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const hmac=(e,t,r)=>new HMAC(e,t).update(r).digest();hmac.create=(e,t)=>
vendor: 4,348 bytes, line 2226
2226new HMAC(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const divNearest=(e,t)=>(e+(e>=0?t:-t)/_2n$1)/t;function _splitEndoScalar(e,t,r){const[[n,s],[a,l]]=t,u=divNearest(l*e,r),d=divNearest(-s*e,r);let p=e-u*n-d*a,h=-u*s-d*l;const x=p<_0n,w=h<_0n;x&&(p=-p),w&&(h=-h);const g=bitMask(Math.ceil(bitLen(r)/2))+_1n;if(p<_0n||p>=g||h<_0n||h>=g)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:x,k1:p,k2neg:w,k2:h}}function validateSigFormat(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function validateSigOpts(e,t){const r={};for(let n of Object.keys(t))r[n]=e[n]===void 0?t[n]:e[n];return _abool2(r.lowS,"lowS"),_abool2(r.prehash,"prehash"),r.format!==void 0&&validateSigFormat(r.format),r}class DERErr extends Error{constructor(t=""){super(t)}}const DER={Err:DERErr,_tlv:{encode:(e,t)=>{const{Err:r}=DER;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const n=t.length/2,s=numberToHexUnpadded(n);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=n>127?numberToHexUnpadded(s.length/2|128):"";return numberToHexUnpadded(e)+a+s+t},decode(e,t){const{Err:r}=DER;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const s=t[n++],a=!!(s&128);let l=0;if(!a)l=s;else{const d=s&127;if(!d)throw new r("tlv.decode(long): indefinite length not supported");if(d>4)throw new r("tlv.decode(long): byte length is too big");const p=t.subarray(n,n+d);if(p.length!==d)throw new r("tlv.decode: length bytes not complete");if(p[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const h of p)l=l<<8|h;if(n+=d,l<128)throw new r("tlv.decode(long): not minimal encoding")}const u=t.subarray(n,n+l);if(u.length!==l)throw new r("tlv.decode: wrong value length");return{v:u,l:t.subarray(n+l)}}},_int:{encode(e){const{Err:t}=DER;if(e<_0n)throw new t("integer: negative integers are not allowed");let r=numberToHexUnpadded(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=DER;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return bytesToNumberBE(e)}},toSig(e){const{Err:t,_int:r,_tlv:n}=DER,s=ensureBytes("signature",e),{v:a,l}=n.decode(48,s);if(l.length)throw new t("invalid signature: left bytes after parsing");const{v:u,l:d}=n.decode(2,a),{v:p,l:h}=n.decode(2,d);if(h.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(p)}},hexFromSig(e){const{_tlv:t,_int:r}=DER,n=t.encode(2,r.encode(e.r)),s=t.encode(2,r.encode(e.s)),a=n+s;return t.encode(48,a)}},_0n=BigInt(0),_1n=BigInt(1),_2n$1=BigInt(2),_3n=BigInt(3),_4n=BigInt(4);function _normFnElement(e,t){const{BYTES:r}=e;let n;if(typeof t=="bigint")n=t;else{let s=ensureBytes("private key",t);try{n=e.fromBytes(s)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof t}`)}}if(!e.isValidNot0(n))throw new Error("invalid private key: out of range [1..N-1]");return n}function weierstrassN(e,t={}){const r=_createCurveFields("weierstrass",e,t),{Fp:n,Fn:s}=r;let a=r.CURVE;const{h:l,n:u}=a;_validateObject(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:d}=t;if(d&&(!n.is0(a.a)||typeof d.beta!="bigint"||!Array.isArray(d.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const p=getWLengths(n,s);function h(){if(!n.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function x(Z,O,S){const{x:N,y:F}=O.toAffine(),k=n.toBytes(N);if(_abool2(S,"isCompressed"),S){h();const W=!n.isOdd(F);return concatBytes(pprefix(W),k)}else return concatBytes(Uint8Array.of(4),k,n.toBytes(F))}function w(Z){_abytes2(Z,void 0,"Point");const{publicKey:O,publicKeyUncompressed:S}=p,N=Z.length,F=Z[0],k=Z.subarray(1);if(N===O&&(F===2||F===3)){const W=n.fromBytes(k);if(!n.isValid(W))throw new Error("bad point: is not on curve, wrong x");const q=v(W);let A;
vendor: 13,511 bytes, line 2226
2226try{A=n.sqrt(q)}catch(M){const G=M instanceof Error?": "+M.message:"";throw new Error("bad point: is not on curve, sqrt error"+G)}h();const D=n.isOdd(A);return(F&1)===1!==D&&(A=n.neg(A)),{x:W,y:A}}else if(N===S&&F===4){const W=n.BYTES,q=n.fromBytes(k.subarray(0,W)),A=n.fromBytes(k.subarray(W,W*2));if(!E(q,A))throw new Error("bad point: is not on curve");return{x:q,y:A}}else throw new Error(`bad point: got length ${N}, expected compressed=${O} or uncompressed=${S}`)}const g=t.toBytes||x,b=t.fromBytes||w;function v(Z){const O=n.sqr(Z),S=n.mul(O,Z);return n.add(n.add(S,n.mul(Z,a.a)),a.b)}function E(Z,O){const S=n.sqr(O),N=v(Z);return n.eql(S,N)}if(!E(a.Gx,a.Gy))throw new Error("bad curve params: generator point");const j=n.mul(n.pow(a.a,_3n),_4n),R=n.mul(n.sqr(a.b),BigInt(27));if(n.is0(n.add(j,R)))throw new Error("bad curve params: a or b");function T(Z,O,S=!1){if(!n.isValid(O)||S&&n.is0(O))throw new Error(`bad point coordinate ${Z}`);return O}function z(Z){if(!(Z instanceof B))throw new Error("ProjectivePoint expected")}function L(Z){if(!d||!d.basises)throw new Error("no endo");return _splitEndoScalar(Z,d.basises,s.ORDER)}const V=memoized((Z,O)=>{const{X:S,Y:N,Z:F}=Z;if(n.eql(F,n.ONE))return{x:S,y:N};const k=Z.is0();O==null&&(O=k?n.ONE:n.inv(F));const W=n.mul(S,O),q=n.mul(N,O),A=n.mul(F,O);if(k)return{x:n.ZERO,y:n.ZERO};if(!n.eql(A,n.ONE))throw new Error("invZ was invalid");return{x:W,y:q}}),$=memoized(Z=>{if(Z.is0()){if(t.allowInfinityPoint&&!n.is0(Z.Y))return;throw new Error("bad point: ZERO")}const{x:O,y:S}=Z.toAffine();if(!n.isValid(O)||!n.isValid(S))throw new Error("bad point: x or y not field elements");if(!E(O,S))throw new Error("bad point: equation left != right");if(!Z.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function U(Z,O,S,N,F){return S=new B(n.mul(S.X,Z),S.Y,S.Z),O=negateCt(N,O),S=negateCt(F,S),O.add(S)}class B{constructor(O,S,N){this.X=T("x",O),this.Y=T("y",S,!0),this.Z=T("z",N),Object.freeze(this)}static CURVE(){return a}static fromAffine(O){const{x:S,y:N}=O||{};if(!O||!n.isValid(S)||!n.isValid(N))throw new Error("invalid affine point");if(O instanceof B)throw new Error("projective point not allowed");return n.is0(S)&&n.is0(N)?B.ZERO:new B(S,N,n.ONE)}static fromBytes(O){const S=B.fromAffine(b(_abytes2(O,void 0,"point")));return S.assertValidity(),S}static fromHex(O){return B.fromBytes(ensureBytes("pointHex",O))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(O=8,S=!0){return H.createCache(this,O),S||this.multiply(_3n),this}assertValidity(){$(this)}hasEvenY(){const{y:O}=this.toAffine();if(!n.isOdd)throw new Error("Field doesn't support isOdd");return!n.isOdd(O)}equals(O){z(O);const{X:S,Y:N,Z:F}=this,{X:k,Y:W,Z:q}=O,A=n.eql(n.mul(S,q),n.mul(k,F)),D=n.eql(n.mul(N,q),n.mul(W,F));return A&&D}negate(){return new B(this.X,n.neg(this.Y),this.Z)}double(){const{a:O,b:S}=a,N=n.mul(S,_3n),{X:F,Y:k,Z:W}=this;let q=n.ZERO,A=n.ZERO,D=n.ZERO,_=n.mul(F,F),M=n.mul(k,k),G=n.mul(W,W),Q=n.mul(F,k);return Q=n.add(Q,Q),D=n.mul(F,W),D=n.add(D,D),q=n.mul(O,D),A=n.mul(N,G),A=n.add(q,A),q=n.sub(M,A),A=n.add(M,A),A=n.mul(q,A),q=n.mul(Q,q),D=n.mul(N,D),G=n.mul(O,G),Q=n.sub(_,G),Q=n.mul(O,Q),Q=n.add(Q,D),D=n.add(_,_),_=n.add(D,_),_=n.add(_,G),_=n.mul(_,Q),A=n.add(A,_),G=n.mul(k,W),G=n.add(G,G),_=n.mul(G,Q),q=n.sub(q,_),D=n.mul(G,M),D=n.add(D,D),D=n.add(D,D),new B(q,A,D)}add(O){z(O);const{X:S,Y:N,Z:F}=this,{X:k,Y:W,Z:q}=O;let A=n.ZERO,D=n.ZERO,_=n.ZERO;const M=a.a,G=n.mul(a.b,_3n);let Q=n.mul(S,k),te=n.mul(N,W),ne=n.mul(F,q),ae=n.add(S,N),fe=n.add(k,W);ae=n.mul(ae,fe),fe=n.add(Q,te),ae=n.sub(ae,fe),fe=n.add(S,F);let Se=n.add(k,q);return fe=n.mul(fe,Se),Se=n.add(Q,ne),fe=n.sub(fe,Se),Se=n.add(N,F),A=n.add(W,q),Se=n.mul(Se,A),A=n.add(te,ne),Se=n.sub(Se,A),_=n.mul(M,fe),A=n.mul(G,ne),_=n.add(A,_),A=n.sub(te,_),_=n.add(te,_),D=n.mul(A,_),te=n.add(Q,Q),te=n.add(te,Q),ne=n.mul(M,ne),fe=n.mul(G,fe),te=n.add(te,ne),ne=n.sub(Q,ne),ne=n.mul(M,ne),fe=n.add(fe,ne),Q=n.mul(te,fe),D=n.add(D,Q),Q=n.mul(Se,fe),A=n.mul(ae,A),A=n.sub(A,Q),Q=n.mul(ae,te),_=n.mul(Se,_),_=n.add(_,Q),new B(A,D,_)}subtract(O){return this.add(O.negate())}is0(){return this.equals(B.ZERO)}multiply(O){const{endo:S}=t;if(!s.isValidNot0(O))throw new Error("invalid scalar: out of range");let N,F;const k=W=>H.cached(this,W,q=>normalizeZ(B,q));if(S){const{k1neg:W,k1:q,k2neg:A,k2:D}=L(O),{p:_,f:M}=k(q),{p:G,f:Q}=k(D);F=M.add(Q),N=U(S.beta,_,G,W,A)}else{const{p:W,f:q}=k(O);N=W,F=q}return normalizeZ(B,[N,F])[0]}multiplyUnsafe(O){const{endo:S}=t,N=this;if(!s.isValid(O))throw new Error("invalid scalar: out of range");if(O===_0n||N.is0())return B.ZERO;if(O===_1n)return N;if(H.hasCache(this))return this.multiply(O);if(S){const{k1neg:F,k1:k,k2neg:W,k2:q}=L(O),{p1:A,p2:D}=mulEndoUnsafe(B,N,k,q);return U(S.beta,A,D,F,W)}else return H.unsafe(N,O)}multiplyAndAddUnsafe(O,S,N){const F=this.multiplyUnsafe(S).add(O.multiplyUnsafe(N));return F.is0()?void 0:F}toAffine(O){return V(this,O)}isTorsionFree(){const{isTorsionFree:O}=t;return l===_1n?!0:O?O(B,this):H.unsafe(this,u).is0()}clearCofactor(){const{clearCofactor:O}=t;return l===_1n?this:O?O(B,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(O=!0){return _abool2(O,"isCompressed"),this.assertValidity(),g(B,this,O)}toHex(O=!0){return bytesToHex(this.toBytes(O))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(O=!0){return this.toBytes(O)}_setWindowSize(O){this.precompute(O)}static normalizeZ(O){return normalizeZ(B,O)}static msm(O,S){return pippenger(B,s,O,S)}static fromPrivateKey(O){return B.BASE.multiply(_normFnElement(s,O))}}B.BASE=new B(a.Gx,a.Gy,n.ONE),B.ZERO=new B(n.ZERO,n.ONE,n.ZERO),B.Fp=n,B.Fn=s;const P=s.BITS,H=new wNAF(B,t.endo?Math.ceil(P/2):P);return B.BASE.precompute(8),B}function pprefix(e){return Uint8Array.of(e?2:3)}function getWLengths(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function ecdh(e,t={}){const{Fn:r}=e,n=t.randomBytes||randomBytes,s=Object.assign(getWLengths(e.Fp,r),{seed:getMinHashLength(r.ORDER)});function a(g){try{return!!_normFnElement(r,g)}catch{return!1}}function l(g,b){const{publicKey:v,publicKeyUncompressed:E}=s;try{const j=g.length;return b===!0&&j!==v||b===!1&&j!==E?!1:!!e.fromBytes(g)}catch{return!1}}function u(g=n(s.seed)){return mapHashToField(_abytes2(g,s.seed,"seed"),r.ORDER)}function d(g,b=!0){return e.BASE.multiply(_normFnElement(r,g)).toBytes(b)}function p(g){const b=u(g);return{secretKey:b,publicKey:d(b)}}function h(g){if(typeof g=="bigint")return!1;if(g instanceof e)return!0;const{secretKey:b,publicKey:v,publicKeyUncompressed:E}=s;if(r.allowedLengths||b===v)return;const j=ensureBytes("key",g).length;return j===v||j===E}function x(g,b,v=!0){if(h(g)===!0)throw new Error("first arg must be private key");if(h(b)===!1)throw new Error("second arg must be public key");const E=_normFnElement(r,g);return e.fromHex(b).multiply(E).toBytes(v)}return Object.freeze({getPublicKey:d,getSharedSecret:x,keygen:p,Point:e,utils:{isValidSecretKey:a,isValidPublicKey:l,randomSecretKey:u,isValidPrivateKey:a,randomPrivateKey:u,normPrivateKeyToScalar:g=>_normFnElement(r,g),precompute(g=8,b=e.BASE){return b.precompute(g,!1)}},lengths:s})}function ecdsa(e,t,r={}){ahash(t),_validateObject(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const n=r.randomBytes||randomBytes,s=r.hmac||((S,...N)=>hmac(t,S,concatBytes(...N))),{Fp:a,Fn:l}=e,{ORDER:u,BITS:d}=l,{keygen:p,getPublicKey:h,getSharedSecret:x,utils:w,lengths:g}=ecdh(e,r),b={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},v="compact";function E(S){const N=u>>_1n;return S>N}function j(S,N){if(!l.isValidNot0(N))throw new Error(`invalid signature ${S}: out of range 1..Point.Fn.ORDER`);return N}function R(S,N){validateSigFormat(N);const F=g.signature,k=N==="compact"?F:N==="recovered"?F+1:void 0;return _abytes2(S,k,`${N} signature`)}class T{constructor(N,F,k){this.r=j("r",N),this.s=j("s",F),k!=null&&(this.recovery=k),Object.freeze(this)}static fromBytes(N,F=v){R(N,F);let k;if(F==="der"){const{r:D,s:_}=DER.toSig(_abytes2(N));return new T(D,_)}F==="recovered"&&(k=N[0],F="compact",N=N.subarray(1));const W=l.BYTES,q=N.subarray(0,W),A=N.subarray(W,W*2);return new T(l.fromBytes(q),l.fromBytes(A),k)}static fromHex(N,F){return this.fromBytes(hexToBytes(N),F)}addRecoveryBit(N){return new T(this.r,this.s,N)}recoverPublicKey(N){const F=a.ORDER,{r:k,s:W,recovery:q}=this;if(q==null||![0,1,2,3].includes(q))throw new Error("recovery id invalid");if(u*_2n$1<F&&q>1)throw new Error("recovery id is ambiguous for h>1 curve");const D=q===2||q===3?k+u:k;if(!a.isValid(D))throw new Error("recovery id 2 or 3 invalid");const _=a.toBytes(D),M=e.fromBytes(concatBytes(pprefix((q&1)===0),_)),G=l.inv(D),Q=L(ensureBytes("msgHash",N)),te=l.create(-Q*G),ne=l.create(W*G),ae=e.BASE.multiplyUnsafe(te).add(M.multiplyUnsafe(ne));if(ae.is0())throw new Error("point at infinify");return ae.assertValidity(),ae}hasHighS(){return E(this.s)}toBytes(N=v){if(validateSigFormat(N),N==="der")return hexToBytes(DER.hexFromSig(this));const F=l.toBytes(this.r),k=l.toBytes(this.s);if(N==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return concatBytes(Uint8Array.of(this.recovery),F,k)}return concatBytes(F,k)}toHex(N){return bytesToHex(this.toBytes(N))}assertValidity(){}static fromCompact(N){return T.fromBytes(ensureBytes("sig",N),"compact")}static fromDER(N){return T.fromBytes(ensureBytes("sig",N),"der")}normalizeS(){return this.hasHighS()?new T(this.r,l.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return bytesToHex(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return bytesToHex(this.toBytes("compact"))}}const z=r.bits2int||function(N){if(N.length>8192)throw new Error("input is too large");const F=bytesToNumberBE(N),k=N.length*8-d;return k>0?F>>BigInt(k):F},L=r.bits2int_modN||function(N){return l.create(z(N))},V=bitMask(d);function $(S){return aInRange("num < 2^"+d,S,_0n,V),l.toBytes(S)}function U(S,N){return _abytes2(S,void 0,"message"),N?_abytes2(t(S),void 0,"prehashed message"):S}function B(S,N,F){if(["recovered","canonical"].some(te=>te in F))throw new Error("sign() legacy options not supported");const{lowS:k,prehash:W,extraEntropy:q}=validateSigOpts(F,b);S=U(S,W);const A=L(S),D=_normFnElement(l,N),_=[$(D),$(A)];if(q!=null&&q!==!1){const te=q===!0?n(g.secretKey):q;_.push(ensureBytes("extraEntropy",te))}const M=concatBytes(..._),G=A;function Q(te){const ne=z(te);if(!l.isValidNot0(ne))return;const ae=l.inv(ne),fe=e.BASE.multiply(ne).toAffine(),Se=l.create(fe.x);if(Se===_0n)return;const Ce=l.create(ae*l.create(G+Se*D));if(Ce===_0n)return;let _e=(fe.x===Se?0:2)|Number(fe.y&_1n),Me=Ce;return k&&E(Ce)&&(Me=l.neg(Ce),_e^=1),new T(Se,Me,_e)}return{seed:M,k2sig:Q}}function P(S,N,F={}){S=ensureBytes("message",S);const{seed:k,k2sig:W}=B(S,N,F);return createHmacDrbg(t.outputLen,l.BYTES,s)(k,W)}function H(S){let N;const F=typeof S=="string"||isBytes(S),k=!F&&S!==null&&typeof S=="object"&&typeof S.r=="bigint"&&typeof S.s=="bigint";if(!F&&!k)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(k)N=new T(S.r,S.s);else if(F){try{N=T.fromBytes(ensureBytes("sig",S),"der")}catch(W){if(!(W instanceof DER.Err))throw W}if(!N)try{N=T.fromBytes(ensureBytes("sig",S),"compact")}catch{return!1}}return N||!1}function Z(S,N,F,k={}){const{lowS:W,prehash:q,format:A}=validateSigOpts(k,b);if(F=ensureBytes("publicKey",F),N=U(ensureBytes("message",N),q),"strict"in k)throw new Error("options.strict was renamed to lowS");const D=A===void 0?H(S):T.fromBytes(ensureBytes("sig",S),A);if(D===!1)return!1;try{const _=e.fromBytes(F);if(W&&D.hasHighS())return!1;const{r:M,s:G}=D,Q=L(N),te=l.inv(G),ne=l.create(Q*te),ae=l.create(M*te),fe=e.BASE.multiplyUnsafe(ne).add(_.multiplyUnsafe(ae));return fe.is0()?!1:l.create(fe.x)===M}catch{return!1}}function O(S,N,F={}){const{prehash:k}=validateSigOpts(F,b);return N=U(N,k),T.fromBytes(S,"recovered").recoverPublicKey(N).toBytes()}return Object.freeze({keygen:p,getPublicKey:h,getSharedSecret:x,utils:w,lengths:g,Point:e,sign:P,verify:Z,recoverPublicKey:O,Signature:T,hash:t})}function _weierstrass_legacy_opts_to_new(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp;let n=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(l=>Math.ceil(l/2)))):void 0;const s=Field(t.n,{BITS:e.nBitLength,allowedLengths:n,modFromBytes:e.wrapPrivateKey}),a={Fp:r,Fn:s,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:a}}function _ecdsa_legacy_opts_to_new(e){const{CURVE:t,curveOpts:r}=_weierstrass_legacy_opts_to_new(e),n={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:n}}function _ecdsa_new_output_to_legacy(e,t){const r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,nLength(r.Fn.ORDER,r.Fn.BITS))})}function weierstrass(e){const{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:s}=_ecdsa_legacy_opts_to_new(e),a=weierstrassN(t,r),l=ecdsa(a,n,s);return _ecdsa_new_output_to_legacy(e,l)}
2226/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function createCurve(e,t){const r=n=>weierstrass({...e,hash:n});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1_CURVE={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},secp256k1_ENDO={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},_2n=BigInt(2);function sqrtMod(e){const t=secp256k1_CURVE.p,r=BigInt(3),n=BigInt(6),s=BigInt(11),a=BigInt(22),l=BigInt(23),u=BigInt(44),d=BigInt(88),p=e*e*e%t,h=p*p*e%t,x=pow2(h,r,t)*h%t,w=pow2(x,r,t)*h%t,g=pow2(w,_2n,t)*p%t,b=pow2(g,s,t)*g%t,v=pow2(b,a,t)*b%t,E=pow2(v,u,t)*v%t,j=pow2(E,d,t)*E%t,R=pow2(j,u,t)*v%t,T=pow2(R,r,t)*h%t,z=pow2(T,l,t)*b%t,L=pow2(z,n,t)*p%t,V=pow2(L,_2n,t);if(!Fpk1.eql(Fpk1.sqr(V),e))throw new Error("Cannot find square root");return V}const Fpk1=Field(secp256k1_CURVE.p,{sqrt:sqrtMod}),secp256k1=createCurve({...secp256k1_CURVE,Fp:Fpk1,lowS:!0,endo:secp256k1_ENDO},sha256$1),generatePrivateKey=ed25519.utils.randomPrivateKey,generateKeypair=()=>{const e=ed25519.utils.randomPrivateKey(),t=getPublicKey(e),r=new Uint8Array(64);return r.set(e),r.set(t,32),{publicKey:t,secretKey:r}},getPublicKey=ed25519.getPublicKey;function isOnCurve(e){try{return ed25519.ExtendedPoint.fromHex(e),!0}catch{return!1}}const sign=(e,t)=>ed25519.sign(e,t.slice(0,32)),verify=ed25519.verify,toBuffer=e=>bufferExports.Buffer.isBuffer(e)?e:e instanceof Uint8Array?bufferExports.Buffer.from(e.buffer,e.byteOffset,e.byteLength):bufferExports.Buffer.from(e);class Struct{constructor(t){Object.assign(this,t)}encode(){return bufferExports.Buffer.from(libExports.serialize(SOLANA_SCHEMA,this))}static decode(t){return libExports.deserialize(SOLANA_SCHEMA,this,t)}static decodeUnchecked(t){return libExports.deserializeUnchecked(SOLANA_SCHEMA,this,t)}}class Enum extends Struct{constructor(t){if(super(t),this.enum="",Object.keys(t).length!==1)throw new Error("Enum can only take single value");Object.keys(t).map(r=>{this.enum=r})}}const SOLANA_SCHEMA=new Map;var _PublicKey;const MAX_SEED_LENGTH=32,PUBLIC_KEY_LENGTH=32;function isPublicKeyData(e){return e._bn!==void 0}let uniquePublicKeyCounter=1;class PublicKey extends Struct{constructor(t){if(super({}),this._bn=void 0,isPublicKeyData(t))this._bn=t._bn;else{if(typeof t=="string"){const r=bs58$3.decode(t);if(r.length!=PUBLIC_KEY_LENGTH)throw new Error("Invalid public key input");this._bn=new BN(r)}else this._bn=new BN(t);if(this._bn.byteLength()>PUBLIC_KEY_LENGTH)throw new Error("Invalid public key input")}}static unique(){const t=new PublicKey(uniquePublicKeyCounter);return uniquePublicKeyCounter+=1,new PublicKey(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return bs58$3.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(bufferExports.Buffer);if(t.length===PUBLIC_KEY_LENGTH)return t;const r=bufferExports.Buffer.alloc(32);return t.copy(r,32-t.length),r}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,r,n){const s=bufferExports.Buffer.concat([t.toBuffer(),bufferExports.Buffer.from(r),n.toBuffer()]),a=sha256(s);return new PublicKey(a)}static createProgramAddressSync(t,r){let n=bufferExports.Buffer.alloc(0);t.forEach(function(a){if(a.length>MAX_SEED_LENGTH)throw new TypeError("Max seed length exceeded");n=bufferExports.Buffer.concat([n,toBuffer(a)])}),n=bufferExports.Buffer.concat([n,r.toBuffer(),bufferExports.Buffer.from("ProgramDerivedAddress")]);const s=sha256(n);if(isOnCurve(s))throw new Error("Invalid seeds, address must fall off the curve");return new PublicKey(s)}static async createProgramAddress(t,r){return this.createProgramAddressSync(t,r)}static findProgramAddressSync(t,r){let n=255,s;for(;n!=0;){try{const a=t.concat(bufferExports.Buffer.from([n]));s=this.createProgramAddressSync(a,r)}catch(a){if(a instanceof TypeError)throw a;n--;continue}return[s,n]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,r){return this.findProgramAddressSync(t,r)}static isOnCurve(t){const r=new PublicKey(t);return isOnCurve(r.toBytes())}}_PublicKey=PublicKey;PublicKey.default=new _PublicKey("11111111111111111111111111111111");SOLANA_SCHEMA.set(PublicKey,{kind:"struct",fields:[["_bn","u256"]]});class Account{constructor(t){if(this._publicKey=void 0,this._secretKey=void 0,t){const r=toBuffer(t);if(t.length!==64)throw new Error("bad secret key size");this._publicKey=r.slice(32,64),this._secretKey=r.slice(0,32)}else this._secretKey=toBuffer(generatePrivateKey()),this._publicKey=toBuffer(getPublicKey(this._secretKey))}get publicKey(){return new PublicKey(this._publicKey)}get secretKey(){return bufferExports.Buffer.concat([this._secretKey,this._publicKey],64)}}const BPF_LOADER_DEPRECATED_PROGRAM_ID=new PublicKey("BPFLoader1111111111111111111111111111111111"),PACKET_DATA_SIZE=1232,VERSION_PREFIX_MASK=127,SIGNATURE_LENGTH_IN_BYTES=64;
2226class TransactionExpiredBlockheightExceededError extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(TransactionExpiredBlockheightExceededError.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class TransactionExpiredTimeoutError extends Error{constructor(t,r){super(`Transaction was not confirmed in ${r.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(TransactionExpiredTimeoutError.prototype,"name",{value:"TransactionExpiredTimeoutError"});class TransactionExpiredNonceInvalidError extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}}Object.defineProperty(TransactionExpiredNonceInvalidError.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class MessageAccountKeys{constructor(t,r){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=r}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const r of this.keySegments()){if(t<r.length)return r[t];t-=r.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const n=new Map;this.keySegments().flat().forEach((a,l)=>{n.set(a.toBase58(),l)});const s=a=>{const l=n.get(a.toBase58());if(l===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return l};return t.map(a=>({programIdIndex:s(a.programId),accountKeyIndexes:a.keys.map(l=>s(l.pubkey)),data:a.data}))}}const publicKey=(e="publicKey")=>LayoutExports.blob(32,e),signature=(e="signature")=>LayoutExports.blob(64,e),rustString=(e="string")=>{const t=LayoutExports.struct([LayoutExports.u32("length"),LayoutExports.u32("lengthPadding"),LayoutExports.blob(LayoutExports.offset(LayoutExports.u32(),-8),"chars")],e),r=t.decode.bind(t),n=t.encode.bind(t),s=t;return s.decode=(a,l)=>r(a,l).chars.toString(),s.encode=(a,l,u)=>{const d={chars:bufferExports.Buffer.from(a,"utf8")};return n(d,l,u)},s.alloc=a=>LayoutExports.u32().span+LayoutExports.u32().span+bufferExports.Buffer.from(a,"utf8").length,s},authorized=(e="authorized")=>LayoutExports.struct([publicKey("staker"),publicKey("withdrawer")],e),lockup=(e="lockup")=>LayoutExports.struct([LayoutExports.ns64("unixTimestamp"),LayoutExports.ns64("epoch"),publicKey("custodian")],e),voteInit=(e="voteInit")=>LayoutExports.struct([publicKey("nodePubkey"),publicKey("authorizedVoter"),publicKey("authorizedWithdrawer"),LayoutExports.u8("commission")],e),voteAuthorizeWithSeedArgs=(e="voteAuthorizeWithSeedArgs")=>LayoutExports.struct([LayoutExports.u32("voteAuthorizationType"),publicKey("currentAuthorityDerivedKeyOwnerPubkey"),rustString("currentAuthorityDerivedKeySeed"),publicKey("newAuthorized")],e);function getAlloc(e,t){const r=s=>{if(s.span>=0)return s.span;if(typeof s.alloc=="function")return s.alloc(t[s.property]);if("count"in s&&"elementLayout"in s){const a=t[s.property];if(Array.isArray(a))return a.length*r(s.elementLayout)}else if("fields"in s)return getAlloc({layout:s},t[s.property]);return 0};let n=0;return e.layout.fields.forEach(s=>{n+=r(s)}),n}function decodeLength(e){let t=0,r=0;for(;;){let n=e.shift();if(t|=(n&127)<<r*7,r+=1,(n&128)===0)break}return t}function encodeLength(e,t){let r=t;for(;;){let n=r&127;if(r>>=7,r==0){e.push(n);break}else n|=128,e.push(n)}}function assert(e,t){if(!e)throw new Error(t||"Assertion failed")}class CompiledKeys{constructor(t,r){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=r}static compile(t,r){const n=new Map,s=l=>{const u=l.toBase58();let d=n.get(u);return d===void 0&&(d={isSigner:!1,isWritable:!1,isInvoked:!1},n.set(u,d)),d},a=s(r);a.isSigner=!0,a.isWritable=!0;for(const l of t){s(l.programId).isInvoked=!0;for(const u of l.keys){const d=s(u.pubkey);d.isSigner||=u.isSigner,d.isWritable||=u.isWritable}}return new CompiledKeys(r,n)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];assert(t.length<=256,"Max static account keys length exceeded");const r=t.filter(([,d])=>d.isSigner&&d.isWritable),n=t.filter(([,d])=>d.isSigner&&!d.isWritable),s=t.filter(([,d])=>!d.isSigner&&d.isWritable),a=t.filter(([,d])=>!d.isSigner&&!d.isWritable),l={numRequiredSignatures:r.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:a.length};{assert(r.length>0,"Expected at least one writable signer key");const[d]=r[0];assert(d===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const u=[...r.map(([d])=>new PublicKey(d)),...n.map(([d])=>new PublicKey(d)),...s.map(([d])=>new PublicKey(d)),...a.map(([d])=>new PublicKey(d))];return[l,u]}extractTableLookup(t){const[r,n]=this.drainKeysFoundInLookupTable(t.state.addresses,l=>!l.isSigner&&!l.isInvoked&&l.isWritable),[s,a]=this.drainKeysFoundInLookupTable(t.state.addresses,l=>!l.isSigner&&!l.isInvoked&&!l.isWritable);if(!(r.length===0&&s.length===0))return[{accountKey:t.key,writableIndexes:r,readonlyIndexes:s},{writable:n,readonly:a}]}drainKeysFoundInLookupTable(t,r){const n=new Array,s=new Array;for(const[a,l]of this.keyMetaMap.entries())if(r(l)){const u=new PublicKey(a),d=t.findIndex(p=>p.equals(u));d>=0&&(assert(d<256,"Max lookup table index exceeded"),n.push(d),s.push(u),this.keyMetaMap.delete(a))}return[n,s]}}const END_OF_BUFFER_ERROR_MESSAGE="Reached end of buffer unexpectedly";function guardedShift(e){if(e.length===0)throw new Error(END_OF_BUFFER_ERROR_MESSAGE);return e.shift()}function guardedSplice(e,...t){const[r]=t;if(t.length===2?r+(t[1]??0)>e.length:r>=e.length)throw new Error(END_OF_BUFFER_ERROR_MESSAGE);return e.splice(...t)}class Message{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(r=>new PublicKey(r)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(r=>this.indexToProgramIds.set(r.programIdIndex,this.accountKeys[r.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:bs58$3.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new MessageAccountKeys(this.staticAccountKeys)}static compile(t){const r=CompiledKeys.compile(t.instructions,t.payerKey),[n,s]=r.getMessageComponents(),l=new MessageAccountKeys(s).compileInstructions(t.instructions).map(u=>({programIdIndex:u.programIdIndex,accounts:u.accountKeyIndexes,data:bs58$3.encode(u.data)}));return new Message({header:n,accountKeys:s,recentBlockhash:t.recentBlockhash,instructions:l})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const r=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const n=t-r,a=this.accountKeys.length-r-this.header.numReadonlyUnsignedAccounts;return n<a}else{const n=r-this.header.numReadonlySignedAccounts;return t<n}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,r)=>!this.isProgramId(r))}serialize(){const t=this.accountKeys.length;let r=[];encodeLength(r,t);const n=this.instructions.map(x=>{const{accounts:w,programIdIndex:g}=x,b=Array.from(bs58$3.decode(x.data));let v=[];encodeLength(v,w.length);let E=[];return encodeLength(E,b.length),{programIdIndex:g,keyIndicesCount:bufferExports.Buffer.from(v),keyIndices:w,dataLength:bufferExports.Buffer.from(E),data:b}}
2226);let s=[];encodeLength(s,n.length);let a=bufferExports.Buffer.alloc(PACKET_DATA_SIZE);bufferExports.Buffer.from(s).copy(a);let l=s.length;n.forEach(x=>{const g=LayoutExports.struct([LayoutExports.u8("programIdIndex"),LayoutExports.blob(x.keyIndicesCount.length,"keyIndicesCount"),LayoutExports.seq(LayoutExports.u8("keyIndex"),x.keyIndices.length,"keyIndices"),LayoutExports.blob(x.dataLength.length,"dataLength"),LayoutExports.seq(LayoutExports.u8("userdatum"),x.data.length,"data")]).encode(x,a,l);l+=g}),a=a.slice(0,l);const u=LayoutExports.struct([LayoutExports.blob(1,"numRequiredSignatures"),LayoutExports.blob(1,"numReadonlySignedAccounts"),LayoutExports.blob(1,"numReadonlyUnsignedAccounts"),LayoutExports.blob(r.length,"keyCount"),LayoutExports.seq(publicKey("key"),t,"keys"),publicKey("recentBlockhash")]),d={numRequiredSignatures:bufferExports.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:bufferExports.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:bufferExports.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:bufferExports.Buffer.from(r),keys:this.accountKeys.map(x=>toBuffer(x.toBytes())),recentBlockhash:bs58$3.decode(this.recentBlockhash)};let p=bufferExports.Buffer.alloc(2048);const h=u.encode(d,p);return a.copy(p,h),p.slice(0,h+a.length)}static from(t){let r=[...t];const n=guardedShift(r);if(n!==(n&VERSION_PREFIX_MASK))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const s=guardedShift(r),a=guardedShift(r),l=decodeLength(r);let u=[];for(let w=0;w<l;w++){const g=guardedSplice(r,0,PUBLIC_KEY_LENGTH);u.push(new PublicKey(bufferExports.Buffer.from(g)))}const d=guardedSplice(r,0,PUBLIC_KEY_LENGTH),p=decodeLength(r);let h=[];for(let w=0;w<p;w++){const g=guardedShift(r),b=decodeLength(r),v=guardedSplice(r,0,b),E=decodeLength(r),j=guardedSplice(r,0,E),R=bs58$3.encode(bufferExports.Buffer.from(j));h.push({programIdIndex:g,accounts:v,data:R})}const x={header:{numRequiredSignatures:n,numReadonlySignedAccounts:s,numReadonlyUnsignedAccounts:a},recentBlockhash:bs58$3.encode(bufferExports.Buffer.from(d)),accountKeys:u,instructions:h};return new Message(x)}}class MessageV0{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const r of this.addressTableLookups)t+=r.readonlyIndexes.length+r.writableIndexes.length;return t}getAccountKeys(t){let r;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");r=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)r=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new MessageAccountKeys(this.staticAccountKeys,r)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const r=this.header.numRequiredSignatures,n=this.staticAccountKeys.length;if(t>=n){const s=t-n,a=this.addressTableLookups.reduce((l,u)=>l+u.writableIndexes.length,0);return s<a}else if(t>=this.header.numRequiredSignatures){const s=t-r,l=n-r-this.header.numReadonlyUnsignedAccounts;return s<l}else{const s=r-this.header.numReadonlySignedAccounts;return t<s}}resolveAddressTableLookups(t){const r={writable:[],readonly:[]};for(const n of this.addressTableLookups){const s=t.find(a=>a.key.equals(n.accountKey));if(!s)throw new Error(`Failed to find address lookup table account for table key ${n.accountKey.toBase58()}`);for(const a of n.writableIndexes)if(a<s.state.addresses.length)r.writable.push(s.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${n.accountKey.toBase58()}`);for(const a of n.readonlyIndexes)if(a<s.state.addresses.length)r.readonly.push(s.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${n.accountKey.toBase58()}`)}return r}static compile(t){const r=CompiledKeys.compile(t.instructions,t.payerKey),n=new Array,s={writable:new Array,readonly:new Array},a=t.addressLookupTableAccounts||[];for(const h of a){const x=r.extractTableLookup(h);if(x!==void 0){const[w,{writable:g,readonly:b}]=x;n.push(w),s.writable.push(...g),s.readonly.push(...b)}}const[l,u]=r.getMessageComponents(),p=new MessageAccountKeys(u,s).compileInstructions(t.instructions);return new MessageV0({header:l,staticAccountKeys:u,recentBlockhash:t.recentBlockhash,compiledInstructions:p,addressTableLookups:n})}serialize(){const t=Array();encodeLength(t,this.staticAccountKeys.length);const r=this.serializeInstructions(),n=Array();encodeLength(n,this.compiledInstructions.length);const s=this.serializeAddressTableLookups(),a=Array();encodeLength(a,this.addressTableLookups.length);const l=LayoutExports.struct([LayoutExports.u8("prefix"),LayoutExports.struct([LayoutExports.u8("numRequiredSignatures"),LayoutExports.u8("numReadonlySignedAccounts"),LayoutExports.u8("numReadonlyUnsignedAccounts")],"header"),LayoutExports.blob(t.length,"staticAccountKeysLength"),LayoutExports.seq(publicKey(),this.staticAccountKeys.length,"staticAccountKeys"),publicKey("recentBlockhash"),LayoutExports.blob(n.length,"instructionsLength"),LayoutExports.blob(r.length,"serializedInstructions"),LayoutExports.blob(a.length,"addressTableLookupsLength"),LayoutExports.blob(s.length,"serializedAddressTableLookups")]),u=new Uint8Array(PACKET_DATA_SIZE),p=l.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(h=>h.toBytes()),recentBlockhash:bs58$3.decode(this.recentBlockhash),instructionsLength:new Uint8Array(n),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:s},u);return u.slice(0,p)}serializeInstructions(){let t=0;
2226const r=new Uint8Array(PACKET_DATA_SIZE);for(const n of this.compiledInstructions){const s=Array();encodeLength(s,n.accountKeyIndexes.length);const a=Array();encodeLength(a,n.data.length);const l=LayoutExports.struct([LayoutExports.u8("programIdIndex"),LayoutExports.blob(s.length,"encodedAccountKeyIndexesLength"),LayoutExports.seq(LayoutExports.u8(),n.accountKeyIndexes.length,"accountKeyIndexes"),LayoutExports.blob(a.length,"encodedDataLength"),LayoutExports.blob(n.data.length,"data")]);t+=l.encode({programIdIndex:n.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(s),accountKeyIndexes:n.accountKeyIndexes,encodedDataLength:new Uint8Array(a),data:n.data},r,t)}return r.slice(0,t)}serializeAddressTableLookups(){let t=0;const r=new Uint8Array(PACKET_DATA_SIZE);for(const n of this.addressTableLookups){const s=Array();encodeLength(s,n.writableIndexes.length);const a=Array();encodeLength(a,n.readonlyIndexes.length);const l=LayoutExports.struct([publicKey("accountKey"),LayoutExports.blob(s.length,"encodedWritableIndexesLength"),LayoutExports.seq(LayoutExports.u8(),n.writableIndexes.length,"writableIndexes"),LayoutExports.blob(a.length,"encodedReadonlyIndexesLength"),LayoutExports.seq(LayoutExports.u8(),n.readonlyIndexes.length,"readonlyIndexes")]);t+=l.encode({accountKey:n.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(s),writableIndexes:n.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(a),readonlyIndexes:n.readonlyIndexes},r,t)}return r.slice(0,t)}static deserialize(t){let r=[...t];const n=guardedShift(r),s=n&VERSION_PREFIX_MASK;assert(n!==s,"Expected versioned message but received legacy message");const a=s;assert(a===0,`Expected versioned message with version 0 but found version ${a}`);const l={numRequiredSignatures:guardedShift(r),numReadonlySignedAccounts:guardedShift(r),numReadonlyUnsignedAccounts:guardedShift(r)},u=[],d=decodeLength(r);for(let b=0;b<d;b++)u.push(new PublicKey(guardedSplice(r,0,PUBLIC_KEY_LENGTH)));const p=bs58$3.encode(guardedSplice(r,0,PUBLIC_KEY_LENGTH)),h=decodeLength(r),x=[];for(let b=0;b<h;b++){const v=guardedShift(r),E=decodeLength(r),j=guardedSplice(r,0,E),R=decodeLength(r),T=new Uint8Array(guardedSplice(r,0,R));x.push({programIdIndex:v,accountKeyIndexes:j,data:T})}const w=decodeLength(r),g=[];for(let b=0;b<w;b++){const v=new PublicKey(guardedSplice(r,0,PUBLIC_KEY_LENGTH)),E=decodeLength(r),j=guardedSplice(r,0,E),R=decodeLength(r),T=guardedSplice(r,0,R);g.push({accountKey:v,writableIndexes:j,readonlyIndexes:T})}return new MessageV0({header:l,staticAccountKeys:u,recentBlockhash:p,compiledInstructions:x,addressTableLookups:g})}}const VersionedMessage={deserializeMessageVersion(e){const t=e[0],r=t&VERSION_PREFIX_MASK;return r===t?"legacy":r},deserialize:e=>{const t=VersionedMessage.deserializeMessageVersion(e);if(t==="legacy")return Message.from(e);if(t===0)return MessageV0.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};let TransactionStatus=(function(e){return e[e.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",e[e.PROCESSED=1]="PROCESSED",e[e.TIMED_OUT=2]="TIMED_OUT",e[e.NONCE_INVALID=3]="NONCE_INVALID",e})({});const DEFAULT_SIGNATURE=bufferExports.Buffer.alloc(SIGNATURE_LENGTH_IN_BYTES).fill(0);class TransactionInstruction{constructor(t){this.keys=void 0,this.programId=void 0,this.data=bufferExports.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:r,isWritable:n})=>({pubkey:t.toJSON(),isSigner:r,isWritable:n})),programId:this.programId.toJSON(),data:[...this.data]}}}class Transaction{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:r,nonceInfo:n}=t;this.minNonceContextSlot=r,this.nonceInfo=n}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:r,lastValidBlockHeight:n}=t;this.recentBlockhash=r,this.lastValidBlockHeight=n}else{const{recentBlockhash:r,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=r}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
vendor: 4,188 bytes, line 2226
2226ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(r=>{"instructions"in r?this.instructions=this.instructions.concat(r.instructions):"data"in r&&"programId"in r&&"keys"in r?this.instructions.push(r):this.instructions.push(new TransactionInstruction(r))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,r;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?r=[this.nonceInfo.nonceInstruction,...this.instructions]:r=this.instructions):(t=this.recentBlockhash,r=this.instructions),!t)throw new Error("Transaction recentBlockhash required");r.length<1&&console.warn("No instructions provided");let n;if(this.feePayer)n=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)n=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let v=0;v<r.length;v++)if(r[v].programId===void 0)throw new Error(`Transaction instruction index ${v} has undefined program id`);const s=[],a=[];r.forEach(v=>{v.keys.forEach(j=>{a.push({...j})});const E=v.programId.toString();s.includes(E)||s.push(E)}),s.forEach(v=>{a.push({pubkey:new PublicKey(v),isSigner:!1,isWritable:!1})});const l=[];a.forEach(v=>{const E=v.pubkey.toString(),j=l.findIndex(R=>R.pubkey.toString()===E);j>-1?(l[j].isWritable=l[j].isWritable||v.isWritable,l[j].isSigner=l[j].isSigner||v.isSigner):l.push(v)}),l.sort(function(v,E){if(v.isSigner!==E.isSigner)return v.isSigner?-1:1;if(v.isWritable!==E.isWritable)return v.isWritable?-1:1;const j={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return v.pubkey.toBase58().localeCompare(E.pubkey.toBase58(),"en",j)});const u=l.findIndex(v=>v.pubkey.equals(n));if(u>-1){const[v]=l.splice(u,1);v.isSigner=!0,v.isWritable=!0,l.unshift(v)}else l.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const v of this.signatures){const E=l.findIndex(j=>j.pubkey.equals(v.publicKey));if(E>-1)l[E].isSigner||(l[E].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${v.publicKey.toString()}`)}let d=0,p=0,h=0;const x=[],w=[];l.forEach(({pubkey:v,isSigner:E,isWritable:j})=>{E?(x.push(v.toString()),d+=1,j||(p+=1)):(w.push(v.toString()),j||(h+=1))});const g=x.concat(w),b=r.map(v=>{const{data:E,programId:j}=v;return{programIdIndex:g.indexOf(j.toString()),accounts:v.keys.map(R=>g.indexOf(R.pubkey.toString())),data:bs58$3.encode(E)}});return b.forEach(v=>{assert(v.programIdIndex>=0),v.accounts.forEach(E=>assert(E>=0))}),new Message({header:{numRequiredSignatures:d,numReadonlySignedAccounts:p,numReadonlyUnsignedAccounts:h},accountKeys:g,recentBlockhash:t,instructions:b})}_compile(){const t=this.compileMessage(),r=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===r.length&&this.signatures.every((s,a)=>r[a].equals(s.publicKey))||(this.signatures=r.map(n=>({signature:null,publicKey:n}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");const r=new Set;this.signatures=t.filter(n=>{const s=n.toString();return r.has(s)?!1:(r.add(s),!0)}).map(n=>({signature:null,publicKey:n}))}sign(...t){if(t.length===0)throw new Error("No signers");const r=new Set,n=[];for(const a of t){const l=a.publicKey.toString();r.has(l)||(r.add(l),n.push(a))}this.signatures=n.map(a=>({signature:null,publicKey:a.publicKey}));const s=this._compile();this._partialSign(s,...n)}partialSign(...t){if(t.length===0)throw new Error("No signers");const r=new Set,n=[];for(const a of t){const l=a.publicKey.toString();r.has(l)||(r.add(l),n.push(a))}const s=this._compile();
2226this._partialSign(s,...n)}_partialSign(t,...r){const n=t.serialize();r.forEach(s=>{const a=sign(n,s.secretKey);this._addSignature(s.publicKey,toBuffer(a))})}addSignature(t,r){this._compile(),this._addSignature(t,r)}_addSignature(t,r){assert(r.length===64);const n=this.signatures.findIndex(s=>t.equals(s.publicKey));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=bufferExports.Buffer.from(r)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,r){const n={};for(const{signature:s,publicKey:a}of this.signatures)s===null?r&&(n.missing||=[]).push(a):verify(s,t,a.toBytes())||(n.invalid||=[]).push(a);return n.invalid||n.missing?n:void 0}serialize(t){const{requireAllSignatures:r,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),s=this.serializeMessage();if(n){const a=this._getMessageSignednessErrors(s,r);if(a){let l="Signature verification failed.";throw a.invalid&&(l+=` 2227Invalid signature for public key${a.invalid.length===1?"":"(s)"} [\`${a.invalid.map(u=>u.toBase58()).join("`, `")}\`].`),a.missing&&(l+=` 2228Missing signature for public key${a.missing.length===1?"":"(s)"} [\`${a.missing.map(u=>u.toBase58()).join("`, `")}\`].`),new Error(l)}}return this._serialize(s)}_serialize(t){const{signatures:r}=this,n=[];encodeLength(n,r.length);const s=n.length+r.length*64+t.length,a=bufferExports.Buffer.alloc(s);return assert(r.length<256),bufferExports.Buffer.from(n).copy(a,0),r.forEach(({signature:l},u)=>{l!==null&&(assert(l.length===64,"signature has invalid length"),bufferExports.Buffer.from(l).copy(a,n.length+u*64))}),t.copy(a,n.length+r.length*64),assert(a.length<=PACKET_DATA_SIZE,`Transaction too large: ${a.length} > ${PACKET_DATA_SIZE}`),a}get keys(){return assert(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return assert(this.instructions.length===1),this.instructions[0].programId}get data(){return assert(this.instructions.length===1),this.instructions[0].data}static from(t){let r=[...t];const n=decodeLength(r);let s=[];for(let a=0;a<n;a++){const l=guardedSplice(r,0,SIGNATURE_LENGTH_IN_BYTES);s.push(bs58$3.encode(bufferExports.Buffer.from(l)))}return Transaction.populate(Message.from(r),s)}static populate(t,r=[]){const n=new Transaction;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),r.forEach((s,a)=>{const l={signature:s==bs58$3.encode(DEFAULT_SIGNATURE)?null:bs58$3.decode(s),publicKey:t.accountKeys[a]};n.signatures.push(l)}),t.instructions.forEach(s=>{const a=s.accounts.map(l=>{const u=t.accountKeys[l];return{pubkey:u,isSigner:n.signatures.some(d=>d.publicKey.toString()===u.toString())||t.isAccountSigner(l),isWritable:t.isAccountWritable(l)}});n.instructions.push(new TransactionInstruction({keys:a,programId:t.accountKeys[s.programIdIndex],data:bs58$3.decode(s.data)}))}),n._message=t,n._json=n.toJSON(),n}}class TransactionMessage{constructor(t){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}static decompile(t,r){const{header:n,compiledInstructions:s,recentBlockhash:a}=t,{numRequiredSignatures:l,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:d}=n,p=l-u;assert(p>0,"Message header is invalid");const h=t.staticAccountKeys.length-l-d;assert(h>=0,"Message header is invalid");const x=t.getAccountKeys(r),w=x.get(0);if(w===void 0)throw new Error("Failed to decompile message because no account keys were found");const g=[];for(const b of s){const v=[];for(const j of b.accountKeyIndexes){const R=x.get(j);if(R===void 0)throw new Error(`Failed to find key for account key index ${j}`);const T=j<l;let z;T?z=j<p:j<x.staticAccountKeys.length?z=j-l<h:z=j-x.staticAccountKeys.length<x.accountKeysFromLookups.writable.length,v.push({pubkey:R,isSigner:j<n.numRequiredSignatures,isWritable:z})}const E=x.get(b.programIdIndex);if(E===void 0)throw new Error(`Failed to find program id for program id index ${b.programIdIndex}`);g.push(new TransactionInstruction({programId:E,data:toBuffer(b.data),keys:v}))}return new TransactionMessage({payerKey:w,instructions:g,recentBlockhash:a})}compileToLegacyMessage(){return Message.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(t){return MessageV0.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}class VersionedTransaction{get version(){return this.message.version}constructor(t,r){if(this.signatures=void 0,this.message=void 0,r!==void 0)assert(r.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=r;else{const n=[];for(let s=0;s<t.header.numRequiredSignatures;s++)n.push(new Uint8Array(SIGNATURE_LENGTH_IN_BYTES));this.signatures=n}this.message=t}serialize(){const t=this.message.serialize(),r=Array();encodeLength(r,this.signatures.length);const n=LayoutExports.struct([LayoutExports.blob(r.length,"encodedSignaturesLength"),LayoutExports.seq(signature(),this.signatures.length,"signatures"),LayoutExports.blob(t.length,"serializedMessage")]),s=new Uint8Array(2048),a=n.encode({encodedSignaturesLength:new Uint8Array(r),signatures:this.signatures,serializedMessage:t},s);return s.slice(0,a)}static deserialize(t){let r=[...t];const n=[],s=decodeLength(r);for(let l=0;l<s;l++)n.push(new Uint8Array(guardedSplice(r,0,SIGNATURE_LENGTH_IN_BYTES)));const a=VersionedMessage.deserialize(new Uint8Array(r));return new VersionedTransaction(a,n)}sign(t){const r=this.message.serialize(),n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const s of t){const a=n.findIndex(l=>l.equals(s.publicKey));assert(a>=0,`Cannot sign with non signer key ${s.publicKey.toBase58()}`),this.signatures[a]=sign(r,s.secretKey)}}addSignature(t,r){assert(r.byteLength===64,"Signature must be 64 bytes long");const s=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(a=>a.equals(t));assert(s>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[s]=r}}const NUM_TICKS_PER_SECOND=160,DEFAULT_TICKS_PER_SLOT=64,NUM_SLOTS_PER_SECOND=NUM_TICKS_PER_SECOND/DEFAULT_TICKS_PER_SLOT,MS_PER_SLOT=1e3/NUM_SLOTS_PER_SECOND,SYSVAR_CLOCK_PUBKEY=new PublicKey("SysvarC1ock11111111111111111111111111111111"),SYSVAR_EPOCH_SCHEDULE_PUBKEY=new PublicKey("SysvarEpochSchedu1e111111111111111111111111"),SYSVAR_INSTRUCTIONS_PUBKEY=new PublicKey("Sysvar1nstructions1111111111111111111111111"),SYSVAR_RECENT_BLOCKHASHES_PUBKEY=new PublicKey("SysvarRecentB1ockHashes11111111111111111111"),SYSVAR_RENT_PUBKEY=new PublicKey("SysvarRent111111111111111111111111111111111"),SYSVAR_REWARDS_PUBKEY=new PublicKey("SysvarRewards111111111111111111111111111111"),SYSVAR_SLOT_HASHES_PUBKEY=new PublicKey("SysvarS1otHashes111111111111111111111111111"),SYSVAR_SLOT_HISTORY_PUBKEY=new PublicKey("SysvarS1otHistory11111111111111111111111111"),SYSVAR_STAKE_HISTORY_PUBKEY=new PublicKey("SysvarStakeHistory1111111111111111111111111");
2228class SendTransactionError extends Error{constructor({action:t,signature:r,transactionMessage:n,logs:s}){const a=s?`Logs: 2229${JSON.stringify(s.slice(-10),null,2)}. `:"",l="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";let u;switch(t){case"send":u=`Transaction ${r} resulted in an error. 2230${n}. `+a+l;break;case"simulate":u=`Simulation failed. 2231Message: ${n}. 2232`+a+l;break;default:u=`Unknown action '${(d=>d)(t)}'`}super(u),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=r,this.transactionMessage=n,this.transactionLogs=s||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const t=this.transactionLogs;if(!(t!=null&&typeof t=="object"&&"then"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((r,n)=>{t.getTransaction(this.signature).then(s=>{if(s&&s.meta&&s.meta.logMessages){const a=s.meta.logMessages;this.transactionLogs=a,r(a)}else n(new Error("Log messages not found"))}).catch(n)})),await this.transactionLogs}}const SolanaJSONRPCErrorCode={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class SolanaJSONRPCError extends Error{constructor({code:t,message:r,data:n},s){super(s!=null?`${s}: ${r}`:r),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}async function sendAndConfirmTransaction(e,t,r,n){const s=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment,maxRetries:n.maxRetries,minContextSlot:n.minContextSlot},a=await e.sendTransaction(t,r,s);let l;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)l=(await e.confirmTransaction({abortSignal:n?.abortSignal,signature:a,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},n&&n.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){const{nonceInstruction:u}=t.nonceInfo,d=u.keys[0].pubkey;l=(await e.confirmTransaction({abortSignal:n?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:d,nonceValue:t.nonceInfo.nonce,signature:a},n&&n.commitment)).value}else n?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),l=(await e.confirmTransaction(a,n&&n.commitment)).value;if(l.err)throw a!=null?new SendTransactionError({action:"send",signature:a,transactionMessage:`Status: (${JSON.stringify(l)})`}):new Error(`Transaction ${a} failed (${JSON.stringify(l)})`);return a}function sleep(e){return new Promise(t=>setTimeout(t,e))}function encodeData(e,t){const r=e.layout.span>=0?e.layout.span:getAlloc(e,t),n=bufferExports.Buffer.alloc(r),s=Object.assign({instruction:e.index},t);return e.layout.encode(s,n),n}function decodeData$1(e,t){let r;try{r=e.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(r.instruction!==e.index)throw new Error(`invalid instruction; instruction index mismatch ${r.instruction} != ${e.index}`);return r}const FeeCalculatorLayout=LayoutExports.nu64("lamportsPerSignature"),NonceAccountLayout=LayoutExports.struct([LayoutExports.u32("version"),LayoutExports.u32("state"),publicKey("authorizedPubkey"),publicKey("nonce"),LayoutExports.struct([FeeCalculatorLayout],"feeCalculator")]),NONCE_ACCOUNT_LENGTH=NonceAccountLayout.span;class NonceAccount{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const r=NonceAccountLayout.decode(toBuffer(t),0);return new NonceAccount({authorizedPubkey:new PublicKey(r.authorizedPubkey),nonce:new PublicKey(r.nonce).toString(),feeCalculator:r.feeCalculator})}}function u64(e){const t=LayoutExports.blob(8,e),r=t.decode.bind(t),n=t.encode.bind(t),s=t,a=getU64Codec();return s.decode=(l,u)=>{const d=r(l,u);return a.decode(d)},s.encode=(l,u,d)=>{const p=a.encode(l);return n(p,u,d)},s}class SystemInstruction{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=LayoutExports.u32("instruction").decode(t.data);let s;for(const[a,l]of Object.entries(SYSTEM_INSTRUCTION_LAYOUTS))if(l.index==n){s=a;break}if(!s)throw new Error("Instruction type incorrect; not a SystemInstruction");return s}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:r,space:n,programId:s}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:r,space:n,programId:new PublicKey(s)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:r}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:r}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r,seed:n,programId:s}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:r,seed:n,programId:new PublicKey(s)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:r}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:r}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:r,seed:n,space:s,programId:a}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new PublicKey(r),seed:n,space:s,programId:new PublicKey(a)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:r}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new PublicKey(r)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:r,seed:n,programId:s}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new PublicKey(r),seed:n,programId:new PublicKey(s)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:r,seed:n,lamports:s,space:a,programId:l}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new PublicKey(r),seed:n,lamports:s,space:a,programId:new PublicKey(l)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:r}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new PublicKey(r)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:r}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:r}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:r}=decodeData$1(SYSTEM_INSTRUCTION_LAYOUTS.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new PublicKey(r)}}static checkProgramId(t){if(!t.equals(SystemProgram.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const SYSTEM_INSTRUCTION_LAYOUTS=Object.freeze({Create:{index:0,layout:LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.ns64("lamports"),LayoutExports.ns64("space"),publicKey("programId")])},Assign:{index:1,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("programId")])},Transfer:{index:2,layout:LayoutExports.struct([LayoutExports.u32("instruction"),u64("lamports")])},CreateWithSeed:{index:3,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("base"),rustString("seed"),LayoutExports.ns64("lamports"),LayoutExports.ns64("space"),publicKey("programId")])},AdvanceNonceAccount:{index:4,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("authorized")])},AuthorizeNonceAccount:{index:7,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("authorized")])},Allocate:{index:8,layout:LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.ns64("space")])},AllocateWithSeed:{index:9,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("base"),rustString("seed"),LayoutExports.ns64("space"),publicKey("programId")])},AssignWithSeed:{index:10,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("base"),rustString("seed"),publicKey("programId")])},TransferWithSeed:{index:11,layout:LayoutExports.struct([LayoutExports.u32("instruction"),u64("lamports"),rustString("seed"),publicKey("programId")])},UpgradeNonceAccount:{index:12,layout:LayoutExports.struct([LayoutExports.u32("instruction")])}});class SystemProgram{constructor(){}static createAccount(t){const r=SYSTEM_INSTRUCTION_LAYOUTS.Create,n=encodeData(r,{lamports:t.lamports,space:t.space,programId:toBuffer(t.programId.toBuffer())});return new TransactionInstruction({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:n})}static transfer(t){let r,n;if("basePubkey"in t){const s=SYSTEM_INSTRUCTION_LAYOUTS.TransferWithSeed;r=encodeData(s,{lamports:BigInt(t.lamports),seed:t.seed,programId:toBuffer(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{const s=SYSTEM_INSTRUCTION_LAYOUTS.Transfer;r=encodeData(s,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new TransactionInstruction({keys:n,programId:this.programId,data:r})}static assign(t){let r,n;if("basePubkey"in t){const s=SYSTEM_INSTRUCTION_LAYOUTS.AssignWithSeed;r=encodeData(s,{base:toBuffer(t.basePubkey.toBuffer()),seed:t.seed,programId:toBuffer(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const s=SYSTEM_INSTRUCTION_LAYOUTS.Assign;r=encodeData(s,{programId:toBuffer(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new TransactionInstruction({keys:n,programId:this.programId,data:r})}static createAccountWithSeed(t){const r=SYSTEM_INSTRUCTION_LAYOUTS.CreateWithSeed,n=encodeData(r,{base:toBuffer(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:toBuffer(t.programId.toBuffer())});let s=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||s.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new TransactionInstruction({keys:s,programId:this.programId,data:n})}static createNonceAccount(t){const r=new Transaction;"basePubkey"in t&&"seed"in t?r.add(SystemProgram.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:NONCE_ACCOUNT_LENGTH,programId:this.programId})):r.add(SystemProgram.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:NONCE_ACCOUNT_LENGTH,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}static nonceInitialize(t){const r=SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount,n=encodeData(r,{authorized:toBuffer(t.authorizedPubkey.toBuffer())}),s={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:this.programId,data:n};return new TransactionInstruction(s)}static nonceAdvance(t){const r=SYSTEM_INSTRUCTION_LAYOUTS.AdvanceNonceAccount,n=encodeData(r),s={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n};return new TransactionInstruction(s)}static nonceWithdraw(t){const r=SYSTEM_INSTRUCTION_LAYOUTS.WithdrawNonceAccount,n=encodeData(r,{lamports:t.lamports});return new TransactionInstruction({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RECENT_BLOCKHASHES_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static nonceAuthorize(t){const r=SYSTEM_INSTRUCTION_LAYOUTS.AuthorizeNonceAccount,n=encodeData(r,{authorized:toBuffer(t.newAuthorizedPubkey.toBuffer())});return new TransactionInstruction({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static allocate(t){let r,n;if("basePubkey"in t){const s=SYSTEM_INSTRUCTION_LAYOUTS.AllocateWithSeed;r=encodeData(s,{base:toBuffer(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:toBuffer(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const s=SYSTEM_INSTRUCTION_LAYOUTS.Allocate;r=encodeData(s,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new TransactionInstruction({keys:n,programId:this.programId,data:r})}}SystemProgram.programId=new PublicKey("11111111111111111111111111111111");const CHUNK_SIZE=PACKET_DATA_SIZE-300;class Loader{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/Loader.chunkSize)+1+1)}static async load(t,r,n,s,a){{const x=await t.getMinimumBalanceForRentExemption(a.length),w=await t.getAccountInfo(n.publicKey,"confirmed");let g=null;if(w!==null){if(w.executable)return console.error("Program load failed, account is already executable"),!1;w.data.length!==a.length&&(g=g||new Transaction,g.add(SystemProgram.allocate({accountPubkey:n.publicKey,space:a.length}))),w.owner.equals(s)||(g=g||new Transaction,g.add(SystemProgram.assign({accountPubkey:n.publicKey,programId:s}))),w.lamports<x&&(g=g||new Transaction,g.add(SystemProgram.transfer({fromPubkey:r.publicKey,toPubkey:n.publicKey,lamports:x-w.lamports})))}else g=new Transaction().add(SystemProgram.createAccount({fromPubkey:r.publicKey,newAccountPubkey:
vendor: 19,858 bytes, line 2232
2232n.publicKey,lamports:x>0?x:1,space:a.length,programId:s}));g!==null&&await sendAndConfirmTransaction(t,g,[r,n],{commitment:"confirmed"})}const l=LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.u32("offset"),LayoutExports.u32("bytesLength"),LayoutExports.u32("bytesLengthPadding"),LayoutExports.seq(LayoutExports.u8("byte"),LayoutExports.offset(LayoutExports.u32(),-8),"bytes")]),u=Loader.chunkSize;let d=0,p=a,h=[];for(;p.length>0;){const x=p.slice(0,u),w=bufferExports.Buffer.alloc(u+16);l.encode({instruction:0,offset:d,bytes:x,bytesLength:0,bytesLengthPadding:0},w);const g=new Transaction().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:s,data:w});h.push(sendAndConfirmTransaction(t,g,[r,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")&&await sleep(1e3/4),d+=u,p=p.slice(u)}await Promise.all(h);{const x=LayoutExports.struct([LayoutExports.u32("instruction")]),w=bufferExports.Buffer.alloc(x.span);x.encode({instruction:1},w);const g=new Transaction().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:s,data:w}),b="processed",v=await t.sendTransaction(g,[r,n],{preflightCommitment:b}),{context:E,value:j}=await t.confirmTransaction({signature:v,lastValidBlockHeight:g.lastValidBlockHeight,blockhash:g.recentBlockhash},b);if(j.err)throw new Error(`Transaction ${v} failed (${JSON.stringify(j)})`);for(;;){try{if(await t.getSlot({commitment:b})>E.slot)break}catch{}await new Promise(R=>setTimeout(R,Math.round(MS_PER_SLOT/2)))}}return!0}}Loader.chunkSize=CHUNK_SIZE;const BPF_LOADER_PROGRAM_ID=new PublicKey("BPFLoader2111111111111111111111111111111111");class BpfLoader{static getMinNumSignatures(t){return Loader.getMinNumSignatures(t)}static load(t,r,n,s,a){return Loader.load(t,r,n,a,s)}}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fastStableStringify$1,hasRequiredFastStableStringify;function requireFastStableStringify(){if(hasRequiredFastStableStringify)return fastStableStringify$1;hasRequiredFastStableStringify=1;var e=Object.prototype.toString,t=Object.keys||function(n){var s=[];for(var a in n)s.push(a);return s};function r(n,s){var a,l,u,d,p,h,x;if(n===!0)return"true";if(n===!1)return"false";switch(typeof n){case"object":if(n===null)return null;if(n.toJSON&&typeof n.toJSON=="function")return r(n.toJSON(),s);if(x=e.call(n),x==="[object Array]"){for(u="[",l=n.length-1,a=0;a<l;a++)u+=r(n[a],!0)+",";return l>-1&&(u+=r(n[a],!0)),u+"]"}else if(x==="[object Object]"){for(d=t(n).sort(),l=d.length,u="",a=0;a<l;)p=d[a],h=r(n[p],!1),h!==void 0&&(u&&(u+=","),u+=JSON.stringify(p)+":"+h),a++;return"{"+u+"}"}else return JSON.stringify(n);case"function":case"undefined":return s?null:void 0;case"string":return JSON.stringify(n);default:return isFinite(n)?n:null}}return fastStableStringify$1=function(n){var s=r(n,!1);if(s!==void 0)return""+s},fastStableStringify$1}var fastStableStringifyExports=requireFastStableStringify(),fastStableStringify=getDefaultExportFromCjs(fastStableStringifyExports);const MINIMUM_SLOT_PER_EPOCH=32;function trailingZeros(e){let t=0;for(;e>1;)e/=2,t++;return t}function nextPowerOfTwo(e){return e===0?1:(e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e+1)}class EpochSchedule{constructor(t,r,n,s,a){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=r,this.warmup=n,this.firstNormalEpoch=s,this.firstNormalSlot=a}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const r=trailingZeros(nextPowerOfTwo(t+MINIMUM_SLOT_PER_EPOCH+1))-trailingZeros(MINIMUM_SLOT_PER_EPOCH)-1,n=this.getSlotsInEpoch(r),s=t-(n-MINIMUM_SLOT_PER_EPOCH);return[r,s]}else{const r=t-this.firstNormalSlot,n=Math.floor(r/this.slotsPerEpoch),s=this.firstNormalEpoch+n,a=r%this.slotsPerEpoch;return[s,a]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?(Math.pow(2,t)-1)*MINIMUM_SLOT_PER_EPOCH:(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+trailingZeros(MINIMUM_SLOT_PER_EPOCH)):this.slotsPerEpoch}}var fetchImpl=globalThis.fetch;class RpcWebSocketClient extends CommonClient{constructor(t,r,n){const s=a=>{const l=WebSocket$1(a,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...r});return"socket"in l?this.underlyingSocket=l.socket:this.underlyingSocket=l,l};super(s,t,r,n),this.underlyingSocket=void 0}call(...t){const r=this.underlyingSocket?.readyState;return r===1?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}notify(...t){const r=this.underlyingSocket?.readyState;return r===1?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}}function decodeData(e,t){let r;try{r=e.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(r.typeIndex!==e.index)throw new Error(`invalid account data; account type mismatch ${r.typeIndex} != ${e.index}`);return r}const LOOKUP_TABLE_META_SIZE=56;class AddressLookupTableAccount{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){const t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){const r=decodeData(LookupTableMetaLayout,t),n=t.length-LOOKUP_TABLE_META_SIZE;assert(n>=0,"lookup table is invalid"),assert(n%32===0,"lookup table is invalid");const s=n/32,{addresses:a}=LayoutExports.struct([LayoutExports.seq(publicKey(),s,"addresses")]).decode(t.slice(LOOKUP_TABLE_META_SIZE));return{deactivationSlot:r.deactivationSlot,lastExtendedSlot:r.lastExtendedSlot,lastExtendedSlotStartIndex:r.lastExtendedStartIndex,authority:r.authority.length!==0?new PublicKey(r.authority[0]):void 0,addresses:a.map(l=>new PublicKey(l))}}}const LookupTableMetaLayout={index:1,layout:LayoutExports.struct([LayoutExports.u32("typeIndex"),u64("deactivationSlot"),LayoutExports.nu64("lastExtendedSlot"),LayoutExports.u8("lastExtendedStartIndex"),LayoutExports.u8(),LayoutExports.seq(publicKey(),LayoutExports.offset(LayoutExports.u8(),-1),"authority")])},URL_RE=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function makeWebsocketUrl(e){const t=e.match(URL_RE);if(t==null)throw TypeError(`Failed to validate endpoint URL \`${e}\``);const[r,n,s,a]=t,l=e.startsWith("https:")?"wss:":"ws:",u=s==null?null:parseInt(s.slice(1),10),d=u==null?"":`:${u+1}`;return`${l}//${n}${d}${a}`}const PublicKeyFromString=coerce(instance(PublicKey),string(),e=>new PublicKey(e)),RawAccountDataResult=tuple([string(),literal("base64")]),BufferFromRawAccountData=coerce(instance(bufferExports.Buffer),RawAccountDataResult,e=>bufferExports.Buffer.from(e[0],"base64")),BLOCKHASH_CACHE_TIMEOUT_MS=30*1e3;function assertEndpointUrl(e){if(/^https?:/.test(e)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return e}function extractCommitmentFromConfig(e){let t,r;if(typeof e=="string")t=e;else if(e){const{commitment:n,...s}=e;t=n,r=s}return{commitment:t,config:r}}function applyDefaultMemcmpEncodingToFilters(e){return e.map(t=>"memcmp"in t?{...t,memcmp:{...t.memcmp,encoding:t.memcmp.encoding??"base58"}}:t)}function createRpcResult(e){return union([type({jsonrpc:literal("2.0"),id:string(),result:e}),type({jsonrpc:literal("2.0"),id:string(),error:type({code:unknown(),message:string(),data:optional(any())})})])}const UnknownRpcResult=createRpcResult(unknown());function jsonRpcResult(e){return coerce(createRpcResult(e),UnknownRpcResult,t=>"error"in t?t:{...t,result:create(t.result,e)})}function jsonRpcResultAndContext(e){return jsonRpcResult(type({context:type({slot:number()}),value:e}))}function notificationResultAndContext(e){return type({context:type({slot:number()}),value:e})}function versionedMessageFromResponse(e,t){return e===0?new MessageV0({header:t.header,staticAccountKeys:t.accountKeys.map(r=>new PublicKey(r)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(r=>({programIdIndex:r.programIdIndex,accountKeyIndexes:r.accounts,data:bs58$3.decode(r.data)})),addressTableLookups:t.addressTableLookups}):new Message(t)}const GetInflationGovernorResult=type({foundation:number(),foundationTerm:number(),initial:number(),taper:number(),terminal:number()}),GetInflationRewardResult=jsonRpcResult(array(nullable(type({epoch:number(),effectiveSlot:number(),amount:number(),postBalance:number(),commission:optional(nullable(number()))})))),GetRecentPrioritizationFeesResult=array(type({slot:number(),prioritizationFee:number()})),GetInflationRateResult=type({total:number(),validator:number(),foundation:number(),epoch:number()}),GetEpochInfoResult=type({epoch:number(),slotIndex:number(),slotsInEpoch:number(),absoluteSlot:number(),blockHeight:optional(number()),transactionCount:optional(number())}),GetEpochScheduleResult=type({slotsPerEpoch:number(),leaderScheduleSlotOffset:number(),warmup:boolean(),firstNormalEpoch:number(),firstNormalSlot:number()}),GetLeaderScheduleResult=record(string(),array(number())),TransactionErrorResult=nullable(union([type({}),string()])),SignatureStatusResult=type({err:TransactionErrorResult}),SignatureReceivedResult=literal("receivedSignature"),VersionResult=type({"solana-core":string(),"feature-set":optional(number())}),ParsedInstructionStruct=type({program:string(),programId:PublicKeyFromString,parsed:unknown()}),PartiallyDecodedInstructionStruct=type({programId:PublicKeyFromString,accounts:array(PublicKeyFromString),data:string()}),SimulatedTransactionResponseStruct=jsonRpcResultAndContext(type({err:nullable(union([type({}),string()])),logs:nullable(array(string())),accounts:optional(nullable(array(nullable(type({executable:boolean(),owner:string(),lamports:number(),data:array(string()),rentEpoch:optional(number())}))))),unitsConsumed:optional(number()),returnData:optional(nullable(type({programId:string(),data:tuple([string(),literal("base64")])}))),innerInstructions:optional(nullable(array(type({index:number(),instructions:array(union([ParsedInstructionStruct,PartiallyDecodedInstructionStruct]))}))))})),BlockProductionResponseStruct=jsonRpcResultAndContext(type({byIdentity:record(string(),array(number())),range:type({firstSlot:number(),lastSlot:number()})}));function createRpcClient(e,t,r,n,s,a){const l=r||fetchImpl;let u;a!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let d;return n&&(d=async(h,x)=>{const w=await new Promise((g,b)=>{try{n(h,x,(v,E)=>g([v,E]))}catch(v){b(v)}});return await l(...w)}),new RpcClient(async(h,x)=>{const w={method:"POST",body:h,agent:u,headers:Object.assign({"Content-Type":"application/json"},t||{},COMMON_HTTP_HEADERS)};try{let g=5,b,v=500;for(;d?b=await d(e,w):b=await l(e,w),!(b.status!==429||s===!0||(g-=1,g===0));)console.error(`Server responded with ${b.status} ${b.statusText}. Retrying after ${v}ms delay...`),await sleep(v),v*=2;const E=await b.text();b.ok?x(null,E):x(new Error(`${b.status} ${b.statusText}: ${E}`))}catch(g){g instanceof Error&&x(g)}},{})}function createRpcRequest(e){return(t,r)=>new Promise((n,s)=>{e.request(t,r,(a,l)=>{if(a){s(a);return}n(l)})})}function createRpcBatchRequest(e){return t=>new Promise((r,n)=>{t.length===0&&r([]);const s=t.map(a=>e.request(a.methodName,a.args));e.request(s,(a,l)=>{if(a){n(a);return}r(l)})})}const GetInflationGovernorRpcResult=jsonRpcResult(GetInflationGovernorResult),GetInflationRateRpcResult=jsonRpcResult(GetInflationRateResult),GetRecentPrioritizationFeesRpcResult=jsonRpcResult(GetRecentPrioritizationFeesResult),GetEpochInfoRpcResult=jsonRpcResult(GetEpochInfoResult),GetEpochScheduleRpcResult=jsonRpcResult(GetEpochScheduleResult),GetLeaderScheduleRpcResult=jsonRpcResult(GetLeaderScheduleResult),SlotRpcResult=jsonRpcResult(number()),GetSupplyRpcResult=jsonRpcResultAndContext(type({total:number(),circulating:number(),nonCirculating:number(),nonCirculatingAccounts:array(PublicKeyFromString)})),TokenAmountResult=type({amount:string(),uiAmount:nullable(number()),decimals:number(),uiAmountString:optional(string())}),GetTokenLargestAccountsResult=jsonRpcResultAndContext(array(type({address:PublicKeyFromString,amount:string(),uiAmount:nullable(number()),decimals:number(),uiAmountString:optional(string())}))),GetTokenAccountsByOwner=jsonRpcResultAndContext(array(type({pubkey:PublicKeyFromString,account:type({executable:boolean(),owner:PublicKeyFromString,lamports:number(),data:BufferFromRawAccountData,rentEpoch:number()})}))),ParsedAccountDataResult=type({program:string(),parsed:unknown(),space:number()}),GetParsedTokenAccountsByOwner=jsonRpcResultAndContext(array(type({pubkey:PublicKeyFromString,account:type({executable:boolean(),owner:PublicKeyFromString,lamports:number(),data:ParsedAccountDataResult,rentEpoch:number()})}))),GetLargestAccountsRpcResult=jsonRpcResultAndContext(array(type({lamports:number(),address:PublicKeyFromString}))),AccountInfoResult=type({executable:boolean(),owner:PublicKeyFromString,lamports:number(),data:BufferFromRawAccountData,rentEpoch:number()}),KeyedAccountInfoResult=type({pubkey:PublicKeyFromString,account:AccountInfoResult}),ParsedOrRawAccountData=coerce(union([instance(bufferExports.Buffer),ParsedAccountDataResult]),union([RawAccountDataResult,ParsedAccountDataResult]),e=>Array.isArray(e)?create(e,BufferFromRawAccountData):e),ParsedAccountInfoResult=type({executable:boolean(),owner:PublicKeyFromString,lamports:number(),data:ParsedOrRawAccountData,rentEpoch:number()}),KeyedParsedAccountInfoResult=type({pubkey:PublicKeyFromString,account:ParsedAccountInfoResult}),StakeActivationResult=type({state:union([literal("active"),literal("inactive"),literal("activating"),literal("deactivating")]),active:number(),inactive:number()}),GetConfirmedSignaturesForAddress2RpcResult=jsonRpcResult(array(type({signature:string(),slot:number(),err:TransactionErrorResult,memo:nullable(string()),blockTime:optional(nullable(number()))}))),GetSignaturesForAddressRpcResult=jsonRpcResult(array(type({signature:string(),slot:number(),err:TransactionErrorResult,memo:nullable(string()),blockTime:optional(nullable(number()))}))),AccountNotificationResult=type({subscription:number(),result:notificationResultAndContext(AccountInfoResult)}),ProgramAccountInfoResult=type({pubkey:PublicKeyFromString,account:AccountInfoResult}),ProgramAccountNotificationResult=type({subscription:number(),result:notificationResultAndContext(ProgramAccountInfoResult)}),SlotInfoResult=type({parent:number(),slot:number(),root:number()}),SlotNotificationResult=type({subscription:number(),result:SlotInfoResult}),SlotUpdateResult=union([type({type:union([literal("firstShredReceived"),literal("completed"),literal("optimisticConfirmation"),literal("root")]),slot:number(),timestamp:number()}),type({type:literal("createdBank"),parent:number(),slot:number(),timestamp:number()}),type({type:literal("frozen"),slot:number(),timestamp:number(),stats:type({numTransactionEntries:number(),numSuccessfulTransactions:number(),numFailedTransactions:number(),maxTransactionsPerEntry:number()})}),type({type:literal("dead"),slot:number(),timestamp:number(),err:string()})]),SlotUpdateNotificationResult=type({subscription:number(),result:SlotUpdateResult}),SignatureNotificationResult=type({subscription:number(),result:notificationResultAndContext(union([SignatureStatusResult,SignatureReceivedResult]))}),RootNotificationResult=type({subscription:number(),result:number()}),ContactInfoResult=type({pubkey:string(),gossip:nullable(string()),tpu:nullable(string()),rpc:nullable(string()),version:nullable(string())}),VoteAccountInfoResult=type({votePubkey:string(),nodePubkey:string(),activatedStake:number(),epochVoteAccount:boolean(),epochCredits:array(tuple([number(),number(),number()])),commission:number(),lastVote:number(),rootSlot:nullable(number())}),GetVoteAccounts=jsonRpcResult(type({current:array(VoteAccountInfoResult),delinquent:array(VoteAccountInfoResult)})),ConfirmationStatus=union([literal("processed"),literal("confirmed"),literal("finalized")]),SignatureStatusResponse=type({slot:number(),confirmations:nullable(number()),err:TransactionErrorResult,confirmationStatus:optional(ConfirmationStatus)}),GetSignatureStatusesRpcResult=jsonRpcResultAndContext(array(nullable(SignatureStatusResponse))),GetMinimumBalanceForRentExemptionRpcResult=jsonRpcResult(number()),AddressTableLookupStruct=type({accountKey:PublicKeyFromString,writableIndexes:array(number()),readonlyIndexes:array(number())}),ConfirmedTransactionResult=type({signatures:array(string()),message:type({accountKeys:array(string()),header:type({numRequiredSignatures:number(),numReadonlySignedAccounts:number(),numReadonlyUnsignedAccounts:number()}),instructions:array(type({accounts:array(number()),data:string(),programIdIndex:number()})),recentBlockhash:string(),addressTableLookups:optional(array(AddressTableLookupStruct))})}),AnnotatedAccountKey=type({pubkey:PublicKeyFromString,signer:boolean(),writable:boolean(),source:optional(union([literal("transaction"),literal("lookupTable")]))}),ConfirmedTransactionAccountsModeResult=type({accountKeys:array(AnnotatedAccountKey),signatures:array(string())}),ParsedInstructionResult=type({parsed:unknown(),program:string(),programId:PublicKeyFromString}),RawInstructionResult=type({accounts:array(PublicKeyFromString),data:string(),programId:PublicKeyFromString}),InstructionResult=union([RawInstructionResult,ParsedInstructionResult]),UnknownInstructionResult=union([type({parsed:unknown(),program:string(),programId:string()}),type({accounts:array(string()),data:string(),programId:string()})]),ParsedOrRawInstruction=coerce(InstructionResult,UnknownInstructionResult,e=>"accounts"in e?create(e,RawInstructionResult):create(e,ParsedInstructionResult)),ParsedConfirmedTransactionResult=type({signatures:array(string()),message:type({accountKeys:array(AnnotatedAccountKey),instructions:array(ParsedOrRawInstruction),recentBlockhash:string(),addressTableLookups:optional(nullable(array(AddressTableLookupStruct)))})}),TokenBalanceResult=type({accountIndex:number(),mint:string(),owner:optional(string()),programId:optional(string()),uiTokenAmount:TokenAmountResult}),LoadedAddressesResult=type({writable:array(PublicKeyFromString),readonly:array(PublicKeyFromString)}),ConfirmedTransactionMetaResult=type({err:TransactionErrorResult,fee:number(),innerInstructions:optional(nullable(array(type({index:number(),instructions:array(type({accounts:array(number()),data:string(),programIdIndex:number()}))})))),preBalances:array(number()),postBalances:array(number()),logMessages:optional(nullable(array(string()))),preTokenBalances:optional(nullable(array(TokenBalanceResult))),postTokenBalances:optional(nullable(array(TokenBalanceResult))),loadedAddresses:optional(LoadedAddressesResult),computeUnitsConsumed:optional(number()),costUnits:optional(number())}),ParsedConfirmedTransactionMetaResult=type({err:TransactionErrorResult,fee:number(),innerInstructions:optional(nullable(array(type({index:number(),instructions:array(ParsedOrRawInstruction)})))),preBalances:array(number()),postBalances:array(number()),logMessages:optional(nullable(array(string()))),preTokenBalances:optional(nullable(array(TokenBalanceResult))),postTokenBalances:optional(nullable(array(TokenBalanceResult))),loadedAddresses:optional(LoadedAddressesResult),computeUnitsConsumed:optional(number()),costUnits:optional(number())}
vendor: 4,689 bytes, line 2232
2232),TransactionVersionStruct=union([literal(0),literal("legacy")]),RewardsResult=type({pubkey:string(),lamports:number(),postBalance:nullable(number()),rewardType:nullable(string()),commission:optional(nullable(number()))}),GetBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),transactions:array(type({transaction:ConfirmedTransactionResult,meta:nullable(ConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetNoneModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),rewards:optional(array(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetAccountsModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),transactions:array(type({transaction:ConfirmedTransactionAccountsModeResult,meta:nullable(ConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),transactions:array(type({transaction:ParsedConfirmedTransactionResult,meta:nullable(ParsedConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedAccountsModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),transactions:array(type({transaction:ConfirmedTransactionAccountsModeResult,meta:nullable(ParsedConfirmedTransactionMetaResult),version:optional(TransactionVersionStruct)})),rewards:optional(array(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetParsedNoneModeBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),rewards:optional(array(RewardsResult)),blockTime:nullable(number()),blockHeight:nullable(number())}))),GetConfirmedBlockRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),transactions:array(type({transaction:ConfirmedTransactionResult,meta:nullable(ConfirmedTransactionMetaResult)})),rewards:optional(array(RewardsResult)),blockTime:nullable(number())}))),GetBlockSignaturesRpcResult=jsonRpcResult(nullable(type({blockhash:string(),previousBlockhash:string(),parentSlot:number(),signatures:array(string()),blockTime:nullable(number())}))),GetTransactionRpcResult=jsonRpcResult(nullable(type({slot:number(),meta:nullable(ConfirmedTransactionMetaResult),blockTime:optional(nullable(number())),transaction:ConfirmedTransactionResult,version:optional(TransactionVersionStruct)}))),GetParsedTransactionRpcResult=jsonRpcResult(nullable(type({slot:number(),transaction:ParsedConfirmedTransactionResult,meta:nullable(ParsedConfirmedTransactionMetaResult),blockTime:optional(nullable(number())),version:optional(TransactionVersionStruct)}))),GetLatestBlockhashRpcResult=jsonRpcResultAndContext(type({blockhash:string(),lastValidBlockHeight:number()})),IsBlockhashValidRpcResult=jsonRpcResultAndContext(boolean()),PerfSampleResult=type({slot:number(),numTransactions:number(),numSlots:number(),samplePeriodSecs:number()}),GetRecentPerformanceSamplesRpcResult=jsonRpcResult(array(PerfSampleResult)),GetFeeCalculatorRpcResult=jsonRpcResultAndContext(nullable(type({feeCalculator:type({lamportsPerSignature:number()})}))),RequestAirdropRpcResult=jsonRpcResult(string()),SendTransactionRpcResult=jsonRpcResult(string()),LogsResult=type({err:TransactionErrorResult,logs:array(string()),signature:string()}),LogsNotificationResult=type({result:notificationResultAndContext(LogsResult),subscription:number()}),COMMON_HTTP_HEADERS={"solana-client":"js/1.0.0-maintenance"};class Connection{constructor(t,r){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={}
2232,this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const p={};return async h=>{const{commitment:x,config:w}=extractCommitmentFromConfig(h),g=this._buildArgs([],x,void 0,w),b=fastStableStringify(g);return p[b]=p[b]??(async()=>{try{const v=await this._rpcRequest("getBlockHeight",g),E=create(v,jsonRpcResult(number()));if("error"in E)throw new SolanaJSONRPCError(E.error,"failed to get block height information");return E.result}finally{delete p[b]}})(),await p[b]}})();let n,s,a,l,u,d;r&&typeof r=="string"?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,n=r.wsEndpoint,s=r.httpHeaders,a=r.fetch,l=r.fetchMiddleware,u=r.disableRetryOnRateLimit,d=r.httpAgent),this._rpcEndpoint=assertEndpointUrl(t),this._rpcWsEndpoint=n||makeWebsocketUrl(t),this._rpcClient=createRpcClient(t,s,a,l,u,d),this._rpcRequest=createRpcRequest(this._rpcClient),this._rpcBatchRequest=createRpcBatchRequest(this._rpcClient),this._rpcWebSocket=new RpcWebSocketClient(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgs([t.toBase58()],n,void 0,s),l=await this._rpcRequest("getBalance",a),u=create(l,jsonRpcResultAndContext(number()));if("error"in u)throw new SolanaJSONRPCError(u.error,`failed to get balance for ${t.toBase58()}`);return u.result}async getBalance(t,r){return await this.getBalanceAndContext(t,r).then(n=>n.value).catch(n=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+n)})}async getBlockTime(t){const r=await this._rpcRequest("getBlockTime",[t]),n=create(r,jsonRpcResult(nullable(number())));if("error"in n)throw new SolanaJSONRPCError(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),r=create(t,jsonRpcResult(number()));if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get minimum ledger slot");return r.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),r=create(t,SlotRpcResult);if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get first available block");return r.result}async getSupply(t){let r={};typeof t=="string"?r={commitment:t}:t?r={...t,commitment:t&&t.commitment||this.commitment}:r={commitment:this.commitment};const n=await this._rpcRequest("getSupply",[r]),s=create(n,GetSupplyRpcResult);if("error"in s)throw new SolanaJSONRPCError(s.error,"failed to get supply");return s.result}async getTokenSupply(t,r){const n=this._buildArgs([t.toBase58()],r),s=await this._rpcRequest("getTokenSupply",n),a=create(s,jsonRpcResultAndContext(TokenAmountResult));if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get token supply");return a.result}async getTokenAccountBalance(t,r){const n=this._buildArgs([t.toBase58()],r),s=await this._rpcRequest("getTokenAccountBalance",n),a=create(s,jsonRpcResultAndContext(TokenAmountResult));if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get token account balance");return a.result}async getTokenAccountsByOwner(t,r,n){const{commitment:s,config:a}=extractCommitmentFromConfig(n);let l=[t.toBase58()];"mint"in r?l.push({mint:r.mint.toBase58()}):l.push({programId:r.programId.toBase58()});const u=this._buildArgs(l,s,"base64",a),d=await this._rpcRequest("getTokenAccountsByOwner",u),p=create(d,GetTokenAccountsByOwner);
vendor: 4,510 bytes, line 2232
2232if("error"in p)throw new SolanaJSONRPCError(p.error,`failed to get token accounts owned by account ${t.toBase58()}`);return p.result}async getParsedTokenAccountsByOwner(t,r,n){let s=[t.toBase58()];"mint"in r?s.push({mint:r.mint.toBase58()}):s.push({programId:r.programId.toBase58()});const a=this._buildArgs(s,n,"jsonParsed"),l=await this._rpcRequest("getTokenAccountsByOwner",a),u=create(l,GetParsedTokenAccountsByOwner);if("error"in u)throw new SolanaJSONRPCError(u.error,`failed to get token accounts owned by account ${t.toBase58()}`);return u.result}async getLargestAccounts(t){const r={...t,commitment:t&&t.commitment||this.commitment},n=r.filter||r.commitment?[r]:[],s=await this._rpcRequest("getLargestAccounts",n),a=create(s,GetLargestAccountsRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get largest accounts");return a.result}async getTokenLargestAccounts(t,r){const n=this._buildArgs([t.toBase58()],r),s=await this._rpcRequest("getTokenLargestAccounts",n),a=create(s,GetTokenLargestAccountsResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get token largest accounts");return a.result}async getAccountInfoAndContext(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgs([t.toBase58()],n,"base64",s),l=await this._rpcRequest("getAccountInfo",a),u=create(l,jsonRpcResultAndContext(nullable(AccountInfoResult)));if("error"in u)throw new SolanaJSONRPCError(u.error,`failed to get info about account ${t.toBase58()}`);return u.result}async getParsedAccountInfo(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgs([t.toBase58()],n,"jsonParsed",s),l=await this._rpcRequest("getAccountInfo",a),u=create(l,jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));if("error"in u)throw new SolanaJSONRPCError(u.error,`failed to get info about account ${t.toBase58()}`);return u.result}async getAccountInfo(t,r){try{return(await this.getAccountInfoAndContext(t,r)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleParsedAccounts(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=t.map(p=>p.toBase58()),l=this._buildArgs([a],n,"jsonParsed",s),u=await this._rpcRequest("getMultipleAccounts",l),d=create(u,jsonRpcResultAndContext(array(nullable(ParsedAccountInfoResult))));if("error"in d)throw new SolanaJSONRPCError(d.error,`failed to get info for accounts ${a}`);return d.result}async getMultipleAccountsInfoAndContext(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=t.map(p=>p.toBase58()),l=this._buildArgs([a],n,"base64",s),u=await this._rpcRequest("getMultipleAccounts",l),d=create(u,jsonRpcResultAndContext(array(nullable(AccountInfoResult))));if("error"in d)throw new SolanaJSONRPCError(d.error,`failed to get info for accounts ${a}`);return d.result}async getMultipleAccountsInfo(t,r){return(await this.getMultipleAccountsInfoAndContext(t,r)).value}async getStakeActivation(t,r,n){const{commitment:s,config:a}=extractCommitmentFromConfig(r),l=this._buildArgs([t.toBase58()],s,void 0,{...a,epoch:n??a?.epoch}),u=await this._rpcRequest("getStakeActivation",l),d=create(u,jsonRpcResult(StakeActivationResult));if("error"in d)throw new SolanaJSONRPCError(d.error,`failed to get Stake Activation ${t.toBase58()}`);return d.result}async getProgramAccounts(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),{encoding:a,...l}=s||{},u=this._buildArgs([t.toBase58()],n,a||"base64",{...l,...l.filters?{filters:applyDefaultMemcmpEncodingToFilters(l.filters)}:null}),d=await this._rpcRequest("getProgramAccounts",u),p=array(KeyedAccountInfoResult),h=l.withContext===!0?create(d,jsonRpcResultAndContext(p)):create(d,jsonRpcResult(p));if("error"in h)throw new SolanaJSONRPCError(h.error,`failed to get accounts owned by program ${t.toBase58()}`);return h.result}async getParsedProgramAccounts(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgs([t.toBase58()],n,"jsonParsed",s),l=await this._rpcRequest("getProgramAccounts",a),u=create(l,jsonRpcResult(array(KeyedParsedAccountInfoResult)));if("error"in u)throw new SolanaJSONRPCError(u.error,`failed to get accounts owned by program ${t.toBase58()}`);return u.result}async confirmTransaction(t,r){let n;if(typeof t=="string")n=t;else{const a=t;if(a.abortSignal?.aborted)return Promise.reject(a.abortSignal.reason);n=a.signature}let s;try{s=bs58$3.decode(n)}catch{throw new Error("signature must be base58 encoded: "+n)}
2232return assert(s.length===64,"signature has invalid length"),typeof t=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:r||this.commitment,signature:n}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:r||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:r||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise((r,n)=>{t!=null&&(t.aborted?n(t.reason):t.addEventListener("abort",()=>{n(t.reason)}))})}getTransactionConfirmationPromise({commitment:t,signature:r}){let n,s,a=!1;const l=new Promise((d,p)=>{try{n=this.onSignature(r,(x,w)=>{n=void 0;const g={context:w,value:x};d({__type:TransactionStatus.PROCESSED,response:g})},t);const h=new Promise(x=>{n==null?x():s=this._onSubscriptionStateChange(n,w=>{w==="subscribed"&&x()})});(async()=>{if(await h,a)return;const x=await this.getSignatureStatus(r);if(a||x==null)return;const{context:w,value:g}=x;if(g!=null)if(g?.err)p(g.err);else{switch(t){case"confirmed":case"single":case"singleGossip":{if(g.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(g.confirmationStatus==="processed"||g.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}a=!0,d({__type:TransactionStatus.PROCESSED,response:{context:w,value:g}})}})()}catch(h){p(h)}});return{abortConfirmation:()=>{s&&(s(),s=void 0),n!=null&&(this.removeSignatureListener(n),n=void 0)},confirmationPromise:l}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:r,lastValidBlockHeight:n,signature:s}}){let a=!1;const l=new Promise(x=>{const w=async()=>{try{return await this.getBlockHeight(t)}catch{return-1}};(async()=>{let g=await w();if(!a){for(;g<=n;)if(await sleep(1e3),a||(g=await w(),a))return;x({__type:TransactionStatus.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:u,confirmationPromise:d}=this.getTransactionConfirmationPromise({commitment:t,signature:s}),p=this.getCancellationPromise(r);let h;try{const x=await Promise.race([p,d,l]);if(x.__type===TransactionStatus.PROCESSED)h=x.response;else throw new TransactionExpiredBlockheightExceededError(s)}finally{a=!0,u()}return h}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:r,minContextSlot:n,nonceAccountPubkey:s,nonceValue:a,signature:l}}){let u=!1;const d=new Promise(g=>{let b=a,v=null;const E=async()=>{try{const{context:j,value:R}=await this.getNonceAndContext(s,{commitment:t,minContextSlot:n});return v=j.slot,R?.nonce}catch{return b}};(async()=>{if(b=await E(),!u)for(;;){if(a!==b){g({__type:TransactionStatus.NONCE_INVALID,slotInWhichNonceDidAdvance:v});return}if(await sleep(2e3),u||(b=await E(),u))return}})()}),{abortConfirmation:p,confirmationPromise:h}=this.getTransactionConfirmationPromise({commitment:t,signature:l}),x=this.getCancellationPromise(r);let w;try{const g=await Promise.race([x,h,d]);if(g.__type===TransactionStatus.PROCESSED)w=g.response;else{let b;for(;;
2232){const v=await this.getSignatureStatus(l);if(v==null)break;if(v.context.slot<(g.slotInWhichNonceDidAdvance??n)){await sleep(400);continue}b=v;break}if(b?.value){const v=t||"finalized",{confirmationStatus:E}=b.value;switch(v){case"processed":case"recent":if(E!=="processed"&&E!=="confirmed"&&E!=="finalized")throw new TransactionExpiredNonceInvalidError(l);break;case"confirmed":case"single":case"singleGossip":if(E!=="confirmed"&&E!=="finalized")throw new TransactionExpiredNonceInvalidError(l);break;case"finalized":case"max":case"root":if(E!=="finalized")throw new TransactionExpiredNonceInvalidError(l);break;default:}w={context:b.context,value:{err:b.value.err}}}else throw new TransactionExpiredNonceInvalidError(l)}}finally{u=!0,p()}return w}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:r}){let n;const s=new Promise(d=>{let p=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{p=this._confirmTransactionInitialTimeout||3e4;break}}n=setTimeout(()=>d({__type:TransactionStatus.TIMED_OUT,timeoutMs:p}),p)}),{abortConfirmation:a,confirmationPromise:l}=this.getTransactionConfirmationPromise({commitment:t,signature:r});let u;try{const d=await Promise.race([l,s]);if(d.__type===TransactionStatus.PROCESSED)u=d.response;else throw new TransactionExpiredTimeoutError(r,d.timeoutMs/1e3)}finally{clearTimeout(n),a()}return u}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),r=create(t,jsonRpcResult(array(ContactInfoResult)));if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get cluster nodes");return r.result}async getVoteAccounts(t){const r=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",r),s=create(n,GetVoteAccounts);if("error"in s)throw new SolanaJSONRPCError(s.error,"failed to get vote accounts");return s.result}async getSlot(t){const{commitment:r,config:n}=extractCommitmentFromConfig(t),s=this._buildArgs([],r,void 0,n),a=await this._rpcRequest("getSlot",s),l=create(a,jsonRpcResult(number()));if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get slot");return l.result}async getSlotLeader(t){const{commitment:r,config:n}=extractCommitmentFromConfig(t),s=this._buildArgs([],r,void 0,n),a=await this._rpcRequest("getSlotLeader",s),l=create(a,jsonRpcResult(string()));if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get slot leader");return l.result}async getSlotLeaders(t,r){const n=[t,r],s=await this._rpcRequest("getSlotLeaders",n),a=create(s,jsonRpcResult(array(PublicKeyFromString)));if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get slot leaders");return a.result}async getSignatureStatus(t,r){const{context:n,value:s}
2232=await this.getSignatureStatuses([t],r);assert(s.length===1);const a=s[0];return{context:n,value:a}}async getSignatureStatuses(t,r){const n=[t];r&&n.push(r);const s=await this._rpcRequest("getSignatureStatuses",n),a=create(s,GetSignatureStatusesRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get signature status");return a.result}async getTransactionCount(t){const{commitment:r,config:n}=extractCommitmentFromConfig(t),s=this._buildArgs([],r,void 0,n),a=await this._rpcRequest("getTransactionCount",s),l=create(a,jsonRpcResult(number()));if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get transaction count");return l.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const r=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",r),s=create(n,GetInflationGovernorRpcResult);if("error"in s)throw new SolanaJSONRPCError(s.error,"failed to get inflation");return s.result}async getInflationReward(t,r,n){const{commitment:s,config:a}=extractCommitmentFromConfig(n),l=this._buildArgs([t.map(p=>p.toBase58())],s,void 0,{...a,epoch:r??a?.epoch}),u=await this._rpcRequest("getInflationReward",l),d=create(u,GetInflationRewardResult);if("error"in d)throw new SolanaJSONRPCError(d.error,"failed to get inflation reward");return d.result}async getInflationRate(){const t=await this._rpcRequest("getInflationRate",[]),r=create(t,GetInflationRateRpcResult);if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get inflation rate");return r.result}async getEpochInfo(t){const{commitment:r,config:n}=extractCommitmentFromConfig(t),s=this._buildArgs([],r,void 0,n),a=await this._rpcRequest("getEpochInfo",s),l=create(a,GetEpochInfoRpcResult);if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get epoch info");return l.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),r=create(t,GetEpochScheduleRpcResult);if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get epoch schedule");const n=r.result;return new EpochSchedule(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),r=create(t,GetLeaderScheduleRpcResult);if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get leader schedule");return r.result}async getMinimumBalanceForRentExemption(t,r){const n=this._buildArgs([t],r),s=await this._rpcRequest("getMinimumBalanceForRentExemption",n),a=create(s,GetMinimumBalanceForRentExemptionRpcResult);return"error"in a?(console.warn("Unable to fetch minimum balance for rent exemption"),0):a.result}async getRecentBlockhashAndContext(t){const{context:r,value:{blockhash:n}}=await this.getLatestBlockhashAndContext(t);return{context:r,value:{blockhash:n,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(t){const r=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=create(r,GetRecentPerformanceSamplesRpcResult);if("error"in n)throw new SolanaJSONRPCError(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,r){const n=this._buildArgs([t],r),s=await this._rpcRequest("getFeeCalculatorForBlockhash",n),a=create(s,GetFeeCalculatorRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get fee calculator");const{context:l,value:u}=a.result;return{context:l,value:u!==null?u.feeCalculator:null}}async getFeeForMessage(t,r){const n=toBuffer(t.serialize()).toString("base64"),s=this._buildArgs([n],r),a=await this._rpcRequest("getFeeForMessage",s),l=create(a,jsonRpcResultAndContext(nullable(number())));if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get fee for message");if(l.result===null)throw new Error("invalid blockhash");return l.result}async getRecentPrioritizationFees(t){const r=t?.lockedWritableAccounts?.map(l=>
2232l.toBase58()),n=r?.length?[r]:[],s=await this._rpcRequest("getRecentPrioritizationFees",n),a=create(s,GetRecentPrioritizationFeesRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get recent prioritization fees");return a.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhashAndContext(t){const{commitment:r,config:n}=extractCommitmentFromConfig(t),s=this._buildArgs([],r,void 0,n),a=await this._rpcRequest("getLatestBlockhash",s),l=create(a,GetLatestBlockhashRpcResult);if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get latest blockhash");return l.result}async isBlockhashValid(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgs([t],n,void 0,s),l=await this._rpcRequest("isBlockhashValid",a),u=create(l,IsBlockhashValidRpcResult);if("error"in u)throw new SolanaJSONRPCError(u.error,"failed to determine if the blockhash `"+t+"`is valid");return u.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),r=create(t,jsonRpcResult(VersionResult));if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get version");return r.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),r=create(t,jsonRpcResult(string()));if("error"in r)throw new SolanaJSONRPCError(r.error,"failed to get genesis hash");return r.result}async getBlock(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgsAtLeastConfirmed([t],n,void 0,s),l=await this._rpcRequest("getBlock",a);try{switch(s?.transactionDetails){case"accounts":{const u=create(l,GetAccountsModeBlockRpcResult);if("error"in u)throw u.error;return u.result}case"none":{const u=create(l,GetNoneModeBlockRpcResult);if("error"in u)throw u.error;return u.result}default:{const u=create(l,GetBlockRpcResult);if("error"in u)throw u.error;const{result:d}=u;return d?{...d,transactions:d.transactions.map(({transaction:p,meta:h,version:x})=>({meta:h,transaction:{...p,message:versionedMessageFromResponse(x,p.message)},version:x}))}:null}}}catch(u){throw new SolanaJSONRPCError(u,"failed to get confirmed block")}}async getParsedBlock(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",s),l=await this._rpcRequest("getBlock",a);try{switch(s?.transactionDetails){case"accounts":{const u=create(l,GetParsedAccountsModeBlockRpcResult);if("error"in u)throw u.error;return u.result}case"none":{const u=create(l,GetParsedNoneModeBlockRpcResult);if("error"in u)throw u.error;return u.result}default:{const u=create(l,GetParsedBlockRpcResult);if("error"in u)throw u.error;return u.result}}}catch(u){throw new SolanaJSONRPCError(u,"failed to get block")}}async getBlockProduction(t){let r,n;if(typeof t=="string")n=t;else if(t){const{commitment:u,...d}=t;n=u,r=d}const s=this._buildArgs([],n,"base64",r),a=await this._rpcRequest("getBlockProduction",s),l=create(a,BlockProductionResponseStruct);if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get block production information");return l.result}async getTransaction(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgsAtLeastConfirmed([t],n,void 0,s),l=await this._rpcRequest("getTransaction",a),u=create(l,GetTransactionRpcResult);if("error"in u)throw new SolanaJSONRPCError(u.error,"failed to get transaction");const d=u.result;return d&&{...d,transaction:{...d.transaction,message:versionedMessageFromResponse(d.version,d.transaction.message)}}}async getParsedTransaction(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",s),l=await this._rpcRequest("getTransaction",a),u=create(l,GetParsedTransactionRpcResult);if("error"in u)throw new SolanaJSONRPCError(u.error,"failed to get transaction");return u.result}async getParsedTransactions(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=t.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],n,"jsonParsed",s)}));return(await this._rpcBatchRequest(a)).map(d=>{const p=create(d,GetParsedTransactionRpcResult);if("error"in p)throw new SolanaJSONRPCError(p.error,"failed to get transactions");return p.result})}async getTransactions(t,r){const{commitment:n,config:s}=extractCommitmentFromConfig(r),a=t.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],n,void 0,s)}));return(await this._rpcBatchRequest(a)).map(d=>{const p=create(d,GetTransactionRpcResult);if("error"in p)throw new SolanaJSONRPCError(p.error,"failed to get transactions");const h=p.result;return h&&{...h,transaction:{...h.transaction,message:versionedMessageFromResponse(h.version,h.transaction.message)}}})}async getConfirmedBlock(t,r){const n=this._buildArgsAtLeastConfirmed([t],r),s=await this._rpcRequest("getBlock",n),a=create(s,GetConfirmedBlockRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get confirmed block");const l=a.result;if(!l)throw new Error("Confirmed block "+t+" not found");const u={...l,transactions:l.transactions.map(({transaction:d,meta:p})=>{const h=new Message(d.message);return{meta:p,transaction:{...d,message:h}}})};return{...u,transactions:u.transactions.map(({transaction:d,meta:p})=>({meta:p,transaction:Transaction.populate(d.message,d.signatures)}))}}async getBlocks(t,r,n){const s=this._buildArgsAtLeastConfirmed(r!==void 0?[t,r]:[t],n),a=await this._rpcRequest("getBlocks",s),l=create(a,jsonRpcResult(array(number())));if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get blocks");return l.result}async getBlockSignatures(t,r){const n=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetail
2232s:"signatures",rewards:!1}),s=await this._rpcRequest("getBlock",n),a=create(s,GetBlockSignaturesRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get block");const l=a.result;if(!l)throw new Error("Block "+t+" not found");return l}async getConfirmedBlockSignatures(t,r){const n=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetails:"signatures",rewards:!1}),s=await this._rpcRequest("getBlock",n),a=create(s,GetBlockSignaturesRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get confirmed block");const l=a.result;if(!l)throw new Error("Confirmed block "+t+" not found");return l}async getConfirmedTransaction(t,r){const n=this._buildArgsAtLeastConfirmed([t],r),s=await this._rpcRequest("getTransaction",n),a=create(s,GetTransactionRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get transaction");const l=a.result;if(!l)return l;const u=new Message(l.transaction.message),d=l.transaction.signatures;return{...l,transaction:Transaction.populate(u,d)}}async getParsedConfirmedTransaction(t,r){const n=this._buildArgsAtLeastConfirmed([t],r,"jsonParsed"),s=await this._rpcRequest("getTransaction",n),a=create(s,GetParsedTransactionRpcResult);if("error"in a)throw new SolanaJSONRPCError(a.error,"failed to get confirmed transaction");return a.result}async getParsedConfirmedTransactions(t,r){const n=t.map(l=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([l],r,"jsonParsed")}));return(await this._rpcBatchRequest(n)).map(l=>{const u=create(l,GetParsedTransactionRpcResult);if("error"in u)throw new SolanaJSONRPCError(u.error,"failed to get confirmed transactions");return u.result})}async getConfirmedSignaturesForAddress(t,r,n){let s={},a=await this.getFirstAvailableBlock();for(;!("until"in s)&&(r--,!(r<=0||r<a));)try{const d=await this.getConfirmedBlockSignatures(r,"finalized");d.signatures.length>0&&(s.until=d.signatures[d.signatures.length-1].toString())}catch(d){if(d instanceof Error&&d.message.includes("skipped"))continue;throw d}
2232let l=await this.getSlot("finalized");for(;!("before"in s)&&(n++,!(n>l));)try{const d=await this.getConfirmedBlockSignatures(n);d.signatures.length>0&&(s.before=d.signatures[d.signatures.length-1].toString())}catch(d){if(d instanceof Error&&d.message.includes("skipped"))continue;throw d}return(await this.getConfirmedSignaturesForAddress2(t,s)).map(d=>d.signature)}async getConfirmedSignaturesForAddress2(t,r,n){const s=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,r),a=await this._rpcRequest("getConfirmedSignaturesForAddress2",s),l=create(a,GetConfirmedSignaturesForAddress2RpcResult);if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get confirmed signatures for address");return l.result}async getSignaturesForAddress(t,r,n){const s=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,r),a=await this._rpcRequest("getSignaturesForAddress",s),l=create(a,GetSignaturesForAddressRpcResult);if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get signatures for address");return l.result}async getAddressLookupTable(t,r){const{context:n,value:s}=await this.getAccountInfoAndContext(t,r);let a=null;return s!==null&&(a=new AddressLookupTableAccount({key:t,state:AddressLookupTableAccount.deserialize(s.data)})),{context:n,value:a}}async getNonceAndContext(t,r){const{context:n,value:s}=await this.getAccountInfoAndContext(t,r);let a=null;return s!==null&&(a=NonceAccount.fromAccountData(s.data)),{context:n,value:a}}async getNonce(t,r){return await this.getNonceAndContext(t,r).then(n=>n.value).catch(n=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+n)})}async requestAirdrop(t,r){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),r]),s=create(n,RequestAirdropRpcResult);if("error"in s)throw new SolanaJSONRPCError(s.error,`airdrop to ${t.toBase58()} failed`);return s.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await sleep(100);const n=Date.now()-this._blockhashInfo.lastFetch>=BLOCKHASH_CACHE_TIMEOUT_MS;if(this._blockhashInfo.latestBlockhash!==null&&!n)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),r=this._blockhashInfo.latestBlockhash,n=r?r.blockhash:null;for(let s=0;s<50;s++){const a=await this.getLatestBlockhash("finalized");if(n!==a.blockhash)return this._blockhashInfo={latestBlockhash:a,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},a;await sleep(MS_PER_SLOT/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:r,config:n}=extractCommitmentFromConfig(t),s=this._buildArgs([],r,"base64",n),a=await this._rpcRequest("getStakeMinimumDelegation",s),l=create(a,jsonRpcResultAndContext(number()));if("error"in l)throw new SolanaJSONRPCError(l.error,"failed to get stake minimum delegation");return l.result}async simulateTransaction(t,r,n){if("message"in t){const v=t.serialize(),E=bufferExports.Buffer.from(v).toString("base64");if(Array.isArray(r)||n!==void 0)throw new Error("Invalid arguments");const j=r||{};j.encoding="base64","commitment"in j||(j.commitment=this.commitment),r&&typeof r=="object"&&"innerInstructions"in r&&(j.innerInstructions=r.innerInstructions);const R=[E,j],T=await this._rpcRequest("simulateTransaction",R),z=create(T,SimulatedTransactionResponseStruct);if("error"in z)throw new Error("failed to simulate transaction: "+z.error.message);return z.result}let s;if(t instanceof Transaction){let b=t;s=new Transaction,s.feePayer=b.feePayer,s.instructions=t.instructions,s.nonceInfo=b.nonceInfo,s.signatures=b.signatures}else s=Transaction.populate(t),s._message=s._json=void 0;if(r!==void 0&&!Array.isArray(r))throw new Error("Invalid arguments");const a=r;if(s.nonceInfo&&a)s.sign(...a);else{let b=this._disableBlockhashCaching;for(;;){const v=await this._blockhashWithExpiryBlockHeight(b);if(s.lastValidBlockHeight=v.lastValidBlockHeight,s.recentBlockhash=v.blockhash,!a)break;if(s.sign(...a),!s.signature)throw new Error("!signature");const E=s.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(E)&&!this._blockhashInfo.transactionSignatures.includes(E)){this._blockhashInfo.simulatedSignatures.push(E);break}else b=!0}}const l=s._compile(),u=l.serialize(),p=s._serialize(u).toString("base64"),h={encoding:"base64",commitment:this.commitment};if(n){const b=(Array.isArray(n)?n:l.nonProgramIds()).map(v=>
vendor: 9,111 bytes, lines 2232-2233
2232v.toBase58());h.accounts={encoding:"base64",addresses:b}}a&&(h.sigVerify=!0),r&&typeof r=="object"&&"innerInstructions"in r&&(h.innerInstructions=r.innerInstructions);const x=[p,h],w=await this._rpcRequest("simulateTransaction",x),g=create(w,SimulatedTransactionResponseStruct);if("error"in g){let b;if("data"in g.error&&(b=g.error.data.logs,b&&Array.isArray(b))){const v=` 2233 `,E=v+b.join(v);console.error(g.error.message,E)}throw new SendTransactionError({action:"simulate",signature:"",transactionMessage:g.error.message,logs:b})}return g.result}async sendTransaction(t,r,n){if("version"in t){if(r&&Array.isArray(r))throw new Error("Invalid arguments");const l=t.serialize();return await this.sendRawTransaction(l,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");const s=r;if(t.nonceInfo)t.sign(...s);else{let l=this._disableBlockhashCaching;for(;;){const u=await this._blockhashWithExpiryBlockHeight(l);if(t.lastValidBlockHeight=u.lastValidBlockHeight,t.recentBlockhash=u.blockhash,t.sign(...s),!t.signature)throw new Error("!signature");const d=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(d))l=!0;else{this._blockhashInfo.transactionSignatures.push(d);break}}}const a=t.serialize();return await this.sendRawTransaction(a,n)}async sendRawTransaction(t,r){const n=toBuffer(t).toString("base64");return await this.sendEncodedTransaction(n,r)}async sendEncodedTransaction(t,r){const n={encoding:"base64"},s=r&&r.skipPreflight,a=s===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(n.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(n.minContextSlot=r.minContextSlot),s&&(n.skipPreflight=s),a&&(n.preflightCommitment=a);const l=[t,n],u=await this._rpcRequest("sendTransaction",l),d=create(u,SendTransactionRpcResult);if("error"in d){let p;throw"data"in d.error&&(p=d.error.data.logs),new SendTransactionError({action:s?"send":"simulate",signature:"",transactionMessage:d.error.message,logs:p})}return d.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,n])=>{this._setSubscription(r,{...n,state:"pending"})})}_setSubscription(t,r){const n=this._subscriptionsByHash[t]?.state;if(this._subscriptionsByHash[t]=r,n!==r.state){const s=this._subscriptionStateChangeCallbacksByHash[t];s&&s.forEach(a=>{try{a(r.state)}catch{}})}}_onSubscriptionStateChange(t,r){const n=this._subscriptionHashByClientSubscriptionId[t];if(n==null)return()=>{};const s=this._subscriptionStateChangeCallbacksByHash[n]||=new Set;return s.add(r),()=>{s.delete(r),s.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const t=this._rpcWebSocketGeneration,r=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const s=this._subscriptionsByHash[n];if(s!==void 0)switch(s.state){case"pending":case"unsubscribed":if(s.callbacks.size===0){delete this._subscriptionsByHash[n],s.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[s.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:a,method:l}=s;try{this._setSubscription(n,{...s,state:"subscribing"});const u=await this._rpcWebSocket.call(l,a);this._setSubscription(n,{...s,serverSubscriptionId:u,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[u]=s.callbacks,await this._updateSubscriptions()}catch(u){if(console.error(`Received ${u instanceof Error?"":"JSON-RPC "}error calling \`${l}\``,{args:a,error:u}),!r())return;this._setSubscription(n,{...s,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":s.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:a,unsubscribeMethod:l}=s;if(this._subscriptionsAutoDisposedByRpc.has(a))this._subscriptionsAutoDisposedByRpc.delete(a);else{this._setSubscription(n,{...s,state:"unsubscribing"}),this._setSubscription(n,{...s,state:"unsubscribing"});try{await this._rpcWebSocket.call(l,[a])}catch(u){if(u instanceof Error&&console.error(`${l} error:`,u.message),!r())return;this._setSubscription(n,{...s,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...s,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,r){const n=this._subscriptionCallbacksByServerSubscriptionId[t];n!==void 0&&n.forEach(s=>{try{s(...r)}catch(a){console.error(a)}})}_wsOnAccountNotification(t){const{result:r,subscription:n}=create(t,AccountNotificationResult);this._handleServerNotification(n,[r.value,r.context])}_makeSubscription(t,r){const n=this._nextClientSubscriptionId++,s=fastStableStringify([t.method,r]),a=this._subscriptionsByHash[s];return a===void 0?this._subscriptionsByHash[s]={...t,args:r,callbacks:new Set([t.callback]),state:"pending"}:a.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[n]=s,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const l=this._subscriptionsByHash[s];assert(l!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),l.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,r,n){const{commitment:s,config:a}=extractCommitmentFromConfig(n),l=this._buildArgs([t.toBase58()],s||this._commitment||"finalized","base64",a);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},l)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:r,subscription:n}=create(t,ProgramAccountNotificationResult);this._handleServerNotification(n,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(t,r,n,s){const{commitment:a,config:l}=extractCommitmentFromConfig(n),u=this._buildArgs([t.toBase58()],a||this._commitment||"finalized","base64",l||(s?{filters:applyDefaultMemcmpEncodingToFilters(s)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},u)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,r,n){const s=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},s)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:r,subscription:n}=create(t,LogsNotificationResult);this._handleServerNotification(n,[r.value,r.context])}_wsOnSlotNotification(t){const{result:r,subscription:n}=create(t,SlotNotificationResult);this._handleServerNotification(n,[r])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:r,subscription:n}=create(t,SlotUpdateNotificationResult);this._handleServerNotification(n,[r])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,r){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${r}' events could not be found.`)}_buildArgs(t,r,n,s){const a=r||this._commitment;if(a||n||s){let l={};
2233n&&(l.encoding=n),a&&(l.commitment=a),s&&(l=Object.assign(l,s)),t.push(l)}return t}_buildArgsAtLeastConfirmed(t,r,n,s){const a=r||this._commitment;if(a&&!["confirmed","finalized"].includes(a))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,r,n,s)}_wsOnSignatureNotification(t){const{result:r,subscription:n}=create(t,SignatureNotificationResult);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(t,r,n){const s=this._buildArgs([t],n||this._commitment||"finalized"),a=this._makeSubscription({callback:(l,u)=>{if(l.type==="status"){r(l.result,u);try{this.removeSignatureListener(a)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return a}onSignatureWithOptions(t,r,n){const{commitment:s,...a}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},l=this._buildArgs([t],s,void 0,a),u=this._makeSubscription({callback:(d,p)=>{r(d,p);try{this.removeSignatureListener(u)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},l);return u}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:r,subscription:n}=create(t,RootNotificationResult);this._handleServerNotification(n,[r])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Keypair{constructor(t){this._keypair=void 0,this._keypair=t??generateKeypair()}static generate(){return new Keypair(generateKeypair())}static fromSecretKey(t,r){if(t.byteLength!==64)throw new Error("bad secret key size");const n=t.slice(32,64);if(!r||!r.skipValidation){const s=t.slice(0,32),a=getPublicKey(s);for(let l=0;l<32;l++)if(n[l]!==a[l])throw new Error("provided secretKey is invalid")}return new Keypair({publicKey:n,secretKey:t})}static fromSeed(t){const r=getPublicKey(t),n=new Uint8Array(64);return n.set(t),n.set(r,32),new Keypair({publicKey:r,secretKey:n})}get publicKey(){return new PublicKey(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const LOOKUP_TABLE_INSTRUCTION_LAYOUTS=Object.freeze({CreateLookupTable:{index:0,layout:LayoutExports.struct([LayoutExports.u32("instruction"),u64("recentSlot"),LayoutExports.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},ExtendLookupTable:{index:2,layout:LayoutExports.struct([LayoutExports.u32("instruction"),u64(),LayoutExports.seq(publicKey(),LayoutExports.offset(LayoutExports.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},CloseLookupTable:{index:4,layout:LayoutExports.struct([LayoutExports.u32("instruction")])}});class AddressLookupTableInstruction{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=LayoutExports.u32("instruction").decode(t.data);let s;for(const[a,l]of Object.entries(LOOKUP_TABLE_INSTRUCTION_LAYOUTS))if(l.index==n){s=a;break}if(!s)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return s}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:r}=decodeData$1(LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(r)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:r}=decodeData$1(LOOKUP_TABLE_INSTRUCTION_LAYOUTS.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:r.map(n=>new PublicKey(n))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(AddressLookupTableProgram.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}class AddressLookupTableProgram{constructor(){}static createLookupTable(t){const[r,n]=PublicKey.findProgramAddressSync([t.authority.toBuffer(),getU64Encoder().encode(t.recentSlot)],this.programId),s=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CreateLookupTable,a=encodeData(s,{recentSlot:BigInt(t.re
2233centSlot),bumpSeed:n}),l=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:SystemProgram.programId,isSigner:!1,isWritable:!1}];return[new TransactionInstruction({programId:this.programId,keys:l,data:a}),r]}static freezeLookupTable(t){const r=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.FreezeLookupTable,n=encodeData(r),s=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new TransactionInstruction({programId:this.programId,keys:s,data:n})}static extendLookupTable(t){const r=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.ExtendLookupTable,n=encodeData(r,{addresses:t.addresses.map(a=>a.toBytes())}),s=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&s.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:SystemProgram.programId,isSigner:!1,isWritable:!1}),new TransactionInstruction({programId:this.programId,keys:s,data:n})}static deactivateLookupTable(t){const r=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.DeactivateLookupTable,n=encodeData(r),s=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new TransactionInstruction({programId:this.programId,keys:s,data:n})}static closeLookupTable(t){const r=LOOKUP_TABLE_INSTRUCTION_LAYOUTS.CloseLookupTable,n=encodeData(r),s=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new TransactionInstruction({programId:this.programId,keys:s,data:n})}}AddressLookupTableProgram.programId=new PublicKey("AddressLookupTab1e1111111111111111111111111");class ComputeBudgetInstruction{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=LayoutExports.u8("instruction").decode(t.data);let s;for(const[a,l]of Object.entries(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS))if(l.index==n){s=a;break}if(!s)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return s}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:r,additionalFee:n}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits,t.data);return{units:r,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:r}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestHeapFrame,t.data);return{bytes:r}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:r}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit,t.data);return{units:r}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:r}=decodeData$1(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice,t.data);return{microLamports:r}}static checkProgramId(t){if(!t.equals(ComputeBudgetProgram.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const COMPUTE_BUDGET_INSTRUCTION_LAYOUTS=Object.freeze({RequestUnits:{index:0,layout:LayoutExports.struct([LayoutExports.u8("instruction"),LayoutExports.u32("units"),LayoutExports.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:LayoutExports.struct([LayoutExports.u8("instruction"),LayoutExports.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:LayoutExports.struct([LayoutExports.u8("instruction"),LayoutExports.u32("units")])},SetComputeUnitPrice:{index:3,layout:LayoutExports.struct([LayoutExports.u8("instruction"),u64("microLamports")])}});class ComputeBudgetProgram{constructor(){}static requestUnits(t){const r=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits,n=encodeData(r,t);return new TransactionInstruction({keys:[],programId:this.programId,data:n})}static requestHeapFrame(t){const r=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestHeapFrame,n=encodeData(r,t);return new TransactionInstruction({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(t){const r=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit,n=encodeData(r,t);return new TransactionInstruction({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(t){const r=COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice,n=encodeData(r,{microLamports:BigInt(t.microLamports)});return new TransactionInstruction({keys:[],programId:this.programId,data:n})}}ComputeBudgetProgram.programId=new PublicKey("ComputeBudget111111111111111111111111111111");const PRIVATE_KEY_BYTES$1=64,PUBLIC_KEY_BYTES$1=32,SIGNATURE_BYTES=64,ED25519_INSTRUCTION_LAYOUT=LayoutExports.struct([LayoutExports.u8("numSignatures"),LayoutExports.u8("padding"),LayoutExports.u16("signatureOffset"),LayoutExports.u16("signatureInstructionIndex"),LayoutExports.u16("publicKeyOffset"),LayoutExports.u16("publicKeyInstructionIndex"),LayoutExports.u16("messageDataOffset"),LayoutExports.u16("messageDataSize"),LayoutExports.u16("messageInstructionIndex")]
2233);class Ed25519Program{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:r,message:n,signature:s,instructionIndex:a}=t;assert(r.length===PUBLIC_KEY_BYTES$1,`Public Key must be ${PUBLIC_KEY_BYTES$1} bytes but received ${r.length} bytes`),assert(s.length===SIGNATURE_BYTES,`Signature must be ${SIGNATURE_BYTES} bytes but received ${s.length} bytes`);const l=ED25519_INSTRUCTION_LAYOUT.span,u=l+r.length,d=u+s.length,p=1,h=bufferExports.Buffer.alloc(d+n.length),x=a??65535;return ED25519_INSTRUCTION_LAYOUT.encode({numSignatures:p,padding:0,signatureOffset:u,signatureInstructionIndex:x,publicKeyOffset:l,publicKeyInstructionIndex:x,messageDataOffset:d,messageDataSize:n.length,messageInstructionIndex:x},h),h.fill(r,l),h.fill(s,u),h.fill(n,d),new TransactionInstruction({keys:[],programId:Ed25519Program.programId,data:h})}static createInstructionWithPrivateKey(t){const{privateKey:r,message:n,instructionIndex:s}=t;assert(r.length===PRIVATE_KEY_BYTES$1,`Private key must be ${PRIVATE_KEY_BYTES$1} bytes but received ${r.length} bytes`);try{const a=Keypair.fromSecretKey(r),l=a.publicKey.toBytes(),u=sign(n,a.secretKey);return this.createInstructionWithPublicKey({publicKey:l,message:n,signature:u,instructionIndex:s})}catch(a){throw new Error(`Error creating instruction; ${a}`)}}}Ed25519Program.programId=new PublicKey("Ed25519SigVerify111111111111111111111111111");const ecdsaSign=(e,t)=>{const r=secp256k1.sign(e,t);return[r.toCompactRawBytes(),r.recovery]};secp256k1.utils.isValidPrivateKey;const publicKeyCreate=secp256k1.getPublicKey,PRIVATE_KEY_BYTES=32,ETHEREUM_ADDRESS_BYTES=20,PUBLIC_KEY_BYTES=64,SIGNATURE_OFFSETS_SERIALIZED_SIZE=11,SECP256K1_INSTRUCTION_LAYOUT=LayoutExports.struct([LayoutExports.u8("numSignatures"),LayoutExports.u16("signatureOffset"),LayoutExports.u8("signatureInstructionIndex"),LayoutExports.u16("ethAddressOffset"),LayoutExports.u8("ethAddressInstructionIndex"),LayoutExports.u16("messageDataOffset"),LayoutExports.u16("messageDataSize"),LayoutExports.u8("messageInstructionIndex"),LayoutExports.blob(20,"ethAddress"),LayoutExports.blob(64,"signature"),LayoutExports.u8("recoveryId")]);class Secp256k1Program{constructor(){}static publicKeyToEthAddress(t){assert(t.length===PUBLIC_KEY_BYTES,`Public key must be ${PUBLIC_KEY_BYTES} bytes but received ${t.length} bytes`);try{return bufferExports.Buffer.from(keccak_256(toBuffer(t))).slice(-ETHEREUM_ADDRESS_BYTES)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(t){const{publicKey:r,message:n,signature:s,recoveryId:a,instructionIndex:l}=t;return Secp256k1Program.createInstructionWithEthAddress({ethAddress:Secp256k1Program.publicKeyToEthAddress(r),message:n,signature:s,recoveryId:a,instructionIndex:l})}static createInstructionWithEthAddress(t){const{ethAddress:r,message:n,signature:s,recoveryId:a,instructionIndex:l=0}=t;let u;typeof r=="string"?r.startsWith("0x")?u=bufferExports.Buffer.from(r.substr(2),"hex"):u=bufferExports.Buffer.from(r,"hex"):u=r,assert(u.length===ETHEREUM_ADDRESS_BYTES,`Address must be ${ETHEREUM_ADDRESS_BYTES} bytes but received ${u.length} bytes`);const d=1+SIGNATURE_OFFSETS_SERIALIZED_SIZE,p=d,h=d+u.length,x=h+s.length+1,w=1,g=bufferExports.Buffer.alloc(SECP256K1_INSTRUCTION_LAYOUT.span+n.length);return SECP256K1_INSTRUCTION_LAYOUT.encode({numSignatures:w,signatureOffset:h,signatureInstructionIndex:l,ethAddressOffset:p,ethAddressInstructionIndex:l,messageDataOffset:x,messageDataSize:n.length,messageInstructionIndex:l,signature:toBuffer(s),ethAddress:toBuffer(u),recoveryId:a},g),g.fill(toBuffer(n),SECP256K1_INSTRUCTION_LAYOUT.span),new TransactionInstruction({keys:[],programId:Secp256k1Program.programId,data:g})}static createInstructionWithPrivateKey(t){const{privateKey:r,message:n,instructionIndex:s}=t;assert(r.length===PRIVATE_KEY_BYTES,`Private key must be ${PRIVATE_KEY_BYTES} bytes but received ${r.length} bytes`);try{const a=toBuffer(r),l=publicKeyCreate(a,!1).slice(1),u=bufferExports.Buffer.from(keccak_256(toBuffer(n))),[d,p]=ecdsaSign(u,a);return this.createInstructionWithPublicKey({publicKey:l,message:n,signature:d,recoveryId:p,instructionIndex:s})}catch(a){throw new Error(`Error creating instruction; ${a}`)}}}Secp256k1Program.programId=new PublicKey("KeccakSecp256k11111111111111111111111111111");var _Lockup;const STAKE_CONFIG_ID=new PublicKey("StakeConfig11111111111111111111111111111111");class Authorized{constructor(t,r){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=r}}class Lockup{constructor(t,r,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=r,this.custodian=n}}_Lockup=Lockup;Lockup.default=new _Lockup(0,0,PublicKey.default);
2233class StakeInstruction{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=LayoutExports.u32("instruction").decode(t.data);let s;for(const[a,l]of Object.entries(STAKE_INSTRUCTION_LAYOUTS))if(l.index==n){s=a;break}if(!s)throw new Error("Instruction type incorrect; not a StakeInstruction");return s}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:r,lockup:n}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new Authorized(new PublicKey(r.staker),new PublicKey(r.withdrawer)),lockup:new Lockup(n.unixTimestamp,n.epoch,new PublicKey(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:r,stakeAuthorizationType:n}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Authorize,t.data),s={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new PublicKey(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(s.custodianPubkey=t.keys[3].pubkey),s}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:r,stakeAuthorizationType:n,authoritySeed:s,authorityOwner:a}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,t.data),l={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:s,authorityOwner:new PublicKey(a),newAuthorizedPubkey:new PublicKey(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(l.custodianPubkey=t.keys[3].pubkey),l}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:r}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:r}=decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:r};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),decodeData$1(STAKE_INSTRUCTION_LAYOUTS.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(StakeProgram.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const STAKE_INSTRUCTION_LAYOUTS=Object.freeze({Initialize:{index:0,layout:LayoutExports.struct([LayoutExports.u32("instruction"),authorized(),lockup()])},Authorize:{index:1,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("newAuthorized"),LayoutExports.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},Split:{index:3,layout:LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.ns64("lamports")])},Withdraw:{index:4,layout:LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.ns64("lamports")])},Deactivate:{index:5,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},Merge:{index:7,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("newAuthorized"),LayoutExports.u32("stakeAuthorizationType"),rustString("authoritySeed"),publicKey("authorityOwner")])}}),StakeAuthorizationLayout=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class StakeProgram{constructor(){}static initialize(t){const{stakePubkey:r,authorized:n,lockup:s}=t,a=s||Lockup.default,l=STAKE_INSTRUCTION_LAYOUTS.Initialize,u=encodeData(l,{authorized:{staker:toBuffer(n.staker.toBuffer()),withdrawer:toBuffer(n.withdrawer.toBuffer())},lockup:{unixTimestamp:a.unixTimestamp,epoch:a.epoch,custodian:toBuffer(a.custodian.toBuffer())}}),d={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],programId:this.programId,data:u};return new TransactionInstruction(d)}static createAccountWithSeed(t){const r=new Transaction;r.add(SystemProgram.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:s,lockup:a}=t;return r.add(this.initialize({stakePubkey:n,authorized:s,lockup:a}))}static createAccount(t){const r=new Transaction;r.add(SystemProgram.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:s,lockup:a}=t;return r.add(this.initialize({stakePubkey:n,authorized:s,lockup:a}))}static delegate(t){const{stakePubkey:r,authorizedPubkey:n,votePubkey:s}=t,a=STAKE_INSTRUCTION_LAYOUTS.Delegate,l=encodeData(a);return new Transaction().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:s,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:STAKE_CONFIG_ID,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:l})}static authorize(t){const{stakePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:s,stakeAuthorizationType:a,custodianPubkey:l}=t,u=STAKE_INSTRUCTION_LAYOUTS.Authorize,d=encodeData(u,{newAuthorized:toBuffer(s.toBuffer()),stakeAuthorizationType:a.index}),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return l&&p.push({pubkey:l,isSigner:!0,isWritable:!1}),new Transaction().add({keys:p,programId:this.programId,data:d})}static authorizeWithSeed(t){const{stakePubkey:r,authorityBase:n,authoritySeed:s,authorityOwner:a,newAuthorizedPubkey:l,stakeAuthorizationType:u,custodianPubkey:d}
2233=t,p=STAKE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,h=encodeData(p,{newAuthorized:toBuffer(l.toBuffer()),stakeAuthorizationType:u.index,authoritySeed:s,authorityOwner:toBuffer(a.toBuffer())}),x=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1}];return d&&x.push({pubkey:d,isSigner:!0,isWritable:!1}),new Transaction().add({keys:x,programId:this.programId,data:h})}static splitInstruction(t){const{stakePubkey:r,authorizedPubkey:n,splitStakePubkey:s,lamports:a}=t,l=STAKE_INSTRUCTION_LAYOUTS.Split,u=encodeData(l,{lamports:a});return new TransactionInstruction({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static split(t,r){const n=new Transaction;return n.add(SystemProgram.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),n.add(this.splitInstruction(t))}static splitWithSeed(t,r){const{stakePubkey:n,authorizedPubkey:s,splitStakePubkey:a,basePubkey:l,seed:u,lamports:d}=t,p=new Transaction;return p.add(SystemProgram.allocate({accountPubkey:a,basePubkey:l,seed:u,space:this.space,programId:this.programId})),r&&r>0&&p.add(SystemProgram.transfer({fromPubkey:t.authorizedPubkey,toPubkey:a,lamports:r})),p.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:s,splitStakePubkey:a,lamports:d}))}static merge(t){const{stakePubkey:r,sourceStakePubKey:n,authorizedPubkey:s}=t,a=STAKE_INSTRUCTION_LAYOUTS.Merge,l=encodeData(a);return new Transaction().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:s,isSigner:!0,isWritable:!1}],programId:this.programId,data:l})}static withdraw(t){const{stakePubkey:r,authorizedPubkey:n,toPubkey:s,lamports:a,custodianPubkey:l}=t,u=STAKE_INSTRUCTION_LAYOUTS.Withdraw,d=encodeData(u,{lamports:a}),p=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_STAKE_HISTORY_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return l&&p.push({pubkey:l,isSigner:!0,isWritable:!1}),new Transaction().add({keys:p,programId:this.programId,data:d})}static deactivate(t){const{stakePubkey:r,authorizedPubkey:n}=t,s=STAKE_INSTRUCTION_LAYOUTS.Deactivate,a=encodeData(s);return new Transaction().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}}StakeProgram.programId=new PublicKey("Stake11111111111111111111111111111111111111");StakeProgram.space=200;class VoteInit{constructor(t,r,n,s){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=r,this.authorizedWithdrawer=n,this.commission=s}}class VoteInstruction{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=LayoutExports.u32("instruction").decode(t.data);let s;for(const[a,l]of Object.entries(VOTE_INSTRUCTION_LAYOUTS))if(l.index==n){s=a;break}if(!s)throw new Error("Instruction type incorrect; not a VoteInstruction");return s}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:r}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new VoteInit(new PublicKey(r.nodePubkey),new PublicKey(r.authorizedVoter),new PublicKey(r.authorizedWithdrawer),r.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:r,voteAuthorizationType:n}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new PublicKey(r),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:n,newAuthorized:s,voteAuthorizationType:a}}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new PublicKey(r),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new PublicKey(s),voteAuthorizationType:{index:a},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r}=decodeData$1(VOTE_INSTRUCTION_LAYOUTS.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:r,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(VoteProgram.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const VOTE_INSTRUCTION_LAYOUTS=Object.freeze({InitializeAccount:{index:0,layout:LayoutExports.struct([LayoutExports.u32("instruction"),voteInit()])},Authorize:{index:1,layout:LayoutExports.struct([LayoutExports.u32("instruction"),publicKey("newAuthorized"),LayoutExports.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:LayoutExports.struct([LayoutExports.u32("instruction"),LayoutExports.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:LayoutExports.struct([LayoutExports.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:LayoutExports.struct([LayoutExports.u32("instruction"),voteAuthorizeWithSeedArgs()])}}),VoteAuthorizationLayout=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class VoteProgram{constructor(){}static initializeAccount(t){const{votePubkey:r,nodePubkey:n,voteInit:s}=t,a=VOTE_INSTRUCTION_LAYOUTS.InitializeAccount,l=encodeData(a,{voteInit:{nodePubkey:toBuffer(s.nodePubkey.toBuffer()),authorizedVoter:toBuffer(s.authorizedVoter.toBuffer()),authorizedWithdrawer:toBuffer(s.authorizedWithdrawer.toBuffer()),commission:s.commission}}),u={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:l};return new TransactionInstruction(u)}static createAccount(t){const r=new Transaction;return r.add(SystemProgram.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:s,voteAuthorizationType:a}=t,l=VOTE_INSTRUCTION_LAYOUTS.Authorize,u=encodeData(l,{newAuthorized:toBuffer(s.toBuffer()),voteAuthorizationType:a.index}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:d,programId:this.programId,data:u})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:s,newAuthorizedPubkey:a,voteAuthorizationType:l,votePubkey:u}=t,d=VOTE_INSTRUCTION_LAYOUTS.AuthorizeWithSeed,p=encodeData(d,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:toBuffer(n.toBuffer()),currentAuthorityDerivedKeySeed:s,newAuthorized:toBuffer(a.toBuffer()),voteAuthorizationType:l.index}}),h=[{pubkey:u,isSigner:!1,isWritable:!0},{pubkey:SYSVAR_CLOCK_PUBKEY,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:h,programId:this.programId,data:p})}static withdraw(t){const{votePubkey:r,authorizedWithdrawerPubkey:n,lamports:s,toPubkey:a}=t,l=VOTE_INSTRUCTION_LAYOUTS.Withdraw,u=encodeData(l,{lamports:s}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:d,programId:this.programId,data:u})}static safeWithdraw(t,r,n){if(t.lamports>r-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return VoteProgram.withdraw(t)}static updateValidatorIdentity(t){const{votePubkey:r,authorizedWithdrawerPubkey:n,nodePubkey:s}=t,a=VOTE_INSTRUCTION_LAYOUTS.UpdateValidatorIdentity,l=encodeData(a),u=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:s,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Transaction().add({keys:u,programId:this.programId,data:l})}}VoteProgram.programId=new PublicKey("Vote111111111111111111111111111111111111111");VoteProgram.space=3762;const VALIDATOR_INFO_KEY=new PublicKey("Va1idator1nfo111111111111111111111111111111"),InfoString=type({name:string(),website:optional(string()),details:optional(string()),iconUrl:optional(string()),keybaseUsername:optional(string())});class ValidatorInfo{constructor(t,r){this.key=void 0,this.info=void 0,this.key=t,this.info=r}static fromConfigData(t){let r=[...t];if(decodeLength(r)!==2)return null;const s=[];for(let a=0;a<2;a++){const l=new PublicKey(guardedSplice(r,0,PUBLIC_KEY_LENGTH)),u=guardedShift(r)===1;s.push({publicKey:l,isSigner:u})}if(s[0].publicKey.equals(VALIDATOR_INFO_KEY)&&s[1].isSigner){const a=rustString().decode(bufferExports.Buffer.from(r)),l=JSON.parse(a);return assert$1(l,InfoString),new ValidatorInfo(s[1].publicKey,l)}return null}}const VOTE_PROGRAM_ID=new PublicKey("Vote111111111111111111111111111111111111111"),VoteAccountLayout=LayoutExports.struct([publicKey("nodePubkey"),publicKey("authorizedWithdrawer"),LayoutExports.u8("commission"),LayoutExports.nu64(),LayoutExports.seq(LayoutExports.struct([LayoutExports.nu64("slot"),LayoutExports.u32("confirmationCount")]),LayoutExports.offset(LayoutExports.u32(),-8),"votes"),LayoutExports.u8("rootSlotValid"),LayoutExports.nu64("rootSlot"),LayoutExports.nu64(),LayoutExports.seq(LayoutExports.struct([LayoutExports.nu64("epoch"),publicKey("authorizedVoter")]),LayoutExports.offset(LayoutExports.u32(),-8),"authorizedVoters"),LayoutExports.struct([LayoutExports.seq(LayoutExports.struct([publicKey("authorizedPubkey"),LayoutExports.nu64("epochOfLastAuthorizedSwitch"),LayoutExports.nu64("targetEpoch")]),32,"buf"),LayoutExports.nu64("idx"),LayoutExports.u8("isEmpty")],"priorVoters"),LayoutExports.nu64(),LayoutExports.seq(LayoutExports.struct([LayoutExports.nu64("epoch"),LayoutExports.nu64("credits"),LayoutExports.nu64("prevCredits")]),LayoutExports.offset(LayoutExports.u32(),-8),"epochCredits"),LayoutExports.struct([LayoutExports.nu64("slot"),LayoutExports.nu64("timestamp")],"lastTimestamp")]);class VoteAccount{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const n=VoteAccountLayout.decode(toBuffer(t),4);let s=n.rootSlot;return n.rootSlotValid||(s=null),new VoteAccount({nodePubkey:new PublicKey(n.nodePubkey),authorizedWithdrawer:new PublicKey(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:s,authorizedVoters:n.authorizedVoters.map(parseAuthorizedVoter),priorVoters:getPriorVoters(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function parseAuthorizedVoter({authorizedVoter:e,epoch:t}){return{epoch:t,authorizedVoter:new PublicKey(e)}}function parsePriorVoters({authorizedPubkey:e,epochOfLastAuthorizedSwitch:t,targetEpoch:r}){return{authorizedPubkey:new PublicKey(e),epochOfLastAuthorizedSwitch:t,targetEpoch:r}}function getPriorVoters({buf:e,idx:t,isEmpty:r}
2233){return r?[]:[...e.slice(t+1).map(parsePriorVoters),...e.slice(0,t).map(parsePriorVoters)]}const endpoint={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function clusterApiUrl(e,t){const r=t===!1?"http":"https";if(!e)return endpoint[r].devnet;const n=endpoint[r][e];if(!n)throw new Error(`Unknown ${r} cluster: ${e}`);return n}async function sendAndConfirmRawTransaction(e,t,r,n){let s,a;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(s=r,a=n):a=r;const l=a&&{skipPreflight:a.skipPreflight,preflightCommitment:a.preflightCommitment||a.commitment,minContextSlot:a.minContextSlot},u=await e.sendRawTransaction(t,l),d=a&&a.commitment,h=(await(s?e.confirmTransaction(s,d):e.confirmTransaction(u,d))).value;if(h.err)throw u!=null?new SendTransactionError({action:l?.skipPreflight?"send":"simulate",signature:u,transactionMessage:`Status: (${JSON.stringify(h)})`}):new Error(`Raw transaction ${u} failed (${JSON.stringify(h)})`);return u}const LAMPORTS_PER_SOL=1e9,index_browser_esm=Object.freeze(Object.defineProperty({__proto__:null,Account,AddressLookupTableAccount,AddressLookupTableInstruction,AddressLookupTableProgram,Authorized,BLOCKHASH_CACHE_TIMEOUT_MS,BPF_LOADER_DEPRECATED_PROGRAM_ID,BPF_LOADER_PROGRAM_ID,BpfLoader,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS,ComputeBudgetInstruction,ComputeBudgetProgram,Connection,Ed25519Program,Enum,EpochSchedule,FeeCalculatorLayout,Keypair,LAMPORTS_PER_SOL,LOOKUP_TABLE_INSTRUCTION_LAYOUTS,Loader,Lockup,MAX_SEED_LENGTH,Message,MessageAccountKeys,MessageV0,NONCE_ACCOUNT_LENGTH,NonceAccount,PACKET_DATA_SIZE,PUBLIC_KEY_LENGTH,PublicKey,SIGNATURE_LENGTH_IN_BYTES,SOLANA_SCHEMA,STAKE_CONFIG_ID,STAKE_INSTRUCTION_LAYOUTS,SYSTEM_INSTRUCTION_LAYOUTS,SYSVAR_CLOCK_PUBKEY,SYSVAR_EPOCH_SCHEDULE_PUBKEY,SYSVAR_INSTRUCTIONS_PUBKEY,SYSVAR_RECENT_BLOCKHASHES_PUBKEY,SYSVAR_RENT_PUBKEY,SYSVAR_REWARDS_PUBKEY,SYSVAR_SLOT_HASHES_PUBKEY,SYSVAR_SLOT_HISTORY_PUBKEY,SYSVAR_STAKE_HISTORY_PUBKEY,Secp256k1Program,SendTransactionError,SolanaJSONRPCError,SolanaJSONRPCErrorCode,StakeAuthorizationLayout,StakeInstruction,StakeProgram,Struct,SystemInstruction,SystemProgram,Transaction,TransactionExpiredBlockheightExceededError,TransactionExpiredNonceInvalidError,TransactionExpiredTimeoutError,TransactionInstruction,TransactionMessage,TransactionStatus,VALIDATOR_INFO_KEY,VERSION_PREFIX_MASK,VOTE_PROGRAM_ID,ValidatorInfo,VersionedMessage,VersionedTransaction,VoteAccount,VoteAuthorizationLayout,VoteInit,VoteInstruction,VoteProgram,clusterApiUrl,sendAndConfirmRawTransaction,sendAndConfirmTransaction},Symbol.toStringTag,{value:"Module"})),ConnectionContext=reactExports.createContext({});function useConnection(){return reactExports.useContext(ConnectionContext)}const ConnectionProvider=({children:e,endpoint:t,config:r={commitment:"confirmed"}})=>{const n=reactExports.useMemo(()=>new Connection(t,r),[t,r]);return React.createElement(ConnectionContext.Provider,{value:{connection:n}},e)};class WalletError extends Error{constructor(t,r){super(t),this.error=r}}class WalletNotReadyError extends WalletError{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class WalletLoadError extends WalletError{constructor(){super(...arguments),this.name="WalletLoadError"}}class WalletConfigError extends WalletError{constructor(){super(...arguments),this.name="WalletConfigError"}}class WalletConnectionError extends WalletError{constructor(){super(...arguments),this.name="WalletConnectionError"}}class WalletDisconnectedError extends WalletError{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class WalletDisconnectionError extends WalletError{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class WalletAccountError extends WalletError{constructor(){super(...arguments),this.name="WalletAccountError"}}class WalletPublicKeyError extends WalletError{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class WalletNotConnectedError extends WalletError{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class WalletSendTransactionError extends WalletError{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class WalletSignTransactionError extends WalletError{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class WalletSignMessageError extends WalletError{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class WalletSignInError extends WalletError{constructor(){super(...arguments),this.name="WalletSignInError"}}var WalletReadyState;(function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"})(WalletReadyState||(WalletReadyState={}));
2233class BaseWalletAdapter extends EventEmitter{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(t,r,n={}){const s=this.publicKey;if(!s)throw new WalletNotConnectedError;return t.feePayer=t.feePayer||s,t.recentBlockhash=t.recentBlockhash||(await r.getLatestBlockhash({commitment:n.preflightCommitment,minContextSlot:n.minContextSlot})).blockhash,t}}function scopePollingDetectionStrategy(e){if(typeof window>"u"||typeof document>"u")return;const t=[];function r(){if(e())for(const a of t)a()}const n=setInterval(r,1e3);t.push(()=>clearInterval(n)),document.readyState==="loading"&&(document.addEventListener("DOMContentLoaded",r,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",r))),document.readyState!=="complete"&&(window.addEventListener("load",r,{once:!0}),t.push(()=>window.removeEventListener("load",r))),r()}function isIosAndRedirectable(){if(!navigator)return!1;const e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),r=e.includes("safari");return t&&r}function isVersionedTransaction(e){return"version"in e}class BaseSignerWalletAdapter extends BaseWalletAdapter{async sendTransaction(t,r,n={}){let s=!0;try{if(isVersionedTransaction(t)){if(!this.supportedTransactionVersions)throw new WalletSendTransactionError("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new WalletSendTransactionError(`Sending transaction version ${t.version} isn't supported by this wallet`);try{t=await this.signTransaction(t);const a=t.serialize();return await r.sendRawTransaction(a,n)}catch(a){throw a instanceof WalletSignTransactionError?(s=!1,a):new WalletSendTransactionError(a?.message,a)}}else try{const{signers:a,...l}=n;t=await this.prepareTransaction(t,r,l),a?.length&&t.partialSign(...a),t=await this.signTransaction(t);const u=t.serialize();return await r.sendRawTransaction(u,l)}catch(a){throw a instanceof WalletSignTransactionError?(s=!1,a):new WalletSendTransactionError(a?.message,a)}}catch(a){throw s&&this.emit("error",a),a}}async signAllTransactions(t){for(const n of t)if(isVersionedTransaction(n)){if(!this.supportedTransactionVersions)throw new WalletSignTransactionError("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(n.version))throw new WalletSignTransactionError(`Signing transaction version ${n.version} isn't supported by this wallet`)}const r=[];for(const n of t)r.push(await this.signTransaction(n));return r}}class BaseMessageSignerWalletAdapter extends BaseSignerWalletAdapter{}const SolanaSignAndSendTransaction="solana:signAndSendTransaction",SolanaSignIn="solana:signIn",SolanaSignMessage="solana:signMessage",SolanaSignTransaction="solana:signTransaction",StandardConnect="standard:connect",StandardDisconnect="standard:disconnect",StandardEvents="standard:events";function isWalletAdapterCompatibleStandardWallet(e){return StandardConnect in e.features&&StandardEvents in e.features&&(SolanaSignAndSendTransaction in e.features||SolanaSignTransaction in e.features)}class WalletNotSelectedError extends WalletError{constructor(){super(...arguments),this.name="WalletNotSelectedError"}}const EMPTY_ARRAY=[],DEFAULT_CONTEXT$1={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select(){logMissingProviderError("call","select")},connect(){return Promise.reject(logMissingProviderError("call","connect"))},disconnect(){return Promise.reject(logMissingProviderError("call","disconnect"))},sendTransaction(){return Promise.reject(logMissingProviderError("call","sendTransaction"))},signTransaction(){return Promise.reject(logMissingProviderError("call","signTransaction"))},signAllTransactions(){return Promise.reject(logMissingProviderError("call","signAllTransactions"))},signMessage(){return Promise.reject(logMissingProviderError("call","signMessage"))},signIn(){return Promise.reject(logMissingProviderError("call","signIn"))}};Object.defineProperty(DEFAULT_CONTEXT$1,"wallets",{get(){return logMissingProviderError("read","wallets"),EMPTY_ARRAY}});Object.defineProperty(DEFAULT_CONTEXT$1,"wallet",{get(){return logMissingProviderError("read","wallet"),null}});Object.defineProperty(DEFAULT_CONTEXT$1,"publicKey",{get(){return logMissingProviderError("read","publicKey"),null}});function logMissingProviderError(e,t){const r=new Error(`You have tried to ${e} "${t}" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor of the component that uses WalletContext.`);return console.error(r),r}const WalletContext=reactExports.createContext(DEFAULT_CONTEXT$1);function useWallet(){return reactExports.useContext(WalletContext)}function useLocalStorage(e,t){const r=reactExports.useState(()=>{try{const a=localStorage.getItem(e);if(a)return JSON.parse(a)}catch(a){typeof window<"u"&&console.error(a)}return t}),n=r[0],s=reactExports.useRef(!0);return reactExports.useEffect(()=>{if(s.current){s.current=!1;return}try{n===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(n))}catch(a){typeof window<"u"&&console.error(a)}},[n,e]),r}var index_browser$2={},cjs$3={},adapter={},errors={},hasRequiredErrors;function requireErrors(){if(hasRequiredErrors)return errors;hasRequiredErrors=1,Object.defineProperty(errors,"__esModule",{value:!0}),errors.WalletWindowClosedError=errors.WalletWindowBlockedError=errors.WalletTimeoutError=errors.WalletSignInError=errors.WalletSignMessageError=errors.WalletSignTransactionError=errors.WalletSendTransactionError=errors.Wallet
2233NotConnectedError=errors.WalletKeypairError=errors.WalletPublicKeyError=errors.WalletAccountError=errors.WalletDisconnectionError=errors.WalletDisconnectedError=errors.WalletConnectionError=errors.WalletConfigError=errors.WalletLoadError=errors.WalletNotReadyError=errors.WalletError=void 0;class e extends Error{constructor(T,z){super(T),this.error=z}}errors.WalletError=e;class t extends e{constructor(){super(...arguments),this.name="WalletNotReadyError"}}errors.WalletNotReadyError=t;class r extends e{constructor(){super(...arguments),this.name="WalletLoadError"}}errors.WalletLoadError=r;class n extends e{constructor(){super(...arguments),this.name="WalletConfigError"}}errors.WalletConfigError=n;class s extends e{constructor(){super(...arguments),this.name="WalletConnectionError"}}errors.WalletConnectionError=s;class a extends e{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}errors.WalletDisconnectedError=a;class l extends e{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}errors.WalletDisconnectionError=l;class u extends e{constructor(){super(...arguments),this.name="WalletAccountError"}}errors.WalletAccountError=u;class d extends e{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}errors.WalletPublicKeyError=d;class p extends e{constructor(){super(...arguments),this.name="WalletKeypairError"}}errors.WalletKeypairError=p;class h extends e{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}errors.WalletNotConnectedError=h;class x extends e{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}errors.WalletSendTransactionError=x;class w extends e{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}errors.WalletSignTransactionError=w;class g extends e{constructor(){super(...arguments),this.name="WalletSignMessageError"}}errors.WalletSignMessageError=g;class b extends e{constructor(){super(...arguments),this.name="WalletSignInError"}}errors.WalletSignInError=b;class v extends e{constructor(){super(...arguments),this.name="WalletTimeoutError"}}errors.WalletTimeoutError=v;class E extends e{constructor(){super(...arguments),this.name="WalletWindowBlockedError"}}errors.WalletWindowBlockedError=E;class j extends e{constructor(){super(...arguments),this.name="WalletWindowClosedError"}}return errors.WalletWindowClosedError=j,errors}var hasRequiredAdapter;function requireAdapter(){if(hasRequiredAdapter)return adapter;hasRequiredAdapter=1;var e=adapter&&adapter.__awaiter||function(d,p,h,x){function w(g){return g instanceof h?g:new h(function(b){b(g)})}return new(h||(h=Promise))(function(g,b){function v(R){try{j(x.next(R))}catch(T){b(T)}}function E(R){try{j(x.throw(R))}catch(T){b(T)}}function j(R){R.done?g(R.value):w(R.value).then(v,E)}j((x=x.apply(d,p||[])).next())})},t=adapter&&adapter.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(adapter,"__esModule",{value:!0}),adapter.BaseWalletAdapter=adapter.WalletReadyState=adapter.EventEmitter=void 0,adapter.scopePollingDetectionStrategy=l,adapter.isIosAndRedirectable=u;const r=t(requireEventemitter3());adapter.EventEmitter=r.default;const n=requireErrors();var s;(function(d){d.Installed="Installed",d.NotDetected="NotDetected",d.Loadable="Loadable",d.Unsupported="Unsupported"})(s||(adapter.WalletReadyState=s={}));class a extends r.default{get connected(){return!!this.publicKey}autoConnect(){return e(this,void 0,void 0,function*(){yield this.connect()})}prepareTransaction(p,h){return e(this,arguments,void 0,function*(x,w,g={}){const b=this.publicKey;if(!b)throw new n.WalletNotConnectedError;return x.feePayer=x.feePayer||b,x.recentBlockhash=x.recentBlockhash||(yield w.getLatestBlockhash({commitment:g.preflightCommitment,minContextSlot:g.minContextSlot})).blockhash,x})}}adapter.BaseWalletAdapter=a;function l(d){if(typeof window>"u"||typeof document>"u")return;const p=[];function h(){if(d())for(const g of p)g()}const x=setInterval(h,1e3);p.push(()=>clearInterval(x)),document.readyState==="loading"&&(document.addEventListener("DOMContentLoaded",h,{once:!0}),p.push(()=>document.removeEventListener("DOMContentLoaded",h))),document.readyState!=="complete"&&(window.addEventListener("load",h,{once:!0}),p.push(()=>window.removeEventListener("load",h))),h()}function u(){if(!navigator)return!1;const d=navigator.userAgent.toLowerCase(),p=d.includes("iphone")||d.includes("ipad"),h=d.includes("safari");return p&&h}return adapter}var signer={},transaction={},hasRequiredTransaction;function requireTransaction(){if(hasRequiredTransaction)return transaction;hasRequiredTransaction=1,Object.defineProperty(transaction,"__esModule",{value:!0}),transaction.isVersionedTransaction=e;function e(t){return"version"in t}return transaction}var hasRequiredSigner;
2233function requireSigner(){if(hasRequiredSigner)return signer;hasRequiredSigner=1;var e=signer&&signer.__awaiter||function(d,p,h,x){function w(g){return g instanceof h?g:new h(function(b){b(g)})}return new(h||(h=Promise))(function(g,b){function v(R){try{j(x.next(R))}catch(T){b(T)}}function E(R){try{j(x.throw(R))}catch(T){b(T)}}function j(R){R.done?g(R.value):w(R.value).then(v,E)}j((x=x.apply(d,p||[])).next())})},t=signer&&signer.__rest||function(d,p){var h={};for(var x in d)Object.prototype.hasOwnProperty.call(d,x)&&p.indexOf(x)<0&&(h[x]=d[x]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,x=Object.getOwnPropertySymbols(d);w<x.length;w++)p.indexOf(x[w])<0&&Object.prototype.propertyIsEnumerable.call(d,x[w])&&(h[x[w]]=d[x[w]]);return h};Object.defineProperty(signer,"__esModule",{value:!0}),signer.BaseSignInMessageSignerWalletAdapter=signer.BaseMessageSignerWalletAdapter=signer.BaseSignerWalletAdapter=void 0;const r=requireAdapter(),n=requireErrors(),s=requireTransaction();class a extends r.BaseWalletAdapter{sendTransaction(p,h){return e(this,arguments,void 0,function*(x,w,g={}){let b=!0;try{if((0,s.isVersionedTransaction)(x)){if(!this.supportedTransactionVersions)throw new n.WalletSendTransactionError("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(x.version))throw new n.WalletSendTransactionError(`Sending transaction version ${x.version} isn't supported by this wallet`);try{x=yield this.signTransaction(x);const v=x.serialize();return yield w.sendRawTransaction(v,g)}catch(v){throw v instanceof n.WalletSignTransactionError?(b=!1,v):new n.WalletSendTransactionError(v?.message,v)}}else try{const{signers:v}=g,E=t(g,["signers"]);x=yield this.prepareTransaction(x,w,E),v?.length&&x.partialSign(...v),x=yield this.signTransaction(x);const j=x.serialize();return yield w.sendRawTransaction(j,E)}catch(v){throw v instanceof n.WalletSignTransactionError?(b=!1,v):new n.WalletSendTransactionError(v?.message,v)}}catch(v){throw b&&this.emit("error",v),v}})}signAllTransactions(p){return e(this,void 0,void 0,function*(){for(const x of p)if((0,s.isVersionedTransaction)(x)){if(!this.supportedTransactionVersions)throw new n.WalletSignTransactionError("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(x.version))throw new n.WalletSignTransactionError(`Signing transaction version ${x.version} isn't supported by this wallet`)}const h=[];for(const x of p)h.push(yield this.signTransaction(x));return h})}}signer.BaseSignerWalletAdapter=a;class l extends a{}signer.BaseMessageSignerWalletAdapter=l;class u extends l{}return signer.BaseSignInMessageSignerWalletAdapter=u,signer}var standard={},cjs$2={},signAndSendTransaction={},hasRequiredSignAndSendTransaction;function requireSignAndSendTransaction(){return hasRequiredSignAndSendTransaction||(hasRequiredSignAndSendTransaction=1,Object.defineProperty(signAndSendTransaction,"__esModule",{value:!0}),signAndSendTransaction.SolanaSignAndSendTransaction=void 0,signAndSendTransaction.SolanaSignAndSendTransaction="solana:signAndSendTransaction"),signAndSendTransaction}var signIn={},hasRequiredSignIn;function requireSignIn(){return hasRequiredSignIn||(hasRequiredSignIn=1,Object.defineProperty(signIn,"__esModule",{value:!0}),signIn.SolanaSignIn=void 0,signIn.SolanaSignIn="solana:signIn"),signIn}var signMessage={},hasRequiredSignMessage;function requireSignMessage(){return hasRequiredSignMessage||(hasRequiredSignMessage=1,Object.defineProperty(signMessage,"__esModule",{value:!0}),signMessage.SolanaSignMessage=void 0,signMessage.SolanaSignMessage="solana:signMessage"),signMessage}var signTransaction={},hasRequiredSignTransaction;function requireSignTransaction(){return hasRequiredSignTransaction||(hasRequiredSignTransaction=1,Object.defineProperty(signTransaction,"__esModule",{value:!0}),signTransaction.SolanaSignTransaction=void 0,signTransaction.SolanaSignTransaction="solana:signTransaction"),signTransaction}var signAndSendAllTransactions={},hasRequiredSignAndSendAllTransactions;function requireSignAndSendAllTransactions(){return hasRequiredSignAndSendAllTransactions||(hasRequiredSignAndSendAllTransactions=1,Object.defineProperty(signAndSendAllTransactions,"__esModule",{value:!0}),signAndSendAllTransactions.SignAndSendAllTransactions=void 0,signAndSendAllTransactions.SignAndSendAllTransactions="solana:signAndSendAllTransactions"),signAndSendAllTransactions}var hasRequiredCjs$3;function requireCjs$3(){return hasRequiredCjs$3||(hasRequiredCjs$3=1,(function(e){var t=cjs$2&&cjs$2.__createBinding||(Object.create?(function(n,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(n,l,u)}):(function(n,s,a,l){l===void 0&&(l=a),n[l]=s[a]})),r=cjs$2&&cjs$2.__exportStar||function(n,s){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,n,a)};
2233Object.defineProperty(e,"__esModule",{value:!0}),r(requireSignAndSendTransaction(),e),r(requireSignIn(),e),r(requireSignMessage(),e),r(requireSignTransaction(),e),r(requireSignAndSendAllTransactions(),e)})(cjs$2)),cjs$2}var cjs$1={},connect={},hasRequiredConnect;function requireConnect(){return hasRequiredConnect||(hasRequiredConnect=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Connect=e.StandardConnect=void 0,e.StandardConnect="standard:connect",e.Connect=e.StandardConnect})(connect)),connect}var disconnect={},hasRequiredDisconnect;function requireDisconnect(){return hasRequiredDisconnect||(hasRequiredDisconnect=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disconnect=e.StandardDisconnect=void 0,e.StandardDisconnect="standard:disconnect",e.Disconnect=e.StandardDisconnect})(disconnect)),disconnect}var events={},hasRequiredEvents;function requireEvents(){return hasRequiredEvents||(hasRequiredEvents=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=e.StandardEvents=void 0,e.StandardEvents="standard:events",e.Events=e.StandardEvents})(events)),events}var hasRequiredCjs$2;function requireCjs$2(){return hasRequiredCjs$2||(hasRequiredCjs$2=1,(function(e){var t=cjs$1&&cjs$1.__createBinding||(Object.create?(function(n,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(n,l,u)}):(function(n,s,a,l){l===void 0&&(l=a),n[l]=s[a]})),r=cjs$1&&cjs$1.__exportStar||function(n,s){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(requireConnect(),e),r(requireDisconnect(),e),r(requireEvents(),e)})(cjs$1)),cjs$1}var hasRequiredStandard;function requireStandard(){if(hasRequiredStandard)return standard;hasRequiredStandard=1,Object.defineProperty(standard,"__esModule",{value:!0}),standard.isWalletAdapterCompatibleStandardWallet=r;const e=requireCjs$3(),t=requireCjs$2();function r(n){return t.StandardConnect in n.features&&t.StandardEvents in n.features&&(e.SolanaSignAndSendTransaction in n.features||e.SolanaSignTransaction in n.features)}return standard}var types={},hasRequiredTypes;function requireTypes(){if(hasRequiredTypes)return types;hasRequiredTypes=1,Object.defineProperty(types,"__esModule",{value:!0}),types.WalletAdapterNetwork=void 0;var e;return(function(t){t.Mainnet="mainnet-beta",t.Testnet="testnet",t.Devnet="devnet"})(e||(types.WalletAdapterNetwork=e={})),types}var hasRequiredCjs$1;function requireCjs$1(){return hasRequiredCjs$1||(hasRequiredCjs$1=1,(function(e){var t=cjs$3&&cjs$3.__createBinding||(Object.create?(function(n,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(n,l,u)}):(function(n,s,a,l){l===void 0&&(l=a),n[l]=s[a]})),r=cjs$3&&cjs$3.__exportStar||function(n,s){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(requireAdapter(),e),r(requireErrors(),e),r(requireSigner(),e),r(requireStandard(),e),r(requireTransaction(),e),r(requireTypes(),e)})(cjs$3)),cjs$3}const require$$5=getAugmentedNamespace(index_browser_esm);var index_browser$1={},browser={},canPromise,hasRequiredCanPromise;function requireCanPromise(){return hasRequiredCanPromise||(hasRequiredCanPromise=1,canPromise=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),canPromise}var qrcode={},utils$1={},hasRequiredUtils$1;function requireUtils$1(){if(hasRequiredUtils$1)return utils$1;hasRequiredUtils$1=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return utils$1.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},utils$1.getSymbolTotalCodewords=function(n){return t[n]},utils$1.getBCHDigit=function(r){let n=0;for(;r!==0;)n++,r>>>=1;return n},utils$1.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},utils$1.isKanjiModeEnabled=function(){return typeof e<"u"},utils$1.toSJIS=function(n){return e(n)},utils$1}var errorCorrectionLevel={},hasRequiredErrorCorrectionLevel;function requireErrorCorrectionLevel(){return hasRequiredErrorCorrectionLevel||(hasRequiredErrorCorrectionLevel=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,s){if(e.isValid(n))return n;try{return t(n)}catch{return s}}})(errorCorrectionLevel)),errorCorrectionLevel}var bitBuffer,hasRequiredBitBuffer;function requireBitBuffer(){if(hasRequiredBitBuffer)return bitBuffer;hasRequiredBitBuffer=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let n=0;n<r;n++)this.putBit((t>>>r-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},bitBuffer=e,bitBuffer}var bitMatrix,hasRequiredBitMatrix;function requireBitMatrix(){if(hasRequiredBitMatrix)return bitMatrix;hasRequiredBitMatrix=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,n,s){const a=t*this.size+r;this.data[a]=n,s&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,n){this.data[t*this.size+r]^=n},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},bitMatrix=e,bitMatrix}var alignmentPattern={},hasRequiredAlignmentPattern;function requireAlignmentPattern(){return hasRequiredAlignmentPattern||(hasRequiredAlignmentPattern=1,(function(e){const t=requireUtils$1().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const s=Math.floor(n/7)+2,a=t(n),l=a===145?26:Math.ceil((a-13)/(2*s-2))*2,u=[a-
vendor: 27,579 bytes, lines 2233-2246
22337];for(let d=1;d<s-1;d++)u[d]=u[d-1]-l;return u.push(6),u.reverse()},e.getPositions=function(n){const s=[],a=e.getRowColCoords(n),l=a.length;for(let u=0;u<l;u++)for(let d=0;d<l;d++)u===0&&d===0||u===0&&d===l-1||u===l-1&&d===0||s.push([a[u],a[d]]);return s}})(alignmentPattern)),alignmentPattern}var finderPattern={},hasRequiredFinderPattern;function requireFinderPattern(){if(hasRequiredFinderPattern)return finderPattern;hasRequiredFinderPattern=1;const e=requireUtils$1().getSymbolSize,t=7;return finderPattern.getPositions=function(n){const s=e(n);return[[0,0],[s-t,0],[0,s-t]]},finderPattern}var maskPattern={},hasRequiredMaskPattern;function requireMaskPattern(){return hasRequiredMaskPattern||(hasRequiredMaskPattern=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},e.from=function(s){return e.isValid(s)?parseInt(s,10):void 0},e.getPenaltyN1=function(s){const a=s.size;let l=0,u=0,d=0,p=null,h=null;for(let x=0;x<a;x++){u=d=0,p=h=null;for(let w=0;w<a;w++){let g=s.get(x,w);g===p?u++:(u>=5&&(l+=t.N1+(u-5)),p=g,u=1),g=s.get(w,x),g===h?d++:(d>=5&&(l+=t.N1+(d-5)),h=g,d=1)}u>=5&&(l+=t.N1+(u-5)),d>=5&&(l+=t.N1+(d-5))}return l},e.getPenaltyN2=function(s){const a=s.size;let l=0;for(let u=0;u<a-1;u++)for(let d=0;d<a-1;d++){const p=s.get(u,d)+s.get(u,d+1)+s.get(u+1,d)+s.get(u+1,d+1);(p===4||p===0)&&l++}return l*t.N2},e.getPenaltyN3=function(s){const a=s.size;let l=0,u=0,d=0;for(let p=0;p<a;p++){u=d=0;for(let h=0;h<a;h++)u=u<<1&2047|s.get(p,h),h>=10&&(u===1488||u===93)&&l++,d=d<<1&2047|s.get(h,p),h>=10&&(d===1488||d===93)&&l++}return l*t.N3},e.getPenaltyN4=function(s){let a=0;const l=s.data.length;for(let d=0;d<l;d++)a+=s.data[d];return Math.abs(Math.ceil(a*100/l/5)-10)*t.N4};function r(n,s,a){switch(n){case e.Patterns.PATTERN000:return(s+a)%2===0;case e.Patterns.PATTERN001:return s%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(s+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return s*a%2+s*a%3===0;case e.Patterns.PATTERN110:return(s*a%2+s*a%3)%2===0;case e.Patterns.PATTERN111:return(s*a%3+(s+a)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(s,a){const l=a.size;for(let u=0;u<l;u++)for(let d=0;d<l;d++)a.isReserved(d,u)||a.xor(d,u,r(s,d,u))},e.getBestMask=function(s,a){const l=Object.keys(e.Patterns).length;let u=0,d=1/0;for(let p=0;p<l;p++){a(p),e.applyMask(p,s);const h=e.getPenaltyN1(s)+e.getPenaltyN2(s)+e.getPenaltyN3(s)+e.getPenaltyN4(s);e.applyMask(p,s),h<d&&(d=h,u=p)}return u}})(maskPattern)),maskPattern}var errorCorrectionCode={},hasRequiredErrorCorrectionCode;function requireErrorCorrectionCode(){if(hasRequiredErrorCorrectionCode)return errorCorrectionCode;hasRequiredErrorCorrectionCode=1;const e=requireErrorCorrectionLevel(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return errorCorrectionCode.getBlocksCount=function(s,a){switch(a){case e.L:return t[(s-1)*4+0];case e.M:return t[(s-1)*4+1];case e.Q:return t[(s-1)*4+2];case e.H:return t[(s-1)*4+3];default:return}},errorCorrectionCode.getTotalCodewordsCount=function(s,a){switch(a){case e.L:return r[(s-1)*4+0];case e.M:return r[(s-1)*4+1];case e.Q:return r[(s-1)*4+2];case e.H:return r[(s-1)*4+3];default:return}},errorCorrectionCode}var polynomial={},galoisField={},hasRequiredGaloisField;function requireGaloisField(){if(hasRequiredGaloisField)return galoisField;hasRequiredGaloisField=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let n=1;for(let s=0;s<255;s++)e[s]=n,t[n]=s,n<<=1,n&256&&(n^=285);for(let s=255;s<512;s++)e[s]=e[s-255]})(),galoisField.log=function(n){if(n<1)throw new Error("log("+n+")");return t[n]},galoisField.exp=function(n){return e[n]},galoisField.mul=function(n,s){return n===0||s===0?0:e[t[n]+t[s]]},galoisField}var hasRequiredPolynomial;function requirePolynomial(){return hasRequiredPolynomial||(hasRequiredPolynomial=1,(function(e){const t=requireGaloisField();e.mul=function(n,s){const a=new Uint8Array(n.length+s.length-1);for(let l=0;l<n.length;l++)for(let u=0;u<s.length;u++)a[l+u]^=t.mul(n[l],s[u]);return a},e.mod=function(n,s){let a=new Uint8Array(n);for(;a.length-s.length>=0;){const l=a[0];for(let d=0;d<s.length;d++)a[d]^=t.mul(s[d],l);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(n){let s=new Uint8Array([1]);for(let a=0;a<n;a++)s=e.mul(s,new Uint8Array([1,t.exp(a)]));return s}})(polynomial)),polynomial}var reedSolomonEncoder,hasRequiredReedSolomonEncoder;function requireReedSolomonEncoder(){if(hasRequiredReedSolomonEncoder)return reedSolomonEncoder;hasRequiredReedSolomonEncoder=1;const e=requirePolynomial();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(n.length+this.degree);s.set(n);const a=e.mod(s,this.genPoly),l=this.degree-a.length;if(l>0){const u=new Uint8Array(this.degree);return u.set(a,l),u}return a},reedSolomonEncoder=t,reedSolomonEncoder}var version={},mode={},versionCheck={},hasRequiredVersionCheck;function requireVersionCheck(){return hasRequiredVersionCheck||(hasRequiredVersionCheck=1,versionCheck.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),versionCheck}var regex={},hasRequiredRegex;function requireRegex(){if(hasRequiredRegex)return regex;hasRequiredRegex=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r 2234]))+`;regex.KANJI=new RegExp(r,"g"),regex.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex.BYTE=new RegExp(n,"g"),regex.NUMERIC=new RegExp(e,"g"),regex.ALPHANUMERIC=new RegExp(t,"g");const s=new RegExp("^"+r+"$"),a=new RegExp("^"+e+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return regex.testKanji=function(d){return s.test(d)},regex.testNumeric=function(d){return a.test(d)},regex.testAlphanumeric=function(d){return l.test(d)},regex}var hasRequiredMode;function requireMode(){return hasRequiredMode||(hasRequiredMode=1,(function(e){const t=requireVersionCheck(),r=requireRegex();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,l){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?a.ccBits[0]:l<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return r.testNumeric(a)?e.NUMERIC:r.testAlphanumeric(a)?e.ALPHANUMERIC:r.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function n(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(a,l){if(e.isValid(a))return a;try{return n(a)}catch{return l}}})(mode)),mode}var hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,(function(e){const t=requireUtils$1(),r=requireErrorCorrectionCode(),n=requireErrorCorrectionLevel(),s=requireMode(),a=requireVersionCheck(),l=7973,u=t.getBCHDigit(l);function d(w,g,b){for(let v=1;v<=40;v++)if(g<=e.getCapacity(v,b,w))return v}function p(w,g){return s.getCharCountIndicator(w,g)+4}function h(w,g){let b=0;return w.forEach(function(v){const E=p(v.mode,g);b+=E+v.getBitsLength()}),b}function x(w,g){for(let b=1;b<=40;b++)if(h(w,b)<=e.getCapacity(b,g,s.MIXED))return b}e.from=function(g,b){return a.isValid(g)?parseInt(g,10):b},e.getCapacity=function(g,b,v){if(!a.isValid(g))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=s.BYTE);const E=t.getSymbolTotalCodewords(g),j=r.getTotalCodewordsCount(g,b),R=(E-j)*8;if(v===s.MIXED)return R;const T=R-p(v,g);switch(v){case s.NUMERIC:return Math.floor(T/10*3);case s.ALPHANUMERIC:return Math.floor(T/11*2);case s.KANJI:return Math.floor(T/13);case s.BYTE:default:return Math.floor(T/8)}},e.getBestVersionForData=function(g,b){let v;const E=n.from(b,n.M);if(Array.isArray(g)){if(g.length>1)return x(g,E);if(g.length===0)return 1;v=g[0]}else v=g;return d(v.mode,v.getLength(),E)},e.getEncodedBits=function(g){if(!a.isValid(g)||g<7)throw new Error("Invalid QR Code version");let b=g<<12;for(;t.getBCHDigit(b)-u>=0;)b^=l<<t.getBCHDigit(b)-u;return g<<12|b}})(version)),version}var formatInfo={},hasRequiredFormatInfo;function requireFormatInfo(){if(hasRequiredFormatInfo)return formatInfo;hasRequiredFormatInfo=1;const e=requireUtils$1(),t=1335,r=21522,n=e.getBCHDigit(t);return formatInfo.getEncodedBits=function(a,l){const u=a.bit<<3|l;let d=u<<10;for(;e.getBCHDigit(d)-n>=0;)d^=t<<e.getBCHDigit(d)-n;return(u<<10|d)^r},formatInfo}var segments={},numericData,hasRequiredNumericData;function requireNumericData(){if(hasRequiredNumericData)return numericData;hasRequiredNumericData=1;const e=requireMode();function t(r){this.mode=e.NUMERIC,this.data=r.toString()}return t.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let s,a,l;for(s=0;s+3<=this.data.length;s+=3)a=this.data.substr(s,3),l=parseInt(a,10),n.put(l,10);const u=this.data.length-s;u>0&&(a=this.data.substr(s),l=parseInt(a,10),n.put(l,u*3+1))},numericData=t,numericData}var alphanumericData,hasRequiredAlphanumericData;function requireAlphanumericData(){if(hasRequiredAlphanumericData)return alphanumericData;hasRequiredAlphanumericData=1;const e=requireMode(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(n){this.mode=e.ALPHANUMERIC,this.data=n}return r.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){let a;for(a=0;a+2<=this.data.length;a+=2){let l=t.indexOf(this.data[a])*45;l+=t.indexOf(this.data[a+1]),s.put(l,11)}this.data.length%2&&s.put(t.indexOf(this.data[a]),6)},alphanumericData=r,alphanumericData}var byteData,hasRequiredByteData;function requireByteData(){if(hasRequiredByteData)return byteData;hasRequiredByteData=1;const e=requireMode();function t(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return t.getBitsLength=function(n){return n*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){for(let n=0,s=this.data.length;n<s;n++)r.put(this.data[n],8)},byteData=t,byteData}var kanjiData,hasRequiredKanjiData;function requireKanjiData(){if(hasRequiredKanjiData)return kanjiData;hasRequiredKanjiData=1;const e=requireMode(),t=requireUtils$1();function r(n){this.mode=e.KANJI,this.data=n}return r.getBitsLength=function(s){return s*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(n){let s;for(s=0;s<this.data.length;s++){let a=t.toSJIS(this.data[s]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+` 2235Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),n.put(a,13)}},kanjiData=r,kanjiData}var dijkstra={exports:{}},hasRequiredDijkstra;function requireDijkstra(){return hasRequiredDijkstra||(hasRequiredDijkstra=1,(function(e){var t={single_source_shortest_paths:function(r,n,s){var a={},l={};l[n]=0;var u=t.PriorityQueue.make();u.push(n,0);for(var d,p,h,x,w,g,b,v,E;!u.empty();){d=u.pop(),p=d.value,x=d.cost,w=r[p]||{};for(h in w)w.hasOwnProperty(h)&&(g=w[h],b=x+g,v=l[h],E=typeof l[h]>"u",(E||v>b)&&(l[h]=b,u.push(h,b),a[h]=p))}if(typeof s<"u"&&typeof l[s]>"u"){var j=["Could not find a path from ",n," to ",s,"."].join("");throw new Error(j)}return a},extract_shortest_path_from_predecessor_list:function(r,n){for(var s=[],a=n;a;)s.push(a),r[a],a=r[a];return s.reverse(),s},find_path:function(r,n,s){var a=t.single_source_shortest_paths(r,n,s);return t.extract_shortest_path_from_predecessor_list(a,s)},PriorityQueue:{make:function(r){var n=t.PriorityQueue,s={},a;r=r||{};for(a in n)n.hasOwnProperty(a)&&(s[a]=n[a]);return s.queue=[],s.sorter=r.sorter||n.default_sorter,s},default_sorter:function(r,n){return r.cost-n.cost},push:function(r,n){var s={value:r,cost:n};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(dijkstra)),dijkstra.exports}var hasRequiredSegments;function requireSegments(){return hasRequiredSegments||(hasRequiredSegments=1,(function(e){const t=requireMode(),r=requireNumericData(),n=requireAlphanumericData(),s=requireByteData(),a=requireKanjiData(),l=requireRegex(),u=requireUtils$1(),d=requireDijkstra();function p(j){return unescape(encodeURIComponent(j)).length}function h(j,R,T){const z=[];let L;for(;(L=j.exec(T))!==null;)z.push({data:L[0],index:L.index,mode:R,length:L[0].length});return z}function x(j){const R=h(l.NUMERIC,t.NUMERIC,j),T=h(l.ALPHANUMERIC,t.ALPHANUMERIC,j);let z,L;return u.isKanjiModeEnabled()?(z=h(l.BYTE,t.BYTE,j),L=h(l.KANJI,t.KANJI,j)):(z=h(l.BYTE_KANJI,t.BYTE,j),L=[]),R.concat(T,z,L).sort(function($,U){return $.index-U.index}).map(function($){return{data:$.data,mode:$.mode,length:$.length}})}function w(j,R){switch(R){case t.NUMERIC:return r.getBitsLength(j);case t.ALPHANUMERIC:return n.getBitsLength(j);case t.KANJI:return a.getBitsLength(j);case t.BYTE:return s.getBitsLength(j)}}function g(j){return j.reduce(function(R,T){const z=R.length-1>=0?R[R.length-1]:null;return z&&z.mode===T.mode?(R[R.length-1].data+=T.data,R):(R.push(T),R)},[])}function b(j){const R=[];for(let T=0;T<j.length;T++){const z=j[T];switch(z.mode){case t.NUMERIC:R.push([z,{data:z.data,mode:t.ALPHANUMERIC,length:z.length},{data:z.data,mode:t.BYTE,length:z.length}]);break;case t.ALPHANUMERIC:R.push([z,{data:z.data,mode:t.BYTE,length:z.length}]);break;case t.KANJI:R.push([z,{data:z.data,mode:t.BYTE,length:p(z.data)}]);break;case t.BYTE:R.push([{data:z.data,mode:t.BYTE,length:p(z.data)}])}}return R}function v(j,R){const T={},z={start:{}};let L=["start"];for(let V=0;V<j.length;V++){const $=j[V],U=[];for(let B=0;B<$.length;B++){const P=$[B],H=""+V+B;U.push(H),T[H]={node:P,lastCount:0},z[H]={};for(let Z=0;Z<L.length;Z++){const O=L[Z];T[O]&&T[O].node.mode===P.mode?(z[O][H]=w(T[O].lastCount+P.length,P.mode)-w(T[O].lastCount,P.mode),T[O].lastCount+=P.length):(T[O]&&(T[O].lastCount=P.length),z[O][H]=w(P.length,P.mode)+4+t.getCharCountIndicator(P.mode,R))}}L=U}for(let V=0;V<L.length;V++)z[L[V]].end=0;return{map:z,table:T}}function E(j,R){let T;const z=t.getBestModeForData(j);if(T=t.from(R,z),T!==t.BYTE&&T.bit<z.bit)throw new Error('"'+j+'" cannot be encoded with mode '+t.toString(T)+`. 2236 Suggested mode is: `+t.toString(z));switch(T===t.KANJI&&!u.isKanjiModeEnabled()&&(T=t.BYTE),T){case t.NUMERIC:return new r(j);case t.ALPHANUMERIC:return new n(j);case t.KANJI:return new a(j);case t.BYTE:return new s(j)}}e.fromArray=function(R){return R.reduce(function(T,z){return typeof z=="string"?T.push(E(z,null)):z.data&&T.push(E(z.data,z.mode)),T},[])},e.fromString=function(R,T){const z=x(R,u.isKanjiModeEnabled()),L=b(z),V=v(L,T),$=d.find_path(V.map,"start","end"),U=[];for(let B=1;B<$.length-1;B++)U.push(V.table[$[B]].node);return e.fromArray(g(U))},e.rawSplit=function(R){return e.fromArray(x(R,u.isKanjiModeEnabled()))}})(segments)),segments}var hasRequiredQrcode;function requireQrcode(){if(hasRequiredQrcode)return qrcode;hasRequiredQrcode=1;const e=requireUtils$1(),t=requireErrorCorrectionLevel(),r=requireBitBuffer(),n=requireBitMatrix(),s=requireAlignmentPattern(),a=requireFinderPattern(),l=requireMaskPattern(),u=requireErrorCorrectionCode(),d=requireReedSolomonEncoder(),p=requireVersion(),h=requireFormatInfo(),x=requireMode(),w=requireSegments();function g(V,$){const U=V.size,B=a.getPositions($);for(let P=0;P<B.length;P++){const H=B[P][0],Z=B[P][1];for(let O=-1;O<=7;O++)if(!(H+O<=-1||U<=H+O))for(let S=-1;S<=7;S++)Z+S<=-1||U<=Z+S||(O>=0&&O<=6&&(S===0||S===6)||S>=0&&S<=6&&(O===0||O===6)||O>=2&&O<=4&&S>=2&&S<=4?V.set(H+O,Z+S,!0,!0):V.set(H+O,Z+S,!1,!0))}}function b(V){const $=V.size;for(let U=8;U<$-8;U++){const B=U%2===0;V.set(U,6,B,!0),V.set(6,U,B,!0)}}function v(V,$){const U=s.getPositions($);for(let B=0;B<U.length;B++){const P=U[B][0],H=U[B][1];for(let Z=-2;Z<=2;Z++)for(let O=-2;O<=2;O++)Z===-2||Z===2||O===-2||O===2||Z===0&&O===0?V.set(P+Z,H+O,!0,!0):V.set(P+Z,H+O,!1,!0)}}function E(V,$){const U=V.size,B=p.getEncodedBits($);let P,H,Z;for(let O=0;O<18;O++)P=Math.floor(O/3),H=O%3+U-8-3,Z=(B>>O&1)===1,V.set(P,H,Z,!0),V.set(H,P,Z,!0)}function j(V,$,U){const B=V.size,P=h.getEncodedBits($,U);let H,Z;for(H=0;H<15;H++)Z=(P>>H&1)===1,H<6?V.set(H,8,Z,!0):H<8?V.set(H+1,8,Z,!0):V.set(B-15+H,8,Z,!0),H<8?V.set(8,B-H-1,Z,!0):H<9?V.set(8,15-H-1+1,Z,!0):V.set(8,15-H-1,Z,!0);V.set(B-8,8,1,!0)}function R(V,$){const U=V.size;let B=-1,P=U-1,H=7,Z=0;for(let O=U-1;O>0;O-=2)for(O===6&&O--;;){for(let S=0;S<2;S++)if(!V.isReserved(P,O-S)){let N=!1;Z<$.length&&(N=($[Z]>>>H&1)===1),V.set(P,O-S,N),H--,H===-1&&(Z++,H=7)}if(P+=B,P<0||U<=P){P-=B,B=-B;break}}}function T(V,$,U){const B=new r;U.forEach(function(S){B.put(S.mode.bit,4),B.put(S.getLength(),x.getCharCountIndicator(S.mode,V)),S.write(B)});const P=e.getSymbolTotalCodewords(V),H=u.getTotalCodewordsCount(V,$),Z=(P-H)*8;for(B.getLengthInBits()+4<=Z&&B.put(0,4);B.getLengthInBits()%8!==0;)B.putBit(0);const O=(Z-B.getLengthInBits())/8;for(let S=0;S<O;S++)B.put(S%2?17:236,8);return z(B,V,$)}function z(V,$,U){const B=e.getSymbolTotalCodewords($),P=u.getTotalCodewordsCount($,U),H=B-P,Z=u.getBlocksCount($,U),O=B%Z,S=Z-O,N=Math.floor(B/Z),F=Math.floor(H/Z),k=F+1,W=N-F,q=new d(W);let A=0;const D=new Array(Z),_=new Array(Z);let M=0;const G=new Uint8Array(V.buffer);for(let fe=0;fe<Z;fe++){const Se=fe<S?F:k;D[fe]=G.slice(A,A+Se),_[fe]=q.encode(D[fe]),A+=Se,M=Math.max(M,Se)}const Q=new Uint8Array(B);let te=0,ne,ae;for(ne=0;ne<M;ne++)for(ae=0;ae<Z;ae++)ne<D[ae].length&&(Q[te++]=D[ae][ne]);for(ne=0;ne<W;ne++)for(ae=0;ae<Z;ae++)Q[te++]=_[ae][ne];return Q}function L(V,$,U,B){let P;if(Array.isArray(V))P=w.fromArray(V);else if(typeof V=="string"){let N=$;if(!N){const F=w.rawSplit(V);N=p.getBestVersionForData(F,U)}P=w.fromString(V,N||40)}else throw new Error("Invalid data");const H=p.getBestVersionForData(P,U);if(!H)throw new Error("The amount of data is too big to be stored in a QR Code");if(!$)$=H;else if($<H)throw new Error(` 2237The chosen QR Code version cannot contain this amount of data. 2238Minimum version required to store current data is: `+H+`. 2239`);const Z=T($,U,P),O=e.getSymbolSize($),S=new n(O);return g(S,$),b(S),v(S,$),j(S,U,0),$>=7&&E(S,$),R(S,Z),isNaN(B)&&(B=l.getBestMask(S,j.bind(null,S,U))),l.applyMask(B,S),j(S,U,B),{modules:S,version:$,errorCorrectionLevel:U,maskPattern:B,segments:P}}return qrcode.create=function($,U){if(typeof $>"u"||$==="")throw new Error("No input text");let B=t.M,P,H;return typeof U<"u"&&(B=t.from(U.errorCorrectionLevel,t.M),P=p.from(U.version),H=l.from(U.maskPattern),U.toSJISFunc&&e.setToSJISFunction(U.toSJISFunc)),L($,P,B,H)},qrcode}var canvas={},utils={},hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+r);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(a){return[a,a]}))),n.length===6&&n.push("F","F");const s=parseInt(n.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const s=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,a=n.width&&n.width>=21?n.width:void 0,l=n.scale||4;return{width:a,scale:a?4:l,margin:s,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,s){return s.width&&s.width>=n+s.margin*2?s.width/(n+s.margin*2):s.scale},e.getImageWidth=function(n,s){const a=e.getScale(n,s);return Math.floor((n+s.margin*2)*a)},e.qrToImageData=function(n,s,a){const l=s.modules.size,u=s.modules.data,d=e.getScale(l,a),p=Math.floor((l+a.margin*2)*d),h=a.margin*d,x=[a.color.light,a.color.dark];for(let w=0;w<p;w++)for(let g=0;g<p;g++){let b=(w*p+g)*4,v=a.color.light;if(w>=h&&g>=h&&w<p-h&&g<p-h){const E=Math.floor((w-h)/d),j=Math.floor((g-h)/d);v=x[u[E*l+j]?1:0]}n[b++]=v.r,n[b++]=v.g,n[b++]=v.b,n[b]=v.a}}})(utils)),utils}var hasRequiredCanvas;function requireCanvas(){return hasRequiredCanvas||(hasRequiredCanvas=1,(function(e){const t=requireUtils();function r(s,a,l){s.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=l,a.width=l,a.style.height=l+"px",a.style.width=l+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,l,u){let d=u,p=l;typeof d>"u"&&(!l||!l.getContext)&&(d=l,l=void 0),l||(p=n()),d=t.getOptions(d);const h=t.getImageWidth(a.modules.size,d),x=p.getContext("2d"),w=x.createImageData(h,h);return t.qrToImageData(w.data,a,d),r(x,p,h),x.putImageData(w,0,0),p},e.renderToDataURL=function(a,l,u){let d=u;typeof d>"u"&&(!l||!l.getContext)&&(d=l,l=void 0),d||(d={});const p=e.render(a,l,d),h=d.type||"image/png",x=d.rendererOpts||{};return p.toDataURL(h,x.quality)}})(canvas)),canvas}var svgTag={},hasRequiredSvgTag;function requireSvgTag(){if(hasRequiredSvgTag)return svgTag;hasRequiredSvgTag=1;const e=requireUtils();function t(s,a){const l=s.a/255,u=a+'="'+s.hex+'"';return l<1?u+" "+a+'-opacity="'+l.toFixed(2).slice(1)+'"':u}function r(s,a,l){let u=s+a;return typeof l<"u"&&(u+=" "+l),u}function n(s,a,l){let u="",d=0,p=!1,h=0;for(let x=0;x<s.length;x++){const w=Math.floor(x%a),g=Math.floor(x/a);!w&&!p&&(p=!0),s[x]?(h++,x>0&&w>0&&s[x-1]||(u+=p?r("M",w+l,.5+g+l):r("m",d,0),d=0,p=!1),w+1<a&&s[x+1]||(u+=r("h",h),h=0)):d++}return u}return svgTag.render=function(a,l,u){const d=e.getOptions(l),p=a.modules.size,h=a.modules.data,x=p+d.margin*2,w=d.color.light.a?"<path "+t(d.color.light,"fill")+' d="M0 0h'+x+"v"+x+'H0z"/>':"",g="<path "+t(d.color.dark,"stroke")+' d="'+n(h,p,d.margin)+'"/>',b='viewBox="0 0 '+x+" "+x+'"',E='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+b+' shape-rendering="crispEdges">'+w+g+`</svg> 2240`;return typeof u=="function"&&u(null,E),E},svgTag}var hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;const e=requireCanPromise(),t=requireQrcode(),r=requireCanvas(),n=requireSvgTag();function s(a,l,u,d,p){const h=[].slice.call(arguments,1),x=h.length,w=typeof h[x-1]=="function";if(!w&&!e())throw new Error("Callback required as last argument");if(w){if(x<2)throw new Error("Too few arguments provided");x===2?(p=u,u=l,l=d=void 0):x===3&&(l.getContext&&typeof p>"u"?(p=d,d=void 0):(p=d,d=u,u=l,l=void 0))}else{if(x<1)throw new Error("Too few arguments provided");return x===1?(u=l,l=d=void 0):x===2&&!l.getContext&&(d=u,u=l,l=void 0),new Promise(function(g,b){try{const v=t.create(u,d);g(a(v,l,d))}catch(v){b(v)}})}try{const g=t.create(u,d);p(null,a(g,l,d))}catch(g){p(g)}}return browser.create=t.create,browser.toCanvas=s.bind(null,r.render),browser.toDataURL=s.bind(null,r.renderToDataURL),browser.toString=s.bind(null,function(a,l,u){return n.render(a,u)}),browser}function getCommitment(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}const SOLANA_MAINNET_CHAIN="solana:mainnet",SOLANA_DEVNET_CHAIN="solana:devnet",SOLANA_TESTNET_CHAIN="solana:testnet",SOLANA_LOCALNET_CHAIN="solana:localnet",MAINNET_ENDPOINT="https://api.mainnet-beta.solana.com";function getChainForEndpoint(e){return e.includes(MAINNET_ENDPOINT)?SOLANA_MAINNET_CHAIN:/\bdevnet\b/i.test(e)?SOLANA_DEVNET_CHAIN:/\btestnet\b/i.test(e)?SOLANA_TESTNET_CHAIN:/\blocalhost\b/i.test(e)||/\b127\.0\.0\.1\b/.test(e)?SOLANA_LOCALNET_CHAIN:SOLANA_MAINNET_CHAIN}function createSignInMessageText(e){let t=`${e.domain} wants you to sign in with your Solana account: 2241`;t+=`${e.address}`,e.statement&&(t+=` 2242 2243${e.statement}`);const r=[];if(e.uri&&r.push(`URI: ${e.uri}`),e.version&&r.push(`Version: ${e.version}`),e.chainId&&r.push(`Chain ID: ${e.chainId}`),e.nonce&&r.push(`Nonce: ${e.nonce}`),e.issuedAt&&r.push(`Issued At: ${e.issuedAt}`),e.expirationTime&&r.push(`Expiration Time: ${e.expirationTime}`),e.notBefore&&r.push(`Not Before: ${e.notBefore}`),e.requestId&&r.push(`Request ID: ${e.requestId}`),e.resources){r.push("Resources:");for(const n of e.resources)r.push(`- ${n}`)}return r.length&&(t+=` 2244 2245${r.join(` 2246`)}`),t}const SolanaMobileWalletAdapterErrorCode={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_REFLECTOR_ID_OUT_OF_RANGE:"ERROR_REFLECTOR_ID_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND",ERROR_INVALID_PROTOCOL_VERSION:"ERROR_INVALID_PROTOCOL_VERSION",ERROR_BROWSER_NOT_SUPPORTED:"ERROR_BROWSER_NOT_SUPPORTED"};
2246class SolanaMobileWalletAdapterError extends Error{constructor(...t){const[r,n,s]=t;super(n),this.code=r,this.data=s,this.name="SolanaMobileWalletAdapterError"}}const SolanaMobileWalletAdapterProtocolErrorCode={ERROR_AUTHORIZATION_FAILED:-1,ERROR_INVALID_PAYLOADS:-2,ERROR_NOT_SIGNED:-3,ERROR_NOT_SUBMITTED:-4,ERROR_TOO_MANY_PAYLOADS:-5,ERROR_ATTEST_ORIGIN_ANDROID:-100};class SolanaMobileWalletAdapterProtocolError extends Error{constructor(...t){const[r,n,s,a]=t;super(s),this.code=n,this.data=a,this.jsonRpcMessageId=r,this.name="SolanaMobileWalletAdapterProtocolError"}}function __awaiter(e,t,r,n){function s(a){return a instanceof r?a:new r(function(l){l(a)})}return new(r||(r=Promise))(function(a,l){function u(h){try{p(n.next(h))}catch(x){l(x)}}function d(h){try{p(n.throw(h))}catch(x){l(x)}}function p(h){h.done?a(h.value):s(h.value).then(u,d)}p((n=n.apply(e,[])).next())})}function encode(e){return window.btoa(e)}function fromUint8Array(e,t){const r=window.btoa(String.fromCharCode.call(null,...e));return t?r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):r}function toUint8Array(e){return new Uint8Array(window.atob(e).split("").map(t=>t.charCodeAt(0)))}function createHelloReq(e,t){return __awaiter(this,void 0,void 0,function*(){const r=yield crypto.subtle.exportKey("raw",e),n=yield crypto.subtle.sign({hash:"SHA-256",name:"ECDSA"},t,r),s=new Uint8Array(r.byteLength+n.byteLength);return s.set(new Uint8Array(r),0),s.set(new Uint8Array(n),r.byteLength),s})}function createSIWSMessage(e){return createSignInMessageText(e)}function createSIWSMessageBase64(e){return encode(createSIWSMessage(e))}const SolanaSignTransactions="solana:signTransactions",SolanaCloneAuthorization="solana:cloneAuthorization",SolanaSignInWithSolana="solana:signInWithSolana";function createMobileWalletProxy(e,t){return new Proxy({},{get(r,n){return n==="then"?null:(r[n]==null&&(r[n]=function(s){return __awaiter(this,void 0,void 0,function*(){const{method:a,params:l}=handleMobileWalletRequest(n,s,e),u=yield t(a,l);return a==="authorize"&&l.sign_in_payload&&!u.sign_in_result&&(u.sign_in_result=yield signInFallback(l.sign_in_payload,u,t)),handleMobileWalletResponse(n,u,e)})}),r[n])},defineProperty(){return!1},deleteProperty(){return!1}})}function handleMobileWalletRequest(e,t,r){let n=t,s=e.toString().replace(/[A-Z]/g,a=>`_${a.toLowerCase()}`).toLowerCase();switch(e){case"authorize":{let{chain:a}=n;if(r==="legacy"){switch(a){case"solana:testnet":{a="testnet";break}case"solana:devnet":{a="devnet";break}case"solana:mainnet":{a="mainnet-beta";break}default:a=n.cluster}n.cluster=a}else{switch(a){case"testnet":case"devnet":{a=`solana:${a}`;break}case"mainnet-beta":{a="solana:mainnet";break}}n.chain=a}}case"reauthorize":{const{auth_token:a,identity:l}=n;if(a)switch(r){case"legacy":{s="reauthorize",n={auth_token:a,identity:l};break}default:{s="authorize";break}}break}}return{method:s,params:n}}function handleMobileWalletResponse(e,t,r){switch(e){case"getCapabilities":{const n=t;switch(r){case"legacy":{const s=[SolanaSignTransactions];return n.supports_clone_authorization===!0&&s.push(SolanaCloneAuthorization),Object.assign(Object.assign({},n),{features:s})}case"v1":return Object.assign(Object.assign({},n),{supports_sign_and_send_transactions:!0,supports_clone_authorization:n.features.includes(SolanaCloneAuthorization)})}}}return t}function signInFallback(e,t,r){var n;return __awaiter(this,void 0,void 0,function*(){const s=(n=e.domain)!==null&&n!==void 0?n:window.location.host,a=t.accounts[0].address,l=createSIWSMessageBase64(Object.assign(Object.assign({},e),{domain:s,address:a})),u=yield r("sign_messages",{addresses:[a],payloads:[l]});return{address:a,signed_message:l,signature:u.signed_payloads[0].slice(l.length)}})}const SEQUENCE_NUMBER_BYTES=4;function createSequenceNumberVector(e){if(e>=4294967296)throw new Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");const t=new ArrayBuffer(SEQUENCE_NUMBER_BYTES);return new DataView(t).setUint32(0,e,!1),new Uint8Array(t)}const INITIALIZATION_VECTOR_BYTES=12,ENCODED_PUBLIC_KEY_LENGTH_BYTES=65;function encryptMessage(e,t,r){return __awaiter(this,void 0,void 0,function*(){const n=createSequenceNumberVector(t),s=new Uint8Array(INITIALIZATION_VECTOR_BYTES);crypto.getRandomValues(s);const a=yield crypto.subtle.encrypt(getAlgorithmParams(n,s),r,new TextEncoder().encode(e)),l=new Uint8Array(n.byteLength+s.byteLength+a.byteLength);return l.set(new Uint8Array(n),0),l.set(new Uint8Array(s),n.byteLength),l.set(new Uint8Array(a),n.byteLength+s.byteLength),l})}function decryptMessage(e,t){return __awaiter(this,void 0,void 0,function*(){const r=e.slice(0,SEQUENCE_NUMBER_BYTES),n=e.slice(SEQUENCE_NUMBER_BYTES,SEQUENCE_NUMBER_BYTES+INITIALIZATION_VECTOR_BYTES),s=e.slice(SEQUENCE_NUMBER_BYTES+INITIALIZATION_VECTOR_BYTES),a=yield crypto.subtle.decrypt(getAlgorithmParams(r,n),t,s);return getUtf8Decoder().decode(a)})}function getAlgorithmParams(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}let _utf8Decoder;function getUtf8Decoder(){return _utf8Decoder===void 0&&(_utf8Decoder=new TextDecoder("utf-8")),_utf8Decoder}function generateAssociationKeypair(){return __awaiter(this,void 0,void 0,function*(){return yield crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"])})}function generateECDHKeypair(){return __awaiter(this,void 0,void 0,function*(){return yield crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"])})}function arrayBufferToBase64String(e){let t="";
2246const r=new Uint8Array(e),n=r.byteLength;for(let s=0;s<n;s++)t+=String.fromCharCode(r[s]);return window.btoa(t)}function getRandomAssociationPort(){return assertAssociationPort(49152+Math.floor(Math.random()*16384))}function assertAssociationPort(e){if(e<49152||e>65535)throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,`Association port number must be between 49152 and 65535. ${e} given.`,{port:e});return e}function getStringWithURLUnsafeCharactersReplaced(e){return e.replace(/[/+=]/g,t=>({"/":"_","+":"-","=":"."})[t])}const INTENT_NAME="solana-wallet";function getPathParts(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function getIntentURL(e,t){let r=null;if(t){try{r=new URL(t)}catch{}if(r?.protocol!=="https:")throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_FORBIDDEN_WALLET_BASE_URL,"Base URLs supplied by wallets must be valid `https` URLs")}r||(r=new URL(`${INTENT_NAME}:/`));const n=e.startsWith("/")?e:[...getPathParts(r.pathname),...getPathParts(e)].join("/");return new URL(n,r)}function getAssociateAndroidIntentURL(e,t,r,n=["v1"]){return __awaiter(this,void 0,void 0,function*(){const s=assertAssociationPort(t),a=yield crypto.subtle.exportKey("raw",e),l=arrayBufferToBase64String(a),u=getIntentURL("v1/associate/local",r);return u.searchParams.set("association",getStringWithURLUnsafeCharactersReplaced(l)),u.searchParams.set("port",`${s}`),n.forEach(d=>{u.searchParams.set("v",d)}),u})}function getRemoteAssociateAndroidIntentURL(e,t,r,n,s=["v1"]){return __awaiter(this,void 0,void 0,function*(){const a=yield crypto.subtle.exportKey("raw",e),l=arrayBufferToBase64String(a),u=getIntentURL("v1/associate/remote",n);return u.searchParams.set("association",getStringWithURLUnsafeCharactersReplaced(l)),u.searchParams.set("reflector",`${t}`),u.searchParams.set("id",`${fromUint8Array(r,!0)}`),s.forEach(d=>{u.searchParams.set("v",d)}),u})}function encryptJsonRpcMessage(e,t){return __awaiter(this,void 0,void 0,function*(){const r=JSON.stringify(e),n=e.id;return encryptMessage(r,n,t)})}function decryptJsonRpcMessage(e,t){return __awaiter(this,void 0,void 0,function*(){const r=yield decryptMessage(e,t),n=JSON.parse(r);if(Object.hasOwnProperty.call(n,"error"))throw new SolanaMobileWalletAdapterProtocolError(n.id,n.error.code,n.error.message);return n})}function parseHelloRsp(e,t,r){return __awaiter(this,void 0,void 0,function*(){const[n,s]=yield Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e.slice(0,ENCODED_PUBLIC_KEY_LENGTH_BYTES),{name:"ECDH",namedCurve:"P-256"},!1,[])]),a=yield crypto.subtle.deriveBits({name:"ECDH",public:s},r,256),l=yield crypto.subtle.importKey("raw",a,"HKDF",!1,["deriveKey"]);return yield crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(n),info:new Uint8Array},l,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"])})}function parseSessionProps(e,t){return __awaiter(this,void 0,void 0,function*(){const r=yield decryptMessage(e,t),n=JSON.parse(r);let s="legacy";if(Object.hasOwnProperty.call(n,"v"))switch(n.v){case 1:case"1":case"v1":s="v1";break;case"legacy":s="legacy";break;default:throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_INVALID_PROTOCOL_VERSION,`Unknown/unsupported protocol version: ${n.v}`)}return{protocol_version:s}})}const Browser={Firefox:0,Other:1};function assertUnreachable(e){return e}function getBrowser(){return navigator.userAgent.indexOf("Firefox/")!==-1?Browser.Firefox:Browser.Other}function getDetectionPromise(){return new Promise((e,t)=>{function r(){clearTimeout(s),window.removeEventListener("blur",n)}function n(){r(),e()}window.addEventListener("blur",n);const s=setTimeout(()=>{r(),t()},3e3)})}let _frame=null;function launchUrlThroughHiddenFrame(e){_frame==null&&(_frame=document.createElement("iframe"),_frame.style.display="none",document.body.appendChild(_frame)),_frame.contentWindow.location.href=e.toString()}function launchAssociation(e){return __awaiter(this,void 0,void 0,function*(){if(e.protocol==="https:")window.location.assign(e);else try{const t=getBrowser();switch(t){case Browser.Firefox:launchUrlThroughHiddenFrame(e);break;case Browser.Other:{const r=getDetectionPromise();window.location.assign(e),yield r;break}default:}}catch{throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_WALLET_NOT_FOUND,"Found no installed wallet that supports the mobile wallet protocol.")}})}function startSession(e,t){return __awaiter(this,void 0,void 0,function*(){const r=getRandomAssociationPort(),n=yield getAssociateAndroid
2246IntentURL(e,r,t);return yield launchAssociation(n),r})}const WEBSOCKET_CONNECTION_CONFIG={retryDelayScheduleMs:[150,150,200,500,500,750,750,1e3],timeoutMs:3e4},WEBSOCKET_PROTOCOL_BINARY="com.solana.mobilewalletadapter.v1",WEBSOCKET_PROTOCOL_BASE64="com.solana.mobilewalletadapter.v1.base64";function assertSecureContext(){if(typeof window>"u"||window.isSecureContext!==!0)throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_SECURE_CONTEXT_REQUIRED,"The mobile wallet adapter protocol must be used in a secure context (`https`).")}function assertSecureEndpointSpecificURI(e){let t;try{t=new URL(e)}catch{throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_FORBIDDEN_WALLET_BASE_URL,"Invalid base URL supplied by wallet")}if(t.protocol!=="https:")throw new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_FORBIDDEN_WALLET_BASE_URL,"Base URLs supplied by wallets must be valid `https` URLs")}function getSequenceNumberFromByteArray(e){return new DataView(e).getUint32(0,!1)}function decodeVarLong(e){var t=new Uint8Array(e),r=e.byteLength,n=10,s=0,a=0,l;do{if(a>=r||a>n)throw new RangeError("Failed to decode varint");l=t[a++],s|=(l&127)<<7*a}while(l>=128);return{value:s,offset:a}}function getReflectorIdFromByteArray(e){let{value:t,offset:r}=decodeVarLong(e);return new Uint8Array(e.slice(r,r+t))}function transact(e,t){return __awaiter(this,void 0,void 0,function*(){assertSecureContext();const r=yield generateAssociationKeypair(),s=`ws://localhost:${yield startSession(r.publicKey,t?.baseUri)}/solana-wallet`;let a;const l=(()=>{const h=[...WEBSOCKET_CONNECTION_CONFIG.retryDelayScheduleMs];return()=>h.length>1?h.shift():h[0]})();let u=1,d=0,p={__type:"disconnected"};return new Promise((h,x)=>{let w;const g={},b=()=>__awaiter(this,void 0,void 0,function*(){if(p.__type!=="connecting"){console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${p.__type}\`.`);return}w.removeEventListener("open",b);const{associationKeypair:L}=p,V=yield generateECDHKeypair();w.send(yield createHelloReq(V.publicKey,L.privateKey)),p={__type:"hello_req_sent",associationPublicKey:L.publicKey,ecdhPrivateKey:V.privateKey}}),v=L=>{L.wasClean?p={__type:"disconnected"}:x(new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_SESSION_CLOSED,`The wallet session dropped unexpectedly (${L.code}: ${L.reason}).`,{closeEvent:L})),R()},E=L=>__awaiter(this,void 0,void 0,function*(){R(),Date.now()-a>=WEBSOCKET_CONNECTION_CONFIG.timeoutMs?x(new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_SESSION_TIMEOUT,`Failed to connect to the wallet websocket at ${s}.`)):(yield new Promise(V=>{const $=l();T=window.setTimeout(V,$)}),z())}),j=L=>__awaiter(this,void 0,void 0,function*(){const V=yield L.data.arrayBuffer();switch(p.__type){case"connecting":if(V.byteLength!==0)throw new Error("Encountered unexpected message while connecting");const $=yield generateECDHKeypair();w.send(yield createHelloReq($.publicKey,r.privateKey)),p={__type:"hello_req_sent",associationPublicKey:r.publicKey,ecdhPrivateKey:$.privateKey};break;case"connected":try{const U=V.slice(0,SEQUENCE_NUMBER_BYTES),B=getSequenceNumberFromByteArray(U);if(B!==d+1)throw new Error("Encrypted message has invalid sequence number");d=B;const P=yield decryptJsonRpcMessage(V,p.sharedSecret),H=g[P.id];delete g[P.id],H.resolve(P.result)}catch(U){if(U instanceof SolanaMobileWalletAdapterProtocolError){const B=g[U.jsonRpcMessageId];delete g[U.jsonRpcMessageId],B.reject(U)}else throw U}break;case"hello_req_sent":{if(V.byteLength===0){const Z=yield generateECDHKeypair();w.send(yield createHelloReq(Z.publicKey,r.privateKey)),p={__type:"hello_req_sent",associationPublicKey:r.publicKey,ecdhPrivateKey:Z.privateKey};break}const U=yield parseHelloRsp(V,p.associationPublicKey,p.ecdhPrivateKey),B=V.slice(ENCODED_PUBLIC_KEY_LENGTH_BYTES),P=B.byteLength!==0?yield __awaiter(this,void 0,void 0,function*(){const Z=B.slice(0,SEQUENCE_NUMBER_BYTES),O=getSequenceNumberFromByteArray(Z);
2246if(O!==d+1)throw new Error("Encrypted message has invalid sequence number");return d=O,parseSessionProps(B,U)}):{protocol_version:"legacy"};p={__type:"connected",sharedSecret:U,sessionProperties:P};const H=createMobileWalletProxy(P.protocol_version,(Z,O)=>__awaiter(this,void 0,void 0,function*(){const S=u++;return w.send(yield encryptJsonRpcMessage({id:S,jsonrpc:"2.0",method:Z,params:O??{}},U)),new Promise((N,F)=>{g[S]={resolve(k){switch(Z){case"authorize":case"reauthorize":{const{wallet_uri_base:W}=k;if(W!=null)try{assertSecureEndpointSpecificURI(W)}catch(q){F(q);return}break}}N(k)},reject:F}})}));try{h(yield e(H))}catch(Z){x(Z)}finally{R(),w.close()}break}}});let R,T;const z=()=>{R&&R(),p={__type:"connecting",associationKeypair:r},a===void 0&&(a=Date.now()),w=new WebSocket(s,[WEBSOCKET_PROTOCOL_BINARY]),w.addEventListener("open",b),w.addEventListener("close",v),w.addEventListener("error",E),w.addEventListener("message",j),R=()=>{window.clearTimeout(T),w.removeEventListener("open",b),w.removeEventListener("close",v),w.removeEventListener("error",E),w.removeEventListener("message",j)}};z()})})}function startRemoteScenario(e){return __awaiter(this,void 0,void 0,function*(){assertSecureContext();const t=yield generateAssociationKeypair(),r=`wss://${e?.remoteHostAuthority}/reflect`;let n;const s=(()=>{const v=[...WEBSOCKET_CONNECTION_CONFIG.retryDelayScheduleMs];return()=>v.length>1?v.shift():v[0]})();let a=1,l=0,u,d={__type:"disconnected"},p,h,x=v=>__awaiter(this,void 0,void 0,function*(){if(u=="base64"){const E=yield v.data;return toUint8Array(E).buffer}else return yield v.data.arrayBuffer()});const w=yield new Promise((v,E)=>{const j=()=>__awaiter(this,void 0,void 0,function*(){if(d.__type!=="connecting"){console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${d.__type}\`.`);return}p.protocol.includes(WEBSOCKET_PROTOCOL_BASE64)?u="base64":u="binary",p.removeEventListener("open",j)}),R=$=>{$.wasClean?d={__type:"disconnected"}:E(new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_SESSION_CLOSED,`The wallet session dropped unexpectedly (${$.code}: ${$.reason}).`,{closeEvent:$})),h()},T=$=>__awaiter(this,void 0,void 0,function*(){h(),Date.now()-n>=WEBSOCKET_CONNECTION_CONFIG.timeoutMs?E(new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_SESSION_TIMEOUT,`Failed to connect to the wallet websocket at ${r}.`)):(yield new Promise(U=>{const B=s();L=window.setTimeout(U,B)}),V())}),z=$=>__awaiter(this,void 0,void 0,function*(){const U=yield x($);if(d.__type==="connecting"){if(U.byteLength==0)throw new Error("Encountered unexpected message while connecting");const B=getReflectorIdFromByteArray(U);d={__type:"reflector_id_received",reflectorId:B};const P=yield getRemoteAssociateAndroidIntentURL(t.publicKey,e.remoteHostAuthority,B,e?.baseUri);p.removeEventListener("message",z),v(P)}});let L;const V=()=>{h&&h(),d={__type:"connecting",associationKeypair:t},n===void 0&&(n=Date.now()),p=new WebSocket(r,[WEBSOCKET_PROTOCOL_BINARY,WEBSOCKET_PROTOCOL_BASE64]),p.addEventListener("open",j),p.addEventListener("close",R),p.addEventListener("error",T),p.addEventListener("message",z),h=()=>{window.clearTimeout(L),p.removeEventListener("open",j),p.removeEventListener("close",R),p.removeEventListener("error",T),p.removeEventListener("message",z)}};V()});let g=!1,b;return{associationUrl:w,close:()=>{p.close(),b()},wallet:new Promise((v,E)=>{const j={},R=T=>__awaiter(this,void 0,void 0,function*(){const z=yield x(T);switch(d.__type){case"reflector_id_received":if(z.byteLength!==0)throw new Error("Encountered unexpected message while awaiting reflection");const L=yield generateECDHKeypair(),V=yield createHelloReq(L.publicKey,t.privateKey);u=="base64"?p.send(fromUint8Array(V)):p.send(V),d={__type:"hello_req_sent",associationPublicKey:t.publicKey,ecdhPrivateKey:L.privateKey};break;case"connected":try{const $=z.slice(0,SEQUENCE_NUMBER_BYTES),U=getSequenceNumberFromByteArray($);if(U!==l+1)throw new Error("Encrypted message has invalid sequence number");l=U;const B=yield decryptJsonRpcMessage(z,d.sharedSecret),P=j[B.id];delete j[B.id],P.resolve(B.result)}catch($){if($ instanceof SolanaMobileWalletAdapterProtocolError){const U=j[$.jsonRpcMessageId];delete j[$.jsonRpcMessageId],U.reject($)}else throw $}break;case"hello_req_sent":{const $=yield parseHelloRsp(z,d.associationPublicKey,d.ecdhPrivateKey),U=z.slice(ENCODED_PUBLIC_KEY_LENGTH_BYTES),B=U.byteLength!==0?yield __awaiter(this,void 0,void 0,function*(){const H=U.slice(0,SEQUENCE_NUMBER_BYTES),Z=getSequenceNumberFromByteArray(H);
2246if(Z!==l+1)throw new Error("Encrypted message has invalid sequence number");return l=Z,parseSessionProps(U,$)}):{protocol_version:"legacy"};d={__type:"connected",sharedSecret:$,sessionProperties:B};const P=createMobileWalletProxy(B.protocol_version,(H,Z)=>__awaiter(this,void 0,void 0,function*(){const O=a++,S=yield encryptJsonRpcMessage({id:O,jsonrpc:"2.0",method:H,params:Z??{}},$);return u=="base64"?p.send(fromUint8Array(S)):p.send(S),new Promise((N,F)=>{j[O]={resolve(k){switch(H){case"authorize":case"reauthorize":{const{wallet_uri_base:W}=k;if(W!=null)try{assertSecureEndpointSpecificURI(W)}catch(q){F(q);return}break}}N(k)},reject:F}})}));g=!0;try{v(P)}catch(H){E(H)}break}}});p.addEventListener("message",R),b=()=>{p.removeEventListener("message",R),h(),g||E(new SolanaMobileWalletAdapterError(SolanaMobileWalletAdapterErrorCode.ERROR_SESSION_CLOSED,"The wallet session was closed before connection.",{closeEvent:new CloseEvent("socket was closed before connection")}))}})}})}const index_browser=Object.freeze(Object.defineProperty({__proto__:null,SolanaCloneAuthorization,SolanaMobileWalletAdapterError,SolanaMobileWalletAdapterErrorCode,SolanaMobileWalletAdapterProtocolError,SolanaMobileWalletAdapterProtocolErrorCode,SolanaSignInWithSolana,SolanaSignTransactions,startRemoteScenario,transact},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(index_browser);var src,hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src;hasRequiredSrc=1;function e(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var s=0;s<t.length;s++){var a=t.charAt(s),l=a.charCodeAt(0);if(r[l]!==255)throw new TypeError(a+" is ambiguous");r[l]=s}var u=t.length,d=t.charAt(0),p=Math.log(u)/Math.log(256),h=Math.log(256)/Math.log(u);function x(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var v=0,E=0,j=0,R=b.length;j!==R&&b[j]===0;)j++,v++;for(var T=(R-j)*h+1>>>0,z=new Uint8Array(T);j!==R;){for(var L=b[j],V=0,$=T-1;(L!==0||V<E)&&$!==-1;$--,V++)L+=256*z[$]>>>0,z[$]=L%u>>>0,L=L/u>>>0;if(L!==0)throw new Error("Non-zero carry");E=V,j++}for(var U=T-E;U!==T&&z[U]===0;)U++;for(var B=d.repeat(v);U<T;++U)B+=t.charAt(z[U]);return B}function w(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;for(var v=0,E=0,j=0;b[v]===d;)E++,v++;for(var R=(b.length-v)*p+1>>>0,T=new Uint8Array(R);b[v];){var z=b.charCodeAt(v);if(z>255)return;var L=r[z];if(L===255)return;for(var V=0,$=R-1;(L!==0||V<j)&&$!==-1;$--,V++)L+=u*T[$]>>>0,T[$]=L%256>>>0,L=L/256>>>0;if(L!==0)throw new Error("Non-zero carry");j=V,v++}for(var U=R-j;U!==R&&T[U]===0;)U++;for(var B=new Uint8Array(E+(R-U)),P=E;U!==R;)B[P++]=T[U++];return B}function g(b){var v=w(b);if(v)return v;throw new Error("Non-base"+u+" character")}return{encode:x,decodeUnsafe:w,decode:g}}return src=e,src}var bs58$1,hasRequiredBs58;function requireBs58(){return hasRequiredBs58||(hasRequiredBs58=1,bs58$1=requireSrc()("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),bs58$1}var cjs={},hasRequiredCjs;function requireCjs(){return hasRequiredCjs||(hasRequiredCjs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SOLANA_CHAINS=e.SOLANA_LOCALNET_CHAIN=e.SOLANA_TESTNET_CHAIN=e.SOLANA_DEVNET_CHAIN=e.SOLANA_MAINNET_CHAIN=void 0,e.isSolanaChain=t,e.SOLANA_MAINNET_CHAIN="solana:mainnet",e.SOLANA_DEVNET_CHAIN="solana:devnet",e.SOLANA_TESTNET_CHAIN="solana:testnet",e.SOLANA_LOCALNET_CHAIN="solana:localnet",e.SOLANA_CHAINS=[e.SOLANA_MAINNET_CHAIN,e.SOLANA_DEVNET_CHAIN,e.SOLANA_TESTNET_CHAIN,e.SOLANA_LOCALNET_CHAIN];function t(r){return e.SOLANA_CHAINS.includes(r)}})(cjs)),cjs}var hasRequiredIndex_browser$1;function requireIndex_browser$1(){if(hasRequiredIndex_browser$1)return index_browser$1;hasRequiredIndex_browser$1=1,Object.defineProperty(index_browser$1,"__esModule",{value:!0});var e=requireCjs$3(),t=requireBrowser(),r=require$$2,n=requireCjs$2(),s=requireBs58(),a=requireCjs();function l(Pe){return Pe&&typeof Pe=="object"&&"default"in Pe?Pe:{default:Pe}}var u=l(t),d=l(s);function p(Pe,Re,de,le){function je(ke){return ke instanceof de?ke:new de(function(Ae){Ae(ke)})}return new(de||(de=Promise))(function(ke,Ae){function De(It){try{rt(le.next(It))}catch(zn){Ae(zn)}}function Ke(It){try{rt(le.throw(It))}catch(zn){Ae(zn)}}function rt(It){It.done?ke(It.value):je(It.value).then(De,Ke)}rt((le=le.apply(Pe,[])).next())})}function h(Pe,Re,de,le){if(de==="a"&&!le)throw new TypeError("Private accessor was defined without a getter");if(typeof Re=="function"?Pe!==Re||!le:!Re.has(Pe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return de==="m"?le:de==="a"?le.call(Pe):le?le.value:Re.get(Pe)}function x(Pe,Re,de,le,je){if(typeof Re=="function"?Pe!==Re||!0:!Re.has(Pe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Re.set(Pe,de),de}var w,g,b,v,E,j,R,T;const z=` 2247<div class="mobile-wallet-adapter-embedded-modal-container" role="dialog" aria-modal="true" aria-labelledby="modal-title"> 2248 <div data-modal-close style="position: absolute; width: 100%; height: 100%;"></div> 2249 <div class="mobile-wallet-adapter-embedded-modal-card"> 2250 <div> 2251 <button data-modal-close class="mobile-wallet-adapter-embedded-modal-close"> 2252 <svg width="14" height="14"> 2253 <path d="M 6.7125,8.3036995 1.9082,13.108199 c -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 C 0.1056,12.896899 0,12.631699 0,12.312499 c 0,-0.3192 0.1056,-0.5844 0.3167,-0.7958 L 5.1212,6.7124995 0.3167,1.9082 C 0.1056,1.6969 0,1.4317 0,1.1125 0,0.7933 0.1056,0.5281 0.3167,0.3167 0.5281,0.1056 0.7933,0 1.1125,0 1.4317,0 1.6969,0.1056 1.9082,0.3167 L 6.7125,5.1212 11.5167,0.3167 C 11.7281,0.1056 11.9933,0 12.3125,0 c 0.3192,0 0.5844,0.1056 0.7957,0.3167 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 L 8.3037001,6.7124995 13.1082,11.516699 c 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 z" /> 2254 </svg> 2255 </button> 2256 </div> 2257 <div class="mobile-wallet-adapter-embedded-modal-content"></div> 2258 </div> 2259</div> 2260`,L=` 2261.mobile-wallet-adapter-embedded-modal-container { 2262 display: flex; /* Use flexbox to center content */ 2263 justify-content: center; /* Center horizontally */ 2264 align-items: center; /* Center vertically */ 2265 position: fixed;
2265 /* Stay in place */ 2266 z-index: 1; /* Sit on top */ 2267 left: 0; 2268 top: 0; 2269 width: 100%; /* Full width */ 2270 height: 100%; /* Full height */ 2271 background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ 2272 overflow-y: auto; /* enable scrolling */ 2273} 2274 2275.mobile-wallet-adapter-embedded-modal-card { 2276 display: flex; 2277 flex-direction: column; 2278 margin: auto 20px; 2279 max-width: 780px; 2280 padding: 20px; 2281 border-radius: 24px; 2282 background: #ffffff; 2283 font-family: "Inter Tight", "PT Sans", Calibri, sans-serif; 2284 transform: translateY(-200%); 2285 animation: slide-in 0.5s forwards; 2286} 2287 2288@keyframes slide-in { 2289 100% { transform: translateY(0%); } 2290} 2291 2292.mobile-wallet-adapter-embedded-modal-close { 2293 display: flex; 2294 align-items: center; 2295 justify-content: center; 2296 width: 32px; 2297 height: 32px; 2298 cursor: pointer; 2299 background: #e4e9e9; 2300 border: none; 2301 border-radius: 50%; 2302} 2303 2304.mobile-wallet-adapter-embedded-modal-close:focus-visible { 2305 outline-color: red; 2306} 2307 2308.mobile-wallet-adapter-embedded-modal-close svg { 2309 fill: #546266; 2310 transition: fill 200ms ease 0s; 2311} 2312 2313.mobile-wallet-adapter-embedded-modal-close:hover svg { 2314 fill: #fff; 2315} 2316`,V=` 2317<link rel="preconnect" href="https://fonts.googleapis.com"> 2318<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 2319<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> 2320`;class ${constructor(){w.add(this),g.set(this,null),b.set(this,{}),v.set(this,!1),this.dom=null,this.open=()=>{console.debug("Modal open"),h(this,w,"m",j).call(this),h(this,g,"f")&&(h(this,g,"f").style.display="flex")},this.close=(Re=void 0)=>{var de;console.debug("Modal close"),h(this,w,"m",R).call(this),h(this,g,"f")&&(h(this,g,"f").style.display="none"),(de=h(this,b,"f").close)===null||de===void 0||de.forEach(le=>le(Re))},T.set(this,Re=>{Re.key==="Escape"&&this.close(Re)}),this.init=this.init.bind(this),x(this,g,document.getElementById("mobile-wallet-adapter-embedded-root-ui"))}init(){return p(this,void 0,void 0,function*(){console.log("Injecting modal"),h(this,w,"m",E).call(this)})}addEventListener(Re,de){var le;return!((le=h(this,b,"f")[Re])===null||le===void 0)&&le.push(de)||(h(this,b,"f")[Re]=[de]),()=>this.removeEventListener(Re,de)}removeEventListener(Re,de){var le;h(this,b,"f")[Re]=(le=h(this,b,"f")[Re])===null||le===void 0?void 0:le.filter(je=>de!==je)}}g=new WeakMap,b=new WeakMap,v=new WeakMap,T=new WeakMap,w=new WeakSet,E=function(){if(document.getElementById("mobile-wallet-adapter-embedded-root-ui")){h(this,g,"f")||x(this,g,document.getElementById("mobile-wallet-adapter-embedded-root-ui"));return}x(this,g,document.createElement("div")),h(this,g,"f").id="mobile-wallet-adapter-embedded-root-ui",h(this,g,"f").innerHTML=z,h(this,g,"f").style.display="none";const Re=h(this,g,"f").querySelector(".mobile-wallet-adapter-embedded-modal-content");Re&&(Re.innerHTML=this.contentHtml);const de=document.createElement("style");de.id="mobile-wallet-adapter-embedded-modal-styles",de.textContent=L+this.contentStyles;const le=document.createElement("div");le.innerHTML=V,this.dom=le.attachShadow({mode:"closed"}),this.dom.appendChild(de),this.dom.appendChild(h(this,g,"f")),document.body.appendChild(le)},j=function(){if(!h(this,g,"f")||h(this,v,"f"))return;[...h(this,g,"f").querySelectorAll("[data-modal-close]")].forEach(de=>de?.addEventListener("click",this.close)),window.addEventListener("load",this.close),document.addEventListener("keydown",h(this,T,"f")),x(this,v,!0)},R=function(){if(!h(this,v,"f")||(window.removeEventListener("load",this.close),document.removeEventListener("keydown",h(this,T,"f")),!h(this,g,"f")))return;[...h(this,g,"f").querySelectorAll("[data-modal-close]")].forEach(de=>de?.removeEventListener("click",this.close)),x(this,v,!1)};class U extends ${constructor(){super(...arguments),this.contentStyles=P,this.contentHtml=B}initWithQR(Re){const de=Object.create(null,{init:{get:()=>super.init}});return p(this,void 0,void 0,function*(){de.init.call(this),this.populateQRCode(Re)})}populateQRCode(Re){var de;return p(this,void 0,void 0,function*(){const le=(de=this.dom)===null||de===void 0?void 0:de.getElementById("mobile-wallet-adapter-embedded-modal-qr-code-container");if(le){const je=yield u.default.toCanvas(Re,{width:200,margin:0});le.firstElementChild!==null?le.replaceChild(je,le.firstElementChild):le.appendChild(je)}else console.error("QRCode Container not found")})}}const B=` 2321<div class="mobile-wallet-adapter-embedded-modal-qr-content"> 2322 <div> 2323 <svg class="mobile-wallet-adapter-embedded-modal-icon" width="100%" height="100%"> 2324 <circle r="52" cx="53" cy="53" fill="#99b3be" stroke="#000000" stroke-width="2"/> 2325 <path d="m 53,82.7305 c -3.3116,0 -6.1361,-1.169 -8.4735,-3.507 -2.338,-2.338 -3.507,-5.1625 -3.507,-8.4735 0,-3.3116 1.169,-6.1364 3.507,-8.4744 2.3374,-2.338 5.1619,-3.507 8.4735,-3.507 3.3116,0 6.1361,1.169 8.4735,3.507 2.338,2.338 3.507,5.1628 3.507,8.4744 0,3.311 -1.169,6.1355 -3.507,8.4735 -2.3374,2.338 -5.1619,3.507 -8.4735,3.507 z m 0.007,-5.25 c 1.8532,0 3.437,-0.6598 4.7512,-1.9793 1.3149,-1.3195 1.9723,-2.9058
23251.9723,-4.7591 0,-1.8526 -0.6598,-3.4364 -1.9793,-4.7512 -1.3195,-1.3149 -2.9055,-1.9723 -4.7582,-1.9723 -1.8533,0 -3.437,0.6598 -4.7513,1.9793 -1.3148,1.3195 -1.9722,2.9058 -1.9722,4.7591 0,1.8527 0.6597,3.4364 1.9792,4.7512 1.3195,1.3149 2.9056,1.9723 4.7583,1.9723 z m -28,-33.5729 -3.85,-3.6347 c 4.1195,-4.025 8.8792,-7.1984 14.2791,-9.52 5.4005,-2.3223 11.2551,-3.4834 17.5639,-3.4834 6.3087,0 12.1634,1.1611 17.5639,3.4834 5.3999,2.3216 10.1596,5.495 14.2791,9.52 l -3.85,3.6347 C 77.2999,40.358 73.0684,37.5726 68.2985,35.5514 63.5292,33.5301 58.4296,32.5195 53,32.5195 c -5.4297,0 -10.5292,1.0106 -15.2985,3.0319 -4.7699,2.0212 -9.0014,4.8066 -12.6945,8.3562 z m 44.625,10.8771 c -2.2709,-2.1046 -4.7962,-3.7167 -7.5758,-4.8361 -2.7795,-1.12 -5.7983,-1.68 -9.0562,-1.68 -3.2579,0 -6.2621,0.56 -9.0125,1.68 -2.7504,1.1194 -5.2903,2.7315 -7.6195,4.8361 L 32.5189,51.15 c 2.8355,-2.6028 5.9777,-4.6086 9.4263,-6.0174 3.4481,-1.4087 7.133,-2.1131 11.0548,-2.1131 3.9217,0 7.5979,0.7044 11.0285,2.1131 3.43,1.4088 6.5631,3.4146 9.3992,6.0174 z"/> 2326 </svg> 2327 <div class="mobile-wallet-adapter-embedded-modal-title">Remote Mobile Wallet Adapter</div> 2328 </div> 2329 <div> 2330 <div> 2331 <h4 class="mobile-wallet-adapter-embedded-modal-qr-label"> 2332 Open your wallet and scan this code 2333 </h4> 2334 </div> 2335 <div id="mobile-wallet-adapter-embedded-modal-qr-code-container" class="mobile-wallet-adapter-embedded-modal-qr-code-container"></div> 2336 </div> 2337</div> 2338<div class="mobile-wallet-adapter-embedded-modal-divider"><hr></div> 2339<div class="mobile-wallet-adapter-embedded-modal-footer"> 2340 <div class="mobile-wallet-adapter-embedded-modal-subtitle"> 2341 Follow the instructions on your device. When you're finished, this screen will update. 2342 </div> 2343 <div class="mobile-wallet-adapter-embedded-modal-progress-badge"> 2344 <div> 2345 <div class="spinner"> 2346 <div class="leftWrapper"> 2347 <div class="left"> 2348 <div class="circle"></div> 2349 </div> 2350 </div> 2351 <div class="rightWrapper"> 2352 <div class="right"> 2353 <div class="circle"></div> 2354 </div> 2355 </div> 2356 </div> 2357 </div> 2358 <div>Waiting for scan</div> 2359 </div> 2360</div> 2361`,P=` 2362.mobile-wallet-adapter-embedded-modal-qr-content { 2363 display: flex; 2364 margin-top: 10px; 2365 padding: 10px; 2366} 2367 2368.mobile-wallet-adapter-embedded-modal-qr-content > div:first-child { 2369 display: flex; 2370 flex-direction: column; 2371 flex: 2; 2372 margin-top: auto; 2373 margin-right: 30px; 2374} 2375 2376.mobile-wallet-adapter-embedded-modal-qr-content > div:nth-child(2) { 2377 display: flex; 2378 flex-direction: column; 2379 flex: 1; 2380 margin-left: auto; 2381} 2382 2383.mobile-wallet-adapter-embedded-modal-footer { 2384 display: flex; 2385 padding: 10px; 2386} 2387 2388.mobile-wallet-adapter-embedded-modal-icon {} 2389 2390.mobile-wallet-adapter-embedded-modal-title { 2391 color: #000000; 2392 font-size: 2.5em; 2393 font-weight: 600; 2394} 2395 2396.mobile-wallet-adapter-embedded-modal-qr-label { 2397 text-align: right; 2398 color: #000000; 2399} 2400 2401.mobile-wallet-adapter-embedded-modal-qr-code-container { 2402 margin-left: auto; 2403} 2404 2405.mobile-wallet-adapter-embedded-modal-divider { 2406 margin-top: 20px; 2407 padding-left: 10px; 2408 padding-right: 10px; 2409} 2410 2411.mobile-wallet-adapter-embedded-modal-divider hr { 2412 border-top: 1px solid #D9DEDE; 2413} 2414 2415.mobile-wallet-adapter-embedded-modal-subtitle { 2416 margin: auto; 2417 margin-right: 60px; 2418 padding: 20px; 2419 color: #6E8286; 2420} 2421 2422.mobile-wallet-adapter-embedded-modal-progress-badge { 2423 display: flex; 2424 background: #F7F8F8; 2425 height: 56px; 2426 min-width: 200px; 2427 margin: auto; 2428 padding-left: 20px; 2429 padding-right: 20px; 2430 border-radius: 18px; 2431 color: #A8B6B8; 2432 align-items: center; 2433} 2434 2435.mobile-wallet-adapter-embedded-modal-progress-badge > div:first-child { 2436 margin-left: auto; 2437 margin-right: 20px; 2438} 2439 2440.mobile-wallet-adapter-embedded-modal-progress-badge > div:nth-child(2) { 2441 margin-right: auto; 2442} 2443 2444/* Smaller screens */ 2445@media all and (max-width: 600px) { 2446 .mobile-wallet-adapter-embedded-modal-card { 2447 text-align: center; 2448 } 2449 .mobile-wallet-adapter-embedded-modal-qr-content { 2450 flex-direction: column; 2451 } 2452 .mobile-wallet-adapter-embedded-modal-qr-content > div:first-child { 2453 margin: auto; 2454 } 2455 .mobile-wallet-adapter-embedded-modal-qr-content > div:nth-child(2) { 2456 margin: auto; 2457 flex: 2 auto; 2458 } 2459 .mobile-wallet-adapter-embedded-modal-footer { 2460 flex-direction: column; 2461 } 2462 .mobile-wallet-adapter-embedded-modal-icon { 2463 display: none; 2464 } 2465 .mobile-wallet-adapter-embedded-modal-title { 2466 font-size: 1.5em; 2467 } 2468 .mobile-wallet-adapter-embedded-modal-subtitle { 2469 margin-right: unset; 2470 } 2471 .mobile-wallet-adapter-embedded-modal-qr-label { 2472 text-align: center; 2473 } 2474 .mobile-wallet-adapter-embedded-modal-qr-code-container { 2475 margin: auto; 2476 } 2477} 2478 2479/* Spinner */ 2480@keyframes spinLeft { 2481 0% { 2482 transform: rotate(20deg); 2483 } 2484 50% { 2485 transform: rotate(160deg); 2486 } 2487 100% { 2488 transform: rotate(20deg); 2489 } 2490} 2491@keyframes spinRight { 2492 0% { 2493 transform: rotate(160deg); 2494 } 2495 50% { 2496 transform: rotate(20deg); 2497 } 2498 100% { 2499 transform: rotate(160deg); 2500 } 2501} 2502@keyframes spin { 2503 0% { 2504 transform: rotate(0deg); 2505 } 2506 100% { 2507 transform: rotate(2520deg); 2508 } 2509} 2510 2511.spinner { 2512 position: relative; 2513 width: 1.5em; 2514 height: 1.5em; 2515 margin: auto; 2516 animation: spin 10s linear infinite; 2517} 2518.spinner::before { 2519 content: ""; 2520 position: absolute; 2521 top: 0; 2522 bottom: 0; 2523 left: 0; 2524 right: 0; 2525} 2526.right, .rightWrapper, .left, .leftWrapper { 2527 position: absolute; 2528 top: 0; 2529 overflow: hidden; 2530 width: .75em; 2531 height: 1.5em; 2532} 2533.left, .leftWrapper { 2534 left: 0; 2535} 2536.right { 2537 left: -12px; 2538} 2539.rightWrapper { 2540 right: 0; 2541} 2542.circle { 2543 border: .125em solid #A8B6B8; 2544 width: 1.25em; /* 1.5em - 2*0.125em border */ 2545 height: 1.25em; /* 1.5em - 2*0.125em border */ 2546 border-radius: 0.75em; /* 0.5*1.5em spinner size 8 */ 2547} 2548.left { 2549 transform-origin: 100% 50%; 2550 animation: spinLeft 2.5s cubic-bezier(.2,0,.8,1) infinite; 2551} 2552.right { 2553 transform-origin: 100% 50%; 2554 animation: spinRight 2.5s cubic-bezier(.2,0,.8,1) infinite; 2555} 2556`,H="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDIuNUgxN0MxNy44Mjg0IDIuNSAxOC41IDMuMTc
2556xNTcgMTguNSA0VjIwQzE4LjUgMjAuODI4NCAxNy44Mjg0IDIxLjUgMTcgMjEuNUg3QzYuMTcxNTcgMjEuNSA1LjUgMjAuODI4NCA1LjUgMjBWNEM1LjUgMy4xNzE1NyA2LjE3MTU3IDIuNSA3IDIuNVpNMyA0QzMgMS43OTA4NiA0Ljc5MDg2IDAgNyAwSDE3QzE5LjIwOTEgMCAyMSAxLjc5MDg2IDIxIDRWMjBDMjEgMjIuMjA5MSAxOS4yMDkxIDI0IDE3IDI0SDdDNC43OTA4NiAyNCAzIDIyLjIwOTEgMyAyMFY0Wk0xMSA0LjYxNTM4QzEwLjQ0NzcgNC42MTUzOCAxMCA1LjA2MzEgMTAgNS42MTUzOFY2LjM4NDYyQzEwIDYuOTM2OSAxMC40NDc3IDcuMzg0NjIgMTEgNy4zODQ2MkgxM0MxMy41NTIzIDcuMzg0NjIgMTQgNi45MzY5IDE0IDYuMzg0NjJWNS42MTUzOEMxNCA1LjA2MzEgMTMuNTUyMyA0LjYxNTM4IDEzIDQuNjE1MzhIMTFaIiBmaWxsPSIjRENCOEZGIi8+Cjwvc3ZnPgo=";function Z(Pe){return window.btoa(String.fromCharCode.call(null,...Pe))}function O(Pe){return new Uint8Array(window.atob(Pe).split("").map(Re=>Re.charCodeAt(0)))}var S,N,F,k,W,q,A,D,_,M,G,Q,te,ne,ae,fe,Se,Ce,_e,Me,ve,Le,et,Te,Be,Ye,Ie,ze,at,qe,Xe,ot,Ze,ee,K,Y,se,ce,he,ye,Ue,Ne,Fe,Je,Ve,mt,Mr,bt,xt,zr,lt,_t,Cr,Tt,At,Vr,ct,Qe,Ot,dt,gt,Nr,kt,Mt,gr,Et,ht,lr,vt,ft;const Pt="Mobile Wallet Adapter",Wr=64,Ur=[e.SolanaSignAndSendTransaction,e.SolanaSignTransaction,e.SolanaSignMessage,e.SolanaSignIn];class rr{constructor(Re){S.add(this),N.set(this,{}),F.set(this,"1.0.0"),k.set(this,Pt),W.set(this,"https://solanamobile.com/wallets"),q.set(this,H),A.set(this,void 0),D.set(this,void 0),_.set(this,void 0),M.set(this,!1),G.set(this,0),Q.set(this,[]),te.set(this,void 0),ne.set(this,void 0),ae.set(this,void 0),fe.set(this,(de,le)=>{var je;return!((je=h(this,N,"f")[de])===null||je===void 0)&&je.push(le)||(h(this,N,"f")[de]=[le]),()=>h(this,S,"m",Ce).call(this,de,le)}),_e.set(this,({silent:de}={})=>p(this,void 0,void 0,function*(){if(h(this,M,"f")||this.connected)return{accounts:this.accounts};x(this,M,!0);try{if(de){const le=yield h(this,_,"f").get();if(le)yield h(this,Le,"f").call(this,le.capabilities),yield h(this,ve,"f").call(this,le);else return{accounts:this.accounts}}else yield h(this,Me,"f").call(this)}catch(le){throw new Error(le instanceof Error&&le.message||"Unknown error")}finally{x(this,M,!1)}return{accounts:this.accounts}})),Me.set(this,de=>p(this,void 0,void 0,function*(){try{const le=yield h(this,_,"f").get();if(le)return h(this,ve,"f").call(this,le),le;const je=yield h(this,te,"f").select(h(this,Q,"f"));return yield h(this,Be,"f").call(this,ke=>p(this,void 0,void 0,function*(){const[Ae,De]=yield Promise.all([ke.getCapabilities(),ke.authorize({chain:je,identity:h(this,A,"f"),sign_in_payload:de})]),Ke=h(this,Ie,"f").call(this,De.accounts),rt=Object.assign(Object.assign({},De),{accounts:Ke,chain:je,capabilities:Ae});return Promise.all([h(this,Le,"f").call(this,Ae),h(this,_,"f").set(rt),h(this,ve,"f").call(this,rt)]),rt}))}catch(le){throw new Error(le instanceof Error&&le.message||"Unknown error")}})),ve.set(this,de=>p(this,void 0,void 0,function*(){var le;const je=h(this,D,"f")==null||((le=h(this,D,"f"))===null||le===void 0?void 0:le.accounts.length)!==de.accounts.length||h(this,D,"f").accounts.some((ke,Ae)=>ke.address!==de.accounts[Ae].address);x(this,D,de),je&&h(this,S,"m",Se).call(this,"change",{accounts:this.accounts})})),Le.set(this,de=>p(this,void 0,void 0,function*(){const le=de.features.includes("solana:signTransactions"),je=de.supports_sign_and_send_transactions,ke=e.SolanaSignAndSendTransaction in this.features!==je||e.SolanaSignTransaction in this.features!==le;x(this,ne,Object.assign(Object.assign({},(je||!je&&!le)&&{[e.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:h(this,qe,"f")}}),le&&{[e.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:h(this,Xe,"f")}})),ke&&h(this,S,"m",Se).call(this,"change",{features:this.features})})),et.set(this,(de,le,je)=>p(this,void 0,void 0,function*(){var ke,Ae;try{const[De,Ke]=yield Promise.all([(Ae=(ke=h(this,D,"f"))===null||ke===void 0?void 0:ke.capabilities)!==null&&Ae!==void 0?Ae:yield de.getCapabilities(),de.authorize({auth_token:le,identity:h(this,A,"f"),chain:je})]),rt=h(this,Ie,"f").call(this,Ke.accounts),It=Object.assign(Object.assign({},Ke),{accounts:rt,chain:je,capabilities:De});Promise.all([h(this,_,"f").set(It),h(this,ve,"f").call(this,It)])}catch(De){throw h(this,Te,"f").call(this),new Error(De instanceof Error&&De.message||"Unknown error")}})),Te.set(this,()=>p(this,void 0,void 0,function*(){var de;h(this,_,"f").clear(),x(this,M,!1),x(this,G,(de=h(this,G,"f"),de++,de)),x(this,D,void 0),h(this,S,"m",Se).call(this,"change",{accounts:this.accounts})})),Be.set(this,de=>p(this,void 0,void 0,function*(){var le;const je=(le=h(this,D,"f"))===null||le===void 0?void 0:le.wallet_uri_base,ke=je?{baseUri:je}:void 0,Ae=h(this,G,"f");try{return yield r.transact(de,ke)}catch(De){throw h(this,G,"f")!==Ae&&(yield new Promise(()=>{})),De instanceof Error&&De.name==="SolanaMobileWalletAdapterError"&&De.code==="ERROR_WALLET_NOT_FOUND"&&(yield h(this,ae,"f").call(this,this)),De}})),Ye.set(this,()=>{if(!h(this,D,"f"))throw new Error("Wallet not connected");return{authToken:h(this,D,"f").auth_token,chain:h(this,D,"f").chain}}),Ie.set(this,de=>de.map(le=>{var je,ke;const Ae=O(le.address);return{address:d.default.encode(Ae),publicKey:Ae,label:le.label,icon:le.icon,
2556chains:(je=le.chains)!==null&&je!==void 0?je:h(this,Q,"f"),features:(ke=le.features)!==null&&ke!==void 0?ke:Ur}})),ze.set(this,de=>p(this,void 0,void 0,function*(){const{authToken:le,chain:je}=h(this,Ye,"f").call(this);try{const ke=de.map(Ae=>Z(Ae));return yield h(this,Be,"f").call(this,Ae=>p(this,void 0,void 0,function*(){return yield h(this,et,"f").call(this,Ae,le,je),(yield Ae.signTransactions({payloads:ke})).signed_payloads.map(O)}))}catch(ke){throw new Error(ke instanceof Error&&ke.message||"Unknown error")}})),at.set(this,(de,le)=>p(this,void 0,void 0,function*(){const{authToken:je,chain:ke}=h(this,Ye,"f").call(this);try{return yield h(this,Be,"f").call(this,Ae=>p(this,void 0,void 0,function*(){const[De,Ke]=yield Promise.all([Ae.getCapabilities(),h(this,et,"f").call(this,Ae,je,ke)]);if(De.supports_sign_and_send_transactions){const rt=Z(de);return(yield Ae.signAndSendTransactions(Object.assign(Object.assign({},le),{payloads:[rt]}))).signatures.map(O)[0]}else throw new Error("connected wallet does not support signAndSendTransaction")}))}catch(Ae){throw new Error(Ae instanceof Error&&Ae.message||"Unknown error")}})),qe.set(this,(...de)=>p(this,void 0,void 0,function*(){const le=[];for(const je of de){const ke=yield h(this,at,"f").call(this,je.transaction,je.options);le.push({signature:ke})}return le})),Xe.set(this,(...de)=>p(this,void 0,void 0,function*(){return(yield h(this,ze,"f").call(this,de.map(({transaction:le})=>le))).map(le=>({signedTransaction:le}))})),ot.set(this,(...de)=>p(this,void 0,void 0,function*(){const{authToken:le,chain:je}=h(this,Ye,"f").call(this),ke=de.map(({account:De})=>Z(De.publicKey)),Ae=de.map(({message:De})=>Z(De));try{return yield h(this,Be,"f").call(this,De=>p(this,void 0,void 0,function*(){return yield h(this,et,"f").call(this,De,le,je),(yield De.signMessages({addresses:ke,payloads:Ae})).signed_payloads.map(O).map(rt=>({signedMessage:rt,signature:rt.slice(-Wr)}))}))}catch(De){throw new Error(De instanceof Error&&De.message||"Unknown error")}})),Ze.set(this,(...de)=>p(this,void 0,void 0,function*(){const le=[];if(de.length>1)for(const je of de)le.push(yield h(this,ee,"f").call(this,je));else return[yield h(this,ee,"f").call(this,de[0])];return le})),ee.set(this,de=>p(this,void 0,void 0,function*(){var le,je,ke;x(this,M,!0);try{const Ae=yield h(this,Me,"f").call(this,Object.assign(Object.assign({},de),{domain:(le=de?.domain)!==null&&le!==void 0?le:window.location.host}));if(!Ae.sign_in_result)throw new Error("Sign in failed, no sign in result returned by wallet");const De=Ae.sign_in_result.address,Ke=Ae.accounts.find(rt=>rt.address==De);return{account:Object.assign(Object.assign({},Ke??{address:d.default.encode(O(De))}),{publicKey:O(De),chains:(je=Ke?.chains)!==null&&je!==void 0?je:h(this,Q,"f"),features:(ke=Ke?.features)!==null&&ke!==void 0?ke:Ae.capabilities.features}),signedMessage:O(Ae.sign_in_result.signed_message),signature:O(Ae.sign_in_result.signature)}}catch(Ae){throw new Error(Ae instanceof Error&&Ae.message||"Unknown error")}finally{x(this,M,!1)}})),x(this,_,Re.authorizationCache),x(this,A,Re.appIdentity),x(this,Q,Re.chains),x(this,te,Re.chainSelector),x(this,ae,Re.onWalletNotFound),x(this,ne,{[e.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:h(this,qe,"f")},[e.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:h(this,Xe,"f")}})}get version(){return h(this,F,"f")}get name(){return h(this,k,"f")}get url(){return h(this,W,"f")}get icon(){return h(this,q,"f")}get chains(){return h(this,Q,"f")}get features(){return Object.assign({[n.StandardConnect]:{version:"1.0.0",connect:h(this,_e,"f")},[n.StandardDisconnect]:{version:"1.0.0",disconnect:h(this,Te,"f")},[n.StandardEvents]:{version:"1.0.0",on:h(this,fe,"f")},[e.SolanaSignMessage]:{version:"1.0.0",signMessage:h(this,ot,"f")},[e.SolanaSignIn]:{version:"1.0.0",signIn:h(this,Ze,"f")}},h(this,ne,"f"))}get accounts(){var Re,de;return(de=(Re=h(this,D,"f"))===null||Re===void 0?void 0:Re.accounts)!==null&&de!==void 0?de:[]}get connected(){return!!h(this,D,"f")}get isAuthorized(){return!!h(this,D,"f")}get currentAuthorization(){return h(this,D,"f")}get cachedAuthorizationResult(){return h(this,_,"f").get()}}N=new WeakMap,F=new WeakMap,k=new WeakMap,W=new WeakMap,q=new WeakMap,A=new WeakMap,D=new WeakMap,_=new WeakMap,M=new WeakMap,G=new WeakMap,Q=new WeakMap,te=new WeakMap,ne=new WeakMap,ae=new WeakMap,fe=new WeakMap,_e=new WeakMap,Me=new WeakMap,ve=new WeakMap,Le=new WeakMap,et=new WeakMap,Te=new WeakMap,Be=new WeakMap,Ye=new WeakMap,Ie=new WeakMap,ze=new WeakMap,at=new WeakMap,qe=new WeakMap,Xe=new WeakMap,ot=new WeakMap,Ze
2556=new WeakMap,ee=new WeakMap,S=new WeakSet,Se=function(Re,...de){var le;(le=h(this,N,"f")[Re])===null||le===void 0||le.forEach(je=>je.apply(null,de))},Ce=function(Re,de){var le;h(this,N,"f")[Re]=(le=h(this,N,"f")[Re])===null||le===void 0?void 0:le.filter(je=>de!==je)};class cr{constructor(Re){K.add(this),Y.set(this,{}),se.set(this,"1.0.0"),ce.set(this,Pt),he.set(this,"https://solanamobile.com/wallets"),ye.set(this,H),Ue.set(this,void 0),Ne.set(this,void 0),Fe.set(this,void 0),Je.set(this,!1),Ve.set(this,0),mt.set(this,[]),Mr.set(this,void 0),bt.set(this,void 0),xt.set(this,void 0),zr.set(this,void 0),lt.set(this,void 0),_t.set(this,(de,le)=>{var je;return!((je=h(this,Y,"f")[de])===null||je===void 0)&&je.push(le)||(h(this,Y,"f")[de]=[le]),()=>h(this,K,"m",Tt).call(this,de,le)}),At.set(this,({silent:de}={})=>p(this,void 0,void 0,function*(){if(h(this,Je,"f")||this.connected)return{accounts:this.accounts};x(this,Je,!0);try{yield h(this,Vr,"f").call(this)}catch(le){throw new Error(le instanceof Error&&le.message||"Unknown error")}finally{x(this,Je,!1)}return{accounts:this.accounts}})),Vr.set(this,de=>p(this,void 0,void 0,function*(){try{const le=yield h(this,Fe,"f").get();if(le)return h(this,ct,"f").call(this,le),le;h(this,lt,"f")&&x(this,lt,void 0,"f");const je=yield h(this,Mr,"f").select(h(this,mt,"f"));return yield h(this,gt,"f").call(this,ke=>p(this,void 0,void 0,function*(){const[Ae,De]=yield Promise.all([ke.getCapabilities(),ke.authorize({chain:je,identity:h(this,Ue,"f"),sign_in_payload:de})]),Ke=h(this,kt,"f").call(this,De.accounts),rt=Object.assign(Object.assign({},De),{accounts:Ke,chain:je,capabilities:Ae});return Promise.all([h(this,Qe,"f").call(this,Ae),h(this,Fe,"f").set(rt),h(this,ct,"f").call(this,rt)]),rt}))}catch(le){throw new Error(le instanceof Error&&le.message||"Unknown error")}})),ct.set(this,de=>p(this,void 0,void 0,function*(){var le;const je=h(this,Ne,"f")==null||((le=h(this,Ne,"f"))===null||le===void 0?void 0:le.accounts.length)!==de.accounts.length||h(this,Ne,"f").accounts.some((ke,Ae)=>ke.address!==de.accounts[Ae].address);x(this,Ne,de),je&&h(this,K,"m",Cr).call(this,"change",{accounts:this.accounts})})),Qe.set(this,de=>p(this,void 0,void 0,function*(){const le=de.features.includes("solana:signTransactions"),je=de.supports_sign_and_send_transactions||de.features.includes("solana:signAndSendTransaction"),ke=e.SolanaSignAndSendTransaction in this.features!==je||e.SolanaSignTransaction in this.features!==le;x(this,bt,Object.assign(Object.assign({},je&&{[e.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:de.supported_transaction_versions,signAndSendTransaction:h(this,Et,"f")}}),le&&{[e.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:de.supported_transaction_versions,signTransaction:h(this,ht,"f")}})),ke&&h(this,K,"m",Cr).call(this,"change",{features:this.features})})),Ot.set(this,(de,le,je)=>p(this,void 0,void 0,function*(){var ke,Ae;try{const[De,Ke]=yield Promise.all([(Ae=(ke=h(this,Ne,"f"))===null||ke===void 0?void 0:ke.capabilities)!==null&&Ae!==void 0?Ae:yield de.getCapabilities(),de.authorize({auth_token:le,identity:h(this,Ue,"f"),chain:je})]),rt=h(this,kt,"f").call(this,Ke.accounts),It=Object.assign(Object.assign({},Ke),{accounts:rt,chain:je,capabilities:De});Promise.all([h(this,Fe,"f").set(It),h(this,ct,"f").call(this,It)])}catch(De){throw h(this,dt,"f").call(this),new Error(De instanceof Error&&De.message||"Unknown error")}})),dt.set(this,()=>p(this,void 0,void 0,function*(){var de,le;(de=h(this,lt,"f"))===null||de===void 0||de.close(),h(this,Fe,"f").clear(),x(this,Je,!1),x(this,Ve,(le=h(this,Ve,"f"),le++,le)),x(this,Ne,void 0),x(this,lt,void 0),h(this,K,"m",Cr).call(this,"change",{accounts:this.accounts})})),gt.set(this,de=>p(this,void 0,void 0,function*(){var le;const je=(le=h(this,Ne,"f"))===null||le===void 0?void 0:le.wallet_uri_base,Ae=Object.assign(Object.assign({},je?{baseUri:je}:void 0),{remoteHostAuthority:h(this,zr,"f")}),De=h(this,Ve,"f"),Ke=new U;if(h(this,lt,"f"))return de(h(this,lt,"f").wallet);try{const{associationUrl:rt,close:It,wallet:zn}=yield r.startRemoteScenario(Ae),Ai=Ke.addEventListener("close",ki=>{ki&&It()});return Ke.initWithQR(rt.toString()),Ke.open(),x(this,lt,{close:It,wallet:yield zn},"f"),Ai(),Ke.close(),yield de(h(this,lt,"f").wallet)}catch(rt){throw Ke.close(),h(this,Ve,"f")!==De&&(yield new Promise(()=>{})),rt instanceof Error&&rt.name==="SolanaMobileWalletAdapterError"&&rt.code==="ERROR_WALLET_NOT_FOUND"&&(yield h(this,xt,"f").call(this,this)),rt}})),Nr.set(this,()=>{if(!h(this,Ne,"f"))throw new Error("Wallet not connected");return{authToken:h(this,Ne,"f").auth_token,chain:h(this,Ne,"f").chain}}),kt.set(this,de=>de.map(le=>{var je,ke;const Ae=O(le.address);return{address:d.default.encode(Ae),publicKey:Ae,label:le.label,icon:le.icon,
2556chains:(je=le.chains)!==null&&je!==void 0?je:h(this,mt,"f"),features:(ke=le.features)!==null&&ke!==void 0?ke:Ur}})),Mt.set(this,de=>p(this,void 0,void 0,function*(){const{authToken:le,chain:je}=h(this,Nr,"f").call(this);try{return yield h(this,gt,"f").call(this,ke=>p(this,void 0,void 0,function*(){return yield h(this,Ot,"f").call(this,ke,le,je),(yield ke.signTransactions({payloads:de.map(Z)})).signed_payloads.map(O)}))}catch(ke){throw new Error(ke instanceof Error&&ke.message||"Unknown error")}})),gr.set(this,(de,le)=>p(this,void 0,void 0,function*(){const{authToken:je,chain:ke}=h(this,Nr,"f").call(this);try{return yield h(this,gt,"f").call(this,Ae=>p(this,void 0,void 0,function*(){const[De,Ke]=yield Promise.all([Ae.getCapabilities(),h(this,Ot,"f").call(this,Ae,je,ke)]);if(De.supports_sign_and_send_transactions)return(yield Ae.signAndSendTransactions(Object.assign(Object.assign({},le),{payloads:[Z(de)]}))).signatures.map(O)[0];throw new Error("connected wallet does not support signAndSendTransaction")}))}catch(Ae){throw new Error(Ae instanceof Error&&Ae.message||"Unknown error")}})),Et.set(this,(...de)=>p(this,void 0,void 0,function*(){const le=[];for(const je of de){const ke=yield h(this,gr,"f").call(this,je.transaction,je.options);le.push({signature:ke})}return le})),ht.set(this,(...de)=>p(this,void 0,void 0,function*(){return(yield h(this,Mt,"f").call(this,de.map(({transaction:le})=>le))).map(le=>({signedTransaction:le}))})),lr.set(this,(...de)=>p(this,void 0,void 0,function*(){const{authToken:le,chain:je}=h(this,Nr,"f").call(this),ke=de.map(({account:De})=>Z(De.publicKey)),Ae=de.map(({message:De})=>Z(De));try{return yield h(this,gt,"f").call(this,De=>p(this,void 0,void 0,function*(){return yield h(this,Ot,"f").call(this,De,le,je),(yield De.signMessages({addresses:ke,payloads:Ae})).signed_payloads.map(O).map(rt=>({signedMessage:rt,signature:rt.slice(-Wr)}))}))}catch(De){throw new Error(De instanceof Error&&De.message||"Unknown error")}})),vt.set(this,(...de)=>p(this,void 0,void 0,function*(){const le=[];if(de.length>1)for(const je of de)le.push(yield h(this,ft,"f").call(this,je));else return[yield h(this,ft,"f").call(this,de[0])];return le})),ft.set(this,de=>p(this,void 0,void 0,function*(){var le,je,ke;x(this,Je,!0);try{const Ae=yield h(this,Vr,"f").call(this,Object.assign(Object.assign({},de),{domain:(le=de?.domain)!==null&&le!==void 0?le:window.location.host}));if(!Ae.sign_in_result)throw new Error("Sign in failed, no sign in result returned by wallet");const De=Ae.sign_in_result.address,Ke=Ae.accounts.find(rt=>rt.address==De);return{account:Object.assign(Object.assign({},Ke??{address:d.default.encode(O(De))}),{publicKey:O(De),chains:(je=Ke?.chains)!==null&&je!==void 0?je:h(this,mt,"f"),features:(ke=Ke?.features)!==null&&ke!==void 0?ke:Ae.capabilities.features}),signedMessage:O(Ae.sign_in_result.signed_message),signature:O(Ae.sign_in_result.signature)}}catch(Ae){throw new Error(Ae instanceof Error&&Ae.message||"Unknown error")}finally{x(this,Je,!1)}})),x(this,Fe,Re.authorizationCache),x(this,Ue,Re.appIdentity),x(this,mt,Re.chains),x(this,Mr,Re.chainSelector),x(this,zr,Re.remoteHostAuthority),x(this,xt,Re.onWalletNotFound),x(this,bt,{[e.SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:h(this,Et,"f")},[e.SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:h(this,ht,"f")}})}get version(){return h(this,se,"f")}get name(){return h(this,ce,"f")}get url(){return h(this,he,"f")}get icon(){return h(this,ye,"f")}get chains(){return h(this,mt,"f")}get features(){return Object.assign({[n.StandardConnect]:{version:"1.0.0",connect:h(this,At,"f")},[n.StandardDisconnect]:{version:"1.0.0",disconnect:h(this,dt,"f")},[n.StandardEvents]:{version:"1.0.0",on:h(this,_t,"f")},[e.SolanaSignMessage]:{version:"1.0.0",signMessage:h(this,lr,"f")},[e.SolanaSignIn]:{version:"1.0.0",signIn:h(this,vt,"f")}},h(this,bt,"f"))}get accounts(){var Re,de;return(de=(Re=h(this,Ne,"f"))===null||Re===void 0?void 0:Re.accounts)!==null&&de!==void 0?de:[]}get connected(){return!!h(this,lt,"f")&&!!h(this,Ne,"f")}get isAuthorized(){return!!h(this,Ne,"f")}get currentAuthorization(){return h(this,Ne,"f")}get cachedAuthorizationResult(){return h(this,Fe,"f").get()}}
2556Y=new WeakMap,se=new WeakMap,ce=new WeakMap,he=new WeakMap,ye=new WeakMap,Ue=new WeakMap,Ne=new WeakMap,Fe=new WeakMap,Je=new WeakMap,Ve=new WeakMap,mt=new WeakMap,Mr=new WeakMap,bt=new WeakMap,xt=new WeakMap,zr=new WeakMap,lt=new WeakMap,_t=new WeakMap,At=new WeakMap,Vr=new WeakMap,ct=new WeakMap,Qe=new WeakMap,Ot=new WeakMap,dt=new WeakMap,gt=new WeakMap,Nr=new WeakMap,kt=new WeakMap,Mt=new WeakMap,gr=new WeakMap,Et=new WeakMap,ht=new WeakMap,lr=new WeakMap,vt=new WeakMap,ft=new WeakMap,K=new WeakSet,Cr=function(Re,...de){var le;(le=h(this,Y,"f")[Re])===null||le===void 0||le.forEach(je=>je.apply(null,de))},Tt=function(Re,de){var le;h(this,Y,"f")[Re]=(le=h(this,Y,"f")[Re])===null||le===void 0?void 0:le.filter(je=>de!==je)};var Bn=function(Pe,Re,de,le,je){if(le==="m")throw new TypeError("Private method is not writable");if(le==="a"&&!je)throw new TypeError("Private accessor was defined without a setter");if(typeof Re=="function"?Pe!==Re||!je:!Re.has(Pe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return le==="a"?je.call(Pe,de):je?je.value=de:Re.set(Pe,de),de},hn=function(Pe,Re,de,le){if(de==="a"&&!le)throw new TypeError("Private accessor was defined without a getter");if(typeof Re=="function"?Pe!==Re||!le:!Re.has(Pe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return de==="m"?le:de==="a"?le.call(Pe):le?le.value:Re.get(Pe)},_r;function fn(Pe){const Re=({register:de})=>de(Pe);try{window.dispatchEvent(new Pr(Re))}catch(de){console.error(`wallet-standard:register-wallet event could not be dispatched 2557`,de)}try{window.addEventListener("wallet-standard:app-ready",({detail
2557:de})=>Re(de))}catch(de){console.error(`wallet-standard:app-ready event listener could not be added 2558`,de)}}class Pr extends Event{constructor(Re){super("wallet-standard:register-wallet",{bubbles:!1,cancelable:!1,composed:!1}),_r.set(this,void 0),Bn(this,_r,Re,"f")}get detail(){return hn(this,_r,"f")}get type(){return"wallet-standard:register-wallet"}preventDefault(){throw new Error("preventDefault cannot be called")}stopImmediatePropagation(){throw new Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw new Error("stopPropagation cannot be called")}}_r=new WeakMap;function Lr(){return typeof window<"u"&&window.isSecureContext&&typeof document<"u"&&/android/i.test(navigator.userAgent)}function er(){return typeof window<"u"&&window.isSecureContext&&typeof document<"u"&&!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function $r(Pe){Lr()?fn(new rr(Pe)):er()&&Pe.remoteHostAuthority!==void 0&&fn(new cr(Object.assign(Object.assign({},Pe),{remoteHostAuthority:Pe.remoteHostAuthority})))}const pn="To use mobile wallet adapter, you must have a compatible mobile wallet application installed on your device.",yr="This browser appears to be incompatible with mobile wallet adapter. Open this page in a compatible mobile browser app and try again.";class Hr extends ${constructor(){super(...arguments),this.contentStyles=Fn,this.contentHtml=qr}initWithError(Re){super.init(),this.populateError(Re)}populateError(Re){var de,le;const je=(de=this.dom)===null||de===void 0?void 0:de.getElementById("mobile-wallet-adapter-error-message"),ke=(le=this.dom)===null||le===void 0?void 0:le.getElementById("mobile-wallet-adapter-error-action");if(je){if(Re.name==="SolanaMobileWalletAdapterError")switch(Re.code){case"ERROR_WALLET_NOT_FOUND":je.innerHTML=pn,ke&&ke.addEventListener("click",()=>{window.location.href="https://solanamobile.com/wallets"});return;case"ERROR_BROWSER_NOT_SUPPORTED":je.innerHTML=yr,ke&&(ke.style.display="none");return}je.innerHTML=`An unexpected error occurred: ${Re.message}`}else console.log("Failed to locate error dialog element")}}const qr=` 2559<svg class="mobile-wallet-adapter-embedded-modal-error-icon" xmlns="http://www.w3.org/2000/svg" height="50px" viewBox="0 -960 960 960" width="50px" fill="#000000"><path d="M 280,-80 Q 197,-80 138.5,-138.5 80,-197 80,-280 80,-363 138.5,-421.5 197,-480 280,-480 q 83,0 141.5,58.5 58.5,58.5 58.5,141.5 0,83 -58.5,141.5 Q 363,-80 280,-80 Z M 824,-120 568,-376 Q 556,-389 542.5,-402.5 529,-416 516,-428 q 38,-24 61,-64 23,-40 23,-88 0,-75 -52.5,-127.5 Q 495,-760 420,-760 345,-760 292.5,-707.5 240,-655 240,-580 q 0,6 0.5,11.5 0.5,5.5 1.5,11.5 -18,2 -39.5,8 -21.5,6 -38.5,14 -2,-11 -3,-22 -1,-11 -1,-23 0,-109 75.5,-184.5 Q 311,-840 420,-840 q 109,0 184.5,75.5 75.5,75.5 75.5,184.5 0,43 -13.5,81.5 Q 653,-460 629,-428 l 251,252 z m -615,-61 71,-71 70,71 29,-28 -71,-71 71,-71 -28,-28 -71,71 -71,-71 -28,28 71,71 -71,71 z"/></svg> 2560<div class="mobile-wallet-adapter-embedded-modal-title">We can't find a wallet.</div> 2561<div id="mobile-wallet-adapter-error-message" class="mobile-wallet-adapter-embedded-modal-subtitle"></div> 2562<div> 2563 <button data-error-action id="mobile-wallet-adapter-error-action" class="mobile-wallet-adapter-embedded-modal-error-action"> 2564 Find a wallet 2565 </button> 2566</div> 2567`,Fn=` 2568.mobile-wallet-adapter-embedded-modal-content { 2569 text-align: center; 2570} 2571 2572.mobile-wallet-adapter-embedded-modal-error-icon { 2573 margin-top: 24px; 2574} 2575 2576.mobile-wallet-adapter-embedded-modal-title { 2577 margin: 18px 100px auto 100px; 2578 color: #000000; 2579 font-size: 2.75em; 2580 font-weight: 600; 2581} 2582 2583.mobile-wallet-adapter-embedded-modal-subtitle { 2584 margin: 30px 60px 40px 60px; 2585 color: #000000; 2586 font-size: 1.25em; 2587 font-weight: 400; 2588} 2589 2590.mobile-wallet-adapter-embedded-modal-error-action { 2591 display: block; 2592 width: 100%; 2593 height: 56px; 2594 /*margin-top: 40px;*/ 2595 font-size: 1.25em; 2596 /*line-height: 24px;*/ 2597 /*letter-spacing: -1%;*/ 2598 background: #000000; 2599 color: #FFFFFF; 2600 border-radius: 18px; 2601} 2602 2603/* Smaller screens */ 2604@media all and (max-width: 600px) { 2605 .mobile-wallet-adapter-embedded-modal-title { 2606 font-size: 1.5em; 2607 margin-right: 12px; 2608 margin-left: 12px; 2609 } 2610 .mobile-wallet-adapter-embedded-modal-subtitle { 2611 margin-right: 12px; 2612 margin-left: 12px; 2613 } 2614} 2615`;function Gr(){return p(this,void 0,void 0,function*(){if(typeof window<"u"){const Pe=window.navigator.userAgent.toLowerCase(),Re=new Hr;Pe.includes("wv")?Re.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_BROWSER_NOT_SUPPORTED",message:""}):Re.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_WALLET_NOT_FOUND",message:""}),Re.open()}})}function nr(){return()=>p(this,void 0,void 0,function*(){Gr()})}const ns="SolanaMobileWalletAdapterDefaultAuthorizationCache";function Oa(){let Pe;try{Pe=window.localStorage}catch{}return{clear(){return p(this,void 0,void 0,function*(){if(Pe)try{Pe.removeItem(ns)}catch{}})},get(){return p(this,void 0,void 0,function*(){if(Pe)try{const Re=JSON.parse(Pe.getItem(ns));if(Re&&Re.accounts){const de=Re.accounts.map(le=>Object.assign(Object.assign({},le),{publicKey:"publicKey"in le?new Uint8Array(Object.values(le.publicKey)):d.default.decode(le.address)}));return Object.assign(Object.assign({},Re),{accounts:de})}else return Re||void 0}catch{}})},set(Re){return p(this,void 0,void 0,function*(){if(Pe)try{Pe.setItem(ns,JSON.stringify(Re))}catch{}})}}}function ss(){return{select(Pe){return p(this,void 0,void 0,function*(){return Pe.length===1?Pe[0]:Pe.includes(a.SOLANA_MAINNET_CHAIN)?a.SOLANA_MAINNET_CHAIN:Pe[0]})}}}return index_browser$1.LocalSolanaMobileWalletAdapterWallet=rr,index_browser$1.RemoteSolanaMobileWalletAdapterWallet=cr,index_browser$1.SolanaMobileWalletAdapterWalletName=Pt,index_browser$1.createDefaultAuthorizationCache=Oa,index_browser$1.createDefaultChainSelector=ss,index_browser$1.createDefaultWalletNotFoundHandler=nr,index_browser$1.defaultErrorModalWalletNotFoundHandler=Gr,index_browser$1.registerMwa=$r,index_browser$1}var hasRequiredIndex_browser;function requireIndex_browser(){if(hasRequiredIndex_browser)return index_browser$2;hasRequiredIndex_browser=1,Object.defineProperty(index_browser$2,"__esMo
2615dule",{value:!0});var e=requireCjs$1(),t=require$$5,r=requireCjs$3(),n=requireIndex_browser$1();function s(D,_,M,G){function Q(te){return te instanceof M?te:new M(function(ne){ne(te)})}return new(M||(M=Promise))(function(te,ne){function ae(Ce){try{Se(G.next(Ce))}catch(_e){ne(_e)}}function fe(Ce){try{Se(G.throw(Ce))}catch(_e){ne(_e)}}function Se(Ce){Ce.done?te(Ce.value):Q(Ce.value).then(ae,fe)}Se((G=G.apply(D,[])).next())})}function a(D,_,M,G){if(M==="a"&&!G)throw new TypeError("Private accessor was defined without a getter");if(typeof _=="function"?D!==_||!G:!_.has(D))throw new TypeError("Cannot read private member from an object whose class did not declare it");return M==="m"?G:M==="a"?G.call(D):G?G.value:_.get(D)}function l(D,_,M,G,Q){if(typeof _=="function"?D!==_||!0:!_.has(D))throw new TypeError("Cannot write private member to an object whose class did not declare it");return _.set(D,M),M}const u="standard:connect",d="standard:disconnect",p="standard:events";function h(D){return window.btoa(String.fromCharCode.call(null,...D))}function x(){return typeof window<"u"&&window.isSecureContext&&typeof document<"u"&&/android/i.test(navigator.userAgent)}var w,g,b,v,E,j,R,T,z,L,V,$,U;const B="Mobile Wallet Adapter",P=64;function H(D){return"version"in D}function Z(D){switch(D){case"mainnet-beta":return"solana:mainnet";case"testnet":return"solana:testnet";case"devnet":return"solana:devnet";default:return D}}class O extends e.BaseSignInMessageSignerWalletAdapter{constructor(_,M){super(),w.add(this),this.supportedTransactionVersions=new Set(["legacy",0]),g.set(this,void 0),b.set(this,!1),v.set(this,x()?e.WalletReadyState.Loadable:e.WalletReadyState.Unsupported),E.set(this,void 0),j.set(this,void 0),R.set(this,void 0),T.set(this,G=>s(this,void 0,void 0,function*(){if(G.accounts&&G.accounts.length>0){a(this,w,"m",L).call(this);const Q=yield a(this,E,"f").call(this,G.accounts);Q!==a(this,j,"f")&&(l(this,j,Q),l(this,R,void 0),this.emit("connect",this.publicKey))}})),l(this,E,G=>s(this,void 0,void 0,function*(){var Q;const te=yield M.addressSelector.select(G.map(({publicKey:ne})=>h(ne)));return(Q=G.find(({publicKey:ne})=>h(ne)===te))!==null&&Q!==void 0?Q:G[0]})),l(this,g,_),a(this,g,"f").features[p].on("change",a(this,T,"f")),this.name=a(this,g,"f").name,this.icon=a(this,g,"f").icon,this.url=a(this,g,"f").url}get publicKey(){var _;if(!a(this,R,"f")&&a(this,j,"f"))try{l(this,R,new t.PublicKey(a(this,j,"f").publicKey),"f")}catch(M){throw new e.WalletPublicKeyError(M instanceof Error&&M?.message||"Unknown error",M)}return(_=a(this,R,"f"))!==null&&_!==void 0?_:null}get connected(){return a(this,g,"f").connected}get connecting(){return a(this,b,"f")}get readyState(){return a(this,v,"f")}autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(){return s(this,void 0,void 0,function*(){return yield this.autoConnect()})}autoConnect(){return s(this,void 0,void 0,function*(){a(this,w,"m",z).call(this,!0)})}connect(){return s(this,void 0,void 0,function*(){a(this,w,"m",z).call(this)})}performAuthorization(_){return s(this,void 0,void 0,function*(){try{const M=yield a(this,g,"f").cachedAuthorizationResult;return M?(yield a(this,g,"f").features[u].connect({silent:!0}),M):(_?yield a(this,g,"f").features[r.SolanaSignIn].signIn(_):yield a(this,g,"f").features[u].connect(),yield yield a(this,g,"f").cachedAuthorizationResult)}catch(M){throw new e.WalletConnectionError(M instanceof Error&&M.message||"Unknown error",M)}})}disconnect(){return s(this,void 0,void 0,function*(){return yield a(this,w,"m",U).call(this,()=>s(this,void 0,void 0,function*(){l(this,b,!1),l(this,R,void 0),l(this,j,void 0),yield a(this,g,"f").features[d].disconnect(),this.emit("disconnect")}))})}signIn(_){return s(this,void 0,void 0,function*(){return a(this,w,"m",U).call(this,()=>s(this,void 0,void 0,function*(){var M;if(a(this,v,"f")!==e.WalletReadyState.Installed&&a(this,v,"f")!==e.WalletReadyState.Loadable)throw new e.WalletNotReadyError;l(this,b,!0);try{const G=yield a(this,g,"f").features[r.SolanaSignIn].signIn(Object.assign(Object.assign({},_),{domain:(M=_?.domain)!==null&&M!==void 0?M:window.location.host}));if(G.length>0)return G[0];throw new Error("Sign in failed, no sign in result returned by wallet")}catch(G){throw new e.WalletConnectionError(G instanceof Error&&G.message||"Unknown error",G)}finally{l(this,b,!1)}}))})}signMessage(_){return s(this,void 0,void 0,function*(){return yield a(this,w,"m",U).c
2615all(this,()=>s(this,void 0,void 0,function*(){const M=a(this,w,"m",V).call(this);try{return(yield a(this,g,"f").features[r.SolanaSignMessage].signMessage({account:M,message:_}))[0].signature}catch(G){throw new e.WalletSignMessageError(G?.message,G)}}))})}sendTransaction(_,M,G){return s(this,void 0,void 0,function*(){return yield a(this,w,"m",U).call(this,()=>s(this,void 0,void 0,function*(){const Q=a(this,w,"m",V).call(this);try{let te=function(){let ne;switch(M.commitment){case"confirmed":case"finalized":case"processed":ne=M.commitment;break;default:ne="finalized"}let ae;switch(G?.preflightCommitment){case"confirmed":case"finalized":case"processed":ae=G.preflightCommitment;break;case void 0:ae=ne;break;default:ae="finalized"}return(ae==="finalized"?2:ae==="confirmed"?1:0)<(ne==="finalized"?2:ne==="confirmed"?1:0)?ae:ne};if(r.SolanaSignAndSendTransaction in a(this,g,"f").features){const ne=Z(a(this,g,"f").currentAuthorization.chain),[ae]=(yield a(this,g,"f").features[r.SolanaSignAndSendTransaction].signAndSendTransaction({account:Q,transaction:_.serialize(),chain:ne,options:G?{skipPreflight:G.skipPreflight,maxRetries:G.maxRetries}:void 0})).map((fe=>h(fe.signature)));return ae}else{const[ne]=yield a(this,w,"m",$).call(this,[_]);if(H(ne))return yield M.sendTransaction(ne);{const ae=ne.serialize();return yield M.sendRawTransaction(ae,Object.assign(Object.assign({},G),{preflightCommitment:te()}))}}}catch(te){throw new e.WalletSendTransactionError(te?.message,te)}}))})}signTransaction(_){return s(this,void 0,void 0,function*(){return yield a(this,w,"m",U).call(this,()=>s(this,void 0,void 0,function*(){const[M]=yield a(this,w,"m",$).call(this,[_]);return M}))})}signAllTransactions(_){return s(this,void 0,void 0,function*(){return yield a(this,w,"m",U).call(this,()=>s(this,void 0,void 0,function*(){return yield a(this,w,"m",$).call(this,_)}))})}}g=new WeakMap,b=new WeakMap,v=new WeakMap,E=new WeakMap,j=new WeakMap,R=new WeakMap,T=new WeakMap,w=new WeakSet,z=function(_=!1){return s(this,void 0,void 0,function*(){if(!(this.connecting||this.connected))return yield a(this,w,"m",U).call(this,()=>s(this,void 0,void 0,function*(){if(a(this,v,"f")!==e.WalletReadyState.Installed&&a(this,v,"f")!==e.WalletReadyState.Loadable)throw new e.WalletNotReadyError;l(this,b,!0);try{yield a(this,g,"f").features[u].connect({silent:_})}catch(M){throw new e.WalletConnectionError(M instanceof Error&&M.message||"Unknown error",M)}finally{l(this,b,!1)}}))})},L=function(){a(this,v,"f")!==e.WalletReadyState.Installed&&this.emit("readyStateChange",l(this,v,e.WalletReadyState.Installed))},V=function(){if(!a(this,g,"f").isAuthorized||!a(this,j,"f"))throw new e.WalletNotConnectedError;return a(this,j,"f")},$=function(_){return s(this,void 0,void 0,function*(){const M=a(this,w,"m",V).call(this);try{if(r.SolanaSignTransaction in a(this,g,"f").features)return a(this,g,"f").features[r.SolanaSignTransaction].signTransaction(..._.map(G=>({account:M,transaction:G.serialize()}))).then(G=>G.map(Q=>{const te=Q.signedTransaction,ae=te[0]*P+1;return t.VersionedMessage.deserializeMessageVersion(te.slice(ae,te.length))==="legacy"?t.Transaction.from(te):t.VersionedTransaction.deserialize(te)}));throw new Error("Connected wallet does not support signing transactions")}catch(G){throw new e.WalletSignTransactionError(G?.message,G)}})},U=function(_){return s(this,void 0,void 0,function*(){try{return yield _()}catch(M){throw this.emit("error",M),M}})};class S extends O{constructor(_){var M;const G=Z((M=_.chain)!==null&&M!==void 0?M:_.cluster);super(new n.LocalSolanaMobileWalletAdapterWallet({appIdentity:_.appIdentity,authorizationCache:{set:_.authorizationResultCache.set,get:()=>s(this,void 0,void 0,function*(){return yield _.authorizationResultCache.get()}),clear:_.authorizationResultCache.clear},chains:[G],chainSelector:n.createDefaultChainSelector(),onWalletNotFound:()=>s(this,void 0,void 0,function*(){_.onWalletNotFound(this)})}),{addressSelector:_.addressSelector,chain:G})}}class N extends O{constructor(_){const M=Z(_.chain);super(new n.RemoteSolanaMobileWalletAdapterWallet({appIdentity:_.appIdentity,authorizationCache:{set:_.authorizationResultCache.set,get:()=>s(this,void 0,void 0,function*(){return yield _.authorizationResultCache.get()}),clear:_.authorizationResultCache.clear},chains:[M],chainSelector:n.createDefaultChainSelector(),remoteHostAuthority:_.remoteHostAuthority,onWalletNotFound:()=>s(this,void 0,void 0,function*(){_.onWalletNotFound(this)})}),{addressSelector:_.addressSelector,chain:M})}}class F extends S{}function k(){return{select(D){return s(this,void 0,void 0,function*(){return D[0]})}}}function W(){return n.createDefaultAuthorizationCache()}function q(D){return s(this,void 0,void 0,function*(){return n.defaultErrorModalWalletNotFoundHandler()})}function A(){return q}return index_browser$2.LocalSolanaMobileWalletAdapter=S,index_browser$2.RemoteSolanaMobileWalletAdapter=N,index_browser$2.SolanaMobileWalletAdapter=F,index_browser$2.SolanaMobileWalletAdapterWalletName=B,index_browser$2.createDefaultAddressSelector=k,index_browser$2.createDefaultAuthorizationResultCache=W,index_browser$2.createDefaultWalletNotFoundHandler=A,index_browser$2}var index_browserExports=requireIndex_browser(),__classPrivateFieldGet$3=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},__classPrivateFieldSet$3=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r},_RegisterWalletEvent_detail;function registerWallet(e){const t=({register:r})=>r(e);try{window.dispatchEvent(new RegisterWalletEvent(t))}catch(r){console.error(`wallet-standard:register-wallet event could not be dispatched 2616`,r)}try{window.addEventListener("wallet-standard:app-ready",({detail
2616:r})=>t(r))}catch(r){console.error(`wallet-standard:app-ready event listener could not be added 2617`,r)}}class RegisterWalletEvent extends Event{get detail(){return __classPrivateFieldGet$3(this,_RegisterWalletEvent_detail,"f")}get type(){return"wallet-standard:register-wallet"}constructor(t){super("wallet-standard:register-wallet",{bubbles:!1,cancelable:!1,composed:!1}),_RegisterWalletEvent_detail.set(this,void 0),__classPrivateFieldSet$3(this,_RegisterWalletEvent_detail,t,"f")}preventDefault(){throw new Error("preventDefault cannot be called")}stopImmediatePropagation(){throw new Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw new Error("stopPropagation cannot be called")}}_RegisterWalletEvent_detail=new WeakMap;function arraysEqual(e,t){if(e===t)return!0;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function base(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let p=0;p<t.length;p++)t[p]=255;for(let p=0;p<e.length;
2617p++){const h=e.charAt(p),x=h.charCodeAt(0);if(t[x]!==255)throw new TypeError(h+" is ambiguous");t[x]=p}const r=e.length,n=e.charAt(0),s=Math.log(r)/Math.log(256),a=Math.log(256)/Math.log(r);function l(p){if(p instanceof Uint8Array||(ArrayBuffer.isView(p)?p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):Array.isArray(p)&&(p=Uint8Array.from(p))),!(p instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(p.length===0)return"";let h=0,x=0,w=0;const g=p.length;for(;w!==g&&p[w]===0;)w++,h++;const b=(g-w)*a+1>>>0,v=new Uint8Array(b);for(;w!==g;){let R=p[w],T=0;for(let z=b-1;(R!==0||T<x)&&z!==-1;z--,T++)R+=256*v[z]>>>0,v[z]=R%r>>>0,R=R/r>>>0;if(R!==0)throw new Error("Non-zero carry");x=T,w++}let E=b-x;for(;E!==b&&v[E]===0;)E++;let j=n.repeat(h);for(;E<b;++E)j+=e.charAt(v[E]);return j}function u(p){if(typeof p!="string")throw new TypeError("Expected String");if(p.length===0)return new Uint8Array;let h=0,x=0,w=0;for(;p[h]===n;)x++,h++;const g=(p.length-h)*s+1>>>0,b=new Uint8Array(g);for(;h<p.length;){const R=p.charCodeAt(h);if(R>255)return;let T=t[R];if(T===255)return;let z=0;for(let L=g-1;(T!==0||z<w)&&L!==-1;L--,z++)T+=r*b[L]>>>0,b[L]=T%256>>>0,T=T/256>>>0;if(T!==0)throw new Error("Non-zero carry");w=z,h++}let v=g-w;for(;v!==g&&b[v]===0;)v++;const E=new Uint8Array(x+(g-v));let j=x;for(;v!==g;)E[j++]=b[v++];return E}function d(p){const h=u(p);if(h)return h;throw new Error("Non-base"+r+" character")}return{encode:l,decodeUnsafe:u,decode:d}}var ALPHABET="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const bs58=base(ALPHABET);var __classPrivateFieldGet$2=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},__classPrivateFieldSet$2=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r},_StandardWalletAdapter_instances,_StandardWalletAdapter_account,_StandardWalletAdapter_publicKey,_StandardWalletAdapter_connecting,_StandardWalletAdapter_disconnecting,_StandardWalletAdapter_off,_StandardWalletAdapter_supportedTransactionVersions,_StandardWalletAdapter_wallet,_StandardWalletAdapter_readyState,_StandardWalletAdapter_connect,_StandardWalletAdapter_connected,_StandardWalletAdapter_disconnected,_StandardWalletAdapter_reset,_StandardWalletAdapter_changed,_StandardWalletAdapter_signTransaction,_StandardWalletAdapter_signAllTransactions,_StandardWalletAdapter_signMessage,_StandardWalletAdapter_signIn;class StandardWalletAdapter extends BaseWalletAdapter{get name(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").name}get url(){return"https://github.com/solana-labs/wallet-standard"}get icon(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").icon}get readyState(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_readyState,"f")}get publicKey(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_publicKey,"f")}get connecting(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_connecting,"f")}get supportedTransactionVersions(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_supportedTransactionVersions,"f")}get wallet(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f")}get standard(){return!0}constructor({wallet:t}){super(),_StandardWalletAdapter_instances.add(this),_StandardWalletAdapter_account.set(this,void 0),_StandardWalletAdapter_publicKey.set(this,void 0),_StandardWalletAdapter_connecting.set(this,void 0),_StandardWalletAdapter_disconnecting.set(this,void 0),_StandardWalletAdapter_off.set(this,void 0),_StandardWalletAdapter_supportedTransactionVersions.set(this,void 0),_StandardWalletAdapter_wallet.set(this,void 0),_StandardWalletAdapter_readyState.set(this,typeof window>"u"||typeof document>"u"?WalletReadyState.Unsupported:WalletReadyState.Installed),_StandardWalletAdapter_changed.set(this,r=>{if("accounts"in r){const n=__classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").accounts[0];__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f")&&!__classPrivateFieldGet$2(this,_StandardWalletAdapter_disconnecting,"f")&&n!==__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f")&&(n?__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_connected).call(this,n):(this.emit
2617("error",new WalletDisconnectedError),__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_disconnected).call(this)))}"features"in r&&__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_reset).call(this)}),__classPrivateFieldSet$2(this,_StandardWalletAdapter_wallet,t,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_account,null,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_publicKey,null,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_connecting,!1,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_disconnecting,!1,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_off,__classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[StandardEvents].on("change",__classPrivateFieldGet$2(this,_StandardWalletAdapter_changed,"f")),"f"),__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_reset).call(this)}destroy(){__classPrivateFieldSet$2(this,_StandardWalletAdapter_account,null,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_publicKey,null,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_connecting,!1,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_disconnecting,!1,"f");const t=__classPrivateFieldGet$2(this,_StandardWalletAdapter_off,"f");t&&(__classPrivateFieldSet$2(this,_StandardWalletAdapter_off,null,"f"),t())}async autoConnect(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_connect).call(this,{silent:!0})}async connect(){return __classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_connect).call(this)}async disconnect(){if(StandardDisconnect in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features)try{__classPrivateFieldSet$2(this,_StandardWalletAdapter_disconnecting,!0,"f"),await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[StandardDisconnect].disconnect()}catch(t){this.emit("error",new WalletDisconnectionError(t?.message,t))}finally{__classPrivateFieldSet$2(this,_StandardWalletAdapter_disconnecting,!1,"f")}__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_disconnected).call(this)}async sendTransaction(t,r,n={}){try{const s=__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f");if(!s)throw new WalletNotConnectedError;let a;if(SolanaSignAndSendTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features)if(s.features.includes(SolanaSignAndSendTransaction))a=SolanaSignAndSendTransaction;else if(SolanaSignTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features&&s.features.includes(SolanaSignTransaction))a=SolanaSignTransaction;else throw new WalletAccountError;else if(SolanaSignTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features){if(!s.features.includes(SolanaSignTransaction))throw new WalletAccountError;a=SolanaSignTransaction}else throw new WalletConfigError;const l=getChainForEndpoint(r.rpcEndpoint);if(!s.chains.includes(l))throw new WalletSendTransactionError;try{const{signers:u,...d}=n;let p;if(isVersionedTransaction(t)?(u?.length&&t.sign(u),p=t.serialize()):(t=await this.prepareTransaction(t,r,d),u?.length&&t.partialSign(...u),p=new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))),a===SolanaSignAndSendTransaction){const[h]=await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignAndSendTransaction].signAndSendTransaction({account:s,chain:l,transaction:p,options:{preflightCommitment:getCommitment(d.preflightCommitment||r.commitment),skipPreflight:d.skipPreflight,maxRetries:d.maxRetries,minContextSlot:d.minContextSlot}});return bs58.encode(h.signature)}else{const[h]=await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignTransaction].signTransaction({account:s,chain:l,transaction:p,options:{preflightCommitment:getCommitment(d.preflightCommitment||r.commitment),minContextSlot:d.minContextSlot}});return await r.sendRawTransaction(h.signedTransaction,{...d,preflightCommitment:getCommitment(d.preflightCommitment||r.commitment)})}}catch(u){throw u instanceof WalletError?u:new WalletSendTransactionError(u?.message,u)}}
2617catch(s){throw this.emit("error",s),s}}}_StandardWalletAdapter_account=new WeakMap,_StandardWalletAdapter_publicKey=new WeakMap,_StandardWalletAdapter_connecting=new WeakMap,_StandardWalletAdapter_disconnecting=new WeakMap,_StandardWalletAdapter_off=new WeakMap,_StandardWalletAdapter_supportedTransactionVersions=new WeakMap,_StandardWalletAdapter_wallet=new WeakMap,_StandardWalletAdapter_readyState=new WeakMap,_StandardWalletAdapter_changed=new WeakMap,_StandardWalletAdapter_instances=new WeakSet,_StandardWalletAdapter_connect=async function e(t){try{if(this.connected||this.connecting)return;if(__classPrivateFieldGet$2(this,_StandardWalletAdapter_readyState,"f")!==WalletReadyState.Installed)throw new WalletNotReadyError;if(__classPrivateFieldSet$2(this,_StandardWalletAdapter_connecting,!0,"f"),!__classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").accounts.length)try{await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[StandardConnect].connect(t)}catch(n){throw new WalletConnectionError(n?.message,n)}const r=__classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").accounts[0];if(!r)throw new WalletAccountError;__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_connected).call(this,r)}catch(r){throw this.emit("error",r),r}finally{__classPrivateFieldSet$2(this,_StandardWalletAdapter_connecting,!1,"f")}},_StandardWalletAdapter_connected=function e(t){let r;try{r=new PublicKey(t.address)}catch(n){throw new WalletPublicKeyError(n?.message,n)}__classPrivateFieldSet$2(this,_StandardWalletAdapter_account,t,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_publicKey,r,"f"),__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_reset).call(this),this.emit("connect",r)},_StandardWalletAdapter_disconnected=function e(){__classPrivateFieldSet$2(this,_StandardWalletAdapter_account,null,"f"),__classPrivateFieldSet$2(this,_StandardWalletAdapter_publicKey,null,"f"),__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_reset).call(this),this.emit("disconnect")},_StandardWalletAdapter_reset=function e(){const t=SolanaSignAndSendTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features?__classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignAndSendTransaction].supportedTransactionVersions:__classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignTransaction].supportedTransactionVersions;__classPrivateFieldSet$2(this,_StandardWalletAdapter_supportedTransactionVersions,arraysEqual(t,["legacy"])?null:new Set(t),"f"),SolanaSignTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features&&__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f")?.features.includes(SolanaSignTransaction)?(this.signTransaction=__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_signTransaction),this.signAllTransactions=__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_signAllTransactions)):(delete this.signTransaction,delete this.signAllTransactions),SolanaSignMessage in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features&&__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f")?.features.includes(SolanaSignMessage)?this.signMessage=__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_signMessage):delete this.signMessage,SolanaSignIn in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features?this.signIn=__classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_signIn):delete this.signIn},_StandardWalletAdapter_signTransaction=async function e(t){try{const r=__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f");if(!r)throw new WalletNotConnectedError;if(!(SolanaSignTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features))throw new WalletConfigError;if(!r.features.includes(SolanaSignTransaction))throw new WalletAccountError;try{const s=(await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignTransaction].signTransaction({account:r,transaction:isVersionedTransaction(t)?t.serialize():new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))}
2617))[0].signedTransaction;return isVersionedTransaction(t)?VersionedTransaction.deserialize(s):Transaction.from(s)}catch(n){throw n instanceof WalletError?n:new WalletSignTransactionError(n?.message,n)}}catch(r){throw this.emit("error",r),r}},_StandardWalletAdapter_signAllTransactions=async function e(t){try{const r=__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f");if(!r)throw new WalletNotConnectedError;if(!(SolanaSignTransaction in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features))throw new WalletConfigError;if(!r.features.includes(SolanaSignTransaction))throw new WalletAccountError;try{const n=await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignTransaction].signTransaction(...t.map(s=>({account:r,transaction:isVersionedTransaction(s)?s.serialize():new Uint8Array(s.serialize({requireAllSignatures:!1,verifySignatures:!1}))})));return t.map((s,a)=>{const l=n[a].signedTransaction;return isVersionedTransaction(s)?VersionedTransaction.deserialize(l):Transaction.from(l)})}catch(n){throw new WalletSignTransactionError(n?.message,n)}}catch(r){throw this.emit("error",r),r}},_StandardWalletAdapter_signMessage=async function e(t){try{const r=__classPrivateFieldGet$2(this,_StandardWalletAdapter_account,"f");if(!r)throw new WalletNotConnectedError;if(!(SolanaSignMessage in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features))throw new WalletConfigError;if(!r.features.includes(SolanaSignMessage))throw new WalletAccountError;try{return(await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignMessage].signMessage({account:r,message:t}))[0].signature}catch(n){throw new WalletSignMessageError(n?.message,n)}}catch(r){throw this.emit("error",r),r}},_StandardWalletAdapter_signIn=async function e(t={}){try{if(!(SolanaSignIn in __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features))throw new WalletConfigError;let r;try{[r]=await __classPrivateFieldGet$2(this,_StandardWalletAdapter_wallet,"f").features[SolanaSignIn].signIn(t)}catch(n){throw new WalletSignInError(n?.message,n)}if(!r)throw new WalletSignInError;return __classPrivateFieldGet$2(this,_StandardWalletAdapter_instances,"m",_StandardWalletAdapter_connected).call(this,r.account),r}catch(r){throw this.emit("error",r),r}};const isWalletAdapterCompatibleWallet=isWalletAdapterCompatibleStandardWallet;var __classPrivateFieldGet$1=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},__classPrivateFieldSet$1=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r},_AppReadyEvent_detail;let wallets;const registeredWalletsSet=new Set;function addRegisteredWallet(e){cachedWalletsArray=void 0,registeredWalletsSet.add(e)}function removeRegisteredWallet(e){cachedWalletsArray=void 0,registeredWalletsSet.delete(e)}const listeners={};function getWallets(){if(wallets||(wallets=Object.freeze({register:register$1,get,on}),typeof window>"u"))return wallets;const e=Object.freeze({register:register$1});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(t){console.error(`wallet-standard:register-wallet event listener could not be added 2618`,t)}try{window.dispatchEvent(new AppReadyEvent(e))}catch(t){console.error(`wallet-standard:app-ready event could not be dispatched 2619`,t)}return wallets}function register$1(...e){return e=e.filter(t=>!registeredWalletsSet.has(t)),e.length?(e.forEach(t=>addRegisteredWallet(t)),listeners.register?.forEach(t=>guard(()=>t(...e))),function(){e.forEach(r=>removeRegisteredWallet(r)),listeners.unregister?.forEach(r=>guard(()=>r(...e)))}):()=>{}}let cachedWalletsArray;function get(){return cachedWalletsArray||(cachedWalletsArray=[...registeredWalletsSet]),cachedWalletsArray}function on(e,t){return listeners[e]?.push(t)||(listeners[e]=[t]),function(){listeners[e]=listeners[e]?.filter(n=>t!==n)}}function guard(e){try{e()}catch(t){console.error(t)}}
2619class AppReadyEvent extends Event{get detail(){return __classPrivateFieldGet$1(this,_AppReadyEvent_detail,"f")}get type(){return"wallet-standard:app-ready"}constructor(t){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),_AppReadyEvent_detail.set(this,void 0),__classPrivateFieldSet$1(this,_AppReadyEvent_detail,t,"f")}preventDefault(){throw new Error("preventDefault cannot be called")}stopImmediatePropagation(){throw new Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw new Error("stopPropagation cannot be called")}}_AppReadyEvent_detail=new WeakMap;function DEPRECATED_getWallets(){if(wallets||(wallets=getWallets(),typeof window>"u"))return wallets;const e=window.navigator.wallets||[];if(!Array.isArray(e))return console.error("window.navigator.wallets is not an array"),wallets;const{register:t}=wallets,r=(...n)=>n.forEach(s=>guard(()=>s({register:t})));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:r})})}catch{return console.error("window.navigator.wallets could not be set"),wallets}return r(...e),wallets}function useStandardWalletAdapters(e){const t=useConstant(()=>new Set),{get:r,on:n}=useConstant(()=>DEPRECATED_getWallets()),[s,a]=reactExports.useState(()=>wrapWalletsWithAdapters(r()));reactExports.useEffect(()=>{const u=[n("register",(...d)=>a(p=>[...p,...wrapWalletsWithAdapters(d)])),n("unregister",(...d)=>a(p=>p.filter(h=>d.some(x=>x===h.wallet))))];return()=>u.forEach(d=>d())},[n]);const l=usePrevious(s);return reactExports.useEffect(()=>{if(!l)return;const u=new Set(s);new Set(l.filter(p=>!u.has(p))).forEach(p=>p.destroy())},[l,s]),reactExports.useEffect(()=>()=>s.forEach(u=>u.destroy()),[]),reactExports.useMemo(()=>[...s,...e.filter(({name:u})=>s.some(d=>d.name===u)?(t.has(u)||(t.add(u),console.warn(`${u} was registered as a Standard Wallet. The Wallet Adapter for ${u} can be removed from your app.`)),!1):!0)],[s,e,t])}function useConstant(e){const t=reactExports.useRef(void 0);return t.current===void 0&&(t.current={value:e()}),t.current.value}function usePrevious(e){const t=reactExports.useRef(void 0);return reactExports.useEffect(()=>{t.current=e}),t.current}function wrapWalletsWithAdapters(e){return e.filter(isWalletAdapterCompatibleWallet).map(t=>new StandardWalletAdapter({wallet:t}))}var Environment;(function(e){e[e.DESKTOP_WEB=0]="DESKTOP_WEB",e[e.MOBILE_WEB=1]="MOBILE_WEB"})(Environment||(Environment={}));function isWebView(e){return/(WebView|Version\/.+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)|; wv\).+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+))/i.test(e)}function getEnvironment({adapters:e,userAgentString:t}){return e.some(r=>r.name!==index_browserExports.SolanaMobileWalletAdapterWalletName&&r.readyState===WalletReadyState.Installed)?Environment.DESKTOP_WEB:t&&/android/i.test(t)&&!isWebView(t)?Environment.MOBILE_WEB:Environment.DESKTOP_WEB}function getInferredClusterFromEndpoint(e){return e?/devnet/i.test(e)?"devnet":/testnet/i.test(e)?"testnet":"mainnet-beta":"mainnet-beta"}function WalletProviderBase({children:e,wallets:t,adapter:r,isUnloadingRef:n,onAutoConnectRequest:s,onConnectError:a,onError:l,onSelectWallet:u}){const d=reactExports.useRef(!1),[p,h]=reactExports.useState(!1),x=reactExports.useRef(!1),[w,g]=reactExports.useState(!1),[b,v]=reactExports.useState(()=>r?.publicKey??null),[E,j]=reactExports.useState(()=>r?.connected??!1),R=reactExports.useRef(l);reactExports.useEffect(()=>(R.current=l,()=>{R.current=void 0}),[l]);const T=reactExports.useRef((N,F)=>(n.current||(R.current?R.current(N,F):(console.error(N,F),N instanceof WalletNotReadyError&&typeof window<"u"&&F&&window.open(F.url,"_blank"))),N)),[z,L]=reactExports.useState(()=>t.map(N=>({adapter:N,readyState:N.readyState})).filter(({readyState:N})=>N!==WalletReadyState.Unsupported));reactExports.useEffect(()=>{L(F=>t.map((k,W)=>{const q=F[W];return q&&q.adapter===k&&q.readyState===k.readyState?q:{adapter:k,readyState:k.readyState}}).filter(({readyState:k})=>k!==WalletReadyState.Unsupported));function N(F){L(k=>{const W=k.findIndex(({adapter:A})=>A===this);if(W===-1)return k;const{adapter:q}=k[W];return[...k.slice(0,W),{adapter:q,readyState:F},...k.slice(W+1)].filter(({readyState:A})=>A!==WalletReadyState.Unsupported)})}return t.forEach(F=>F.on("readyStateChange",N,F)),()=>{t.forEach(F=>F.off("readyStateChange",N,F))}},[r,t]);const V=reactExports.useMemo(()=>z.find(N=>N.adapter===r)??null,[r,z]);reactExports.useEffect(()=>{if(!r)return;const N=W=>{v(W),d.current=!1,h(!1),j(!0),x.current=!1,g(!1)},F=()=>{n.current||(v(null),d.current=!1,h(!1),j(!1),x.current=!1,g(!1))}
2619,k=W=>{T.current(W,r)};return r.on("connect",N),r.on("disconnect",F),r.on("error",k),()=>{r.off("connect",N),r.off("disconnect",F),r.off("error",k),F()}},[r,n]);const $=reactExports.useRef(!1);reactExports.useEffect(()=>()=>{$.current=!1},[r]),reactExports.useEffect(()=>{$.current||d.current||E||!s||!(V?.readyState===WalletReadyState.Installed||V?.readyState===WalletReadyState.Loadable)||(d.current=!0,h(!0),$.current=!0,(async function(){try{await s()}catch{a()}finally{h(!1),d.current=!1}})())},[E,s,a,V]);const U=reactExports.useCallback(async(N,F,k)=>{if(!r)throw T.current(new WalletNotSelectedError);if(!E)throw T.current(new WalletNotConnectedError,r);return await r.sendTransaction(N,F,k)},[r,E]),B=reactExports.useMemo(()=>r&&"signTransaction"in r?async N=>{if(!E)throw T.current(new WalletNotConnectedError,r);return await r.signTransaction(N)}:void 0,[r,E]),P=reactExports.useMemo(()=>r&&"signAllTransactions"in r?async N=>{if(!E)throw T.current(new WalletNotConnectedError,r);return await r.signAllTransactions(N)}:void 0,[r,E]),H=reactExports.useMemo(()=>r&&"signMessage"in r?async N=>{if(!E)throw T.current(new WalletNotConnectedError,r);return await r.signMessage(N)}:void 0,[r,E]),Z=reactExports.useMemo(()=>r&&"signIn"in r?async N=>await r.signIn(N):void 0,[r]),O=reactExports.useCallback(async()=>{if(d.current||x.current||V?.adapter.connected)return;if(!V)throw T.current(new WalletNotSelectedError);const{adapter:N,readyState:F}=V;if(!(F===WalletReadyState.Installed||F===WalletReadyState.Loadable))throw T.current(new WalletNotReadyError,N);d.current=!0,h(!0);try{await N.connect()}catch(k){throw a(),k}finally{h(!1),d.current=!1}},[a,V]),S=reactExports.useCallback(async()=>{if(!x.current&&r){x.current=!0,g(!0);try{await r.disconnect()}finally{g(!1),x.current=!1}}},[r]);return React.createElement(WalletContext.Provider,{value:{autoConnect:!!s,wallets:z,wallet:V,publicKey:b,connected:E,connecting:p,disconnecting:w,select:u,connect:O,disconnect:S,sendTransaction:U,signTransaction:B,signAllTransactions:P,signMessage:H,signIn:Z}},e)}let _userAgent;function getUserAgent(){return _userAgent===void 0&&(_userAgent=globalThis.navigator?.userAgent??null),_userAgent}function getIsMobile(e){const t=getUserAgent();return getEnvironment({adapters:e,userAgentString:t})===Environment.MOBILE_WEB}function getUriForAppIdentity(){const e=globalThis.location;if(e)return`${e.protocol}//${e.host}`}function WalletProvider({children:e,wallets:t,autoConnect:r,localStorageKey:n="walletName",onError:s}){const{connection:a}=useConnection(),l=useStandardWalletAdapters(t),u=reactExports.useMemo(()=>{if(!getIsMobile(l))return null;const R=l.find(T=>T.name===index_browserExports.SolanaMobileWalletAdapterWalletName);return R||new index_browserExports.SolanaMobileWalletAdapter({addressSelector:index_browserExports.createDefaultAddressSelector(),appIdentity:{uri:getUriForAppIdentity()},authorizationResultCache:index_browserExports.createDefaultAuthorizationResultCache(),cluster:getInferredClusterFromEndpoint(a?.rpcEndpoint),onWalletNotFound:index_browserExports.createDefaultWalletNotFoundHandler()})},[l,a?.rpcEndpoint]),d=reactExports.useMemo(()=>u==null||l.indexOf(u)!==-1?l:[u,...l],[l,u]),[p,h]=useLocalStorage(n,null),x=reactExports.useMemo(()=>d.find(R=>R.name===p)??null,[d,p]),w=reactExports.useCallback(R=>{p!==R&&(x&&x.name!==index_browserExports.SolanaMobileWalletAdapterWalletName&&x.disconnect(),h(R))},[x,h,p]);reactExports.useEffect(()=>{if(!x)return;function R(){v.current||h(null)}return x.on("disconnect",R),()=>{x.off("disconnect",R)}},[x,l,h,p]);const g=reactExports.useRef(!1),b=reactExports.useMemo(()=>{if(!(!r||!x))return async()=>{(r===!0||await r(x))&&(g.current?await x.connect():await x.autoConnect())}},[r,x]),v=reactExports.useRef(!1);reactExports.useEffect(()=>{if(p===index_browserExports.SolanaMobileWalletAdapterWalletName&&getIsMobile(l)){v.current=!1;return}function R(){v.current=!0}return window.addEventListener("beforeunload",R),()=>{window.removeEventListener("beforeunload",R)}},[l,p]);const E=reactExports.useCallback(()=>{x&&w(null)},[x,w]),j=reactExports.useCallback(R=>{g.current=!0,w(R)},[w]);return React.createElement(WalletProviderBase,{wallets:d,adapter:x,isUnloadingRef:v,onAutoConnectRequest:b,onConnectError:E,onError:s,onSelectWallet:j},e)}
2619const DEFAULT_CONTEXT={setVisible(e){console.error(constructMissingProviderErrorMessage("call","setVisible"))},visible:!1};Object.defineProperty(DEFAULT_CONTEXT,"visible",{get(){return console.error(constructMissingProviderErrorMessage("read","visible")),!1}});function constructMissingProviderErrorMessage(e,t){return`You have tried to ${e} "${t}" on a WalletModalContext without providing one. Make sure to render a WalletModalProvider as an ancestor of the component that uses WalletModalContext`}const WalletModalContext=reactExports.createContext(DEFAULT_CONTEXT);function useWalletModal(){return reactExports.useContext(WalletModalContext)}const Button=e=>React.createElement("button",{className:`wallet-adapter-button ${e.className||""}`,disabled:e.disabled,style:e.style,onClick:e.onClick,tabIndex:e.tabIndex||0,type:"button"},e.startIcon&&React.createElement("i",{className:"wallet-adapter-button-start-icon"},e.startIcon),e.children,e.endIcon&&React.createElement("i",{className:"wallet-adapter-button-end-icon"},e.endIcon)),WalletIcon=({wallet:e,...t})=>e&&React.createElement("img",{src:e.adapter.icon,alt:`${e.adapter.name} icon`,...t}),Collapse=({id:e,children:t,expanded:r=!1})=>{const n=reactExports.useRef(null),s=reactExports.useRef(!0),a="height 250ms ease-out",l=()=>{const d=n.current;d&&requestAnimationFrame(()=>{d.style.height=d.scrollHeight+"px"})},u=()=>{const d=n.current;d&&requestAnimationFrame(()=>{d.style.height=d.offsetHeight+"px",d.style.overflow="hidden",requestAnimationFrame(()=>{d.style.height="0"})})};return reactExports.useLayoutEffect(()=>{r?l():u()},[r]),reactExports.useLayoutEffect(()=>{const d=n.current;if(!d)return;function p(){d&&(d.style.overflow=r?"initial":"hidden",r&&(d.style.height="auto"))}function h(x){d&&x.target===d&&x.propertyName==="height"&&p()}return s.current&&(p(),s.current=!1),d.addEventListener("transitionend",h),()=>d.removeEventListener("transitionend",h)},[r]),React.createElement("div",{className:"wallet-adapter-collapse",id:e,ref:n,role:"region",style:{height:0,transition:s.current?void 0:a}},t)},WalletListItem=({handleClick:e,tabIndex:t,wallet:r})=>React.createElement("li",null,React.createElement(Button,{onClick:e,startIcon:React.createElement(WalletIcon,{wallet:r}),tabIndex:t},r.adapter.name,r.readyState===WalletReadyState.Installed&&React.createElement("span",null,"Detected"))),WalletSVG=()=>React.createElement("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{cx:"48.5",cy:"48",r:"48",fill:"url(#paint0_linear_880_5115)",fillOpacity:"0.1"}),React.createElement("circle",{cx:"48.5",cy:"48",r:"47",stroke:"url(#paint1_linear_880_5115)",strokeOpacity:"0.4",strokeWidth:"2"}),React.createElement("g",{clipPath:"url(#clip0_880_5115)"},React.createElement("path",{d:"M65.5769 28.1523H31.4231C27.6057 28.1523 24.5 31.258 24.5 35.0754V60.9215C24.5 64.7389 27.6057 67.8446 31.4231 67.8446H65.5769C69.3943 67.8446 72.5 64.7389 72.5 60.9215V35.0754C72.5 31.258 69.3943 28.1523 65.5769 28.1523ZM69.7308 52.1523H59.5769C57.2865 52.1523 55.4231 50.289 55.4231 47.9985C55.4231 45.708 57.2864 43.8446 59.5769 43.8446H69.7308V52.1523ZM69.7308 41.0754H59.5769C55.7595 41.0754 52.6539 44.1811 52.6539 47.9985C52.6539 51.8159 55.7595 54.9215 59.5769 54.9215H69.7308V60.9215C69.7308 63.2119 67.8674 65.0754 65.5769 65.0754H31.4231C29.1327 65.0754 27.2692 63.212 27.2692 60.9215V35.0754C27.2692 32.785 29.1326 30.9215 31.4231 30.9215H65.5769C67.8673 30.9215 69.7308 32.7849 69.7308 35.0754V41.0754Z",fill:"url(#paint2_linear_880_5115)"}),React.createElement("path",{d:"M61.4231 46.6172H59.577C58.8123 46.6172 58.1924 47.2371 58.1924 48.0018C58.1924 48.7665 58.8123 49.3863 59.577 49.3863H61.4231C62.1878 49.3863 62.8077 48.7664 62.8077 48.0018C62.8077 47.2371 62.1878 46.6172 61.4231 46.6172Z",fill:"url(#paint3_linear_880_5115)"})),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#9945FF"}),React.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),React.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),React.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),React.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),React.createElement("stop",{offset:"1",stopColor:"#00D18C"})),React.createElement("linearGradient",{id:"paint1_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#9945FF"}),React.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),React.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),React.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),React.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),React.createElement("stop",{offset:"1",stopColor:"#00D18C"})),React.createElement("linearGradient",{id:"paint2_linear_880_5115",x1:"25.9583",
2619y1:"68.7101",x2:"67.2337",y2:"23.7879",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#9945FF"}),React.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),React.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),React.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),React.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),React.createElement("stop",{offset:"1",stopColor:"#00D18C"})),React.createElement("linearGradient",{id:"paint3_linear_880_5115",x1:"58.3326",y1:"49.4467",x2:"61.0002",y2:"45.4453",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#9945FF"}),React.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),React.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),React.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),React.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),React.createElement("stop",{offset:"1",stopColor:"#00D18C"})),React.createElement("clipPath",{id:"clip0_880_5115"},React.createElement("rect",{width:"48",height:"48",fill:"white",transform:"translate(24.5 24)"}
2619)))),WalletModal=({className:e="",container:t="body"})=>{const r=reactExports.useRef(null),{wallets:n,select:s}=useWallet(),{setVisible:a}=useWalletModal(),[l,u]=reactExports.useState(!1),[d,p]=reactExports.useState(!1),[h,x]=reactExports.useState(null),[w,g]=reactExports.useMemo(()=>{const T=[],z=[];for(const L of n)L.readyState===WalletReadyState.Installed?T.push(L):z.push(L);return T.length?[T,z]:[z,[]]},[n]),b=reactExports.useCallback(()=>{p(!1),setTimeout(()=>a(!1),150)},[a]),v=reactExports.useCallback(T=>{T.preventDefault(),b()},[b]),E=reactExports.useCallback((T,z)=>{s(z),v(T)},[s,v]),j=reactExports.useCallback(()=>u(!l),[l]),R=reactExports.useCallback(T=>{const z=r.current;if(!z)return;const L=z.querySelectorAll("button"),V=L[0],$=L[L.length-1];T.shiftKey?document.activeElement===V&&($.focus(),T.preventDefault()):document.activeElement===$&&(V.focus(),T.preventDefault())},[r]);return reactExports.useLayoutEffect(()=>{const T=L=>{L.key==="Escape"?b():L.key==="Tab"&&R(L)},{overflow:z}=window.getComputedStyle(document.body);return setTimeout(()=>p(!0),0),document.body.style.overflow="hidden",window.addEventListener("keydown",T,!1),()=>{document.body.style.overflow=z,window.removeEventListener("keydown",T,!1)}},[b,R]),reactExports.useLayoutEffect(()=>x(document.querySelector(t)),[t]),h&&reactDomExports.createPortal(React.createElement("div",{"aria-labelledby":"wallet-adapter-modal-title","aria-modal":"true",className:`wallet-adapter-modal ${d&&"wallet-adapter-modal-fade-in"} ${e}`,ref:r,role:"dialog"},React.createElement("div",{className:"wallet-adapter-modal-container"},React.createElement("div",{className:"wallet-adapter-modal-wrapper"},React.createElement("button",{onClick:v,className:"wallet-adapter-modal-button-close"},React.createElement("svg",{width:"14",height:"14"},React.createElement("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"}))),w.length?React.createElement(React.Fragment,null,React.createElement("h1",{className:"wallet-adapter-modal-title"},"Connect a wallet on Solana to continue"),React.createElement("ul",{className:"wallet-adapter-modal-list"},w.map(T=>React.createElement(WalletListItem,{key:T.adapter.name,handleClick:z=>E(z,T.adapter.name),wallet:T})),g.length?React.createElement(Collapse,{expanded:l,id:"wallet-adapter-modal-collapse"},g.map(T=>React.createElement(WalletListItem,{key:T.adapter.name,handleClick:z=>E(z,T.adapter.name),tabIndex:l?0:-1,wallet:T}))):null),g.length?React.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:j,tabIndex:0},React.createElement("span",null,l?"Less ":"More ","options"),React.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${l?"wallet-adapter-modal-list-more-icon-rotate":""}`},React.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))):null):React.createElement(React.Fragment,null,React.createElement("h1",{className:"wallet-adapter-modal-title"},"You'll need a wallet on Solana to continue"),React.createElement("div",{className:"wallet-adapter-modal-middle"},React.createElement(WalletSVG,null)),g.length?React.createElement(React.Fragment,null,React.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:j,tabIndex:0},React.createElement("span",null,l?"Hide ":"Already have a wallet? View ","options"),React.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${l?"wallet-adapter-modal-list-more-icon-rotate":""}`},React.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))),React.createElement(Collapse,{expanded:l,id:"wallet-adapter-modal-collapse"},React.createElement("ul",{className:"wallet-adapter-modal-list"},g.map(T=>React.createElement(WalletListItem,{key:T.adapter.name,handleClick:z=>E(z,T.adapter.name),tabIndex:l?0:-1,wallet:T}))))):null))),React.createElement("div",{className:"wallet-adapter-modal-overlay",onMouseDown:v})),h)},WalletModalProvider=({children:e,...t})=>{const[r,n]=reactExports.useState(!1);return React.createElement(WalletModalContext.Provider,{value:{visible:r,setVisible:n}},e,r&&React.createElement(WalletModal,{...t}))},scriptRel="modulepreload",assetsURL=function(e,t){return new URL(e,t).href},seen={},__vitePreload=function e(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let p=function(h){return Promise.all(h.map(x=>Promise.resolve(x).then(w=>
2619({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};const l=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=p(r.map(h=>{if(h=assetsURL(h,n),h in seen)return;seen[h]=!0;const x=h.endsWith(".css"),w=x?'[rel="stylesheet"]':"";if(n)for(let b=l.length-1;b>=0;b--){const v=l[b];if(v.href===h&&(!x||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${h}"]${w}`))return;const g=document.createElement("link");if(g.rel=x?"stylesheet":scriptRel,x||(g.as="script"),g.crossOrigin="",g.href=h,d&&g.setAttribute("nonce",d),document.head.appendChild(g),x)return new Promise((b,v)=>{g.addEventListener("load",b),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return s.then(l=>{for(const u of l||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})},PhantomWalletName="Phantom";class PhantomWalletAdapter extends BaseMessageSignerWalletAdapter{constructor(t={}){super(),this.name=PhantomWalletName,this.url="https://phantom.app",this.icon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiB2aWV3Qm94PSIwIDAgMTA4IDEwOCIgZmlsbD0ibm9uZSI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3IDY5LjkyMjlDNDIuMDA1NCA3Ni44NTA5IDM0LjQyOTIgODUuNjE4MiAyNC4zNDggODUuNjE4MkMxOS41ODI0IDg1LjYxODIgMTUgODMuNjU2MyAxNSA3NS4xMzQyQzE1IDUzLjQzMDUgNDQuNjMyNiAxOS44MzI3IDcyLjEyNjggMTkuODMyN0M4Ny43NjggMTkuODMyNyA5NCAzMC42ODQ2IDk0IDQzLjAwNzlDOTQgNTguODI1OCA4My43MzU1IDc2LjkxMjIgNzMuNTMyMSA3Ni45MTIyQzcwLjI5MzkgNzYuOTEyMiA2OC43MDUzIDc1LjEzNDIgNjguNzA1MyA3Mi4zMTRDNjguNzA1MyA3MS41NzgzIDY4LjgyNzUgNzAuNzgxMiA2OS4wNzE5IDY5LjkyMjlDNjUuNTg5MyA3NS44Njk5IDU4Ljg2ODUgODEuMzg3OCA1Mi41NzU0IDgxLjM4NzhDNDcuOTkzIDgxLjM4NzggNDUuNjcxMyA3OC41MDYzIDQ1LjY3MTMgNzQuNDU5OEM0NS42NzEzIDcyLjk4ODQgNDUuOTc2OCA3MS40NTU2IDQ2LjUyNjcgNjkuOTIyOVpNODMuNjc2MSA0Mi41Nzk0QzgzLjY3NjEgNDYuMTcwNCA4MS41NTc1IDQ3Ljk2NTggNzkuMTg3NSA0Ny45NjU4Qzc2Ljc4MTYgNDcuOTY1OCA3NC42OTg5IDQ2LjE3MDQgNzQuNjk4OSA0Mi41Nzk0Qzc0LjY5ODkgMzguOTg4NSA3Ni43ODE2IDM3LjE5MzEgNzkuMTg3NSAzNy4xOTMxQzgxLjU1NzUgMzcuMTkzMSA4My42NzYxIDM4Ljk4ODUgODMuNjc2MSA0Mi41Nzk0Wk03MC4yMTAzIDQyLjU3OTVDNzAuMjEwMyA0Ni4xNzA0IDY4LjA5MTYgNDcuOTY1OCA2NS43MjE2IDQ3Ljk2NThDNjMuMzE1NyA0Ny45NjU4IDYxLjIzMyA0Ni4xNzA0IDYxLjIzMyA0Mi41Nzk1QzYxLjIzMyAzOC45ODg1IDYzLjMxNTcgMzcuMTkzMSA2NS43MjE2IDM3LjE5MzFDNjguMDkxNiAzNy4xOTMxIDcwLjIxMDMgMzguOTg4NSA3MC4yMTAzIDQyLjU3OTVaIiBmaWxsPSIjRkZGREY4Ii8+Cjwvc3ZnPg==",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState=typeof window>"u"||typeof document>"u"?WalletReadyState.Unsupported:WalletReadyState.NotDetected,this._disconnected=()=>{const r=this._wallet;r&&(r.off("disconnect",this._disconnected),r.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null,this.emit("error",new WalletDisconnectedError),this.emit("disconnect"))},this._accountChanged=r=>{const n=this._publicKey;if(n){try{r=new PublicKey(r.toBytes())}catch(s){this.emit("error",new WalletPublicKeyError(s?.message,s));return}n.equals(r)||(this._publicKey=r,this.emit("connect",r))}},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==WalletReadyState.Unsupported&&(isIosAndRedirectable()?(this._readyState=WalletReadyState.Loadable,this.emit("readyStateChange",this._readyState)):scopePollingDetectionStrategy(()=>window.phantom?.solana?.isPhantom||window.solana?.isPhantom?(this._readyState=WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0):!1))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async autoConnect(){this.readyState===WalletReadyState.Installed&&await this.connect()}async connect(){try{if(this.connected||this.connecting)return;if(this.readyState===WalletReadyState.Loadable){const n=encodeURIComponent(window.location.href),s=encodeURIComponent(window.location.origin);window.location.href=`https://phantom.app/ul/browse/${n}?ref=${s}`;return}if(this.readyState!==WalletReadyState.Installed)throw new WalletNotReadyError;this._connecting=!0;const t=window.phantom?.solana||window.solana;if(!t.isConnected)try{await t.connect()}catch(n){throw new WalletConnectionError(n?.message,n)}if(!t.publicKey)throw new WalletAccountError;let r;try{r=new PublicKey(t.publicKey.toBytes())}catch(n){throw new WalletPublicKeyError(n?.message,n)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=r,this.emit
2619("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}async disconnect(){const t=this._wallet;if(t){t.off("disconnect",this._disconnected),t.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await t.disconnect()}catch(r){this.emit("error",new WalletDisconnectionError(r?.message,r))}}this.emit("disconnect")}async sendTransaction(t,r,n={}){try{const s=this._wallet;if(!s)throw new WalletNotConnectedError;try{const{signers:a,...l}=n;isVersionedTransaction(t)?a?.length&&t.sign(a):(t=await this.prepareTransaction(t,r,l),a?.length&&t.partialSign(...a)),l.preflightCommitment=l.preflightCommitment||r.commitment;const{signature:u}=await s.signAndSendTransaction(t,l);return u}catch(a){throw a instanceof WalletError?a:new WalletSendTransactionError(a?.message,a)}}catch(s){throw this.emit("error",s),s}}async signTransaction(t){try{const r=this._wallet;if(!r)throw new WalletNotConnectedError;try{return await r.signTransaction(t)||t}catch(n){throw new WalletSignTransactionError(n?.message,n)}}catch(r){throw this.emit("error",r),r}}async signAllTransactions(t){try{const r=this._wallet;if(!r)throw new WalletNotConnectedError;try{return await r.signAllTransactions(t)||t}catch(n){throw new WalletSignTransactionError(n?.message,n)}}catch(r){throw this.emit("error",r),r}}async signMessage(t){try{const r=this._wallet;if(!r)throw new WalletNotConnectedError;try{const{signature:n}=await r.signMessage(t);return n}catch(n){throw new WalletSignMessageError(n?.message,n)}}catch(r){throw this.emit("error",r),r}}}const icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjMxIiB2aWV3Qm94PSIwIDAgMzEgMzEiIHdpZHRoPSIzMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjIwLjI1IiB4Mj0iMjYuNTcxIiB5MT0iMjcuMTczIiB5Mj0iMTkuODU4Ij48c3RvcCBvZmZzZXQ9Ii4wOCIgc3RvcC1jb2xvcj0iIzk5NDVmZiIvPjxzdG9wIG9mZnNldD0iLjMiIHN0b3AtY29sb3I9IiM4NzUyZjMiLz48c3RvcCBvZmZzZXQ9Ii41IiBzdG9wLWNvbG9yPSIjNTQ5N2Q1Ii8+PHN0b3Agb2Zmc2V0PSIuNiIgc3RvcC1jb2xvcj0iIzQzYjRjYSIvPjxzdG9wIG9mZnNldD0iLjcyIiBzdG9wLWNvbG9yPSIjMjhlMGI5Ii8+PHN0b3Agb2Zmc2V0PSIuOTciIHN0b3AtY29sb3I9IiMxOWZiOWIiLz48L2xpbmVhckdyYWRpZW50PjxnIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iLjA5NCI+PHBhdGggZD0ibTI2LjEwOSAzLjY0My05LjM2OSA2Ljk1OSAxLjczMy00LjEwNSA3LjYzNy0yLjg1M3oiIGZpbGw9IiNlMjc2MWIiIHN0cm9rZT0iI2UyNzYxYiIvPjxnIGZpbGw9IiNlNDc2MWIiIHN0cm9rZT0iI2U0NzYxYiI+PHBhdGggZD0ibTQuNDgxIDMuNjQzIDkuMjk0IDcuMDI0LTEuNjQ4LTQuMTcxem0xOC4yNTggMTYuMTMtMi40OTUgMy44MjMgNS4zMzkgMS40NjkgMS41MzUtNS4yMDctNC4zNzgtLjA4NXptLTE5LjI0Ny4wODUgMS41MjUgNS4yMDcgNS4zMzktMS40NjktMi40OTUtMy44MjN6Ii8+PHBhdGggZD0ibTEwLjA1NSAxMy4zMTMtMS40ODggMi4yNTEgNS4zMDEuMjM1LS4xODgtNS42OTd6bTEwLjQ4IDAtMy42NzItMy4yNzctLjEyMiA1Ljc2MyA1LjI5Mi0uMjM1LTEuNDk3LTIuMjUxem0tMTAuMTc4IDEwLjI4MyAzLjE4My0xLjU1NC0yLjc0OS0yLjE0Ny0uNDMzIDMuNzAxem02LjY5NS0xLjU1NCAzLjE5MiAxLjU1NC0uNDQzLTMuNzAxeiIvPjwvZz48cGF0aCBkPSJtMjAuMjQ0IDIzLjU5Ni0zLjE5Mi0xLjU1NC4yNTQgMi4wODEtLjAyOC44NzZ6bS05Ljg4NyAwIDIuOTY2IDEuNDAzLS4wMTktLjg3Ni4yMzUtMi4wODEtMy4xODMgMS41NTR6IiBmaWxsPSIjZDdjMWIzIiBzdHJva2U9IiNkN2MxYjMiLz48cGF0aCBkPSJtMTMuMzY5IDE4LjUyMS0yLjY1NS0uNzgxIDEuODc0LS44NTd6bTMuODUxIDAgLjc4MS0xLjYzOCAxLjg4My44NTctMi42NjUuNzgxeiIgZmlsbD0iIzIzMzQ0NyIgc3Ryb2tlPSIjMjMzNDQ3Ii8+PHBhdGggZD0ibTEwLjM1NyAyMy41OTYuNDUyLTMuODIzLTIuOTQ3LjA4NXptOS40MzUtMy44MjMuNDUyIDMuODIzIDIuNDk1LTMuNzM4em0yLjI0MS00LjIwOS01LjI5Mi4yMzUuNDkgMi43MjEuNzgyLTEuNjM4IDEuODgzLjg1N3ptLTExLjMxOCAyLjE3NSAxLjg4My0uODU3Ljc3MiAxLjYzOC40OTktMi43MjEtNS4zMDEtLjIzNXoiIGZpbGw9IiNjZDYxMTYiIHN0cm9rZT0iI2NkNjExNiIvPjxwYXRoIGQ9Im04LjU2NyAxNS41NjQgMi4yMjIgNC4zMzEtLjA3NS0yLjE1NnptMTEuMzI4IDIuMTc1LS4wOTQgMi4xNTYgMi4yMzItNC4zMzEtMi4xMzcgMi4xNzV6bS02LjAyNi0xLjk0LS40OTkgMi43MjEuNjIxIDMuMjExLjE0MS00LjIyOC0uMjY0LTEuNzA0em0yLjg3MiAwLS4yNTQgMS42OTUuMTEzIDQuMjM3LjYzMS0zLjIxMXoiIGZpbGw9IiNlNDc1MWYiIHN0cm9rZT0iI2U0NzUxZiIvPjxwYXRoIGQ9Im0xNy4yMyAxOC41Mi0uNjMxIDMuMjExLjQ1Mi4zMTEgMi43NS0yLjE0Ny4wOTQtMi4xNTZ6bS02LjUxNi0uNzgxLjA3NSAyLjE1NiAyLjc1IDIuMTQ3LjQ1Mi0uMzExLS42MjItMy4yMTF6IiBmaWxsPSIjZjY4NTFiIiBzdHJva2U9IiNmNjg1MWIiLz48cGF0aCBkPSJtMTcuMjc3IDI0Ljk5OS4wMjgtLjg3Ni0uMjM1LS4yMDdoLTMuNTVsLS4yMTcuMjA3LjAxOS44NzYtMi45NjYtMS40MDMgMS4wMzYuODQ4IDIuMSAxLjQ1OWgzLjYwNmwyLjEwOS0xLjQ1OSAxLjAzNi0uODQ4eiIgZmlsbD0iI2MwYWQ5ZSIgc3Ryb2tlPSIjYzBhZDllIi8+PHBhdGggZD0ibTE3LjA1MSAyMi4wNDItLjQ1Mi0uMzExaC0yLjYwOGwtLjQ1Mi4zMTEtLjIzNSAyLjA4MS4yMTctLjIwN2gzLjU1bC4yMzUuMjA3LS4yNTQtMi4wODF6IiBmaWxsPSIjMTYxNjE2IiBzdHJva2U9IiMxNjE2MTYiLz48cGF0aCBkPSJtMjYuNTA1IDExLjA1My44LTMuODQyLTEuMTk2LTMuNTY5LTkuMDU4IDYuNzIzIDMuNDg0IDIuOTQ3IDQuOTI1IDEuNDQxIDEuMDkyLTEuMjcxLS40NzEtLjMzOS43NTMtLjY4Ny0uNTg0LS40NTIuNzUzLS41NzQtLjQ5OS0uMzc3em0tMjMuMjExLTMuODQxLjggMy44NDItLjUwOC4zNzcuNzUzLjU3NC0uNTc0LjQ1Mi43NTMuNjg3LS40NzEuMzM5IDEuMDgzIDEuMjcxIDQuOTI1LTEuNDQxIDMuNDg0LTIuOTQ3
2619LTkuMDU5LTYuNzIzeiIgZmlsbD0iIzc2M2QxNiIgc3Ryb2tlPSIjNzYzZDE2Ii8+PHBhdGggZD0ibTI1LjQ2IDE0Ljc1NC00LjkyNS0xLjQ0MSAxLjQ5NyAyLjI1MS0yLjIzMiA0LjMzMSAyLjkzOC0uMDM4aDQuMzc4bC0xLjY1Ny01LjEwNHptLTE1LjQwNS0xLjQ0MS00LjkyNSAxLjQ0MS0xLjYzOCA1LjEwNGg0LjM2OWwyLjkyOC4wMzgtMi4yMjItNC4zMzEgMS40ODgtMi4yNTF6bTYuNjg1IDIuNDg2LjMxMS01LjQzMyAxLjQzMS0zLjg3aC02LjM1NmwxLjQxMyAzLjg3LjMyOSA1LjQzMy4xMTMgMS43MTQuMDA5IDQuMjE5aDIuNjFsLjAxOS00LjIxOS4xMjItMS43MTR6IiBmaWxsPSIjZjY4NTFiIiBzdHJva2U9IiNmNjg1MWIiLz48L2c+PGNpcmNsZSBjeD0iMjMuNSIgY3k9IjIzLjUiIGZpbGw9IiMwMDAiIHI9IjYuNSIvPjxwYXRoIGQ9Im0yNy40NzMgMjUuNTQ1LTEuMzEgMS4zNjhjLS4wMjkuMDMtLjA2My4wNTMtLjEwMS4wN2EuMzEuMzEgMCAwIDEgLS4xMjEuMDI0aC02LjIwOWMtLjAzIDAtLjA1OS0uMDA4LS4wODMtLjAyNGEuMTUuMTUgMCAwIDEgLS4wNTYtLjA2NWMtLjAxMi0uMDI2LS4wMTUtLjA1Ni0uMDEtLjA4NHMuMDE4LS4wNTUuMDM5LS4wNzZsMS4zMTEtMS4zNjhjLjAyOC0uMDMuMDYzLS4wNTMuMTAxLS4wNjlhLjMxLjMxIDAgMCAxIC4xMjEtLjAyNWg2LjIwOGMuMDMgMCAuMDU5LjAwOC4wODMuMDI0YS4xNS4xNSAwIDAgMSAuMDU2LjA2NWMuMDEyLjAyNi4wMTUuMDU2LjAxLjA4NHMtLjAxOC4wNTUtLjAzOS4wNzZ6bS0xLjMxLTIuNzU2Yy0uMDI5LS4wMy0uMDYzLS4wNTMtLjEwMS0uMDdhLjMxLjMxIDAgMCAwIC0uMTIxLS4wMjRoLTYuMjA5Yy0uMDMgMC0uMDU5LjAwOC0uMDgzLjAyNHMtLjA0NC4wMzgtLjA1Ni4wNjUtLjAxNS4wNTYtLjAxLjA4NC4wMTguMDU1LjAzOS4wNzZsMS4zMTEgMS4zNjhjLjAyOC4wMy4wNjMuMDUzLjEwMS4wNjlhLjMxLjMxIDAgMCAwIC4xMjEuMDI1aDYuMjA4Yy4wMyAwIC4wNTktLjAwOC4wODMtLjAyNGEuMTUuMTUgMCAwIDAgLjA1Ni0uMDY1Yy4wMTItLjAyNi4wMTUtLjA1Ni4wMS0uMDg0cy0uMDE4LS4wNTUtLjAzOS0uMDc2em0tNi40MzEtLjk4M2g2LjIwOWEuMzEuMzEgMCAwIDAgLjEyMS0uMDI0Yy4wMzgtLjAxNi4wNzMtLjA0LjEwMS0uMDdsMS4zMS0xLjM2OGMuMDItLjAyMS4wMzQtLjA0Ny4wMzktLjA3NnMuMDAxLS4wNTgtLjAxLS4wODRhLjE1LjE1IDAgMCAwIC0uMDU2LS4wNjVjLS4wMjUtLjAxNi0uMDU0LS4wMjQtLjA4My0uMDI0aC02LjIwOGEuMzEuMzEgMCAwIDAgLS4xMjEuMDI1Yy0uMDM4LjAxNi0uMDcyLjA0LS4xMDEuMDY5bC0xLjMxIDEuMzY4Yy0uMDIuMDIxLS4wMzQuMDQ3LS4wMzkuMDc2cy0uMDAxLjA1OC4wMS4wODQuMDMxLjA0OS4wNTYuMDY1LjA1NC4wMjQuMDgzLjAyNHoiIGZpbGw9InVybCgjYSkiLz48L3N2Zz4=";var __classPrivateFieldGet=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},__classPrivateFieldSet=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r},_SolflareMetaMaskWallet_instances,_SolflareMetaMaskWallet_listeners,_SolflareMetaMaskWallet_version,_SolflareMetaMaskWallet_name,_SolflareMetaMaskWallet_icon,_SolflareMetaMaskWallet_solflareMetaMask,_SolflareMetaMaskWallet_on,_SolflareMetaMaskWallet_emit,_SolflareMetaMaskWallet_off,_SolflareMetaMaskWallet_connect,_SolflareMetaMaskWallet_disconnect,_SolflareMetaMaskWallet_signAndSendTransaction,_SolflareMetaMaskWallet_signTransaction,_SolflareMetaMaskWallet_signMessage;class SolflareMetaMaskWallet{constructor(){_SolflareMetaMaskWallet_instances.add(this),_SolflareMetaMaskWallet_listeners.set(this,{}),_SolflareMetaMaskWallet_version.set(this,"1.0.0"),_SolflareMetaMaskWallet_name.set(this,"MetaMask"),_SolflareMetaMaskWallet_icon.set(this,icon),_SolflareMetaMaskWallet_solflareMetaMask.set(this,null),_SolflareMetaMaskWallet_on.set(this,(t,r)=>(__classPrivateFieldGet(this,_SolflareMetaMaskWallet_listeners,"f")[t]?.push(r)||(__classPrivateFieldGet(this,_SolflareMetaMaskWallet_listeners,"f")[t]=[r]),()=>__classPrivateFieldGet(this,_SolflareMetaMaskWallet_instances,"m",_SolflareMetaMaskWallet_off).call(this,t,r))),_SolflareMetaMaskWallet_connect.set(this,async()=>{if(!__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f")){let t;try{t=(await __vitePreload(async()=>{const{default:r}=await import("./index-LKbkbZtp.js");return{default:r}},__vite__mapDeps([0,1]),import.meta.url)).default}catch{throw new Error("Unable to load Solflare MetaMask SDK")}__classPrivateFieldSet(this,_SolflareMetaMaskWallet_solflareMetaMask,new t,"f"),__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").on("standard_change",r=>__classPrivateFieldGet(this,_SolflareMetaMaskWallet_instances,"m",_SolflareMetaMaskWallet_emit).call(this,"change",r))}return this.accounts.length||await __classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").connect(),{accounts:this.accounts}}),_SolflareMetaMaskWallet_disconnect.set(this,async()=>{__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f")&&await __classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").disconnect()}),_SolflareMetaMaskWallet_signAndSendTransaction.set(this,async(...t)=>{if(!__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f"))throw new WalletNotConnectedError;return await __classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").standardSignAndSendTransaction(...t)}),_SolflareMetaMaskWallet_signTransaction.set(this,async(...t)=>{if(!__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f"))throw new WalletNotConnectedError;return await __classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").standardSignTransaction(...t)}),_SolflareMetaMaskWallet_signMessage.set(this,async(...t)=>{if(!__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f"))throw new WalletNotConnectedError;return await __classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").standardSignMessage(...t)})}get version(){return __classPrivateFieldGet(this,_SolflareMetaMaskWallet_version,"f")}get name(){return __classPrivateFieldGet(this,_SolflareMetaMaskWallet_name,"f")}get icon(){return __classPrivateFieldGet(this,_SolflareMetaMaskWallet_icon,"f")}get chains(){return[SOLANA_MAINNET_CHAIN,SOLANA_DEVNET_CHAIN,SOLANA_TESTNET_CHAIN]}get features(){return{[StandardConnect]:{version:"1.0.0",connect:__classPrivateFieldGet(this,_SolflareMetaMaskWallet_connect,"f")},[StandardDisconnect]:{version:"1.0.0",disconnect:__classPrivateFieldGet(this,_SolflareMetaMaskWallet_disconnect,"f")},[StandardEvents]:{version:"1.0.0",on:__classPrivateFieldGet(this,_SolflareMetaMaskWallet_on,"f")},[SolanaSignAndSendTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:__classPrivateFieldGet(this,_SolflareMetaMaskWallet_signAndSendTransaction,"f")},[SolanaSignTransaction]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:__classPrivateFieldGet(this,_SolflareMetaMaskWallet_signTransaction,"f")},[SolanaSignMessage]:{version:"1.0.0",signMessage:__classPrivateFieldGet(this,_SolflareMetaMaskWallet_signMessage,"f")}}}get accounts(){return __classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f")?__classPrivateFieldGet(this,_SolflareMetaMaskWallet_solflareMetaMask,"f").standardAccounts:[]}}_SolflareMetaMaskWallet_listeners=new WeakMap,_SolflareMetaMaskWallet_version=new WeakMap,_SolflareMetaMaskWallet_name=new WeakMap,_SolflareMetaMaskWallet_icon=new WeakMap,_SolflareMetaMaskWallet_solflareMetaMask=new WeakMap,_SolflareMetaMaskWallet_on=new WeakMap,_SolflareMetaMaskWallet_connect=new WeakMap,_SolflareMetaMaskWallet_disconnect=new WeakMap,_SolflareMetaMaskWallet_signAndSendTransaction=new WeakMap,_SolflareMetaMaskWallet_signTransaction=new WeakMap,_SolflareMetaMaskWallet_signMessage=new WeakMap,_SolflareMetaMaskWallet_instances=new WeakSet,_SolflareMetaMaskWallet_emit=function e(t,...r){__classPrivateFieldGet(this,_SolflareMetaMaskWallet_listeners,"f")[t]?.forEach(n=>n.apply(null,r))},_SolflareMetaMaskWallet_off=function e(t,r){__classPrivateFieldGet(this,_SolflareMetaMaskWallet_listeners,"f")[t]=__classPrivateFieldGet(this,_SolflareMetaMaskWallet_listeners,"f")[t]?.filter(n=>r!==n)};let registered=!1;function register(){registered||(registerWallet(new SolflareMetaMaskWallet),registered=!0)}async function detectAndRegisterSolflareMetaMaskWallet(){const e="solflare-detect-metamask";function t(){window.postMessage({target:"metamask-contentscript",data:{name:"metamask-provider",data:{id:e,jsonrpc:"2.0",method:"wallet_getSnaps"}}},window.location.origin)}function r(n){const s=n.data;s?.target==="metamask-inpage"&&s.data?.name==="metamask-provider"&&(s.data.data?.id===e?(window.removeEventListener("message",r),s.data.data.error||register()):t())}window.addEventListener("message",r),window.setTimeout(()=>window.removeEventListener("message",r),5e3),t()}
2619const SolflareWalletName="Solflare";class SolflareWalletAdapter extends BaseMessageSignerWalletAdapter{constructor(t={}){super(),this.name=SolflareWalletName,this.url="https://solflare.com",this.icon="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJTIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MCA1MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMwMjA1MGE7c3Ryb2tlOiNmZmVmNDY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOi41cHg7fS5jbHMtMntmaWxsOiNmZmVmNDY7fTwvc3R5bGU+PC9kZWZzPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMCIgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiByeD0iMTIiIHJ5PSIxMiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTI0LjIzLDI2LjQybDIuNDYtMi4zOCw0LjU5LDEuNWMzLjAxLDEsNC41MSwyLjg0LDQuNTEsNS40MywwLDEuOTYtLjc1LDMuMjYtMi4yNSw0LjkzbC0uNDYuNS4xNy0xLjE3Yy42Ny00LjI2LS41OC02LjA5LTQuNzItNy40M2wtNC4zLTEuMzhoMFpNMTguMDUsMTEuODVsMTIuNTIsNC4xNy0yLjcxLDIuNTktNi41MS0yLjE3Yy0yLjI1LS43NS0zLjAxLTEuOTYtMy4zLTQuNTF2LS4wOGgwWk0xNy4zLDMzLjA2bDIuODQtMi43MSw1LjM0LDEuNzVjMi44LjkyLDMuNzYsMi4xMywzLjQ2LDUuMThsLTExLjY1LTQuMjJoMFpNMTMuNzEsMjAuOTVjMC0uNzkuNDItMS41NCwxLjEzLTIuMTcuNzUsMS4wOSwyLjA1LDIuMDUsNC4wOSwyLjcxbDQuNDIsMS40Ni0yLjQ2LDIuMzgtNC4zNC0xLjQyYy0yLS42Ny0yLjg0LTEuNjctMi44NC0yLjk2TTI2LjgyLDQyLjg3YzkuMTgtNi4wOSwxNC4xMS0xMC4yMywxNC4xMS0xNS4zMiwwLTMuMzgtMi01LjI2LTYuNDMtNi43MmwtMy4zNC0xLjEzLDkuMTQtOC43Ny0xLjg0LTEuOTYtMi43MSwyLjM4LTEyLjgxLTQuMjJjLTMuOTcsMS4yOS04Ljk3LDUuMDktOC45Nyw4Ljg5LDAsLjQyLjA0LjgzLjE3LDEuMjktMy4zLDEuODgtNC42MywzLjYzLTQuNjMsNS44LDAsMi4wNSwxLjA5LDQuMDksNC41NSw1LjIybDIuNzUuOTItOS41Miw5LjE0LDEuODQsMS45NiwyLjk2LTIuNzEsMTQuNzMsNS4yMmgwWiIvPjwvc3ZnPg==",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState=typeof window>"u"||typeof document>"u"?WalletReadyState.Unsupported:WalletReadyState.Loadable,this._disconnected=()=>{const r=this._wallet;r&&(r.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new WalletDisconnectedError),this.emit("disconnect"))},this._accountChanged=r=>{if(!r)return;const n=this._publicKey;if(n){try{r=new PublicKey(r.toBytes())}catch(s){this.emit("error",new WalletPublicKeyError(s?.message,s));return}n.equals(r)||(this._publicKey=r,this.emit("connect",r))}},this._connecting=!1,this._publicKey=null,this._wallet=null,this._config=t,this._readyState!==WalletReadyState.Unsupported&&(scopePollingDetectionStrategy(()=>window.solflare?.isSolflare||window.SolflareApp?(this._readyState=WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0):!1),detectAndRegisterSolflareMetaMaskWallet())}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.connected}get readyState(){return this._readyState}async autoConnect(){this.readyState===WalletReadyState.Loadable&&isIosAndRedirectable()||await this.connect()}async connect(){try{if(this.connected||this.connecting)return;if(this._readyState!==WalletReadyState.Loadable&&this._readyState!==WalletReadyState.Installed)throw new WalletNotReadyError;if(this.readyState===WalletReadyState.Loadable&&isIosAndRedirectable()){const s=encodeURIComponent(window.location.href),a=encodeURIComponent(window.location.origin);window.location.href=`https://solflare.com/ul/v1/browse/${s}?ref=${a}`;return}let t;try{t=(await __vitePreload(async()=>{const{default:s}=await import("./index-Cv50UKQp.js");return{default:s}},__vite__mapDeps([2,1]),import.meta.url)).default}catch(s){throw new WalletLoadError(s?.message,s)}let r;try{r=new t({network:this._config.network})}catch(s){throw new WalletConfigError(s?.message,s)}if(this._connecting=!0,!r.connected)try{await r.connect()}catch(s){throw new WalletConnectionError(s?.message,s)}if(!r.publicKey)throw new WalletConnectionError;let n;try{n=new PublicKey(r.publicKey.toBytes())}catch(s){throw new WalletPublicKeyError(s?.message,s)}r.on("disconnect",this._disconnected),r.on("accountChanged",this._accountChanged),this._wallet=r,this._publicKey=n,this.emit("connect",n)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}async disconnect(){const t=this._wallet;if(t){t.off("disconnect",this._disconnected),t.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await t.disconnect()}
2619catch(r){this.emit("error",new WalletDisconnectionError(r?.message,r))}}this.emit("disconnect")}async sendTransaction(t,r,n={}){try{const s=this._wallet;if(!s)throw new WalletNotConnectedError;try{const{signers:a,...l}=n;return isVersionedTransaction(t)?a?.length&&t.sign(a):(t=await this.prepareTransaction(t,r,l),a?.length&&t.partialSign(...a)),l.preflightCommitment=l.preflightCommitment||r.commitment,await s.signAndSendTransaction(t,l)}catch(a){throw a instanceof WalletError?a:new WalletSendTransactionError(a?.message,a)}}catch(s){throw this.emit("error",s),s}}async signTransaction(t){try{const r=this._wallet;if(!r)throw new WalletNotConnectedError;try{return await r.signTransaction(t)||t}catch(n){throw new WalletSignTransactionError(n?.message,n)}}catch(r){throw this.emit("error",r),r}}async signAllTransactions(t){try{const r=this._wallet;if(!r)throw new WalletNotConnectedError;try{return await r.signAllTransactions(t)||t}catch(n){throw new WalletSignTransactionError(n?.message,n)}}catch(r){throw this.emit("error",r),r}}async signMessage(t){try{const r=this._wallet;if(!r)throw new WalletNotConnectedError;try{return await r.signMessage(t,"utf8")}catch(n){throw new WalletSignMessageError(n?.message,n)}}catch(r){throw this.emit("error",r),r}}}function WalletContextProvider({children:e}){const t=reactExports.useMemo(()=>"https://mainnet.helius-rpc.com/?api-key=ae828aad-7afb-4f75-a0a5-3d93937887c0",[]),r=reactExports.useMemo(()=>[new PhantomWalletAdapter,new SolflareWalletAdapter],[]);return jsxRuntimeExports.jsx(ConnectionProvider,{endpoint:t,children:jsxRuntimeExports.jsx(WalletProvider,{wallets:r,autoConnect:!0,children:jsxRuntimeExports.jsx(WalletModalProvider,{children:e})})})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(WalletContextProvider,{children:jsxRuntimeExports.jsx(App,{})})}));export{EventEmitter as E,PublicKey as P,SolanaSignAndSendTransaction as S,Transaction as T,VersionedTransaction as V,SolanaSignTransaction as a,SolanaSignMessage as b,getDefaultExportFromCjs$1 as g,requireBs58 as r};
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.