vendor: 6,342 bytes, line 1
1function H6(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(r,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function dx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wf={exports:{}},Pa={};var sv;function Z6(){if(sv)return Pa;sv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(r,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:e,type:r,key:u,ref:o!==void 0?o:null,props:c}}return Pa.Fragment=t,Pa.jsx=i,Pa.jsxs=i,Pa}var rv;function Y6(){return rv||(rv=1,wf.exports=Z6()),wf.exports}var p=Y6(),Sf={exports:{}},yt={};var av;function G6(){if(av)return yt;av=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=x&&R[x]||R["@@iterator"],typeof R=="function"?R:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function j(R,q,J){this.props=R,this.context=q,this.refs=T,this.updater=J||M}j.prototype.isReactComponent={},j.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,q,"setState")},j.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function _(){}_.prototype=j.prototype;function N(R,q,J){this.props=R,this.context=q,this.refs=T,this.updater=J||M}var D=N.prototype=new _;D.constructor=N,S(D,j.prototype),D.isPureReactComponent=!0;var z=Array.isArray;function K(){}var Z={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function W(R,q,J){var et=J.ref;return{$$typeof:e,type:R,key:q,ref:et!==void 0?et:null,props:J}}function nt(R,q){return W(R.type,q,R.props)}function ct(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function ut(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(J){return q[J]})}var gt=/\/+/g;function mt(R,q){return typeof R=="object"&&R!==null&&R.key!=null?ut(""+R.key):q.toString(36)}function tt(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(K,K):(R.status="pending",R.then(function(q){R.status==="pending"&&(R.status="fulfilled",R.value=q)},function(q){R.status==="pending"&&(R.status="rejected",R.reason=q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function k(R,q,J,et,dt){var vt=typeof R;(vt==="undefined"||vt==="boolean")&&(R=null);var Q=!1;if(R===null)Q=!0;else switch(vt){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(R.$$typeof){case e:case t:Q=!0;break;case v:return Q=R._init,k(Q(R._payload),q,J,et,dt)}}if(Q)return dt=dt(R),Q=et===""?"."+mt(R,0):et,z(dt)?(J="",Q!=null&&(J=Q.replace(gt,"$&/")+"/"),k(dt,q,J,"",function(Tt){return Tt})):dt!=null&&(ct(dt)&&(dt=nt(dt,J+(dt.key==null||R&&R.key===dt.key?"":(""+dt.key).replace(gt,"$&/")+"/")+Q)),q.push(dt)),1;Q=0;var wt=et===""?".":et+":";if(z(R))for(var xt=0;xt<R.length;xt++)et=R[xt],vt=wt+mt(et,xt),Q+=k(et,q,J,vt,dt);else if(xt=w(R),typeof xt=="function")for(R=xt.call(R),xt=0;!(et=R.next()).done;)et=et.value,vt=wt+mt(et,xt++),Q+=k(et,q,J,vt,dt);else if(vt==="object"){if(typeof R.then=="function")return k(tt(R),q,J,et,dt);throw q=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Q}function Y(R,q,J){if(R==null)return R;var et=[],dt=0;return k(R,et,"","",function(vt){return q.call(J,vt,dt++)}),et}function V(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(J){(R._status===0||R._status===-1)&&(R._status=1,R._result=J)},function(J){(R._status===0||R._status===-1)&&(R._status=2,R._result=J)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var it=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},ht={map:Y,forEach:function(R,q,J){Y(R,function(){q.apply(this,arguments)},J)},count:function(R){var q=0;return Y(R,function(){q++}),q},toArray:function(R){return Y(R,function(q){return q})||[]},only:function(R){if(!ct(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return yt.Activity=y,yt.Children=ht,yt.Component=j,yt.Fragment=i,yt.Profiler=o,yt.PureComponent=N,yt.StrictMode=r,yt.Suspense=
vendor: 7,610 bytes, line 1
1d,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,yt.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Z.H.useMemoCache(R)}},yt.cache=function(R){return function(){return R.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(R,q,J){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var et=S({},R.props),dt=R.key;if(q!=null)for(vt in q.key!==void 0&&(dt=""+q.key),q)!U.call(q,vt)||vt==="key"||vt==="__self"||vt==="__source"||vt==="ref"&&q.ref===void 0||(et[vt]=q[vt]);var vt=arguments.length-2;if(vt===1)et.children=J;else if(1<vt){for(var Q=Array(vt),wt=0;wt<vt;wt++)Q[wt]=arguments[wt+2];et.children=Q}return W(R.type,dt,et)},yt.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},yt.createElement=function(R,q,J){var et,dt={},vt=null;if(q!=null)for(et in q.key!==void 0&&(vt=""+q.key),q)U.call(q,et)&&et!=="key"&&et!=="__self"&&et!=="__source"&&(dt[et]=q[et]);var Q=arguments.length-2;if(Q===1)dt.children=J;else if(1<Q){for(var wt=Array(Q),xt=0;xt<Q;xt++)wt[xt]=arguments[xt+2];dt.children=wt}if(R&&R.defaultProps)for(et in Q=R.defaultProps,Q)dt[et]===void 0&&(dt[et]=Q[et]);return W(R,vt,dt)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(R){return{$$typeof:h,render:R}},yt.isValidElement=ct,yt.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:V}},yt.memo=function(R,q){return{$$typeof:m,type:R,compare:q===void 0?null:q}},yt.startTransition=function(R){var q=Z.T,J={};Z.T=J;try{var et=R(),dt=Z.S;dt!==null&&dt(J,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(K,it)}catch(vt){it(vt)}finally{q!==null&&J.types!==null&&(q.types=J.types),Z.T=q}},yt.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},yt.use=function(R){return Z.H.use(R)},yt.useActionState=function(R,q,J){return Z.H.useActionState(R,q,J)},yt.useCallback=function(R,q){return Z.H.useCallback(R,q)},yt.useContext=function(R){return Z.H.useContext(R)},yt.useDebugValue=function(){},yt.useDeferredValue=function(R,q){return Z.H.useDeferredValue(R,q)},yt.useEffect=function(R,q){return Z.H.useEffect(R,q)},yt.useEffectEvent=function(R){return Z.H.useEffectEvent(R)},yt.useId=function(){return Z.H.useId()},yt.useImperativeHandle=function(R,q,J){return Z.H.useImperativeHandle(R,q,J)},yt.useInsertionEffect=function(R,q){return Z.H.useInsertionEffect(R,q)},yt.useLayoutEffect=function(R,q){return Z.H.useLayoutEffect(R,q)},yt.useMemo=function(R,q){return Z.H.useMemo(R,q)},yt.useOptimistic=function(R,q){return Z.H.useOptimistic(R,q)},yt.useReducer=function(R,q,J){return Z.H.useReducer(R,q,J)},yt.useRef=function(R){return Z.H.useRef(R)},yt.useState=function(R){return Z.H.useState(R)},yt.useSyncExternalStore=function(R,q,J){return Z.H.useSyncExternalStore(R,q,J)},yt.useTransition=function(){return Z.H.useTransition()},yt.version="19.2.4",yt}var ov;function sm(){return ov||(ov=1,Sf.exports=G6()),Sf.exports}var E=sm();const zi=dx(E),mx=H6({__proto__:null,default:zi},[E]);var Mf={exports:{}},Ua={},Ef={exports:{}},Cf={};var lv;function K6(){return lv||(lv=1,(function(e){function t(k,Y){var V=k.length;k.push(Y);t:for(;0<V;){var it=V-1>>>1,ht=k[it];if(0<o(ht,Y))k[it]=Y,k[V]=ht,V=it;else break t}}function i(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var Y=k[0],V=k.pop();if(V!==Y){k[0]=V;t:for(var it=0,ht=k.length,R=ht>>>1;it<R;){var q=2*(it+1)-1,J=k[q],et=q+1,dt=k[et];if(0>o(J,V))et<ht&&0>o(dt,J)?(k[it]=dt,k[et]=V,it=et):(k[it]=J,k[q]=V,it=q);else if(et<ht&&0>o(dt,V))k[it]=dt,k[et]=V,it=et;else break t}}return Y}function o(k,Y){var V=k.sortIndex-Y.sortIndex;return V!==0?V:k.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var d=[],m=[],v=1,y=null,x=3,w=!1,M=!1,S=!1,T=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function D(k){for(var Y=i(m);Y!==null;){if(Y.callback===null)r(m);else if(Y.startTime<=k)r(m),Y.sortIndex=Y.expirationTime,t(d,Y);else break;Y=i(m)}}function z(k){if(S=!1,D(k),!M)if(i(d)!==null)M=!0,K||(K=!0,ut());else{var Y=i(m);Y!==null&&tt(z,Y.startTime-k)}}var K=!1,Z=-1,U=5,W=-1;function nt(){return T?!0:!(e.unstable_now()-W<U)}function ct(){if(T=!1,K){var k=e.unstable_now();W=k;var Y=!0;try{t:{M=!1,S&&(S=!1,_(Z),Z=-1),w=!0;var V=x;try{e:{for(D(k),y=i(d);y!==null&&!(y.expirationTime>k&&nt());){var it=y.callback;if(typeof it=="function"){y.callback=null,x=y.priorityLevel;var ht=it(y.expirationTime<=k);if(k=e.unstable_now(),typeof ht=="function"){y.callback=ht,D(k),Y=!0;break e}y===i(d)&&r(d),D(k)}else r(d);y=i(d)}if(y!==null)Y=!0;else{var R=i(m);R!==null&&tt(z,R.startTime-k),Y=!1}}break t}finally{y=null,x=V,w=!1}Y=void 0}}finally{Y?ut():K=!1}}}var ut;if(typeof N=="function")ut=function(){N(ct)};else if(typeof MessageChannel<"u"){var gt=new MessageChannel,mt=gt.port2;gt.port1.onmessage=ct,ut=function(){mt.postMessage(null)}}else ut=function(){j(ct,0)};function tt(k,Y){Z=j(function(){k(e.unstable_now())},Y)}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(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(k){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var V=x;x=Y;try{return k()}finally{x=V}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(k,Y){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var V=x;x=k;try{return Y()}finally{x=V}},e.unstable_scheduleCallback=function(k,Y,V){var it=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?it+V:it):V=it,k){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=V+ht,k={id:v++,callback:Y,priorityLevel:k,startTime:V,expirationTime:ht,sortIndex:-1},V>it?(k.sortIndex=V,t(m,k),i(d)===null&&k===i(m)&&(S?(_(Z),Z=-1):S=!0,tt(z,V-it))):(k.sortIndex=ht,t(d,k),M||w||(M=!0,K||(K=!0,ut()))),k},e.unstable_shouldYield=nt,e.unstable_wrapCallback=function(k){var Y=x;return function(){var V=x;x=Y;try{return k.apply(this,arguments)}finally{x=V}}}})(Cf)),Cf}var cv;function F6(){return cv||(cv=1,Ef.exports=K6()),Ef.exports}var Tf={exports:{}},Me={};var uv;function q6(){if(uv)return Me;uv=1;var e=sm();function t(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(d,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:d,containerInfo:m,implementation:v}}
vendor: 4,292 bytes, line 1
1var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Me.createPortal=function(d,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return c(d,m,null,v)},Me.flushSync=function(d){var m=u.T,v=r.p;try{if(u.T=null,r.p=2,d)return d()}finally{u.T=m,r.p=v,r.d.f()}},Me.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(d,m))},Me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Me.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var v=m.as,y=h(v,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:w}):v==="script"&&r.d.X(d,{crossOrigin:y,integrity:x,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Me.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(d)},Me.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=h(v,m.crossOrigin);r.d.L(d,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Me.preloadModule=function(d,m){if(typeof d=="string")if(m){var v=h(m.as,m.crossOrigin);r.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(d)},Me.requestFormReset=function(d){r.d.r(d)},Me.unstable_batchedUpdates=function(d,m){return d(m)},Me.useFormState=function(d,m,v){return u.H.useFormState(d,m,v)},Me.useFormStatus=function(){return u.H.useHostTransitionStatus()},Me.version="19.2.4",Me}var hv;function px(){if(hv)return Tf.exports;hv=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(),Tf.exports=q6(),Tf.exports}var fv;function X6(){if(fv)return Ua;fv=1;var e=F6(),t=sm(),i=px();function r(n){var s="https://react.dev/errors/"+n;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var s=n,a=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(a=s.return),n=s.return;while(n)}return s.tag===3?a:null}function u(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function h(n){if(n.tag===31){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function d(n){if(c(n)!==n)throw Error(r(188))}function m(n){var s=n.alternate;if(!s){if(s=c(n),s===null)throw Error(r(188));return s!==n?null:n}for(var a=n,l=s;;){var f=a.return;if(f===null)break;var g=f.alternate;if(g===null){if(l=f.return,l!==null){a=l;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===a)return d(f),n;if(g===l)return d(f),s;g=g.sibling}throw Error(r(188))}if(a.return!==l.return)a=f,l=g;else{for(var b=!1,C=f.child;C;
vendor: 6,224 bytes, lines 1-8
1){if(C===a){b=!0,a=f,l=g;break}if(C===l){b=!0,l=f,a=g;break}C=C.sibling}if(!b){for(C=g.child;C;){if(C===a){b=!0,a=g,l=f;break}if(C===l){b=!0,l=g,a=f;break}C=C.sibling}if(!b)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?n:s}function v(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n;for(n=n.child;n!==null;){if(s=v(n),s!==null)return s;n=n.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),N=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),nt=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function ut(n){return n===null||typeof n!="object"?null:(n=ct&&n[ct]||n["@@iterator"],typeof n=="function"?n:null)}var gt=Symbol.for("react.client.reference");function mt(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===gt?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case j:return"Profiler";case T:return"StrictMode";case z:return"Suspense";case K:return"SuspenseList";case W:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case M:return"Portal";case N:return n.displayName||"Context";case _:return(n._context.displayName||"Context")+".Consumer";case D:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Z:return s=n.displayName||null,s!==null?s:mt(n.type)||"Memo";case U:s=n._payload,n=n._init;try{return mt(n(s))}catch{}}return null}var tt=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},it=[],ht=-1;function R(n){return{current:n}}function q(n){0>ht||(n.current=it[ht],it[ht]=null,ht--)}function J(n,s){ht++,it[ht]=n.current,n.current=s}var et=R(null),dt=R(null),vt=R(null),Q=R(null);function wt(n,s){switch(J(vt,s),J(dt,n),J(et,null),s.nodeType){case 9:case 11:n=(n=s.documentElement)&&(n=n.namespaceURI)?j0(n):0;break;default:if(n=s.tagName,s=s.namespaceURI)s=j0(s),n=_0(s,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(et),J(et,n)}function xt(){q(et),q(dt),q(vt)}function Tt(n){n.memoizedState!==null&&J(Q,n);var s=et.current,a=_0(s,n.type);s!==a&&(J(dt,n),J(et,a))}function Nt(n){dt.current===n&&(q(et),q(dt)),Q.current===n&&(q(Q),La._currentValue=V)}var Lt,Ee;function Ce(n){if(Lt===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);Lt=s&&s[1]||"",Ee=-1<a.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Lt+n+Ee}var qi=!1;function Xi(n,s){if(!n||qi)return"";qi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(s){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(G){var H=G}Reflect.construct(n,[],I)}else{try{I.call()}catch(G){H=G}n.call(I.prototype)}}else{try{throw Error()}catch(G){H=G}(I=n())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=l.DetermineComponentFrameRoot(),b=g[0],C=g[1];if(b&&C){var A=b.split(` 4`),P=C.split(` 5`);for(f=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;if(l===A.length||f===P.length)for(l=A.length-1,f=P.length-1;1<=l&&0<=f&&A[l]!==P[f];)f--;for(;1<=l&&0<=f;l--,f--)if(A[l]!==P[f]){if(l!==1||f!==1)do if(l--,f--,0>f||A[l]!==P[f]){var F=` 6`+A[l].replace(" at new "," at ");return n.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",n.displayName)),F}while(1<=l&&0<=f);break}}}finally{qi=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?Ce(a):""}function Fr(n,s){switch(n.tag){case 26:case 27:case 5:return Ce(n.type);case 16:return Ce("Lazy");case 13:return n.child!==s&&s!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return Xi(n.type,!1);case 11:return Xi(n.type.render,!1);case 1:return Xi(n.type,!0);case 31:return Ce("Activity");default:return""}}function s1(n){try{var s="",a=null;do s+=Fr(n,a),a=n,n=n.return;while(n);return s}catch(l){return` 7Error generating stack: `+l.message+` 8`+l.stack}}var ru=Object.prototype.hasOwnProperty,au=e.unstable_scheduleCallback,ou=e.unstable_cancelCallback,x4=e.unstable_shouldYield,b4=e.unstable_requestPaint,He=e.unstable_now,w4=e.unstable_getCurrentPriorityLevel,r1=e.unstable_ImmediatePriority,a1=e.unstable_UserBlockingPriority,wo=e.unstable_NormalPriority,S4=e.unstable_LowPriority,o1=e.unstable_IdlePriority,M4=e.log,E4=e.unstable_setDisableYieldValue,qr=null,Ze=null;function ci(n){if(typeof M4=="function"&&E4(n),Ze&&typeof Ze.setStrictMode=="function")try{Ze.setStrictMode(qr,n)}catch{}}var Ye=Math.clz32?Math.clz32:j4,C4=Math.log,T4=Math.LN2;function j4(n){return n>>>=0,n===0?32:31-(C4(n)/T4|0)|0}var So=256,Mo=262144,Eo=4194304;function Ii(n){var s=n&42;if(s!==0)return s;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;
vendor: 10,540 bytes, line 8
8case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Co(n,s,a){var l=n.pendingLanes;if(l===0)return 0;var f=0,g=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var C=l&134217727;return C!==0?(l=C&~g,l!==0?f=Ii(l):(b&=C,b!==0?f=Ii(b):a||(a=C&~n,a!==0&&(f=Ii(a))))):(C=l&~g,C!==0?f=Ii(C):b!==0?f=Ii(b):a||(a=l&~n,a!==0&&(f=Ii(a)))),f===0?0:s!==0&&s!==f&&(s&g)===0&&(g=f&-f,a=s&-s,g>=a||g===32&&(a&4194048)!==0)?s:f}function Xr(n,s){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&s)===0}function _4(n,s){switch(n){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 l1(){var n=Eo;return Eo<<=1,(Eo&62914560)===0&&(Eo=4194304),n}function lu(n){for(var s=[],a=0;31>a;a++)s.push(n);return s}function Ir(n,s){n.pendingLanes|=s,s!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function A4(n,s,a,l,f,g){var b=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var C=n.entanglements,A=n.expirationTimes,P=n.hiddenUpdates;for(a=b&~a;0<a;){var F=31-Ye(a),I=1<<F;C[F]=0,A[F]=-1;var H=P[F];if(H!==null)for(P[F]=null,F=0;F<H.length;F++){var G=H[F];G!==null&&(G.lane&=-536870913)}a&=~I}l!==0&&c1(n,l,0),g!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=g&~(b&~s))}function c1(n,s,a){n.pendingLanes|=s,n.suspendedLanes&=~s;var l=31-Ye(s);n.entangledLanes|=s,n.entanglements[l]=n.entanglements[l]|1073741824|a&261930}function u1(n,s){var a=n.entangledLanes|=s;for(n=n.entanglements;a;){var l=31-Ye(a),f=1<<l;f&s|n[l]&s&&(n[l]|=s),a&=~f}}function h1(n,s){var a=s&-s;return a=(a&42)!==0?1:cu(a),(a&(n.suspendedLanes|s))!==0?0:a}function cu(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function uu(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function f1(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:Q0(n.type))}function d1(n,s){var a=Y.p;try{return Y.p=n,s()}finally{Y.p=a}}var ui=Math.random().toString(36).slice(2),me="__reactFiber$"+ui,Re="__reactProps$"+ui,Rs="__reactContainer$"+ui,hu="__reactEvents$"+ui,N4="__reactListeners$"+ui,R4="__reactHandles$"+ui,m1="__reactResources$"+ui,Wr="__reactMarker$"+ui;function fu(n){delete n[me],delete n[Re],delete n[hu],delete n[N4],delete n[R4]}function Os(n){var s=n[me];if(s)return s;for(var a=n.parentNode;a;){if(s=a[Rs]||a[me]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(n=L0(n);n!==null;){if(a=n[me])return a;n=L0(n)}return s}n=a,a=n.parentNode}return null}function ks(n){if(n=n[me]||n[Rs]){var s=n.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return n}return null}function Qr(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n.stateNode;throw Error(r(33))}function Ds(n){var s=n[m1];return s||(s=n[m1]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function he(n){n[Wr]=!0}var p1=new Set,g1={};function Wi(n,s){Ls(n,s),Ls(n+"Capture",s)}function Ls(n,s){for(g1[n]=s,n=0;n<s.length;n++)p1.add(s[n])}var O4=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]*$"),v1={},y1={};function k4(n){return ru.call(y1,n)?!0:ru.call(v1,n)?!1:O4.test(n)?y1[n]=!0:(v1[n]=!0,!1)}function To(n,s,a){if(k4(s))if(a===null)n.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(s);return;case"boolean":var l=s.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(s);return}}n.setAttribute(s,""+a)}}function jo(n,s,a){if(a===null)n.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttribute(s,""+a)}}function Vn(n,s,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(s,a,""+l)}}function tn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function x1(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function D4(n,s,a){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,s);if(!n.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,g=l.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return f.call(this)},set:function(b){a=""+b,g.call(this,b)}}),Object.defineProperty(n,s,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function du(n){if(!n._valueTracker){var s=x1(n)?"checked":"value";n._valueTracker=D4(n,s,""+n[s])}}function b1(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var a=s.getValue(),l="";return n&&(l=x1(n)?n.checked?"true":"false":n.value),n=l,n!==a?(s.setValue(n),!0):!1}function _o(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var L4=/[\n"\\]/g;function en(n){return n.replace(L4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function mu(n,s,a,l,f,g,b,C){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),s!=null?b==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+tn(s)):n.value!==""+tn(s)&&(n.value=""+tn(s)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),s!=null?pu(n,b,tn(s)):a!=null?pu(n,b,tn(a)):l!=null&&n.removeAttribute("value"),f==null&&g!=null&&(n.defaultChecked=!!g),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.name=""+tn(C):n.removeAttribute("name")}function w1(n,s,a,l,f,g,b,C){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),s!=null||a!=null){if(!(g!=="submit"&&g!=="reset"||s!=null)){du(n);return}a=a!=null?""+tn(a):"",s=s!=null?""+tn(s):a,C||s===n.value||(n.value=s),n.defaultValue=s}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=C?n.checked:!!l,n.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b),du(n)}function pu(n,s,a){s==="number"&&_o(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function zs(n,s,a,l){if(n=n.options,s){s={};for(var f=0;f<a.length;f++)s["$"+a[f]]=!0;for(a=0;a<n.length;a++)f=s.hasOwnProperty("$"+n[a].value),n[a].selected!==f&&(n[a].selected=f),f&&l&&(n[a].defaultSelected=!0)}else{for(a=""+tn(a),s=null,f=0;f<n.length;f++){if(n[f].value===a){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}s!==null||n[f].disabled||(s=n[f])}s!==null&&(s.selected=!0)}}function S1(n,s,a){if(s!=null&&(s=""+tn(s),s!==n.value&&(n.value=s),a==null)){n.defaultValue!==s&&(n.defaultValue=s);return}n.defaultValue=a!=null?""+tn(a):""}function M1(n,s,a,l){if(s==null){if(l!=null){if(a!=null)throw Error(r(92));if(tt(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),s=a}a=tn(s),n.defaultValue=a,l=n.textContent,l===a&&l!==""&&l!==null&&(n.value=l),du(n)}function Vs(n,s){if(s){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=s;return}}n.textContent=s}var z4=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 E1(n,s,a){var l=s.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="":l?n.setProperty(s,a):typeof a!="number"||a===0||z4.has(s)?s==="float"?n.cssFloat=a:n[s]=(""+a).trim():n[s]=a+"px"}function C1(n,s,a){if(s!=null&&typeof s!="object")throw Error(r(62));if(n=n.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||s!=null&&s.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in s)l=s[f],s.hasOwnProperty(f)&&a[f]!==l&&E1(n,f,l)}else for(var g in s)s.hasOwnProperty(g)&&E1(n,g,s[g])}function gu(n){if(n.indexOf("-")===-1)return!1;switch(n){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 V4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),B4=/^[\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 Ao(n){return B4.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Bn(){}var vu=null;function yu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Bs=null,Ps=null;function T1(n){var s=ks(n);if(s&&(n=s.stateNode)){var a=n[Re]||null;t:switch(n=s.stateNode,s.type){case"input":if(mu(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),s=a.name,a.type==="radio"&&s!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+en(""+s)+'"][type="radio"]'),s=0;s<a.length;s++){var l=a[s];if(l!==n&&l.form===n.form){var f=l[Re]||null;if(!f)throw Error(r(90));mu(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(s=0;s<a.length;s++)l=a[s],l.form===n.form&&b1(l)}break t;case"textarea":S1(n,a.value,a.defaultValue);break t;case"select":s=a.value,s!=null&&zs(n,!!a.multiple,s,!1)}}}var xu=!1;function j1(n,s,a){if(xu)return n(s,a);xu=!0;try{var l=n(s);return l}finally{if(xu=!1,(Bs!==null||Ps!==null)&&(gl(),Bs&&(s=Bs,n=Ps,Ps=Bs=null,T1(s),n)))for(s=0;s<n.length;s++)T1(n[s])}}function Jr(n,s){var a=n.stateNode;if(a===null)return null;var l=a[Re]||null;if(l===null)return null;a=l[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break t;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(r(231,s,typeof a));return a}var Pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bu=!1;if(Pn)try{var $r={};Object.defineProperty($r,"passive",{get:function(){bu=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{bu=!1}var hi=null,wu=null,No=null;function _1(){if(No)return No;var n,s=wu,a=s.length,l,f="value"in hi?hi.value:hi.textContent,g=f.length;for(n=0;n<a&&s[n]===f[n];n++);var b=a-n;for(l=1;l<=b&&s[a-l]===f[g-l];l++);return No=f.slice(n,1<l?1-l:void 0)}function Ro(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function Oo(){return!0}function A1(){return!1}function Oe(n){function s(a,l,f,g,b){this._reactName=a,this._targetInst=f,this.type=l,this.nativeEvent=g,this.target=b,this.currentTarget=null;for(var C in n)n.hasOwnProperty(C)&&(a=n[C],this[C]=a?a(g):g[C]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Oo:A1,this.isPropagationStopped=A1,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Oo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Oo)},persist:function(){},isPersistent:Oo}),s}var Qi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=Oe(Qi),ta=y({},Qi,{view:0,detail:0}),P4=Oe(ta),Su,Mu,ea,Do=y({},ta,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ea&&(ea&&n.type==="mousemove"?(Su
vendor: 1,426 bytes, line 8
8=n.screenX-ea.screenX,Mu=n.screenY-ea.screenY):Mu=Su=0,ea=n),Su)},movementY:function(n){return"movementY"in n?n.movementY:Mu}}),N1=Oe(Do),U4=y({},Do,{dataTransfer:0}),H4=Oe(U4),Z4=y({},ta,{relatedTarget:0}),Eu=Oe(Z4),Y4=y({},Qi,{animationName:0,elapsedTime:0,pseudoElement:0}),G4=Oe(Y4),K4=y({},Qi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),F4=Oe(K4),q4=y({},Qi,{data:0}),R1=Oe(q4),X4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I4={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"},W4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q4(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=W4[n])?!!s[n]:!1}function Cu(){return Q4}var J4=y({},ta,{key:function(n){if(n.key){var s=X4[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=Ro(n),n===13?"Enter":String.fromCharCode(n)):n.type==="
8keydown"||n.type==="keyup"?I4[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cu,charCode:function(n){return n.type==="keypress"?Ro(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ro(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),$4=Oe(J4),tw=y({},Do,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O1=Oe(tw),ew=y({},ta,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cu}),nw=Oe(ew),iw=y({},Qi,{propertyName:0,elapsedTime:0,pseudoElement:0}),sw=Oe(iw),rw=y({},Do,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),aw=Oe(rw),ow=y({},Qi,{newState:0,oldState:0}),lw=Oe(ow),cw=[9,13,27,32],Tu=Pn&&"CompositionEvent"in window,na=null;Pn&&"documentMode"in document&&(na=document.documentMode);var uw=Pn&&"TextEvent"in window&&!na,k1=Pn&&(!Tu||na&&8<na&&11>=na),D1=" ",L1=!1;function z1(n,s){switch(n){case"keyup":return cw.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function V1(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Us=!1;function hw(n,s){switch(n){case"compositionend":return V1(s);case"keypress":return s.which!==32?null:(L1=!0,D1);case"textInput":return n=s.data,n===D1&&L1?null:n;default:return null}}function fw(n,s){if(Us)return n==="compositionend"||!Tu&&z1(n,s)?(n=_1(),No=wu=hi=null,Us=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return k1&&s.locale!=="ko"?null:s.data;default:return null}}var dw={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 B1(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!dw[n.type]:s==="textarea"}function P1(n,s,a,l){Bs?Ps?Ps.push(l):Ps=[l]:Bs=l,s=Ml(s,"onChange"),0<s.length&&(a=new ko("onChange","change",null,a,l),n.push({event:a,listeners:s}))}var ia=null,sa=null;function mw(n){w0(n,0)}function Lo(n){var s=Qr(n);if(b1(s))return n}function U1(n,s){if(n==="change")return s}var H1=!1;if(Pn){var ju;if(Pn){var _u="oninput"in document;if(!_u){var Z1=document.createElement("div");Z1.setAttribute("oninput","return;"),_u=typeof Z1.oninput=="function"}ju=_u}else ju=!1;H1=ju&&(!document.documentMode||9<document.documentMode)}function Y1(){ia&&(ia.detachEvent("onpropertychange",G1),sa=ia=null)}function G1(n){if(n.propertyName==="value"&&Lo(sa)){var s=[];P1(s,sa,n,yu(n)),j1(mw,s)}}function pw(n,s,a){n==="focusin"?(Y1(),ia=s,sa=a,ia.attachEvent("onpropertychange",G1)):n==="focusout"&&Y1()}function gw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Lo(sa)}function vw(n,s){if(n==="click")return Lo(s)}function yw(n,s){if(n==="input"||n==="change")return Lo(s)}function xw(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var Ge=typeof Object.is=="function"?Object.is:xw;function ra(n,s){if(Ge(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var a=Object.keys(n),l=Object.keys(s);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var f=a[l];if(!ru.call(s,f)||!Ge(n[f],s[f]))return!1}return!0}function K1(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function F1(n,s){var a=K1(n);n=0;for(var l;a;){if(a.nodeType===3){if(l=n+a.textContent.length,n<=s&&l>=s)return{node:a,offset:s-n};n=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=K1(a)}}function q1(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?q1(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function X1(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var s=_o(n.document);s instanceof n.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)n=s.contentWindow;else break;s=_o(n.document)}return s}function Au(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}var bw=Pn&&"documentMode"in document&&11>=document.documentMode,Hs=null,Nu=null,aa=null,Ru=!1;function I1(n,s,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ru||Hs==null||Hs!==_o(l)||(l=Hs,"selectionStart"in l&&Au(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 15,340 bytes, line 8
8sNode:l.focusNode,focusOffset:l.focusOffset}),aa&&ra(aa,l)||(aa=l,l=Ml(Nu,"onSelect"),0<l.length&&(s=new ko("onSelect","select",null,s,a),n.push({event:s,listeners:l}),s.target=Hs)))}function Ji(n,s){var a={};return a[n.toLowerCase()]=s.toLowerCase(),a["Webkit"+n]="webkit"+s,a["Moz"+n]="moz"+s,a}var Zs={animationend:Ji("Animation","AnimationEnd"),animationiteration:Ji("Animation","AnimationIteration"),animationstart:Ji("Animation","AnimationStart"),transitionrun:Ji("Transition","TransitionRun"),transitionstart:Ji("Transition","TransitionStart"),transitioncancel:Ji("Transition","TransitionCancel"),transitionend:Ji("Transition","TransitionEnd")},Ou={},W1={};Pn&&(W1=document.createElement("div").style,"AnimationEvent"in window||(delete Zs.animationend.animation,delete Zs.animationiteration.animation,delete Zs.animationstart.animation),"TransitionEvent"in window||delete Zs.transitionend.transition);function $i(n){if(Ou[n])return Ou[n];if(!Zs[n])return n;var s=Zs[n],a;for(a in s)if(s.hasOwnProperty(a)&&a in W1)return Ou[n]=s[a];return n}var Q1=$i("animationend"),J1=$i("animationiteration"),$1=$i("animationstart"),ww=$i("transitionrun"),Sw=$i("transitionstart"),Mw=$i("transitioncancel"),tp=$i("transitionend"),ep=new Map,ku="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(" ");ku.push("scrollEnd");function dn(n,s){ep.set(n,s),Wi(s,[n])}var zo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},nn=[],Ys=0,Du=0;function Vo(){for(var n=Ys,s=Du=Ys=0;s<n;){var a=nn[s];nn[s++]=null;var l=nn[s];nn[s++]=null;var f=nn[s];nn[s++]=null;var g=nn[s];if(nn[s++]=null,l!==null&&f!==null){var b=l.pending;b===null?f.next=f:(f.next=b.next,b.next=f),l.pending=f}g!==0&&np(a,f,g)}}function Bo(n,s,a,l){nn[Ys++]=n,nn[Ys++]=s,nn[Ys++]=a,nn[Ys++]=l,Du|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Lu(n,s,a,l){return Bo(n,s,a,l),Po(n)}function ts(n,s){return Bo(n,null,null,s),Po(n)}function np(n,s,a){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a);for(var f=!1,g=n.return;g!==null;)g.childLanes|=a,l=g.alternate,l!==null&&(l.childLanes|=a),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(f=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,f&&s!==null&&(f=31-Ye(a),n=g.hiddenUpdates,l=n[f],l===null?n[f]=[s]:l.push(s),s.lane=a|536870912),g):null}function Po(n){if(50<_a)throw _a=0,Gh=null,Error(r(185));for(var s=n.return;s!==null;)n=s,s=n.return;return n.tag===3?n.stateNode:null}var Gs={};function Ew(n,s,a,l){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(n,s,a,l){return new Ew(n,s,a,l)}function zu(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Un(n,s){var a=n.alternate;return a===null?(a=Ke(n.tag,s,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=s,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,s=n.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function ip(n,s){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=s,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,s=a.dependencies,n.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),n}function Uo(n,s,a,l,f,g){var b=0;if(l=n,typeof n=="function")zu(n)&&(b=1);else if(typeof n=="string")b=A6(n,a,et.current)?26:n==="html"||n==="head"||n==="body"?27:5;else t:switch(n){case W:return n=Ke(31,a,s,f),n.elementType=W,n.lanes=g,n;case S:return es(a.children,f,g,s);case T:b=8,f|=24;break;case j:return n=Ke(12,a,s,f|2),n.elementType=j,n.lanes=g,n;case z:return n=Ke(13,a,s,f),n.elementType=z,n.lanes=g,n;case K:return n=Ke(19,a,s,f),n.elementType=K,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case N:b=10;break t;case _:b=9;break t;case D:b=11;break t;case Z:b=14;break t;case U:b=16,l=null;break t}b=29,a=Error(r(130,n===null?"null":typeof n,"")),l=null}return s=Ke(b,a,s,f),s.elementType=n,s.type=l,s.lanes=g,s}function es(n,s,a,l){return n=Ke(7,n,l,s),n.lanes=a,n}function Vu(n,s,a){return n=Ke(6,n,null,s),n.lanes=a,n}function sp(n){var s=Ke(18,null,null,0);return s.stateNode=n,s}function Bu(n,s,a){return s=Ke(4,n.children!==null?n.children:[],n.key,s),s.lanes=a,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}var rp=new WeakMap;function sn(n,s){if(typeof n=="object"&&n!==null){var a=rp.get(n);return a!==void 0?a:(s={value:n,source:s,stack:s1(s)},rp.set(n,s),s)}return{value:n,source:s,stack:s1(s)}}var Ks=[],Fs=0,Ho=null,oa=0,rn=[],an=0,fi=null,Mn=1,En="";function Hn(n,s){Ks[Fs++]=oa,Ks[Fs++]=Ho,Ho=n,oa=s}function ap(n,s,a){rn[an++]=Mn,rn[an++]=En,rn[an++]=fi,fi=n;var l=Mn;n=En;var f=32-Ye(l)-1;l&=~(1<<f),a+=1;var g=32-Ye(s)+f;if(30<g){var b=f-f%5;g=(l&(1<<b)-1).toString(32),l>>=b,f-=b,Mn=1<<32-Ye(s)+f|a<<f|l,En=g+n}else Mn=1<<g|a<<f|l,En=n}function Pu(n){n.return!==null&&(Hn(n,1),ap(n,1,0))}function Uu(n){for(;n===Ho;)Ho=Ks[--Fs],Ks[Fs]=null,oa=Ks[--Fs],Ks[Fs]=null;for(;n===fi;)fi=rn[--an],rn[an]=null,En=rn[--an],rn[an]=null,Mn=rn[--an],rn[an]=null}function op(n,s){rn[an++]=Mn,rn[an++]=En,rn[an++]=fi,Mn=s.id,En=s.overflow,fi=n}var pe=null,Gt=null,At=!1,di=null,on=!1,Hu=Error(r(519));function mi(n){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw la(sn(s,n)),Hu}function lp(n){var s=n.stateNode,a=n.type,l=n.memoizedProps;switch(s[me]=n,s[Re]=l,a){case"dialog":Ct("cancel",s),Ct("close",s);break;case"iframe":case"object":case"embed":Ct("load",s);break;case"video":case"audio":for(a=0;a<Na.length;a++)Ct(Na[a],s);break;case"source":Ct("error",s);break;case"img":case"image":case"link":Ct("error",s),Ct("load",s);break;case"details":Ct("toggle",s);break;case"input":Ct("invalid",s),w1(s,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ct("invalid",s);break;case"textarea":Ct("invalid",s),M1(s,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||s.textContent===""+a||l.suppressHydrationWarning===!0||C0(s.textContent,a)?(l.popover!=null&&(Ct("beforetoggle",s),Ct("toggle",s)),l.onScroll!=null&&Ct("scroll",s),l.onScrollEnd!=null&&Ct("scrollend",s),l.onClick!=null&&(s.onclick=Bn),s=!0):s=!1,s||mi(n,!0)}function cp(n){for(pe=n.return;pe;)switch(pe.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:pe=pe.return}}function qs(n){if(n!==pe)return!1;if(!At)return cp(n),At=!0,!1;var s=n.tag,a;if((a=s!==3&&s!==27)&&((a=s===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||af(n.type,n.memoizedProps)),a=!a),a&&Gt&&mi(n),cp(n),s===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Gt=D0(n)}else if(s===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Gt=D0(n)}else s===27?(s=Gt,_i(n.type)?(n=hf,hf=null,Gt=n):Gt=s):Gt=pe?cn(n.stateNode.nextSibling):null;return!0}function ns(){Gt=pe=null,At=!1}function Zu(){var n=di;return n!==null&&(ze===null?ze=n:ze.push.apply(ze,n),di=null),n}function la(n){di===null?di=[n]:di.push(n)}var Yu=R(null),is=null,Zn=null;function pi(n,s,a){J(Yu,s._currentValue),s._currentValue=a}function Yn(n){n._currentValue=Yu.current,q(Yu)}function Gu(n,s,a){for(;n!==null;){var l=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,l!==null&&(l.childLanes|=s)):l!==null&&(l.childLanes&s)!==s&&(l.childLanes|=s),n===a)break;n=n.return}}function Ku(n,s,a,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var g=f.dependencies;if(g!==null){var b=f.child;g=g.firstContext;t:for(;g!==null;){var C=g;g=f;for(var A=0;A<s.length;A++)if(C.context===s[A]){g.lanes|=a,C=g.alternate,C!==null&&(C.lanes|=a),Gu(g.return,a,n),l||(b=null);break t}g=C.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(r(341));b.lanes|=a,g=b.alternate,g!==null&&(g.lanes|=a),Gu(b,a,n),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===n){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Xs(n,s,a,l){n=null;for(var f=s,g=!1;f!==null;){if(!g){if((f.flags&524288)!==0)g=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(r(387));if(b=b.memoizedProps,b!==null){var C=f.type;Ge(f.pendingProps.value,b.value)||(n!==null?n.push(C):n=[C])}}else if(f===Q.current){if(b=f.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(La):n=[La])}f=f.return}n!==null&&Ku(s,n,a,l),s.flags|=262144}function Zo(n){for(n=n.firstContext;n!==null;){if(!Ge(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ss(n){is=n,Zn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ge(n){return up(is,n)}function Yo(n,s){return is===null&&ss(n),up(n,s)}function up(n,s){var a=s._currentValue;if(s={context:s,memoizedValue:a,next:null},Zn===null){if(n===null)throw Error(r(308));Zn=s,n.dependencies={lanes:0,firstContext:s},n.flags|=524288}else Zn=Zn.next=s;return a}var Cw=typeof AbortController<"u"?AbortController:function(){var n=[],s=this.signal={aborted:!1,addEventListener:function(a,l){n.push(l)}};this.abort=function(){s.aborted=!0,n.forEach(function(a){return a()})}},Tw=e.unstable_scheduleCallback,jw=e.unstable_NormalPriority,ne={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fu(){return{controller:new Cw,data:new Map,refCount:0}}function ca(n){n.refCount--,n.refCount===0&&Tw(jw,function(){n.controller.abort()})}var ua=null,qu=0,Is=0,Ws=null;function _w(n,s){if(ua===null){var a=ua=[];qu=0,Is=Wh(),Ws={status:"pending",value:void 0,then:function(l){a.push(l)}}}return qu++,s.then(hp,hp),s}function hp(){if(--qu===0&&ua!==null){Ws!==null&&(Ws.status="fulfilled");var n=ua;ua=null,Is=0,Ws=null;for(var s=0;s<n.length;s++)(0,n[s])()}}function Aw(n,s){var a=[],l={status:"pending",value:null,reason:null,then:function(f){a.push(f)}};return n.then(function(){l.status="fulfilled",l.value=s;for(var f=0;f<a.length;f++)(0,a[f])(s)},function(f){for(l.status="rejected",l.reason=f,f=0;f<a.length;f++)(0,a[f])(void 0)}),l}var fp=k.S;k.S=function(n,s){Ig=He(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&_w(n,s),fp!==null&&fp(n,s)};var rs=R(null);function Xu(){var n=rs.current;return n!==null?n:Zt.pooledCache}function Go(n,s){s===null?J(rs,rs.current):J(rs,s.pool)}function dp(){var n=Xu();return n===null?null:{parent:ne._currentValue,pool:n}}var Qs=Error(r(460)),Iu=Error(r(474)),Ko=Error(r(542)),Fo={then:function(){}};function mp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function pp(n,s,a){switch(a=n[a],a===void 0?n.push(s):a!==s&&(s.then(Bn,Bn),s=a),s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,vp(n),n;default:if(typeof s.status=="string")s.then(Bn,Bn);else{if(n=Zt,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=s,n.status="pending",n.then(function(l){if(s.status==="pending"){var f=s;f.status="fulfilled",f.value=l}},function(l){if(s.status==="pending"){var f=s;f.status="rejected",f.reason=l}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,vp(n),n}throw os=s,Qs}}function as(n){try{var s=n._init;return s(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(os=a,Qs):a}}var os=null;function gp(){if(os===null)throw Error(r(459));var n=os;return os=null,n}function vp(n){if(n===Qs||n===Ko)throw Error(r(483))}var Js=null,ha=0;function qo(n){var s=ha;return ha+=1,Js===null&&(Js=[]),pp(Js,n,s)}function fa(n,s){s=s.props.ref,n.ref=s!==void 0?s:null}function Xo(n,s){throw s.$$typeof===x?Error(r(525)):(n=Object.prototype.toString.call(s),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n)))}function yp(n){function s(L,O){if(n){var B=L.deletions;B===null?(L.deletions=[O],L.flags|=16):B.push(O)}}function a(L,O){if(!n)return null;for(;O!==null;)s(L,O),O=O.sibling;return null}function l(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function f(L,O){return L=Un(L,O),L.index=0,L.sibling=null,L}function g(L,O,B){return L.index=B,n?(B=L.alternate,B!==null?(B=B.index,B<O?(L.flags|=67108866,O):B):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function b(L){return n&&L.alternate===null&&(L.flags|=67108866),L}function C(L,O,B,X){return O===null||O.tag!==6?(O=Vu(B,L.mode,X),O.return=L,O):(O=f(O,B),O.return=L,O)}function A(L,O,B,X){var ft=B.type;return ft===S?F(L,O,B.props.children,X,B.key):O!==null&&(O.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===U&&as(ft)===O.type)?(O=f(O,B.props),fa(O,B),O.return=L,O):(O=Uo(B.type,B.key,B.props,null,L.mode,X),fa(O,B),O.return=L,O)}function P(L,O,B,X){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Bu(B,L.mode,X),O.return=L,O):(O=f(O,B.children||[]),O.return=L,O)}function F(L,O,B,X,ft){return O===null||O.tag!==7?(O=es(B,L.mode,X,ft),O.return=L,O):(O=f(O,B),O.return=L,O)}function I(L,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Vu(""+O,L.mode,B),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return B=Uo(O.type,O.key,O.props,null,L.mode,B),fa(B,O),B.return=L,B;case M:return O=Bu(O,L.mode,B),O.return=L,O;case U:return O=as(O),I(L,O,B)}if(tt(O)||ut(O))return O=es(O,L.mode,B,null),O.return=L,O;if(typeof O.then=="function")return I(L,qo(O),B);if(O.$$typeof===N)return I(L,Yo(L,O),B);Xo(L,O)}return null}function H(L,O,B,X){var ft=O!==null?O.key:null;
vendor: 6,832 bytes, line 8
8if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ft!==null?null:C(L,O,""+B,X);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case w:return B.key===ft?A(L,O,B,X):null;case M:return B.key===ft?P(L,O,B,X):null;case U:return B=as(B),H(L,O,B,X)}if(tt(B)||ut(B))return ft!==null?null:F(L,O,B,X,null);if(typeof B.then=="function")return H(L,O,qo(B),X);if(B.$$typeof===N)return H(L,O,Yo(L,B),X);Xo(L,B)}return null}function G(L,O,B,X,ft){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return L=L.get(B)||null,C(O,L,""+X,ft);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return L=L.get(X.key===null?B:X.key)||null,A(O,L,X,ft);case M:return L=L.get(X.key===null?B:X.key)||null,P(O,L,X,ft);case U:return X=as(X),G(L,O,B,X,ft)}if(tt(X)||ut(X))return L=L.get(B)||null,F(O,L,X,ft,null);if(typeof X.then=="function")return G(L,O,B,qo(X),ft);if(X.$$typeof===N)return G(L,O,B,Yo(O,X),ft);Xo(O,X)}return null}function st(L,O,B,X){for(var ft=null,Rt=null,lt=O,St=O=0,_t=null;lt!==null&&St<B.length;St++){lt.index>St?(_t=lt,lt=null):_t=lt.sibling;var Ot=H(L,lt,B[St],X);if(Ot===null){lt===null&&(lt=_t);break}n&<&&Ot.alternate===null&&s(L,lt),O=g(Ot,O,St),Rt===null?ft=Ot:Rt.sibling=Ot,Rt=Ot,lt=_t}if(St===B.length)return a(L,lt),At&&Hn(L,St),ft;if(lt===null){for(;St<B.length;St++)lt=I(L,B[St],X),lt!==null&&(O=g(lt,O,St),Rt===null?ft=lt:Rt.sibling=lt,Rt=lt);return At&&Hn(L,St),ft}for(lt=l(lt);St<B.length;St++)_t=G(lt,L,St,B[St],X),_t!==null&&(n&&_t.alternate!==null&<.delete(_t.key===null?St:_t.key),O=g(_t,O,St),Rt===null?ft=_t:Rt.sibling=_t,Rt=_t);return n&<.forEach(function(ki){return s(L,ki)}),At&&Hn(L,St),ft}function pt(L,O,B,X){if(B==null)throw Error(r(151));for(var ft=null,Rt=null,lt=O,St=O=0,_t=null,Ot=B.next();lt!==null&&!Ot.done;St++,Ot=B.next()){lt.index>St?(_t=lt,lt=null):_t=lt.sibling;var ki=H(L,lt,Ot.value,X);if(ki===null){lt===null&&(lt=_t);break}n&<&&ki.alternate===null&&s(L,lt),O=g(ki,O,St),Rt===null?ft=ki:Rt.sibling=ki,Rt=ki,lt=_t}if(Ot.done)return a(L,lt),At&&Hn(L,St),ft;if(lt===null){for(;!Ot.done;St++,Ot=B.next())Ot=I(L,Ot.value,X),Ot!==null&&(O=g(Ot,O,St),Rt===null?ft=Ot:Rt.sibling=Ot,Rt=Ot);return At&&Hn(L,St),ft}for(lt=l(lt);!Ot.done;St++,Ot=B.next())Ot=G(lt,L,St,Ot.value,X),Ot!==null&&(n&&Ot.alternate!==null&<.delete(Ot.key===null?St:Ot.key),O=g(Ot,O,St),Rt===null?ft=Ot:Rt.sibling=Ot,Rt=Ot);return n&<.forEach(function(U6){return s(L,U6)}),At&&Hn(L,St),ft}function Ut(L,O,B,X){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case w:t:{for(var ft=B.key;O!==null;){if(O.key===ft){if(ft=B.type,ft===S){if(O.tag===7){a(L,O.sibling),X=f(O,B.props.children),X.return=L,L=X;break t}}else if(O.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===U&&as(ft)===O.type){a(L,O.sibling),X=f(O,B.props),fa(X,B),X.return=L,L=X;break t}a(L,O);break}else s(L,O);O=O.sibling}B.type===S?(X=es(B.props.children,L.mode,X,B.key),X.return=L,L=X):(X=Uo(B.type,B.key,B.props,null,L.mode,X),fa(X,B),X.return=L,L=X)}return b(L);case M:t:{for(ft=B.key;O!==null;){if(O.key===ft)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){a(L,O.sibling),X=f(O,B.children||[]),X.return=L,L=X;break t}else{a(L,O);break}else s(L,O);O=O.sibling}X=Bu(B,L.mode,X),X.return=L,L=X}return b(L);case U:return B=as(B),Ut(L,O,B,X)}if(tt(B))return st(L,O,B,X);if(ut(B)){if(ft=ut(B),typeof ft!="function")throw Error(r(150));return B=ft.call(B),pt(L,O,B,X)}if(typeof B.then=="function")return Ut(L,O,qo(B),X);if(B.$$typeof===N)return Ut(L,O,Yo(L,B),X);Xo(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(a(L,O.sibling),X=f(O,B),X.return=L,L=X):(a(L,O),X=Vu(B,L.mode,X),X.return=L,L=X),b(L)):a(L,O)}return function(L,O,B,X){try{ha=0;var ft=Ut(L,O,B,X);return Js=null,ft}catch(lt){if(lt===Qs||lt===Ko)throw lt;var Rt=Ke(29,lt,null,L.mode);return Rt.lanes=X,Rt.return=L,Rt}}}var ls=yp(!0),xp=yp(!1),gi=!1;function Wu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qu(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function vi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function yi(n,s,a){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var f=l.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s,s=Po(n),np(n,null,a),s}return Bo(n,l,s,a),Po(n)}function da(n,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var l=s.lanes;l&=n.pendingLanes,a|=l,s.lanes=a,u1(n,a)}}function Ju(n,s){var a=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var f=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};g===null?f=g=b:g=g.next=b,a=a.next}while(a!==null);g===null?f=g=s:g=g.next=s}else f=g=s;a={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:l.shared,callbacks:l.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=s:n.next=s,a.lastBaseUpdate=s}var $u=!1;function ma(){if($u){var n=Ws;if(n!==null)throw n}}function pa(n,s,a,l){$u=!1;var f=n.updateQueue;gi=!1;var g=f.firstBaseUpdate,b=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var A=C,P=A.next;A.next=null,b===null?g=P:b.next=P,b=A;var F=n.alternate;F!==null&&(F=F.updateQueue,C=F.lastBaseUpdate,C!==b&&(C===null?F.firstBaseUpdate=P:C.next=P,F.lastBaseUpdate=A))}if(g!==null){var I=f.baseState;b=0,F=P=A=null,C=g;do{var H=C.lane&-536870913,G=H!==C.lane;if(G?(jt&H)===H:(l&H)===H){H!==0&&H===Is&&($u=!0),F!==null&&(F=F.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});t:{var st=n,pt=C;H=s;var Ut=a;switch(pt.tag){case 1:if(st=pt.payload,typeof st=="function"){I=st.call(Ut,I,H);break t}I=st;break t;case 3:st.flags=st.flags&-65537|128;case 0:if(st=pt.payload,H=typeof st=="function"?st.call(Ut,I,H):st,H==null)break t;I=y({},I,H);break t;case 2:gi=!0}}H=C.callback,H!==null&&(n.flags|=64,G&&(n.flags|=8192),G=f.callbacks,G===null?f.callbacks=[H]:G.push(H))}else G={lane:H,tag:C.tag,payload:C.payload,callback:C.callback,next:null},F===null?(P=F=G,A=I):F=F.next=G,b|=H;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;G=C,C=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);F===null&&(A=I),f.baseState=A,f.firstBaseUpdate=P,f.lastBaseUpdate=F,g===null&&(f.shared.lanes=0),Mi|=b,n.lanes=b,n.memoizedState=I}}function bp(n,s){if(typeof n!="function")throw Error(r(191,n));n.call(s)}function wp(n,s){var a=n.callbacks;
vendor: 4,963 bytes, line 8
8if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)bp(a[n],s)}var $s=R(null),Io=R(0);function Sp(n,s){n=Jn,J(Io,n),J($s,s),Jn=n|s.baseLanes}function th(){J(Io,Jn),J($s,$s.current)}function eh(){Jn=Io.current,q($s),q(Io)}var Fe=R(null),ln=null;function xi(n){var s=n.alternate;J(Jt,Jt.current&1),J(Fe,n),ln===null&&(s===null||$s.current!==null||s.memoizedState!==null)&&(ln=n)}function nh(n){J(Jt,Jt.current),J(Fe,n),ln===null&&(ln=n)}function Mp(n){n.tag===22?(J(Jt,Jt.current),J(Fe,n),ln===null&&(ln=n)):bi()}function bi(){J(Jt,Jt.current),J(Fe,Fe.current)}function qe(n){q(Fe),ln===n&&(ln=null),q(Jt)}var Jt=R(0);function Wo(n){for(var s=n;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||cf(a)||uf(a)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Gn=0,bt=null,Bt=null,ie=null,Qo=!1,tr=!1,cs=!1,Jo=0,ga=0,er=null,Nw=0;function It(){throw Error(r(321))}function ih(n,s){if(s===null)return!1;for(var a=0;a<s.length&&a<n.length;a++)if(!Ge(n[a],s[a]))return!1;return!0}function sh(n,s,a,l,f,g){return Gn=g,bt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,k.H=n===null||n.memoizedState===null?ag:xh,cs=!1,g=a(l,f),cs=!1,tr&&(g=Cp(s,a,l,f)),Ep(n),g}function Ep(n){k.H=xa;var s=Bt!==null&&Bt.next!==null;if(Gn=0,ie=Bt=bt=null,Qo=!1,ga=0,er=null,s)throw Error(r(300));n===null||se||(n=n.dependencies,n!==null&&Zo(n)&&(se=!0))}function Cp(n,s,a,l){bt=n;var f=0;do{if(tr&&(er=null),ga=0,tr=!1,25<=f)throw Error(r(301));if(f+=1,ie=Bt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}k.H=og,g=s(a,l)}while(tr);return g}function Rw(){var n=k.H,s=n.useState()[0];return s=typeof s.then=="function"?va(s):s,n=n.useState()[0],(Bt!==null?Bt.memoizedState:null)!==n&&(bt.flags|=1024),s}function rh(){var n=Jo!==0;return Jo=0,n}function ah(n,s,a){s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~a}function oh(n){if(Qo){for(n=n.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Qo=!1}Gn=0,ie=Bt=bt=null,tr=!1,ga=Jo=0,er=null}function Te(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?bt.memoizedState=ie=n:ie=ie.next=n,ie}function $t(){if(Bt===null){var n=bt.alternate;n=n!==null?n.memoizedState:null}else n=Bt.next;var s=ie===null?bt.memoizedState:ie.next;if(s!==null)ie=s,Bt=n;else{if(n===null)throw bt.alternate===null?Error(r(467)):Error(r(310));Bt=n,n={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},ie===null?bt.memoizedState=ie=n:ie=ie.next=n}return ie}function $o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function va(n){var s=ga;return ga+=1,er===null&&(er=[]),n=pp(er,n,s),s=bt,(ie===null?s.memoizedState:ie.next)===null&&(s=s.alternate,k.H=s===null||s.memoizedState===null?ag:xh),n}function tl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return va(n);if(n.$$typeof===N)return ge(n)}throw Error(r(438,String(n)))}function lh(n){var s=null,a=bt.updateQueue;if(a!==null&&(s=a.memoCache),s==null){var l=bt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(s={data:l.data.map(function(f){return f.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),a===null&&(a=$o(),bt.updateQueue=a),a.memoCache=s,a=s.data[s.index],a===void 0)for(a=s.data[s.index]=Array(n),l=0;l<n;l++)a[l]=nt;return s.index++,a}function Kn(n,s){return typeof s=="function"?s(n):s}function el(n){var s=$t();return ch(s,Bt,n)}function ch(n,s,a){var l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var f=n.baseQueue,g=l.pending;if(g!==null){if(f!==null){var b=f.next;f.next=g.next,g.next=b}s.baseQueue=f=g,l.pending=null}if(g=n.baseState,f===null)n.memoizedState=g;else{s=f.next;var C=b=null,A=null,P=s,F=!1;do{var I=P.lane&-536870913;if(I!==P.lane?(jt&I)===I:(Gn&I)===I){var H=P.revertLane;if(H===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),I===Is&&(F=!0);else if((Gn&H)===H){P=P.next,H===Is&&(F=!0);continue}else I={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},A===null?(C=A=I,b=g):A=A.next=I,bt.lanes|=H,Mi|=H;I=P.action,cs&&a(g,I),g=P.hasEagerState?P.eagerState:a(g,I)}else H={lane:I,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},A===null?(C=A=H,b=g):A=A.next=H,bt.lanes|=I,Mi|=I;P=P.next}
vendor: 5,798 bytes, line 8
8while(P!==null&&P!==s);if(A===null?b=g:A.next=C,!Ge(g,n.memoizedState)&&(se=!0,F&&(a=Ws,a!==null)))throw a;n.memoizedState=g,n.baseState=b,n.baseQueue=A,l.lastRenderedState=g}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function uh(n){var s=$t(),a=s.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var l=a.dispatch,f=a.pending,g=s.memoizedState;if(f!==null){a.pending=null;var b=f=f.next;do g=n(g,b.action),b=b.next;while(b!==f);Ge(g,s.memoizedState)||(se=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),a.lastRenderedState=g}return[g,l]}function Tp(n,s,a){var l=bt,f=$t(),g=At;if(g){if(a===void 0)throw Error(r(407));a=a()}else a=s();var b=!Ge((Bt||f).memoizedState,a);if(b&&(f.memoizedState=a,se=!0),f=f.queue,dh(Ap.bind(null,l,f,n),[n]),f.getSnapshot!==s||b||ie!==null&&ie.memoizedState.tag&1){if(l.flags|=2048,nr(9,{destroy:void 0},_p.bind(null,l,f,a,s),null),Zt===null)throw Error(r(349));g||(Gn&127)!==0||jp(l,s,a)}return a}function jp(n,s,a){n.flags|=16384,n={getSnapshot:s,value:a},s=bt.updateQueue,s===null?(s=$o(),bt.updateQueue=s,s.stores=[n]):(a=s.stores,a===null?s.stores=[n]:a.push(n))}function _p(n,s,a,l){s.value=a,s.getSnapshot=l,Np(s)&&Rp(n)}function Ap(n,s,a){return a(function(){Np(s)&&Rp(n)})}function Np(n){var s=n.getSnapshot;n=n.value;try{var a=s();return!Ge(n,a)}catch{return!0}}function Rp(n){var s=ts(n,2);s!==null&&Ve(s,n,2)}function hh(n){var s=Te();if(typeof n=="function"){var a=n;if(n=a(),cs){ci(!0);try{a()}finally{ci(!1)}}}return s.memoizedState=s.baseState=n,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:n},s}function Op(n,s,a,l){return n.baseState=a,ch(n,Bt,typeof l=="function"?l:Kn)}function Ow(n,s,a,l,f){if(sl(n))throw Error(r(485));if(n=s.action,n!==null){var g={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){g.listeners.push(b)}};k.T!==null?a(!0):g.isTransition=!1,l(g),a=s.pending,a===null?(g.next=s.pending=g,kp(s,g)):(g.next=a.next,s.pending=a.next=g)}}function kp(n,s){var a=s.action,l=s.payload,f=n.state;if(s.isTransition){var g=k.T,b={};k.T=b;try{var C=a(f,l),A=k.S;A!==null&&A(b,C),Dp(n,s,C)}catch(P){fh(n,s,P)}finally{g!==null&&b.types!==null&&(g.types=b.types),k.T=g}}else try{g=a(f,l),Dp(n,s,g)}catch(P){fh(n,s,P)}}function Dp(n,s,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Lp(n,s,l)},function(l){return fh(n,s,l)}):Lp(n,s,a)}function Lp(n,s,a){s.status="fulfilled",s.value=a,zp(s),n.state=a,s=n.pending,s!==null&&(a=s.next,a===s?n.pending=null:(a=a.next,s.next=a,kp(n,a)))}function fh(n,s,a){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do s.status="rejected",s.reason=a,zp(s),s=s.next;while(s!==l)}n.action=null}function zp(n){n=n.listeners;for(var s=0;s<n.length;s++)(0,n[s])()}function Vp(n,s){return s}function Bp(n,s){if(At){var a=Zt.formState;if(a!==null){t:{var l=bt;if(At){if(Gt){e:{for(var f=Gt,g=on;f.nodeType!==8;){if(!g){f=null;break e}if(f=cn(f.nextSibling),f===null){f=null;break e}}g=f.data,f=g==="F!"||g==="F"?f:null}if(f){Gt=cn(f.nextSibling),l=f.data==="F!";break t}}mi(l)}l=!1}l&&(s=a[0])}}return a=Te(),a.memoizedState=a.baseState=s,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vp,lastRenderedState:s},a.queue=l,a=ig.bind(null,bt,l),l.dispatch=a,l=hh(!1),g=yh.bind(null,bt,!1,l.queue),l=Te(),f={state:s,dispatch:null,action:n,pending:null},l.queue=f,a=Ow.bind(null,bt,f,g,a),f.dispatch=a,l.memoizedState=n,[s,a,!1]}function Pp(n){var s=$t();return Up(s,Bt,n)}function Up(n,s,a){if(s=ch(n,s,Vp)[0],n=el(Kn)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var l=va(s)}catch(b){throw b===Qs?Ko:b}else l=s;s=$t();var f=s.queue,g=f.dispatch;return a!==s.memoizedState&&(bt.flags|=2048,nr(9,{destroy:void 0},kw.bind(null,f,a),null)),[l,g,n]}function kw(n,s){n.action=s}function Hp(n){var s=$t(),a=Bt;if(a!==null)return Up(s,a,n);$t(),s=s.memoizedState,a=$t();var l=a.queue.dispatch;return a.memoizedState=n,[s,l,!1]}function nr(n,s,a,l){return n={tag:n,create:a,deps:l,inst:s,next:null},s=bt.updateQueue,s===null&&(s=$o(),bt.updateQueue=s),a=s.lastEffect,a===null?s.lastEffect=n.next=n:(l=a.next,a.next=n,n.next=l,s.lastEffect=n),n}function Zp(){return $t().memoizedState}function nl(n,s,a,l){var f=Te();bt.flags|=n,f.memoizedState=nr(1|s,{destroy:void 0},a,l===void 0?null:l)}function il(n,s,a,l){var f=$t();l=l===void 0?null:l;var g=f.memoizedState.inst;Bt!==null&&l!==null&&ih(l,Bt.memoizedState.deps)?f.memoizedState=nr(s,g,a,l):(bt.flags|=n,f.memoizedState=nr(1|s,g,a,l))}function Yp(n,s){nl(8390656,8,n,s)}function dh(n,s){il(2048,8,n,s)}function Dw(n){bt.flags|=4;var s=bt.updateQueue;if(s===null)s=$o(),bt.updateQueue=s,s.events=[n];else{var a=s.events;a===null?s.events=[n]:a.push(n)}}function Gp(n){var s=$t().memoizedState;return Dw({ref:s,nextImpl:n}),function(){if((Dt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Kp(n,s){return il(4,2,n,s)}function Fp(n,s){return il(4,4,n,s)}function qp(n,s){if(typeof s=="function"){n=n();var a=s(n);return function(){typeof a=="function"?a():s(null)}}if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function Xp(n,s,a){a=a!=null?a.concat([n]):null,il(4,4,qp.bind(null,s,n),a)}function mh(){}function Ip(n,s){var a=$t();s=s===void 0?null:s;var l=a.memoizedState;return s!==null&&ih(s,l[1])?l[0]:(a.memoizedState=[n,s],n)}function Wp(n,s){var a=$t();s=s===void 0?null:s;var l=a.memoizedState;if(s!==null&&ih(s,l[1]))return l[0];if(l=n(),cs){ci(!0);try{n()}finally{ci(!1)}}return a.memoizedState=[l,s],l}function ph(n,s,a){return a===void 0||(Gn&1073741824)!==0&&(jt&261930)===0?n.memoizedState=s:(n.memoizedState=a,n=Qg(),bt.lanes|=n,Mi|=n,a)}function Qp(n,s,a,l){return Ge(a,s)?a:$s.current!==null?(n=ph(n,a,l),Ge(n,s)||
vendor: 4,282 bytes, line 8
8(se=!0),n):(Gn&42)===0||(Gn&1073741824)!==0&&(jt&261930)===0?(se=!0,n.memoizedState=a):(n=Qg(),bt.lanes|=n,Mi|=n,s)}function Jp(n,s,a,l,f){var g=Y.p;Y.p=g!==0&&8>g?g:8;var b=k.T,C={};k.T=C,yh(n,!1,s,a);try{var A=f(),P=k.S;if(P!==null&&P(C,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=Aw(A,l);ya(n,s,F,We(n))}else ya(n,s,l,We(n))}catch(I){ya(n,s,{then:function(){},status:"rejected",reason:I},We())}finally{Y.p=g,b!==null&&C.types!==null&&(b.types=C.types),k.T=b}}function Lw(){}function gh(n,s,a,l){if(n.tag!==5)throw Error(r(476));var f=$p(n).queue;Jp(n,f,s,V,a===null?Lw:function(){return tg(n),a(l)})}function $p(n){var s=n.memoizedState;if(s!==null)return s;s={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:V},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:a},next:null},n.memoizedState=s,n=n.alternate,n!==null&&(n.memoizedState=s),s}function tg(n){var s=$p(n);s.next===null&&(s=n.alternate.memoizedState),ya(n,s.next.queue,{},We())}function vh(){return ge(La)}function eg(){return $t().memoizedState}function ng(){return $t().memoizedState}function zw(n){for(var s=n.return;s!==null;){switch(s.tag){case 24:case 3:var a=We();n=vi(a);var l=yi(s,n,a);l!==null&&(Ve(l,s,a),da(l,s,a)),s={cache:Fu()},n.payload=s;return}s=s.return}}function Vw(n,s,a){var l=We();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},sl(n)?sg(s,a):(a=Lu(n,s,a,l),a!==null&&(Ve(a,n,l),rg(a,s,l)))}function ig(n,s,a){var l=We();ya(n,s,a,l)}function ya(n,s,a,l){var f={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(sl(n))sg(s,f);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var b=s.lastRenderedState,C=g(b,a);if(f.hasEagerState=!0,f.eagerState=C,Ge(C,b))return Bo(n,s,f,0),Zt===null&&Vo(),!1}catch{}if(a=Lu(n,s,f,l),a!==null)return Ve(a,n,l),rg(a,s,l),!0}return!1}function yh(n,s,a,l){if(l={lane:2,revertLane:Wh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},sl(n)){if(s)throw Error(r(479))}else s=Lu(n,a,l,2),s!==null&&Ve(s,n,2)}function sl(n){var s=n.alternate;return n===bt||s!==null&&s===bt}function sg(n,s){tr=Qo=!0;var a=n.pending;a===null?s.next=s:(s.next=a.next,a.next=s),n.pending=s}function rg(n,s,a){if((a&4194048)!==0){var l=s.lanes;l&=n.pendingLanes,a|=l,s.lanes=a,u1(n,a)}}var xa={readContext:ge,use:tl,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useLayoutEffect:It,useInsertionEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useSyncExternalStore:It,useId:It,useHostTransitionStatus:It,useFormState:It,useActionState:It,useOptimistic:It,useMemoCache:It,useCacheRefresh:It};xa.useEffectEvent=It;var ag={readContext:ge,use:tl,useCallback:function(n,s){return Te().memoizedState=[n,s===void 0?null:s],n},useContext:ge,useEffect:Yp,useImperativeHandle:function(n,s,a){a=a!=null?a.concat([n]):null,nl(4194308,4,qp.bind(null,s,n),a)},useLayoutEffect:function(n,s){return nl(4194308,4,n,s)},useInsertionEffect:function(n,s){nl(4,2,n,s)},useMemo:function(n,s){var a=Te();s=s===void 0?null:s;var l=n();if(cs){ci(!0);try{n()}finally{ci(!1)}}return a.memoizedState=[l,s],l},useReducer:function(n,s,a){var l=Te();if(a!==void 0){var f=a(s);if(cs){ci(!0);try{a(s)}finally{ci(!1)}}}else f=s;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=Vw.bind(null,bt,n),[l.memoizedState,n]},useRef:function(n){var s=Te();return n={current:n},s.memoizedState=n},useState:function(n){n=hh(n);var s=n.queue,a=ig.bind(null,bt,s);return s.dispatch=a,[n.memoizedState,a]},useDebugValue:mh,useDeferredValue:function(n,s){var a=Te();return ph(a,n,s)},useTransition:function(){var n=hh(!1);return n=Jp.bind(null,bt,n.queue,!0,!1),Te().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,s,a){var l=bt,f=Te();if(At){if(a===void 0)throw Error(r(407));a=a()}else{if(a=s(),Zt===null)throw Error(r(349));(jt&127)!==0||jp(l,s,a)}f.memoizedState=a;var g={value:a,getSnapshot:s};
vendor: 7,322 bytes, line 8
8return f.queue=g,Yp(Ap.bind(null,l,g,n),[n]),l.flags|=2048,nr(9,{destroy:void 0},_p.bind(null,l,g,a,s),null),a},useId:function(){var n=Te(),s=Zt.identifierPrefix;if(At){var a=En,l=Mn;a=(l&~(1<<32-Ye(l)-1)).toString(32)+a,s="_"+s+"R_"+a,a=Jo++,0<a&&(s+="H"+a.toString(32)),s+="_"}else a=Nw++,s="_"+s+"r_"+a.toString(32)+"_";return n.memoizedState=s},useHostTransitionStatus:vh,useFormState:Bp,useActionState:Bp,useOptimistic:function(n){var s=Te();s.memoizedState=s.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=a,s=yh.bind(null,bt,!0,a),a.dispatch=s,[n,s]},useMemoCache:lh,useCacheRefresh:function(){return Te().memoizedState=zw.bind(null,bt)},useEffectEvent:function(n){var s=Te(),a={impl:n};return s.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},xh={readContext:ge,use:tl,useCallback:Ip,useContext:ge,useEffect:dh,useImperativeHandle:Xp,useInsertionEffect:Kp,useLayoutEffect:Fp,useMemo:Wp,useReducer:el,useRef:Zp,useState:function(){return el(Kn)},useDebugValue:mh,useDeferredValue:function(n,s){var a=$t();return Qp(a,Bt.memoizedState,n,s)},useTransition:function(){var n=el(Kn)[0],s=$t().memoizedState;return[typeof n=="boolean"?n:va(n),s]},useSyncExternalStore:Tp,useId:eg,useHostTransitionStatus:vh,useFormState:Pp,useActionState:Pp,useOptimistic:function(n,s){var a=$t();return Op(a,Bt,n,s)},useMemoCache:lh,useCacheRefresh:ng};xh.useEffectEvent=Gp;var og={readContext:ge,use:tl,useCallback:Ip,useContext:ge,useEffect:dh,useImperativeHandle:Xp,useInsertionEffect:Kp,useLayoutEffect:Fp,useMemo:Wp,useReducer:uh,useRef:Zp,useState:function(){return uh(Kn)},useDebugValue:mh,useDeferredValue:function(n,s){var a=$t();return Bt===null?ph(a,n,s):Qp(a,Bt.memoizedState,n,s)},useTransition:function(){var n=uh(Kn)[0],s=$t().memoizedState;return[typeof n=="boolean"?n:va(n),s]},useSyncExternalStore:Tp,useId:eg,useHostTransitionStatus:vh,useFormState:Hp,useActionState:Hp,useOptimistic:function(n,s){var a=$t();return Bt!==null?Op(a,Bt,n,s):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:lh,useCacheRefresh:ng};og.useEffectEvent=Gp;function bh(n,s,a,l){s=n.memoizedState,a=a(l,s),a=a==null?s:y({},s,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var wh={enqueueSetState:function(n,s,a){n=n._reactInternals;var l=We(),f=vi(l);f.payload=s,a!=null&&(f.callback=a),s=yi(n,f,l),s!==null&&(Ve(s,n,l),da(s,n,l))},enqueueReplaceState:function(n,s,a){n=n._reactInternals;var l=We(),f=vi(l);f.tag=1,f.payload=s,a!=null&&(f.callback=a),s=yi(n,f,l),s!==null&&(Ve(s,n,l),da(s,n,l))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var a=We(),l=vi(a);l.tag=2,s!=null&&(l.callback=s),s=yi(n,l,a),s!==null&&(Ve(s,n,a),da(s,n,a))}};function lg(n,s,a,l,f,g,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,g,b):s.prototype&&s.prototype.isPureReactComponent?!ra(a,l)||!ra(f,g):!0}function cg(n,s,a,l){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,l),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,l),s.state!==n&&wh.enqueueReplaceState(s,s.state,null)}function us(n,s){var a=s;if("ref"in s){a={};for(var l in s)l!=="ref"&&(a[l]=s[l])}if(n=n.defaultProps){a===s&&(a=y({},a));for(var f in n)a[f]===void 0&&(a[f]=n[f])}return a}function ug(n){zo(n)}function hg(n){console.error(n)}function fg(n){zo(n)}function rl(n,s){try{var a=n.onUncaughtError;a(s.value,{componentStack:s.stack})}catch(l){setTimeout(function(){throw l})}}function dg(n,s,a){try{var l=n.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Sh(n,s,a){return a=vi(a),a.tag=3,a.payload={element:null},a.callback=function(){rl(n,s)},a}function mg(n){return n=vi(n),n.tag=3,n}function pg(n,s,a,l){var f=a.type.getDerivedStateFromError;if(typeof f=="function"){var g=l.value;n.payload=function(){return f(g)},n.callback=function(){dg(s,a,l)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){dg(s,a,l),typeof f!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var C=l.stack;this.componentDidCatch(l.value,{componentStack:C!==null?C:""})})}function Bw(n,s,a,l,f){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(s=a.alternate,s!==null&&Xs(s,a,f,!0),a=Fe.current,a!==null){switch(a.tag){case 31:case 13:return ln===null?vl():a.alternate===null&&Wt===0&&(Wt=3),a.flags&=-257,a.flags|=65536,a.lanes=f,l===Fo?a.flags|=16384:(s=a.updateQueue,s===null?a.updateQueue=new Set([l]):s.add(l),qh(n,l,f)),!1;case 22:return a.flags|=65536,l===Fo?a.flags|=16384:(s=a.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=s):(a=s.retryQueue,a===null?s.retryQueue=new Set([l]):a.add(l)),qh(n,l,f)),!1}throw Error(r(435,a.tag))}return qh(n,l,f),vl(),!1}if(At)return s=Fe.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=f,l!==Hu&&(n=Error(r(422),{cause:l}),la(sn(n,a)))):(l!==Hu&&(s=Error(r(423),{cause:l}),la(sn(s,a))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=sn(l,a),f=Sh(n.stateNode,l,f),Ju(n,f),Wt!==4&&(Wt=2)),!1;var g=Error(r(520),{cause:l});if(g=sn(g,a),ja===null?ja=[g]:ja.push(g),Wt!==4&&(Wt=2),s===null)return!0;l=sn(l,a),a=s;do{switch(a.tag){case 3:return a.flags|=65536,n=f&-f,a.lanes|=n,n=Sh(a.stateNode,l,n),Ju(a,n),!1;case 1:if(s=a.type,g=a.stateNode,(a.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ei===null||!Ei.has(g))))return a.flags|=65536,f&=-f,a.lanes|=f,f=mg(f),pg(f,n,a,l),Ju(a,f),!1}a=a.return}while(a!==null);return!1}var Mh=Error(r(461)),se=!1;function ve(n,s,a,l){s.child=n===null?xp(s,null,a,l):ls(s,n.child,a,l)}function gg(n,s,a,l,f){a=a.render;var g=s.ref;if("ref"in l){var b={};for(var C in l)C!=="ref"&&(b[C]=l[C])}else b=l;return ss(s),l=sh(n,s,a,b,g,f),C=rh(),n!==null&&!se?(ah(n,s,f),Fn(n,s,f)):(At&&C&&Pu(s),s.flags|=1,ve(n,s,l,f),s.child)}function vg(n,s,a,l,f){if(n===null){var g=a.type;return typeof g=="function"&&!zu(g)&&g.defaultProps===void 0&&a.compare===null?(s.tag=15,s.type=g,yg(n,s,g,l,f)):(n=Uo(a.type,null,l,s,s.mode,f),n.ref=s.ref,n.return=s,s.child=n)}if(g=n.child,!Rh(n,f)){var b=g.memoizedProps;if(a=a.compare,a=a!==null?a:ra,a(b,l)&&n.ref===s.ref)return Fn(n,s,f)}return s.flags|=1,n=Un(g,l),n.ref=s.ref,n.return=s,s.child=n}function yg(n,s,a,l,f){if(n!==null){var g=n.memoizedProps;if(ra(g,l)&&n.ref===s.ref)if(se=!1,s.pendingProps=l=g,Rh(n,f))(n.flags&131072)!==0&&(se=!0);else return s.lanes=n.lanes,Fn(n,s,f)}return Eh(n,s,a,l,f)}function xg(n,s,a,l){var f=l.children,g=n!==null?n.memoizedState:null;if(n===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((s.flags&128)!==0){if(g=g!==null?g.baseLanes|a:a,n!==null){for(l=s.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~g}else l=0,s.child=null;return bg(n,s,g,a,l)}if((a&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},n!==null&&Go(s,g!==null?g.cachePool:null),g!==null?Sp(s,g):th(),Mp(s);else return l=s.lanes=536870912,bg(n,s,g!==null?g.baseLanes|a:a,a,l)}
vendor: 6,748 bytes, line 8
8else g!==null?(Go(s,g.cachePool),Sp(s,g),bi(),s.memoizedState=null):(n!==null&&Go(s,null),th(),bi());return ve(n,s,f,a),s.child}function ba(n,s){return n!==null&&n.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function bg(n,s,a,l,f){var g=Xu();return g=g===null?null:{parent:ne._currentValue,pool:g},s.memoizedState={baseLanes:a,cachePool:g},n!==null&&Go(s,null),th(),Mp(s),n!==null&&Xs(n,s,l,!0),s.childLanes=f,null}function al(n,s){return s=ll({mode:s.mode,children:s.children},n.mode),s.ref=n.ref,n.child=s,s.return=n,s}function wg(n,s,a){return ls(s,n.child,null,a),n=al(s,s.pendingProps),n.flags|=2,qe(s),s.memoizedState=null,n}function Pw(n,s,a){var l=s.pendingProps,f=(s.flags&128)!==0;if(s.flags&=-129,n===null){if(At){if(l.mode==="hidden")return n=al(s,l),s.lanes=536870912,ba(null,n);if(nh(s),(n=Gt)?(n=k0(n,on),n=n!==null&&n.data==="&"?n:null,n!==null&&(s.memoizedState={dehydrated:n,treeContext:fi!==null?{id:Mn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},a=sp(n),a.return=s,s.child=a,pe=s,Gt=null)):n=null,n===null)throw mi(s);return s.lanes=536870912,null}return al(s,l)}var g=n.memoizedState;if(g!==null){var b=g.dehydrated;if(nh(s),f)if(s.flags&256)s.flags&=-257,s=wg(n,s,a);else if(s.memoizedState!==null)s.child=n.child,s.flags|=128,s=null;else throw Error(r(558));else if(se||Xs(n,s,a,!1),f=(a&n.childLanes)!==0,se||f){if(l=Zt,l!==null&&(b=h1(l,a),b!==0&&b!==g.retryLane))throw g.retryLane=b,ts(n,b),Ve(l,n,b),Mh;vl(),s=wg(n,s,a)}else n=g.treeContext,Gt=cn(b.nextSibling),pe=s,At=!0,di=null,on=!1,n!==null&&op(s,n),s=al(s,l),s.flags|=4096;return s}return n=Un(n.child,{mode:l.mode,children:l.children}),n.ref=s.ref,s.child=n,n.return=s,n}function ol(n,s){var a=s.ref;if(a===null)n!==null&&n.ref!==null&&(s.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(n===null||n.ref!==a)&&(s.flags|=4194816)}}function Eh(n,s,a,l,f){return ss(s),a=sh(n,s,a,l,void 0,f),l=rh(),n!==null&&!se?(ah(n,s,f),Fn(n,s,f)):(At&&l&&Pu(s),s.flags|=1,ve(n,s,a,f),s.child)}function Sg(n,s,a,l,f,g){return ss(s),s.updateQueue=null,a=Cp(s,l,a,f),Ep(n),l=rh(),n!==null&&!se?(ah(n,s,g),Fn(n,s,g)):(At&&l&&Pu(s),s.flags|=1,ve(n,s,a,g),s.child)}function Mg(n,s,a,l,f){if(ss(s),s.stateNode===null){var g=Gs,b=a.contextType;typeof b=="object"&&b!==null&&(g=ge(b)),g=new a(l,g),s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=wh,s.stateNode=g,g._reactInternals=s,g=s.stateNode,g.props=l,g.state=s.memoizedState,g.refs={},Wu(s),b=a.contextType,g.context=typeof b=="object"&&b!==null?ge(b):Gs,g.state=s.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(bh(s,a,b,l),g.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(b=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),b!==g.state&&wh.enqueueReplaceState(g,g.state,null),pa(s,l,g,f),ma(),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308),l=!0}else if(n===null){g=s.stateNode;var C=s.memoizedProps,A=us(a,C);g.props=A;var P=g.context,F=a.contextType;b=Gs,typeof F=="object"&&F!==null&&(b=ge(F));var I=a.getDerivedStateFromProps;F=typeof I=="function"||typeof g.getSnapshotBeforeUpdate=="function",C=s.pendingProps!==C,F||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C||P!==b)&&cg(s,g,l,b),gi=!1;var H=s.memoizedState;g.state=H,pa(s,l,g,f),ma(),P=s.memoizedState,C||H!==P||gi?(typeof I=="function"&&(bh(s,a,I,l),P=s.memoizedState),(A=gi||lg(s,a,A,l,H,P,b))?(F||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=l,s.memoizedState=P),g.props=l,g.state=P,g.context=b,l=A):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),l=!1)}else{g=s.stateNode,Qu(n,s),b=s.memoizedProps,F=us(a,b),g.props=F,I=s.pendingProps,H=g.context,P=a.contextType,A=Gs,typeof P=="object"&&P!==null&&(A=ge(P)),C=a.getDerivedStateFromProps,(P=typeof C=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(b!==I||H!==A)&&cg(s,g,l,A),gi=!1,H=s.memoizedState,g.state=H,pa(s,l,g,f),ma();var G=s.memoizedState;b!==I||H!==G||gi||n!==null&&n.dependencies!==null&&Zo(n.dependencies)?(typeof C=="function"&&(bh(s,a,C,l),G=s.memoizedState),(F=gi||lg(s,a,F,l,H,G,A)||n!==null&&n.dependencies!==null&&Zo(n.dependencies))?(P||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,G,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,G,A)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||b===n.memoizedProps&&H===n.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&H===n.memoizedState||(s.flags|=1024),s.memoizedProps=l,s.memoizedState=G),g.props=l,g.state=G,g.context=A,l=F):(typeof g.componentDidUpdate!="function"||b===n.memoizedProps&&H===n.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&H===n.memoizedState||(s.flags|=1024),l=!1)}return g=l,ol(n,s),l=(s.flags&128)!==0,g||l?(g=s.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:g.render(),s.flags|=1,n!==null&&l?(s.child=ls(s,n.child,null,f),s.child=ls(s,null,a,f)):ve(n,s,a,f),s.memoizedState=g.state,n=s.child):n=Fn(n,s,f),n}function Eg(n,s,a,l){return ns(),s.flags|=256,ve(n,s,a,l),s.child}var Ch={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Th(n){return{baseLanes:n,cachePool:dp()}}function jh(n,s,a){return n=n!==null?n.childLanes&~a:0,s&&(n|=Ie),n}function Cg(n,s,a){var l=s.pendingProps,f=!1,g=(s.flags&128)!==0,b;if((b=g)||(b=n!==null&&n.memoizedState===null?!1:(Jt.current&2)!==0),b&&(f=!0,s.flags&=-129),b=(s.flags&32)!==0,s.flags&=-33,n===null){if(At){if(f?xi(s):bi(),(n=Gt)?(n=k0(n,on),n=n!==null&&n.data!=="&"?n:null,n!==null&&(s.memoizedState={dehydrated:n,treeContext:fi!==null?{id:Mn,overflow:En}:null,retryLane:536870912,hydrationErrors:null}
vendor: 6,904 bytes, line 8
8,a=sp(n),a.return=s,s.child=a,pe=s,Gt=null)):n=null,n===null)throw mi(s);return uf(n)?s.lanes=32:s.lanes=536870912,null}var C=l.children;return l=l.fallback,f?(bi(),f=s.mode,C=ll({mode:"hidden",children:C},f),l=es(l,f,a,null),C.return=s,l.return=s,C.sibling=l,s.child=C,l=s.child,l.memoizedState=Th(a),l.childLanes=jh(n,b,a),s.memoizedState=Ch,ba(null,l)):(xi(s),_h(s,C))}var A=n.memoizedState;if(A!==null&&(C=A.dehydrated,C!==null)){if(g)s.flags&256?(xi(s),s.flags&=-257,s=Ah(n,s,a)):s.memoizedState!==null?(bi(),s.child=n.child,s.flags|=128,s=null):(bi(),C=l.fallback,f=s.mode,l=ll({mode:"visible",children:l.children},f),C=es(C,f,a,null),C.flags|=2,l.return=s,C.return=s,l.sibling=C,s.child=l,ls(s,n.child,null,a),l=s.child,l.memoizedState=Th(a),l.childLanes=jh(n,b,a),s.memoizedState=Ch,s=ba(null,l));else if(xi(s),uf(C)){if(b=C.nextSibling&&C.nextSibling.dataset,b)var P=b.dgst;b=P,l=Error(r(419)),l.stack="",l.digest=b,la({value:l,source:null,stack:null}),s=Ah(n,s,a)}else if(se||Xs(n,s,a,!1),b=(a&n.childLanes)!==0,se||b){if(b=Zt,b!==null&&(l=h1(b,a),l!==0&&l!==A.retryLane))throw A.retryLane=l,ts(n,l),Ve(b,n,l),Mh;cf(C)||vl(),s=Ah(n,s,a)}else cf(C)?(s.flags|=192,s.child=n.child,s=null):(n=A.treeContext,Gt=cn(C.nextSibling),pe=s,At=!0,di=null,on=!1,n!==null&&op(s,n),s=_h(s,l.children),s.flags|=4096);return s}return f?(bi(),C=l.fallback,f=s.mode,A=n.child,P=A.sibling,l=Un(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,P!==null?C=Un(P,C):(C=es(C,f,a,null),C.flags|=2),C.return=s,l.return=s,l.sibling=C,s.child=l,ba(null,l),l=s.child,C=n.child.memoizedState,C===null?C=Th(a):(f=C.cachePool,f!==null?(A=ne._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=dp(),C={baseLanes:C.baseLanes|a,cachePool:f}),l.memoizedState=C,l.childLanes=jh(n,b,a),s.memoizedState=Ch,ba(n.child,l)):(xi(s),a=n.child,n=a.sibling,a=Un(a,{mode:"visible",children:l.children}),a.return=s,a.sibling=null,n!==null&&(b=s.deletions,b===null?(s.deletions=[n],s.flags|=16):b.push(n)),s.child=a,s.memoizedState=null,a)}function _h(n,s){return s=ll({mode:"visible",children:s},n.mode),s.return=n,n.child=s}function ll(n,s){return n=Ke(22,n,null,s),n.lanes=0,n}function Ah(n,s,a){return ls(s,n.child,null,a),n=_h(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function Tg(n,s,a){n.lanes|=s;var l=n.alternate;l!==null&&(l.lanes|=s),Gu(n.return,s,a)}function Nh(n,s,a,l,f,g){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:f,treeForkCount:g}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=a,b.tailMode=f,b.treeForkCount=g)}function jg(n,s,a){var l=s.pendingProps,f=l.revealOrder,g=l.tail;l=l.children;var b=Jt.current,C=(b&2)!==0;if(C?(b=b&1|2,s.flags|=128):b&=1,J(Jt,b),ve(n,s,l,a),l=At?oa:0,!C&&n!==null&&(n.flags&128)!==0)t:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Tg(n,a,s);else if(n.tag===19)Tg(n,a,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break t;for(;n.sibling===null;){if(n.return===null||n.return===s)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(a=s.child,f=null;a!==null;)n=a.alternate,n!==null&&Wo(n)===null&&(f=a),a=a.sibling;a=f,a===null?(f=s.child,s.child=null):(f=a.sibling,a.sibling=null),Nh(s,!1,f,a,g,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,f=s.child,s.child=null;f!==null;){if(n=f.alternate,n!==null&&Wo(n)===null){s.child=f;break}n=f.sibling,f.sibling=a,a=f,f=n}Nh(s,!0,a,null,g,l);break;case"together":Nh(s,!1,null,null,void 0,l);break;default:s.memoizedState=null}return s.child}function Fn(n,s,a){if(n!==null&&(s.dependencies=n.dependencies),Mi|=s.lanes,(a&s.childLanes)===0)if(n!==null){if(Xs(n,s,a,!1),(a&s.childLanes)===0)return null}else return null;if(n!==null&&s.child!==n.child)throw Error(r(153));if(s.child!==null){for(n=s.child,a=Un(n,n.pendingProps),s.child=a,a.return=s;n.sibling!==null;)n=n.sibling,a=a.sibling=Un(n,n.pendingProps),a.return=s;a.sibling=null}return s.child}function Rh(n,s){return(n.lanes&s)!==0?!0:(n=n.dependencies,!!(n!==null&&Zo(n)))}function Uw(n,s,a){switch(s.tag){case 3:wt(s,s.stateNode.containerInfo),pi(s,ne,n.memoizedState.cache),ns();break;case 27:case 5:Tt(s);break;case 4:wt(s,s.stateNode.containerInfo);break;case 10:pi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,nh(s),null;break;case 13:var l=s.memoizedState;if(l!==null)return l.dehydrated!==null?(xi(s),s.flags|=128,null):(a&s.child.childLanes)!==0?Cg(n,s,a):(xi(s),n=Fn(n,s,a),n!==null?n.sibling:null);xi(s);break;case 19:var f=(n.flags&128)!==0;if(l=(a&s.childLanes)!==0,l||(Xs(n,s,a,!1),l=(a&s.childLanes)!==0),f){if(l)return jg(n,s,a);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),J(Jt,Jt.current),l)break;return null;case 22:return s.lanes=0,xg(n,s,a,s.pendingProps);case 24:pi(s,ne,n.memoizedState.cache)}return Fn(n,s,a)}function _g(n,s,a){if(n!==null)if(n.memoizedProps!==s.pendingProps)se=!0;else{if(!Rh(n,a)&&(s.flags&128)===0)return se=!1,Uw(n,s,a);se=(n.flags&131072)!==0}else se=!1,At&&(s.flags&1048576)!==0&&ap(s,oa,s.index);switch(s.lanes=0,s.tag){case 16:t:{var l=s.pendingProps;if(n=as(s.elementType),s.type=n,typeof n=="function")zu(n)?(l=us(n,l),s.tag=1,s=Mg(null,s,n,l,a)):(s.tag=0,s=Eh(null,s,n,l,a));else{if(n!=null){var f=n.$$typeof;if(f===D){s.tag=11,s=gg(null,s,n,l,a);break t}else if(f===Z){s.tag=14,s=vg(null,s,n,l,a);break t}}throw s=mt(n)||n,Error(r(306,s,""))}}return s;case 0:return Eh(n,s,s.type,s.pendingProps,a);case 1:return l=s.type,f=us(l,s.pendingProps),Mg(n,s,l,f,a);case 3:t:{if(wt(s,s.stateNode.containerInfo),n===null)throw Error(r(387));l=s.pendingProps;var g=s.memoizedState;f=g.element,Qu(n,s),pa(s,l,null,a);var b=s.memoizedState;if(l=b.cache,pi(s,ne,l),l!==g.cache&&Ku(s,[ne],a,!0),ma(),l=b.element,g.isDehydrated)if(g={element:l,isDehydrated:!1,cache:b.cache},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){s=Eg(n,s,l,a);break t}else if(l!==f){f=sn(Error(r(424)),s),la(f),s=Eg(n,s,l,a);break t}else for(n=s.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Gt=cn(n.firstChild),pe=s,At=!0,di=null,on=!0,a=xp(s,null,l,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ns(),l===f){s=Fn(n,s,a);break t}ve(n,s,l,a)}s=s.child}return s;case 26:return ol(n,s),n===null?(a=P0(s.type,null,s.pendingProps,null))?s.memoizedState=a:At||(a=s.type,n=s.pendingProps,l=El(vt.current).createElement(a),l[me]=s,l[Re]=n,ye(l,a,n),he(l),s.stateNode=l):s.memoizedState=P0(s.type,n.memoizedProps,s.pendingProps,n.memoizedState),null;case 27:return Tt(s),n===null&&At&&(l=s.stateNode=z0(s.type,s.pendingProps,vt.current),pe=s,on=!0,f=Gt,_i(s.type)?(hf=f,Gt=cn(l.firstChild)):Gt=f),ve(n,s,s.pendingProps.children,a),ol(n,s),n===null&&(s.flags|=4194304),s.child;
vendor: 4,561 bytes, line 8
8case 5:return n===null&&At&&((f=l=Gt)&&(l=g6(l,s.type,s.pendingProps,on),l!==null?(s.stateNode=l,pe=s,Gt=cn(l.firstChild),on=!1,f=!0):f=!1),f||mi(s)),Tt(s),f=s.type,g=s.pendingProps,b=n!==null?n.memoizedProps:null,l=g.children,af(f,g)?l=null:b!==null&&af(f,b)&&(s.flags|=32),s.memoizedState!==null&&(f=sh(n,s,Rw,null,null,a),La._currentValue=f),ol(n,s),ve(n,s,l,a),s.child;case 6:return n===null&&At&&((n=a=Gt)&&(a=v6(a,s.pendingProps,on),a!==null?(s.stateNode=a,pe=s,Gt=null,n=!0):n=!1),n||mi(s)),null;case 13:return Cg(n,s,a);case 4:return wt(s,s.stateNode.containerInfo),l=s.pendingProps,n===null?s.child=ls(s,null,l,a):ve(n,s,l,a),s.child;case 11:return gg(n,s,s.type,s.pendingProps,a);case 7:return ve(n,s,s.pendingProps,a),s.child;case 8:return ve(n,s,s.pendingProps.children,a),s.child;case 12:return ve(n,s,s.pendingProps.children,a),s.child;case 10:return l=s.pendingProps,pi(s,s.type,l.value),ve(n,s,l.children,a),s.child;case 9:return f=s.type._context,l=s.pendingProps.children,ss(s),f=ge(f),l=l(f),s.flags|=1,ve(n,s,l,a),s.child;case 14:return vg(n,s,s.type,s.pendingProps,a);case 15:return yg(n,s,s.type,s.pendingProps,a);case 19:return jg(n,s,a);case 31:return Pw(n,s,a);case 22:return xg(n,s,a,s.pendingProps);case 24:return ss(s),l=ge(ne),n===null?(f=Xu(),f===null&&(f=Zt,g=Fu(),f.pooledCache=g,g.refCount++,g!==null&&(f.pooledCacheLanes|=a),f=g),s.memoizedState={parent:l,cache:f},Wu(s),pi(s,ne,f)):((n.lanes&a)!==0&&(Qu(n,s),pa(s,null,null,a),ma()),f=n.memoizedState,g=s.memoizedState,f.parent!==l?(f={parent:l,cache:l},s.memoizedState=f,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=f),pi(s,ne,l)):(l=g.cache,pi(s,ne,l),l!==f.cache&&Ku(s,[ne],a,!0))),ve(n,s,s.pendingProps.children,a),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function qn(n){n.flags|=4}function Oh(n,s,a,l,f){if((s=(n.mode&32)!==0)&&(s=!1),s){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(e0())n.flags|=8192;else throw os=Fo,Iu}else n.flags&=-16777217}function Ag(n,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!G0(s))if(e0())n.flags|=8192;else throw os=Fo,Iu}function cl(n,s){s!==null&&(n.flags|=4),n.flags&16384&&(s=n.tag!==22?l1():536870912,n.lanes|=s,ar|=s)}function wa(n,s){if(!At)switch(n.tailMode){case"hidden":s=n.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Kt(n){var s=n.alternate!==null&&n.alternate.child===n.child,a=0,l=0;if(s)for(var f=n.child;f!==null;)a|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)a|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=a,s}function Hw(n,s,a){var l=s.pendingProps;switch(Uu(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(s),null;case 1:return Kt(s),null;case 3:return a=s.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),Yn(ne),xt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(qs(s)?qn(s):n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Zu())),Kt(s),null;case 26:var f=s.type,g=s.memoizedState;return n===null?(qn(s),g!==null?(Kt(s),Ag(s,g)):(Kt(s),Oh(s,f,null,l,a))):g?g!==n.memoizedState?(qn(s),Kt(s),Ag(s,g)):(Kt(s),s.flags&=-16777217):(n=n.memoizedProps,n!==l&&qn(s),Kt(s),Oh(s,f,n,l,a)),null;case 27:if(Nt(s),a=vt.current,f=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==l&&qn(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return Kt(s),null}n=et.current,qs(s)?lp(s):(n=z0(f,l,a),s.stateNode=n,qn(s))}return Kt(s),null;case 5:if(Nt(s),f=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==l&&qn(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return Kt(s),null}if(g=et.current,qs(s))lp(s);else{var b=El(vt.current);switch(g){case 1:g=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:g=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":g=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":g=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":g=b.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;
vendor: 26,856 bytes, line 8
8case"select":g=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?g.multiple=!0:l.size&&(g.size=l.size);break;default:g=typeof l.is=="string"?b.createElement(f,{is:l.is}):b.createElement(f)}}g[me]=s,g[Re]=l;t:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)g.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break t;for(;b.sibling===null;){if(b.return===null||b.return===s)break t;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=g;t:switch(ye(g,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&qn(s)}}return Kt(s),Oh(s,s.type,n===null?null:n.memoizedProps,s.pendingProps,a),null;case 6:if(n&&s.stateNode!=null)n.memoizedProps!==l&&qn(s);else{if(typeof l!="string"&&s.stateNode===null)throw Error(r(166));if(n=vt.current,qs(s)){if(n=s.stateNode,a=s.memoizedProps,l=null,f=pe,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[me]=s,n=!!(n.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||C0(n.nodeValue,a)),n||mi(s,!0)}else n=El(n).createTextNode(l),n[me]=s,s.stateNode=n}return Kt(s),null;case 31:if(a=s.memoizedState,n===null||n.memoizedState!==null){if(l=qs(s),a!==null){if(n===null){if(!l)throw Error(r(318));if(n=s.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[me]=s}else ns(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),n=!1}else a=Zu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return s.flags&256?(qe(s),s):(qe(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Kt(s),null;case 13:if(l=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=qs(s),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=s.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[me]=s}else ns(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),f=!1}else f=Zu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return s.flags&256?(qe(s),s):(qe(s),null)}return qe(s),(s.flags&128)!==0?(s.lanes=a,s):(a=l!==null,n=n!==null&&n.memoizedState!==null,a&&(l=s.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==f&&(l.flags|=2048)),a!==n&&a&&(s.child.flags|=8192),cl(s,s.updateQueue),Kt(s),null);case 4:return xt(),n===null&&tf(s.stateNode.containerInfo),Kt(s),null;case 10:return Yn(s.type),Kt(s),null;case 19:if(q(Jt),l=s.memoizedState,l===null)return Kt(s),null;if(f=(s.flags&128)!==0,g=l.rendering,g===null)if(f)wa(l,!1);else{if(Wt!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(g=Wo(n),g!==null){for(s.flags|=128,wa(l,!1),n=g.updateQueue,s.updateQueue=n,cl(s,n),s.subtreeFlags=0,n=a,a=s.child;a!==null;)ip(a,n),a=a.sibling;return J(Jt,Jt.current&1|2),At&&Hn(s,l.treeForkCount),s.child}n=n.sibling}l.tail!==null&&He()>ml&&(s.flags|=128,f=!0,wa(l,!1),s.lanes=4194304)}else{if(!f)if(n=Wo(g),n!==null){if(s.flags|=128,f=!0,n=n.updateQueue,s.updateQueue=n,cl(s,n),wa(l,!0),l.tail===null&&l.tailMode==="hidden"&&!g.alternate&&!At)return Kt(s),null}else 2*He()-l.renderingStartTime>ml&&a!==536870912&&(s.flags|=128,f=!0,wa(l,!1),s.lanes=4194304);l.isBackwards?(g.sibling=s.child,s.child=g):(n=l.last,n!==null?n.sibling=g:s.child=g,l.last=g)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=He(),n.sibling=null,a=Jt.current,J(Jt,f?a&1|2:a&1),At&&Hn(s,l.treeForkCount),n):(Kt(s),null);case 22:case 23:return qe(s),eh(),l=s.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(s.flags|=8192):l&&(s.flags|=8192),l?(a&536870912)!==0&&(s.flags&128)===0&&(Kt(s),s.subtreeFlags&6&&(s.flags|=8192)):Kt(s),a=s.updateQueue,a!==null&&cl(s,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),l=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(l=s.memoizedState.cachePool.pool),l!==a&&(s.flags|=2048),n!==null&&q(rs),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),Yn(ne),Kt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function Zw(n,s){switch(Uu(s),s.tag){case 1:return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return Yn(ne),xt(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 26:case 27:case 5:return Nt(s),null;case 31:if(s.memoizedState!==null){if(qe(s),s.alternate===null)throw Error(r(340));ns()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 13:if(qe(s),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(r(340));ns()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return q(Jt),null;case 4:return xt(),null;case 10:return Yn(s.type),null;case 22:case 23:return qe(s),eh(),n!==null&&q(rs),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 24:return Yn(ne),null;case 25:return null;default:return null}}function Ng(n,s){switch(Uu(s),s.tag){case 3:Yn(ne),xt();break;case 26:case 27:case 5:Nt(s);break;case 4:xt();break;case 31:s.memoizedState!==null&&qe(s);break;case 13:qe(s);break;case 19:q(Jt);break;case 10:Yn(s.type);break;case 22:case 23:qe(s),eh(),n!==null&&q(rs);break;case 24:Yn(ne)}}function Sa(n,s){try{var a=s.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var f=l.next;a=f;do{if((a.tag&n)===n){l=void 0;var g=a.create,b=a.inst;l=g(),b.destroy=l}a=a.next}while(a!==f)}}catch(C){Vt(s,s.return,C)}}function wi(n,s,a){try{var l=s.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var g=f.next;l=g;do{if((l.tag&n)===n){var b=l.inst,C=b.destroy;if(C!==void 0){b.destroy=void 0,f=s;var A=a,P=C;try{P()}catch(F){Vt(f,A,F)}}}l=l.next}while(l!==g)}}catch(F){Vt(s,s.return,F)}}function Rg(n){var s=n.updateQueue;if(s!==null){var a=n.stateNode;try{wp(s,a)}catch(l){Vt(n,n.return,l)}}}function Og(n,s,a){a.props=us(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(l){Vt(n,s,l)}}function Ma(n,s){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof a=="function"?n.refCleanup=a(l):a.current=l}}catch(f){Vt(n,s,f)}}function Cn(n,s){var a=n.ref,l=n.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(f){Vt(n,s,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(f){Vt(n,s,f)}else a.current=null}function kg(n){var s=n.type,a=n.memoizedProps,l=n.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(f){Vt(n,n.return,f)}}function kh(n,s,a){try{var l=n.stateNode;u6(l,n.type,a,s),l[Re]=s}catch(f){Vt(n,n.return,f)}}function Dg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&_i(n.type)||n.tag===4}function Dh(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||Dg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&_i(n.type)||n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Lh(n,s,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(n),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Bn));else if(l!==4&&(l===27&&_i(n.type)&&(a=n.stateNode,s=null),n=n.child,n!==null))for(Lh(n,s,a),n=n.sibling;n!==null;)Lh(n,s,a),n=n.sibling}function ul(n,s,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,s?a.insertBefore(n,s):a.appendChild(n);else if(l!==4&&(l===27&&_i(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(ul(n,s,a),n=n.sibling;n!==null;)ul(n,s,a),n=n.sibling}function Lg(n){var s=n.stateNode,a=n.memoizedProps;try{for(var l=n.type,f=s.attributes;f.length;)s.removeAttributeNode(f[0]);ye(s,l,a),s[me]=n,s[Re]=a}catch(g){Vt(n,n.return,g)}}var Xn=!1,re=!1,zh=!1,zg=typeof WeakSet=="function"?WeakSet:Set,fe=null;function Yw(n,s){if(n=n.containerInfo,sf=Rl,n=X1(n),Au(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else t:{a=(a=n.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var f=l.anchorOffset,g=l.focusNode;l=l.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break t}var b=0,C=-1,A=-1,P=0,F=0,I=n,H=null;e:for(;;){for(var G;I!==a||f!==0&&I.nodeType!==3||(C=b+f),I!==g||l!==0&&I.nodeType!==3||(A=b+l),I.nodeType===3&&(b+=I.nodeValue.length),(G=I.firstChild)!==null;)H=I,I=G;for(;;){if(I===n)break e;if(H===a&&++P===f&&(C=b),H===g&&++F===l&&(A=b),(G=I.nextSibling)!==null)break;I=H,H=I.parentNode}I=G}a=C===-1||A===-1?null:{start:C,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(rf={focusedElem:n,selectionRange:a},Rl=!1,fe=s;fe!==null;)if(s=fe,n=s.child,(s.subtreeFlags&1028)!==0&&n!==null)n.return=s,fe=n;else for(;fe!==null;){switch(s=fe,g=s.alternate,n=s.flags,s.tag){case 0:if((n&4)!==0&&(n=s.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)f=n[a],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,a=s,f=g.memoizedProps,g=g.memoizedState,l=a.stateNode;try{var st=us(a.type,f);n=l.getSnapshotBeforeUpdate(st,g),l.__reactInternalSnapshotBeforeUpdate=n}catch(pt){Vt(a,a.return,pt)}}break;case 3:if((n&1024)!==0){if(n=s.stateNode.containerInfo,a=n.nodeType,a===9)lf(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":lf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=s.sibling,n!==null){n.return=s.return,fe=n;break}fe=s.return}}function Vg(n,s,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Wn(n,a),l&4&&Sa(5,a);break;case 1:if(Wn(n,a),l&4)if(n=a.stateNode,s===null)try{n.componentDidMount()}catch(b){Vt(a,a.return,b)}else{var f=us(a.type,s.memoizedProps);s=s.memoizedState;try{n.componentDidUpdate(f,s,n.__reactInternalSnapshotBeforeUpdate)}catch(b){Vt(a,a.return,b)}}l&64&&Rg(a),l&512&&Ma(a,a.return);break;case 3:if(Wn(n,a),l&64&&(n=a.updateQueue,n!==null)){if(s=null,a.child!==null)switch(a.child.tag){case 27:case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}try{wp(n,s)}catch(b){Vt(a,a.return,b)}}break;case 27:s===null&&l&4&&Lg(a);case 26:case 5:Wn(n,a),s===null&&l&4&&kg(a),l&512&&Ma(a,a.return);break;case 12:Wn(n,a);break;case 31:Wn(n,a),l&4&&Ug(n,a);break;case 13:Wn(n,a),l&4&&Hg(n,a),l&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=Jw.bind(null,a),y6(n,a))));break;case 22:if(l=a.memoizedState!==null||Xn,!l){s=s!==null&&s.memoizedState!==null||re,f=Xn;var g=re;Xn=l,(re=s)&&!g?Qn(n,a,(a.subtreeFlags&8772)!==0):Wn(n,a),Xn=f,re=g}break;case 30:break;default:Wn(n,a)}}function Bg(n){var s=n.alternate;s!==null&&(n.alternate=null,Bg(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&fu(s)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ft=null,ke=!1;function In(n,s,a){for(a=a.child;a!==null;)Pg(n,s,a),a=a.sibling}function Pg(n,s,a){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(qr,a)}catch{}switch(a.tag){case 26:re||Cn(a,s),In(n,s,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:re||Cn(a,s);var l=Ft,f=ke;_i(a.type)&&(Ft=a.stateNode,ke=!1),In(n,s,a),Oa(a.stateNode),Ft=l,ke=f;break;case 5:re||Cn(a,s);case 6:if(l=Ft,f=ke,Ft=null,In(n,s,a),Ft=l,ke=f,Ft!==null)if(ke)try{(Ft.nodeType===9?Ft.body:Ft.nodeName==="HTML"?Ft.ownerDocument.body:Ft).removeChild(a.stateNode)}catch(g){Vt(a,s,g)}else try{Ft.removeChild(a.stateNode)}catch(g){Vt(a,s,g)}break;case 18:Ft!==null&&(ke?(n=Ft,R0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),mr(n)):R0(Ft,a.stateNode));break;case 4:l=Ft,f=ke,Ft=a.stateNode.containerInfo,ke=!0,In(n,s,a),Ft=l,ke=f;break;case 0:case 11:case 14:case 15:wi(2,a,s),re||wi(4,a,s),In(n,s,a);break;case 1:re||(Cn(a,s),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Og(a,s,l)),In(n,s,a);break;case 21:In(n,s,a);break;case 22:re=(l=re)||a.memoizedState!==null,In(n,s,a),re=l;break;default:In(n,s,a)}}function Ug(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{mr(n)}catch(a){Vt(s,s.return,a)}}}function Hg(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{mr(n)}catch(a){Vt(s,s.return,a)}}function Gw(n){switch(n.tag){case 31:case 13:case 19:var s=n.stateNode;return s===null&&(s=n.stateNode=new zg),s;case 22:return n=n.stateNode,s=n._retryCache,s===null&&(s=n._retryCache=new zg),s;default:throw Error(r(435,n.tag))}}function hl(n,s){var a=Gw(n);s.forEach(function(l){if(!a.has(l)){a.add(l);var f=$w.bind(null,n,l);l.then(f,f)}})}function De(n,s){var a=s.deletions;if(a!==null)for(var l=0;l<a.length;l++){var f=a[l],g=n,b=s,C=b;t:for(;C!==null;){switch(C.tag){case 27:if(_i(C.type)){Ft=C.stateNode,ke=!1;break t}break;case 5:Ft=C.stateNode,ke=!1;break t;case 3:case 4:Ft=C.stateNode.containerInfo,ke=!0;break t}C=C.return}if(Ft===null)throw Error(r(160));Pg(g,b,f),Ft=null,ke=!1,g=f.alternate,g!==null&&(g.return=null),f.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)Zg(s,n),s=s.sibling}var mn=null;function Zg(n,s){var a=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:De(s,n),Le(n),l&4&&(wi(3,n,n.return),Sa(3,n),wi(5,n,n.return));break;case 1:De(s,n),Le(n),l&512&&(re||a===null||Cn(a,a.return)),l&64&&Xn&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var f=mn;if(De(s,n),Le(n),l&512&&(re||a===null||Cn(a,a.return)),l&4){var g=a!==null?a.memoizedState:null;if(l=n.memoizedState,a===null)if(l===null)if(n.stateNode===null){t:{l=n.type,a=n.memoizedProps,f=f.ownerDocument||f;e:switch(l){case"title":g=f.getElementsByTagName("title")[0],(!g||g[Wr]||g[me]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=f.createElement(l),f.head.insertBefore(g,f.querySelector("head > title"))),ye(g,l,a),g[me]=n,he(g),l=g;break t;case"link":var b=Z0("link","href",f).get(l+(a.href||""));if(b){for(var C=0;C<b.length;C++)if(g=b[C],g.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&g.getAttribute("rel")===(a.rel==null?null:a.rel)&&g.getAttribute("title")===(a.title==null?null:a.title)&&g.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(C,1);break e}}g=f.createElement(l),ye(g,l,a),f.head.appendChild(g);break;case"meta":if(b=Z0("meta","content",f).get(l+(a.content||""))){for(C=0;C<b.length;C++)if(g=b[C],g.getAttribute("content")===(a.content==null?null:""+a.content)&&g.getAttribute("name")===(a.name==null?null:a.name)&&g.getAttribute("property")===(a.property==null?null:a.property)&&g.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&g.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(C,1);break e}}g=f.createElement(l),ye(g,l,a),f.head.appendChild(g);break;default:throw Error(r(468,l))}g[me]=n,he(g),l=g}n.stateNode=l}else Y0(f,n.type,n.stateNode);else n.stateNode=H0(f,l,n.memoizedProps);else g!==l?(g===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):g.count--,l===null?Y0(f,n.type,n.stateNode):H0(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&kh(n,n.memoizedProps,a.memoizedProps)}break;case 27:De(s,n),Le(n),l&512&&(re||a===null||Cn(a,a.return)),a!==null&&l&4&&kh(n,n.memoizedProps,a.memoizedProps);break;case 5:if(De(s,n),Le(n),l&512&&(re||a===null||Cn(a,a.return)),n.flags&32){f=n.stateNode;try{Vs(f,"")}catch(st){Vt(n,n.return,st)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,kh(n,f,a!==null?a.memoizedProps:f)),l&1024&&(zh=!0);break;case 6:if(De(s,n),Le(n),l&4){if(n.stateNode===null)throw Error(r(162));l=n.memoizedProps,a=n.stateNode;try{a.nodeValue=l}catch(st){Vt(n,n.return,st)}}break;case 3:if(jl=null,f=mn,mn=Cl(s.containerInfo),De(s,n),mn=f,Le(n),l&4&&a!==null&&a.memoizedState.isDehydrated)try{mr(s.containerInfo)}catch(st){Vt(n,n.return,st)}zh&&(zh=!1,Yg(n));break;case 4:l=mn,mn=Cl(n.stateNode.containerInfo),De(s,n),Le(n),mn=l;break;case 12:De(s,n),Le(n);break;case 31:De(s,n),Le(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,hl(n,l)));break;case 13:De(s,n),Le(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(dl=He()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,hl(n,l)));break;case 22:f=n.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,P=Xn,F=re;if(Xn=P||f,re=F||A,De(s,n),re=F,Xn=P,Le(n),l&8192)t:for(s=n.stateNode,s._visibility=f?s._visibility&-2:s._visibility|1,f&&(a===null||A||Xn||re||hs(n)),a=null,s=n;;){if(s.tag===5||s.tag===26){if(a===null){A=a=s;try{if(g=A.stateNode,f)b=g.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{C=A.stateNode;var I=A.memoizedProps.style,H=I!=null&&I.hasOwnProperty("display")?I.display:null;C.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(st){Vt(A,A.return,st)}}}else if(s.tag===6){if(a===null){A=s;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(st){Vt(A,A.return,st)}}}else if(s.tag===18){if(a===null){A=s;try{var G=A.stateNode;f?O0(G,!0):O0(A.stateNode,!1)}catch(st){Vt(A,A.return,st)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===n)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break t;for(;s.sibling===null;){if(s.return===null||s.return===n)break t;a===s&&(a=null),s=s.return}a===s&&(a=null),s.sibling.return=s.return,s=s.sibling}l&4&&(l=n.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,hl(n,a))));break;case 19:De(s,n),Le(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,hl(n,l)));break;case 30:break;case 21:break;default:De(s,n),Le(n)}}function Le(n){var s=n.flags;if(s&2){try{for(var a,l=n.return;l!==null;){if(Dg(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var f=a.stateNode,g=Dh(n);ul(n,g,f);break;case 5:var b=a.stateNode;a.flags&32&&(Vs(b,""),a.flags&=-33);var C=Dh(n);ul(n,C,b);break;case 3:case 4:var A=a.stateNode.containerInfo,P=Dh(n);Lh(n,P,A);break;default:throw Error(r(161))}}catch(F){Vt(n,n.return,F)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function Yg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var s=n;Yg(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),n=n.sibling}}function Wn(n,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Vg(n,s.alternate,s),s=s.sibling}function hs(n){for(n=n.child;n!==null;){var s=n;switch(s.tag){case 0:case 11:case 14:case 15:wi(4,s,s.return),hs(s);break;case 1:Cn(s,s.return);var a=s.stateNode;typeof a.componentWillUnmount=="function"&&Og(s,s.return,a),hs(s);break;case 27:Oa(s.stateNode);case 26:case 5:Cn(s,s.return),hs(s);break;case 22:s.memoizedState===null&&hs(s);break;case 30:hs(s);break;default:hs(s)}n=n.sibling}}function Qn(n,s,a){for(a=a&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var l=s.alternate,f=n,g=s,b=g.flags;switch(g.tag){case 0:case 11:case 15:Qn(f,g,a),Sa(4,g);break;case 1:if(Qn(f,g,a),l=g,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(P){Vt(l,l.return,P)}if(l=g,f=l.updateQueue,f!==null){var C=l.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)bp(A[f],C)}catch(P){Vt(l,l.return,P)}}a&&b&64&&Rg(g),Ma(g,g.return);break;case 27:Lg(g);case 26:case 5:Qn(f,g,a),a&&l===null&&b&4&&kg(g),Ma(g,g.return);break;case 12:Qn(f,g,a);break;case 31:Qn(f,g,a),a&&b&4&&Ug(f,g);break;case 13:Qn(f,g,a),a&&b&4&&Hg(f,g);break;case 22:g.memoizedState===null&&Qn(f,g,a),Ma(g,g.return);break;case 30:break;default:Qn(f,g,a)}s=s.sibling}}function Vh(n,s){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(n=s.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&ca(a))}function Bh(n,s){n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&ca(n))}function pn(n,s,a,l){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Gg(n,s,a,l),s=s.sibling}function Gg(n,s,a,l){var f=s.flags;switch(s.tag){case 0:case 11:case 15:pn(n,s,a,l),f&2048&&Sa(9,s);break;case 1:pn(n,s,a,l);break;case 3:pn(n,s,a,l),f&2048&&(n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&ca(n)));break;case 12:if(f&2048){pn(n,s,a,l),n=s.stateNode;try{var g=s.memoizedProps,b=g.id,C=g.onPostCommit;typeof C=="function"&&C(b,s.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(A){Vt(s,s.return,A)}}else pn(n,s,a,l);break;case 31:pn(n,s,a,l);break;case 13:pn(n,s,a,l);break;case 23:break;case 22:g=s.stateNode,b=s.alternate,s.memoizedState!==null?g._visibility&2?pn(n,s,a,l):Ea(n,s):g._visibility&2?pn(n,s,a,l):(g._visibility|=2,ir(n,s,a,l,(s.subtreeFlags&10256)!==0||!1)),f&2048&&Vh(b,s);break;case 24:pn(n,s,a,l),f&2048&&Bh(s.alternate,s);break;default:pn(n,s,a,l)}}function ir(n,s,a,l,f){for(f=f&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var g=n,b=s,C=a,A=l,P=b.flags;switch(b.tag){case 0:case 11:case 15:ir(g,b,C,A,f),Sa(8,b);break;case 23:break;case 22:var F=b.stateNode;b.memoizedState!==null?F._visibility&2?ir(g,b,C,A,f):Ea(g,b):(F._visibility|=2,ir(g,b,C,A,f)),f&&P&2048&&Vh(b.alternate,b);break;case 24:ir(g,b,C,A,f),f&&P&2048&&Bh(b.alternate,b);break;default:ir(g,b,C,A,f)}s=s.sibling}}function Ea(n,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var a=n,l=s,f=l.flags;switch(l.tag){case 22:Ea(a,l),f&2048&&Vh(l.alternate,l);break;case 24:Ea(a,l),f&2048&&Bh(l.alternate,l);break;default:Ea(a,l)}s=s.sibling}}var Ca=8192;function sr(n,s,a){if(n.subtreeFlags&Ca)for(n=n.child;n!==null;)Kg(n,s,a),n=n.sibling}function Kg(n,s,a){switch(n.tag){case 26:sr(n,s,a),n.flags&Ca&&n.memoizedState!==null&&N6(a,mn,n.memoizedState,n.memoizedProps);break;case 5:sr(n,s,a);break;case 3:case 4:var l=mn;mn=Cl(n.stateNode.containerInfo),sr(n,s,a),mn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=Ca,Ca=16777216,sr(n,s,a),Ca=l):sr(n,s,a));break;default:sr(n,s,a)}}function Fg(n){var s=n.alternate;if(s!==null&&(n=s.child,n!==null)){s.child=null;do s=n.sibling,n.sibling=null,n=s;while(n!==null)}}function Ta(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var l=s[a];fe=l,Xg(l,n)}Fg(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)qg(n),n=n.sibling}function qg(n){switch(n.tag){case 0:case 11:case 15:Ta(n),n.flags&2048&&wi(9,n,n.return);break;case 3:Ta(n);break;case 12:Ta(n);break;case 22:var s=n.stateNode;n.memoizedState!==null&&s._visibility&2&&(n.return===null||n.return.tag!==13)?(s._visibility&=-3,fl(n)):Ta(n);break;default:Ta(n)}}function fl(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var l=s[a];fe=l,Xg(l,n)}Fg(n)}for(n=n.child;n!==null;){switch(s=n,s.tag){case 0:case 11:case 15:wi(8,s,s.return),fl(s);break;case 22:a=s.stateNode,a._visibility&2&&(a._visibility&=-3,fl(s));break;default:fl(s)}n=n.sibling}}function Xg(n,s){for(;fe!==null;){var a=fe;switch(a.tag){case 0:case 11:case 15:wi(8,a,s);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ca(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,fe=l;else t:for(a=n;fe!==null;){l=fe;var f=l.sibling,g=l.return;if(Bg(l),l===a){fe=null;break t}if(f!==null){f.return=g,fe=f;break t}fe=g}}}var Kw={getCacheForType:function(n){var s=ge(ne),a=s.data.get(n);return a===void 0&&(a=n(),s.data.set(n,a)),a},cacheSignal:function(){return ge(ne).controller.signal}},Fw=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Zt=null,Et=null,jt=0,zt=0,Xe=null,Si=!1,rr=!1,Ph=!1,Jn=0,Wt=0,Mi=0,fs=0,Uh=0,Ie=0,ar=0,ja=null,ze=null,Hh=!1,dl=0,Ig=0,ml=1/0,pl=null,Ei=null,le=0,Ci=null,or=null,$n=0,Zh=0,Yh=null,Wg=null,_a=0,Gh=null;function We(){return(Dt&2)!==0&&jt!==0?jt&-jt:k.T!==null?Wh():f1()}function Qg(){if(Ie===0)if((jt&536870912)===0||At){var n=Mo;Mo<<=1,(Mo&3932160)===0&&(Mo=262144),Ie=n}else Ie=536870912;return n=Fe.current,n!==null&&(n.flags|=32),Ie}function Ve(n,s,a){(n===Zt&&(zt===2||zt===9)||n.cancelPendingCommit!==null)&&(lr(n,0),Ti(n,jt,Ie,!1)),Ir(n,a),((Dt&2)===0||n!==Zt)&&(n===Zt&&((Dt&2)===0&&(fs|=a),Wt===4&&Ti(n,jt,Ie,!1)),Tn(n))}function Jg(n,s,a){if((Dt&6)!==0)throw Error(r(327));var l=!a&&(s&127)===0&&(s&n.expiredLanes)===0||Xr(n,s),f=l?Iw(n,s):Fh(n,s,!0),g=l;do{if(f===0){rr&&!l&&Ti(n,s,0,!1);break}else{if(a=n.current.alternate,g&&!qw(a)){f=Fh(n,s,!1),g=!1;continue}if(f===2){if(g=s,n.errorRecoveryDisabledLanes&g)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){s=b;t:{var C=n;f=ja;var A=C.current.memoizedState.isDehydrated;if(A&&(lr(C,b).flags|=256),b=Fh(C,b,!1),b!==2){if(Ph&&!A){C.errorRecoveryDisabledLanes|=g,fs|=g,f=4;break t}g=ze,ze=f,g!==null&&(ze===null?ze=g:ze.push.apply(ze,g))}f=b}if(g=!1,f!==2)continue}}if(f===1){lr(n,0),Ti(n,s,0,!0);break}t:{switch(l=n,g=f,g){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ti(l,s,Ie,!Si);break t;case 2:ze=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(f=dl+300-He(),10<f)){if(Ti(l,s,Ie,!Si),Co(l,0,!0)!==0)break t;$n=s,l.timeoutHandle=A0($g.bind(null,l,a,ze,pl,Hh,s,Ie,fs,ar,Si,g,"Throttled",-0,0),f);break t}$g(l,a,ze,pl,Hh,s,Ie,fs,ar,Si,g,null,-0,0)}}break}while(!0);Tn(n)}function $g(n,s,a,l,f,g,b,C,A,P,F,I,H,G){if(n.timeoutHandle=-1,I=s.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},Kg(s,g,I);var st=(g&62914560)===g?dl-He():(g&4194048)===g?Ig-He():0;if(st=R6(I,st),st!==null){$n=g,n.cancelPendingCommit=st(o0.bind(null,n,s,g,a,l,f,b,C,A,F,I,null,H,G)),Ti(n,g,b,!P);return}}o0(n,s,g,a,l,f,b,C,A)}function qw(n){for(var s=n;;){var a=s.tag;if((a===0||a===11||a===15)&&s.flags&16384&&(a=s.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var f=a[l],g=f.getSnapshot;f=f.value;try{if(!Ge(g(),f))return!1}catch{return!1}}
vendor: 14,561 bytes, line 8
8if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ti(n,s,a,l){s&=~Uh,s&=~fs,n.suspendedLanes|=s,n.pingedLanes&=~s,l&&(n.warmLanes|=s),l=n.expirationTimes;for(var f=s;0<f;){var g=31-Ye(f),b=1<<g;l[g]=-1,f&=~b}a!==0&&c1(n,a,s)}function gl(){return(Dt&6)===0?(Aa(0),!1):!0}function Kh(){if(Et!==null){if(zt===0)var n=Et.return;else n=Et,Zn=is=null,oh(n),Js=null,ha=0,n=Et;for(;n!==null;)Ng(n.alternate,n),n=n.return;Et=null}}function lr(n,s){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,d6(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),$n=0,Kh(),Zt=n,Et=a=Un(n.current,null),jt=s,zt=0,Xe=null,Si=!1,rr=Xr(n,s),Ph=!1,ar=Ie=Uh=fs=Mi=Wt=0,ze=ja=null,Hh=!1,(s&8)!==0&&(s|=s&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=s;0<l;){var f=31-Ye(l),g=1<<f;s|=n[f],l&=~g}return Jn=s,Vo(),a}function t0(n,s){bt=null,k.H=xa,s===Qs||s===Ko?(s=gp(),zt=3):s===Iu?(s=gp(),zt=4):zt=s===Mh?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Xe=s,Et===null&&(Wt=1,rl(n,sn(s,n.current)))}function e0(){var n=Fe.current;return n===null?!0:(jt&4194048)===jt?ln===null:(jt&62914560)===jt||(jt&536870912)!==0?n===ln:!1}function n0(){var n=k.H;return k.H=xa,n===null?xa:n}function i0(){var n=k.A;return k.A=Kw,n}function vl(){Wt=4,Si||(jt&4194048)!==jt&&Fe.current!==null||(rr=!0),(Mi&134217727)===0&&(fs&134217727)===0||Zt===null||Ti(Zt,jt,Ie,!1)}function Fh(n,s,a){var l=Dt;Dt|=2;var f=n0(),g=i0();(Zt!==n||jt!==s)&&(pl=null,lr(n,s)),s=!1;var b=Wt;t:do try{if(zt!==0&&Et!==null){var C=Et,A=Xe;switch(zt){case 8:Kh(),b=6;break t;case 3:case 2:case 9:case 6:Fe.current===null&&(s=!0);var P=zt;if(zt=0,Xe=null,cr(n,C,A,P),a&&rr){b=0;break t}break;default:P=zt,zt=0,Xe=null,cr(n,C,A,P)}}Xw(),b=Wt;break}catch(F){t0(n,F)}while(!0);return s&&n.shellSuspendCounter++,Zn=is=null,Dt=l,k.H=f,k.A=g,Et===null&&(Zt=null,jt=0,Vo()),b}function Xw(){for(;Et!==null;)s0(Et)}function Iw(n,s){var a=Dt;Dt|=2;var l=n0(),f=i0();Zt!==n||jt!==s?(pl=null,ml=He()+500,lr(n,s)):rr=Xr(n,s);t:do try{if(zt!==0&&Et!==null){s=Et;var g=Xe;e:switch(zt){case 1:zt=0,Xe=null,cr(n,s,g,1);break;case 2:case 9:if(mp(g)){zt=0,Xe=null,r0(s);break}s=function(){zt!==2&&zt!==9||Zt!==n||(zt=7),Tn(n)},g.then(s,s);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:mp(g)?(zt=0,Xe=null,r0(s)):(zt=0,Xe=null,cr(n,s,g,7));break;case 5:var b=null;switch(Et.tag){case 26:b=Et.memoizedState;case 5:case 27:var C=Et;if(b?G0(b):C.stateNode.complete){zt=0,Xe=null;var A=C.sibling;if(A!==null)Et=A;else{var P=C.return;P!==null?(Et=P,yl(P)):Et=null}break e}}zt=0,Xe=null,cr(n,s,g,5);break;case 6:zt=0,Xe=null,cr(n,s,g,6);break;case 8:Kh(),Wt=6;break t;default:throw Error(r(462))}}Ww();break}catch(F){t0(n,F)}while(!0);return Zn=is=null,k.H=l,k.A=f,Dt=a,Et!==null?0:(Zt=null,jt=0,Vo(),Wt)}function Ww(){for(;Et!==null&&!x4();)s0(Et)}function s0(n){var s=_g(n.alternate,n,Jn);n.memoizedProps=n.pendingProps,s===null?yl(n):Et=s}function r0(n){var s=n,a=s.alternate;switch(s.tag){case 15:case 0:s=Sg(a,s,s.pendingProps,s.type,void 0,jt);break;case 11:s=Sg(a,s,s.pendingProps,s.type.render,s.ref,jt);break;case 5:oh(s);default:Ng(a,s),s=Et=ip(s,Jn),s=_g(a,s,Jn)}n.memoizedProps=n.pendingProps,s===null?yl(n):Et=s}function cr(n,s,a,l){Zn=is=null,oh(s),Js=null,ha=0;var f=s.return;try{if(Bw(n,f,s,a,jt)){Wt=1,rl(n,sn(a,n.current)),Et=null;return}}catch(g){if(f!==null)throw Et=f,g;Wt=1,rl(n,sn(a,n.current)),Et=null;return}s.flags&32768?(At||l===1?n=!0:rr||(jt&536870912)!==0?n=!1:(Si=n=!0,(l===2||l===9||l===3||l===6)&&(l=Fe.current,l!==null&&l.tag===13&&(l.flags|=16384))),a0(s,n)):yl(s)}function yl(n){var s=n;do{if((s.flags&32768)!==0){a0(s,Si);return}n=s.return;var a=Hw(s.alternate,s,Jn);if(a!==null){Et=a;return}if(s=s.sibling,s!==null){Et=s;return}Et=s=n}while(s!==null);Wt===0&&(Wt=5)}function a0(n,s){do{var a=Zw(n.alternate,n);if(a!==null){a.flags&=32767,Et=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!s&&(n=n.sibling,n!==null)){Et=n;return}Et=n=a}while(n!==null);Wt=6,Et=null}function o0(n,s,a,l,f,g,b,C,A){n.cancelPendingCommit=null;do xl();while(le!==0);if((Dt&6)!==0)throw Error(r(327));if(s!==null){if(s===n.current)throw Error(r(177));if(g=s.lanes|s.childLanes,g|=Du,A4(n,a,g,b,C,A),n===Zt&&(Et=Zt=null,jt=0),or=s,Ci=n,$n=a,Zh=g,Yh=f,Wg=l,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,t6(wo,function(){return f0(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,f=Y.p,Y.p=2,b=Dt,Dt|=4;try{Yw(n,s,a)}finally{Dt=b,Y.p=f,k.T=l}}le=1,l0(),c0(),u0()}}function l0(){if(le===1){le=0;var n=Ci,s=or,a=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var l=Y.p;Y.p=2;var f=Dt;Dt|=4;try{Zg(s,n);var g=rf,b=X1(n.containerInfo),C=g.focusedElem,A=g.selectionRange;if(b!==C&&C&&C.ownerDocument&&q1(C.ownerDocument.documentElement,C)){if(A!==null&&Au(C)){var P=A.start,F=A.end;if(F===void 0&&(F=P),"selectionStart"in C)C.selectionStart=P,C.selectionEnd=Math.min(F,C.value.length);else{var I=C.ownerDocument||document,H=I&&I.defaultView||window;if(H.getSelection){var G=H.getSelection(),st=C.textContent.length,pt=Math.min(A.start,st),Ut=A.end===void 0?pt:Math.min(A.end,st);!G.extend&&pt>Ut&&(b=Ut,Ut=pt,pt=b);var L=F1(C,pt),O=F1(C,Ut);if(L&&O&&(G.rangeCount!==1||G.anchorNode!==L.node||G.anchorOffset!==L.offset||G.focusNode!==O.node||G.focusOffset!==O.offset)){var B=I.createRange();B.setStart(L.node,L.offset),G.removeAllRanges(),pt>Ut?(G.addRange(B),G.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),G.addRange(B))}}}}for(I=[],G=C;G=G.parentNode;)G.nodeType===1&&I.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<I.length;C++){var X=I[C];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Rl=!!sf,rf=sf=null}finally{Dt=f,Y.p=l,k.T=a}}n.current=s,le=2}}function c0(){if(le===2){le=0;var n=Ci,s=or,a=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var l=Y.p;Y.p=2;var f=Dt;Dt|=4;try{Vg(n,s.alternate,s)}finally{Dt=f,Y.p=l,k.T=a}}le=3}}function u0(){if(le===4||le===3){le=0,b4();var n=Ci,s=or,a=$n,l=Wg;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?le=5:(le=0,or=Ci=null,h0(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(Ei=null),uu(a),s=s.stateNode,Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(qr,s,void 0,(s.current.flags&128)===128)}catch{}if(l!==null){s=k.T,f=Y.p,Y.p=2,k.T=null;try{for(var g=n.onRecoverableError,b=0;b<l.length;b++){var C=l[b];g(C.value,{componentStack:C.stack})}}finally{k.T=s,Y.p=f}}($n&3)!==0&&xl(),Tn(n),f=n.pendingLanes,(a&261930)!==0&&(f&42)!==0?n===Gh?_a++:(_a=0,Gh=n):_a=0,Aa(0)}}function h0(n,s){(n.pooledCacheLanes&=s)===0&&(s=n.pooledCache,s!=null&&(n.pooledCache=null,ca(s)))}function xl(){return l0(),c0(),u0(),f0()}function f0(){if(le!==5)return!1;var n=Ci,s=Zh;Zh=0;var a=uu($n),l=k.T,f=Y.p;try{Y.p=32>a?32:a,k.T=null,a=Yh,Yh=null;var g=Ci,b=$n;if(le=0,or=Ci=null,$n=0,(Dt&6)!==0)throw Error(r(331));var C=Dt;if(Dt|=4,qg(g.current),Gg(g,g.current,b,a),Dt=C,Aa(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(qr,g)}catch{}return!0}finally{Y.p=f,k.T=l,h0(n,s)}}function d0(n,s,a){s=sn(a,s),s=Sh(n.stateNode,s,2),n=yi(n,s,2),n!==null&&(Ir(n,2),Tn(n))}function Vt(n,s,a){if(n.tag===3)d0(n,n,a);else for(;s!==null;){if(s.tag===3){d0(s,n,a);break}else if(s.tag===1){var l=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ei===null||!Ei.has(l))){n=sn(a,n),a=mg(2),l=yi(s,a,2),l!==null&&(pg(a,l,s,n),Ir(l,2),Tn(l));break}}s=s.return}}function qh(n,s,a){var l=n.pingCache;if(l===null){l=n.pingCache=new Fw;var f=new Set;l.set(s,f)}else f=l.get(s),f===void 0&&(f=new Set,l.set(s,f));f.has(a)||(Ph=!0,f.add(a),n=Qw.bind(null,n,s,a),s.then(n,n))}function Qw(n,s,a){var l=n.pingCache;l!==null&&l.delete(s),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,Zt===n&&(jt&a)===a&&(Wt===4||Wt===3&&(jt&62914560)===jt&&300>He()-dl?(Dt&2)===0&&lr(n,0):Uh|=a,ar===jt&&(ar=0)),Tn(n)}function m0(n,s){s===0&&(s=l1()),n=ts(n,s),n!==null&&(Ir(n,s),Tn(n))}function Jw(n){var s=n.memoizedState,a=0;s!==null&&(a=s.retryLane),m0(n,a)}function $w(n,s){var a=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(a=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(s),m0(n,a)}function t6(n,s){return au(n,s)}var bl=null,ur=null,Xh=!1,wl=!1,Ih=!1,ji=0;function Tn(n){n!==ur&&n.next===null&&(ur===null?bl=ur=n:ur=ur.next=n),wl=!0,Xh||(Xh=!0,n6())}function Aa(n,s){if(!Ih&&wl){Ih=!0;do for(var a=!1,l=bl;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var g=0;else{var b=l.suspendedLanes,C=l.pingedLanes;g=(1<<31-Ye(42|n)+1)-1,g&=f&~(b&~C),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(a=!0,y0(l,g))}else g=jt,g=Co(l,l===Zt?g:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(g&3)===0||Xr(l,g)||(a=!0,y0(l,g));l=l.next}while(a);Ih=!1}}function e6(){p0()}function p0(){wl=Xh=!1;var n=0;ji!==0&&f6()&&(n=ji);for(var s=He(),a=null,l=bl;l!==null;){var f=l.next,g=g0(l,s);g===0?(l.next=null,a===null?bl=f:a.next=f,f===null&&(ur=a)):(a=l,(n!==0||(g&3)!==0)&&(wl=!0)),l=f}le!==0&&le!==5||Aa(n),ji!==0&&(ji=0)}function g0(n,s){for(var a=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var b=31-Ye(g),C=1<<b,A=f[b];A===-1?((C&a)===0||(C&l)!==0)&&(f[b]=_4(C,s)):A<=s&&(n.expiredLanes|=C),g&=~C}if(s=Zt,a=jt,a=Co(n,n===s?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,a===0||n===s&&(zt===2||zt===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&ou(l),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Xr(n,a)){if(s=a&-a,s===n.callbackPriority)return s;switch(l!==null&&ou(l),uu(a)){case 2:case 8:a=a1;break;case 32:a=wo;break;case 268435456:a=o1;break;default:a=wo}return l=v0.bind(null,n),a=au(a,l),n.callbackPriority=s,n.callbackNode=a,s}return l!==null&&l!==null&&ou(l),n.callbackPriority=2,n.callbackNode=null,2}function v0(n,s){if(le!==0&&le!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(xl()&&n.callbackNode!==a)return null;var l=jt;return l=Co(n,n===Zt?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(Jg(n,l,s),g0(n,He()),n.callbackNode!=null&&n.callbackNode===a?v0.bind(null,n):null)}function y0(n,s){if(xl())return null;Jg(n,s,!0)}function n6(){m6(function(){(Dt&6)!==0?au(r1,e6):p0()})}function Wh(){if(ji===0){var n=Is;n===0&&(n=So,So<<=1,(So&261888)===0&&(So=256)),ji=n}return ji}function x0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Ao(""+n)}function b0(n,s){var a=s.ownerDocument.createElement("input");return a.name=s.name,a.value=s.value,n.id&&a.setAttribute("form",n.id),s.parentNode.insertBefore(a,s),n=new FormData(n),a.parentNode.removeChild(a),n}function i6(n,s,a,l,f){if(s==="submit"&&a&&a.stateNode===f){var g=x0((f[Re]||null).action),b=l.submitter;b&&(s=(s=b[Re]||null)?x0(s.formAction):b.getAttribute("formAction"),s!==null&&(g=s,b=null));var C=new ko("action","action",null,l,f);n.push({event:C,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ji!==0){var A=b?b0(f,b):new FormData(f);gh(a,{pending:!0,data:A,method:f.method,action:g},null,A)}}else typeof g=="function"&&(C.preventDefault(),A=b?b0(f,b):new FormData(f),gh(a,{pending:!0,data:A,method:f.method,action:g},g,A))},currentTarget:f}]})}}for(var Qh=0;Qh<ku.length;Qh++){var Jh=ku[Qh],s6=Jh.toLowerCase(),r6=Jh[0].toUpperCase()+Jh.slice(1);dn(s6,"on"+r6)}dn(Q1,"onAnimationEnd"),dn(J1,"onAnimationIteration"),dn($1,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(ww,"onTransitionRun"),dn(Sw,"onTransitionStart"),dn(Mw,"onTransitionCancel"),dn(tp,"onTransitionEnd"),Ls("onMouseEnter",["mouseout","mouseover"]),Ls("onMouseLeave",["mouseout","mouseover"]),Ls("onPointerEnter",["pointerout","pointerover"]),Ls("onPointerLeave",["pointerout","pointerover"]),Wi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Na="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(" "),a6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Na));function w0(n,s){s=(s&4)!==0;for(var a=0;a<n.length;a++){var l=n[a],f=l.event;l=l.listeners;t:{var g=void 0;if(s)for(var b=l.length-1;0<=b;b--){var C=l[b],A=C.instance,P=C.currentTarget;if(C=C.listener,A!==g&&f.isPropagationStopped())break t;g=C,f.currentTarget=P;try{g(f)}catch(F){zo(F)}f.currentTarget=null,g=A}else for(b=0;b<l.length;b++){if(C=l[b],A=C.instance,P=C.currentTarget,C=C.listener,A!==g&&f.isPropagationStopped())break t;g=C,f.currentTarget=P;try{g(f)}catch(F){zo(F)}f.currentTarget=null,g=A}}}}function Ct(n,s){var a=s[hu];a===void 0&&(a=s[hu]=new Set);var l=n+"__bubble";a.has(l)||(S0(s,n,2,!1),a.add(l))}function $h(n,s,a){var l=0;s&&(l|=4),S0(a,n,l,s)}var Sl="_reactListening"+Math.random().toString(36).slice(2);function tf(n){if(!n[Sl]){n[Sl]=!0,p1.forEach(function(a){a!=="selectionchange"&&(a6.has(a)||$h(a,!1,n),$h(a,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[Sl]||(s[Sl]=!0,$h("selectionchange",!1,s))}}function S0(n,s,a,l){switch(Q0(s)){case 2:var f=D6;break;case 8:f=L6;break;default:f=gf}a=f.bind(null,s,a,n),f=void 0,!bu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(s,a,{capture:!0,passive:f}):n.addEventListener(s,a,!0):f!==void 0?n.addEventListener(s,a,{passive:f}):n.addEventListener(s,a,!1)}function ef(n,s,a,l,f){var g=l;if((s&1)===0&&(s&2)===0&&l!==null)t:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var C=l.stateNode.containerInfo;
vendor: 2,884 bytes, line 8
8if(C===f)break;if(b===4)for(b=l.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;C!==null;){if(b=Os(C),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){l=g=b;continue t}C=C.parentNode}}l=l.return}j1(function(){var P=g,F=yu(a),I=[];t:{var H=ep.get(n);if(H!==void 0){var G=ko,st=n;switch(n){case"keypress":if(Ro(a)===0)break t;case"keydown":case"keyup":G=$4;break;case"focusin":st="focus",G=Eu;break;case"focusout":st="blur",G=Eu;break;case"beforeblur":case"afterblur":G=Eu;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=N1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=H4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=nw;break;case Q1:case J1:case $1:G=G4;break;case tp:G=sw;break;case"scroll":case"scrollend":G=P4;break;case"wheel":G=aw;break;case"copy":case"cut":case"paste":G=F4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=O1;break;case"toggle":case"beforetoggle":G=lw}var pt=(s&4)!==0,Ut=!pt&&(n==="scroll"||n==="scrollend"),L=pt?H!==null?H+"Capture":null:H;pt=[];for(var O=P,B;O!==null;){var X=O;if(B=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||B===null||L===null||(X=Jr(O,L),X!=null&&pt.push(Ra(O,X,B))),Ut)break;O=O.return}0<pt.length&&(H=new G(H,st,null,a,F),I.push({event:H,listeners:pt}))}}if((s&7)===0){t:{if(H=n==="mouseover"||n==="pointerover",G=n==="mouseout"||n==="pointerout",H&&a!==vu&&(st=a.relatedTarget||a.fromElement)&&(Os(st)||st[Rs]))break t;if((G||H)&&(H=F.window===F?F:(H=F.ownerDocument)?H.defaultView||H.parentWindow:window,G?(st=a.relatedTarget||a.toElement,G=P,st=st?Os(st):null,st!==null&&(Ut=c(st),pt=st.tag,st!==Ut||pt!==5&&pt!==27&&pt!==6)&&(st=null)):(G=null,st=P),G!==st)){if(pt=N1,X="onMouseLeave",L="onMouseEnter",O="mouse",(n==="pointerout"||n==="pointerover")&&(pt=O1,X="onPointerLeave",L="onPointerEnter",O="pointer"),Ut=G==null?H:Qr(G),B=st==null?H:Qr(st),H=new pt(X,O+"leave",G,a,F),H.target=Ut,H.relatedTarget=B,X=null,Os(F)===P&&(pt=new pt(L,O+"enter",st,a,F),pt.target=B,pt.relatedTarget=Ut,X=pt),Ut=X,G&&st)e:{for(pt=o6,L=G,O=st,B=0,X=L;X;X=pt(X))B++;X=0;for(var ft=O;ft;ft=pt(ft))X++;for(;0<B-X;)L=pt(L),B--;for(;0<X-B;)O=pt(O),X--;for(;B--;){if(L===O||O!==null&&L===O.alternate){pt=L;break e}L=pt(L),O=pt(O)}pt=null}else pt=null;G!==null&&M0(I,H,G,pt,!1),st!==null&&Ut!==null&&M0(I,Ut,st,pt,!0)}}t:{if(H=P?Qr(P):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var Rt=U1;else if(B1(H))if(H1)Rt=yw;else{Rt=gw;var lt=pw}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.t
vendor: 4,954 bytes, lines 8-9
8ype!=="radio"?P&&gu(P.elementType)&&(Rt=U1):Rt=vw;if(Rt&&(Rt=Rt(n,P))){P1(I,Rt,a,F);break t}lt&<(n,H,P),n==="focusout"&&P&&H.type==="number"&&P.memoizedProps.value!=null&&pu(H,"number",H.value)}switch(lt=P?Qr(P):window,n){case"focusin":(B1(lt)||lt.contentEditable==="true")&&(Hs=lt,Nu=P,aa=null);break;case"focusout":aa=Nu=Hs=null;break;case"mousedown":Ru=!0;break;case"contextmenu":case"mouseup":case"dragend":Ru=!1,I1(I,a,F);break;case"selectionchange":if(bw)break;case"keydown":case"keyup":I1(I,a,F)}var St;if(Tu)t:{switch(n){case"compositionstart":var _t="onCompositionStart";break t;case"compositionend":_t="onCompositionEnd";break t;case"compositionupdate":_t="onCompositionUpdate";break t}_t=void 0}else Us?z1(n,a)&&(_t="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(_t="onCompositionStart");_t&&(k1&&a.locale!=="ko"&&(Us||_t!=="onCompositionStart"?_t==="onCompositionEnd"&&Us&&(St=_1()):(hi=F,wu="value"in hi?hi.value:hi.textContent,Us=!0)),lt=Ml(P,_t),0<lt.length&&(_t=new R1(_t,n,null,a,F),I.push({event:_t,listeners:lt}),St?_t.data=St:(St=V1(a),St!==null&&(_t.data=St)))),(St=uw?hw(n,a):fw(n,a))&&(_t=Ml(P,"onBeforeInput"),0<_t.length&&(lt=new R1("onBeforeInput","beforeinput",null,a,F),I.push({event:lt,listeners:_t}),lt.data=St)),i6(I,n,P,a,F)}w0(I,s)})}function Ra(n,s,a){return{instance:n,listener:s,currentTarget:a}}function Ml(n,s){for(var a=s+"Capture",l=[];n!==null;){var f=n,g=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||g===null||(f=Jr(n,a),f!=null&&l.unshift(Ra(n,f,g)),f=Jr(n,s),f!=null&&l.push(Ra(n,f,g))),n.tag===3)return l;n=n.return}return[]}function o6(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function M0(n,s,a,l,f){for(var g=s._reactName,b=[];a!==null&&a!==l;){var C=a,A=C.alternate,P=C.stateNode;if(C=C.tag,A!==null&&A===l)break;C!==5&&C!==26&&C!==27||P===null||(A=P,f?(P=Jr(a,g),P!=null&&b.unshift(Ra(a,P,A))):f||(P=Jr(a,g),P!=null&&b.push(Ra(a,P,A)))),a=a.return}b.length!==0&&n.push({event:s,listeners:b})}var l6=/\r\n?/g,c6=/\u0000|\uFFFD/g;function E0(n){return(typeof n=="string"?n:""+n).replace(l6,` 9`).replace(c6,"")}function C0(n,s){return s=E0(s),E0(n)===s}function Pt(n,s,a,l,f,g){switch(a){case"children":typeof l=="string"?s==="body"||s==="textarea"&&l===""||Vs(n,l):(typeof l=="number"||typeof l=="bigint")&&s!=="body"&&Vs(n,""+l);break;case"className":jo(n,"class",l);break;case"tabIndex":jo(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":jo(n,a,l);break;case"style":C1(n,l,g);break;case"data":if(s!=="object"){jo(n,"data",l);break}case"src":case"href":if(l===""&&(s!=="a"||a!=="href")){n.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=Ao(""+l),n.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(a,"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 g=="function"&&(a==="formAction"?(s!=="input"&&Pt(n,s,"name",f.name,f,null),Pt(n,s,"formEncType",f.formEncType,f,null),Pt(n,s,"formMethod",f.formMethod,f,null),Pt(n,s,"formTarget",f.formTarget,f,null)):(Pt(n,s,"encType",f.encType,f,null),Pt(n,s,"method",f.method,f,null),Pt(n,s,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=Ao(""+l),n.setAttribute(a,l);break;case"onClick":l!=null&&(n.onclick=Bn);break;case"onScroll":l!=null&&Ct("scroll",n);break;case"onScrollEnd":l!=null&&Ct("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=a}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}a=Ao(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""+l):n.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":l===!0?n.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,l):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(a,l):n.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(a):n.setAttribute(a,l);break;case"popover":Ct("beforetoggle",n),Ct("toggle",n),To(n,"popover",l);break;case"xlinkActuate":Vn(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Vn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Vn(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Vn(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Vn(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Vn(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Vn(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Vn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Vn(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":To(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=V4.get(a)||a,To(n,a,l))}}function nf(n,s,a,l,f,g){switch(a){case"style":C1(n,l,g);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=a}}break;case"children":typeof l=="string"?Vs(n,l):(typeof l=="number"||typeof l=="bigint")&&Vs(n,""+l);break;case"onScroll":l!=null&&Ct("scroll",n);break;case"onScrollEnd":l!=null&&Ct("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!g1.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(f=a.endsWith("Capture"),s=a.slice(2,f?a.length-7:void 0),g=n[Re]||null,g=g!=null?g[a]:null,typeof g=="function"&&n.removeEventListener(s,g,f),typeof l=="function")){typeof g!="function"&&g!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(s,l,f);break t}a in n?n[a]=l:l===!0?n.setAttribute(a,""):To(n,a,l)}}}function ye(n,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",n),Ct("load",n);var l=!1,f=!1,g;for(g in a)if(a.hasOwnProperty(g)){var b=a[g];if(b!=null)switch(g){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Pt(n,s,g,b,a,null)}}f&&Pt(n,s,"srcSet",a.srcSet,a,null),l&&Pt(n,s,"src",a.src,a,null);return;case"input":Ct("invalid",n);var C=g=b=f=null,A=null,P=null;for(l in a)if(a.hasOwnProperty(l)){var F=a[l];if(F!=null)switch(l){case"name":f=F;break;case"type":b=F;break;case"checked":A=F;break;case"defaultChecked":P=F;break;case"value":g=F;break;case"defaultValue":C=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,s));break;default:Pt(n,s,l,F,a,null)}}w1(n,g,C,A,P,b,f,!1);return;case"select":Ct("invalid",n),l=b=g=null;for(f in a)if(a.hasOwnProperty(f)&&(C=a[f],C!=null))switch(f){case"value":g=C;break;case"defaultValue":b=C;break;case"multiple":l=C;default:Pt(n,s,f,C,a,null)}s=g,a=b,n.multiple=!!l,s!=null?zs(n,!!l,s,!1):a!=null&&zs(n,!!l,a,!0);return;case"textarea":Ct("invalid",n),g=f=l=null;for(b in a)if(a.hasOwnProperty(b)&&(C=a[b],C!=null))switch(b){case"value":l=C;break;case"defaultValue":f=C;break;case"children":g=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:Pt(n,s,b,C,a,null)}M1(n,l,f,g);return;case"option":for(A in a)a.hasOwnProperty(A)&&(l=a[A],l!=null)&&(A==="selected"?n.selected=l&&typeof l!="function"&&typeof l!="symbol":Pt(n,s,A,l,a,null));return;case"dialog":Ct("beforetoggle",n),Ct("toggle",n),Ct("cancel",n),Ct("close",n);break;case"iframe":case"object":Ct("load",n);break;case"video":case"audio":for(l=0;l<Na.length;l++)Ct(Na[l],n);break;case"image":Ct("error",n),Ct("load",n);break;case"details":Ct("toggle",n);break;case"embed":case"source":case"link":Ct("error",n),Ct("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in a)if(a.hasOwnProperty(P)&&(l=a[P],l!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Pt(n,s,P,l,a,null)}return;default:if(gu(s)){for(F in a)a.hasOwnProperty(F)&&(l=a[F],l!==void 0&&nf(n,s,F,l,a,void 0));return}}for(C in a)a.hasOwnProperty(C)&&(l=a[C],l!=null&&Pt(n,s,C,l,a,null))}function u6(n,s,a,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,g=null,b=null,C=null,A=null,P=null,F=null;for(G in a){var I=a[G];if(a.hasOwnProperty(G)&&I!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":A=I;default:l.hasOwnProperty(G)||Pt(n,s,G,null,l,I)}}for(var H in l){var G=l[H];if(I=a[H],l.hasOwnProperty(H)&&(G!=null||I!=null))switch(H){case"type":g=G;break;case"name":f=G;break;case"checked":P=G;break;case"defaultChecked":F=G;break;case"value":b=G;break;case"defaultValue":C=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:G!==I&&Pt(n,s,H,G,l,I)}}mu(n,b,C,A,P,F,g,f);return;case"select":G=b=C=H=null;for(g in a)if(A=a[g],a.hasOwnProperty(g)&&A!=null)switch(g){case"value":break;case"multiple":G=A;default:l.hasOwnProperty(g)||Pt(n,s,g,null,l,A)}for(f in l)if(g=l[f],A=a[f],l.hasOwnProperty(f)&&(g!=null||A!=null))switch(f){case"value":H=g;break;case"defaultValue":C=g;break;case"multiple":b=g;default:g!==A&&Pt(n,s,f,g,l,A)}
vendor: 6,770 bytes, line 9
9s=C,a=b,l=G,H!=null?zs(n,!!a,H,!1):!!l!=!!a&&(s!=null?zs(n,!!a,s,!0):zs(n,!!a,a?[]:"",!1));return;case"textarea":G=H=null;for(C in a)if(f=a[C],a.hasOwnProperty(C)&&f!=null&&!l.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Pt(n,s,C,null,l,f)}for(b in l)if(f=l[b],g=a[b],l.hasOwnProperty(b)&&(f!=null||g!=null))switch(b){case"value":H=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==g&&Pt(n,s,b,f,l,g)}S1(n,H,G);return;case"option":for(var st in a)H=a[st],a.hasOwnProperty(st)&&H!=null&&!l.hasOwnProperty(st)&&(st==="selected"?n.selected=!1:Pt(n,s,st,null,l,H));for(A in l)H=l[A],G=a[A],l.hasOwnProperty(A)&&H!==G&&(H!=null||G!=null)&&(A==="selected"?n.selected=H&&typeof H!="function"&&typeof H!="symbol":Pt(n,s,A,H,l,G));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 pt in a)H=a[pt],a.hasOwnProperty(pt)&&H!=null&&!l.hasOwnProperty(pt)&&Pt(n,s,pt,null,l,H);for(P in l)if(H=l[P],G=a[P],l.hasOwnProperty(P)&&H!==G&&(H!=null||G!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,s));break;default:Pt(n,s,P,H,l,G)}return;default:if(gu(s)){for(var Ut in a)H=a[Ut],a.hasOwnProperty(Ut)&&H!==void 0&&!l.hasOwnProperty(Ut)&&nf(n,s,Ut,void 0,l,H);for(F in l)H=l[F],G=a[F],!l.hasOwnProperty(F)||H===G||H===void 0&&G===void 0||nf(n,s,F,H,l,G);return}}for(var L in a)H=a[L],a.hasOwnProperty(L)&&H!=null&&!l.hasOwnProperty(L)&&Pt(n,s,L,null,l,H);for(I in l)H=l[I],G=a[I],!l.hasOwnProperty(I)||H===G||H==null&&G==null||Pt(n,s,I,H,l,G)}function T0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function h6(){if(typeof performance.getEntriesByType=="function"){for(var n=0,s=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var f=a[l],g=f.transferSize,b=f.initiatorType,C=f.duration;if(g&&C&&T0(b)){for(b=0,C=f.responseEnd,l+=1;l<a.length;l++){var A=a[l],P=A.startTime;if(P>C)break;var F=A.transferSize,I=A.initiatorType;F&&T0(I)&&(A=A.responseEnd,b+=F*(A<C?1:(C-P)/(A-P)))}if(--l,s+=8*(g+b)/(f.duration/1e3),n++,10<n)break}}if(0<n)return s/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var sf=null,rf=null;function El(n){return n.nodeType===9?n:n.ownerDocument}function j0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _0(n,s){if(n===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&s==="foreignObject"?0:n}function af(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var of=null;function f6(){var n=window.event;return n&&n.type==="popstate"?n===of?!1:(of=n,!0):(of=null,!1)}var A0=typeof setTimeout=="function"?setTimeout:void 0,d6=typeof clearTimeout=="function"?clearTimeout:void 0,N0=typeof Promise=="function"?Promise:void 0,m6=typeof queueMicrotask=="function"?queueMicrotask:typeof N0<"u"?function(n){return N0.resolve(null).then(n).catch(p6)}:A0;function p6(n){setTimeout(function(){throw n})}function _i(n){return n==="head"}function R0(n,s){var a=s,l=0;do{var f=a.nextSibling;if(n.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"||a==="/&"){if(l===0){n.removeChild(f),mr(s);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Oa(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,Oa(a);for(var g=a.firstChild;g;){var b=g.nextSibling,C=g.nodeName;g[Wr]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=b}}else a==="body"&&Oa(n.ownerDocument.body);a=f}while(a);mr(s)}function O0(n,s){var a=n;n=0;do{var l=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=l}while(a)}function lf(n){var s=n.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":lf(a),fu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function g6(n,s,a,l){for(;n.nodeType===1;){var f=a;if(n.nodeName.toLowerCase()!==s.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Wr])switch(s){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(s==="input"&&n.type==="hidden"){var g=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=cn(n.nextSibling),n===null)break}return null}function v6(n,s,a){if(s==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=cn(n.nextSibling),n===null))return null;return n}function k0(n,s){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=cn(n.nextSibling),n===null))return null;return n}function cf(n){return n.data==="$?"||n.data==="$~"}function uf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function y6(n,s){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=s;else if(n.data!=="$?"||a.readyState!=="loading")s();else{var l=function(){s(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function cn(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;
vendor: 4,960 bytes, line 9
9if(s==="/$"||s==="/&")return null}}return n}var hf=null;function D0(n){n=n.nextSibling;for(var s=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(s===0)return cn(n.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}n=n.nextSibling}return null}function L0(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return n;s--}else a!=="/$"&&a!=="/&"||s++}n=n.previousSibling}return null}function z0(n,s,a){switch(s=El(a),n){case"html":if(n=s.documentElement,!n)throw Error(r(452));return n;case"head":if(n=s.head,!n)throw Error(r(453));return n;case"body":if(n=s.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function Oa(n){for(var s=n.attributes;s.length;)n.removeAttributeNode(s[0]);fu(n)}var un=new Map,V0=new Set;function Cl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ti=Y.d;Y.d={f:x6,r:b6,D:w6,C:S6,L:M6,m:E6,X:T6,S:C6,M:j6};function x6(){var n=ti.f(),s=gl();return n||s}function b6(n){var s=ks(n);s!==null&&s.tag===5&&s.type==="form"?tg(s):ti.r(n)}var hr=typeof document>"u"?null:document;function B0(n,s,a){var l=hr;if(l&&typeof s=="string"&&s){var f=en(s);f='link[rel="'+n+'"][href="'+f+'"]',typeof a=="string"&&(f+='[crossorigin="'+a+'"]'),V0.has(f)||(V0.add(f),n={rel:n,crossOrigin:a,href:s},l.querySelector(f)===null&&(s=l.createElement("link"),ye(s,"link",n),he(s),l.head.appendChild(s)))}}function w6(n){ti.D(n),B0("dns-prefetch",n,null)}function S6(n,s){ti.C(n,s),B0("preconnect",n,s)}function M6(n,s,a){ti.L(n,s,a);var l=hr;if(l&&n&&s){var f='link[rel="preload"][as="'+en(s)+'"]';s==="image"&&a&&a.imageSrcSet?(f+='[imagesrcset="'+en(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(f+='[imagesizes="'+en(a.imageSizes)+'"]')):f+='[href="'+en(n)+'"]';var g=f;switch(s){case"style":g=fr(n);break;case"script":g=dr(n)}un.has(g)||(n=y({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:n,as:s},a),un.set(g,n),l.querySelector(f)!==null||s==="style"&&l.querySelector(ka(g))||s==="script"&&l.querySelector(Da(g))||(s=l.createElement("link"),ye(s,"link",n),he(s),l.head.appendChild(s)))}}function E6(n,s){ti.m(n,s);var a=hr;if(a&&n){var l=s&&typeof s.as=="string"?s.as:"script",f='link[rel="modulepreload"][as="'+en(l)+'"][href="'+en(n)+'"]',g=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=dr(n)}if(!un.has(g)&&(n=y({rel:"modulepreload",href:n},s),un.set(g,n),a.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Da(g)))return}l=a.createElement("link"),ye(l,"link",n),he(l),a.head.appendChild(l)}}}function C6(n,s,a){ti.S(n,s,a);var l=hr;if(l&&n){var f=Ds(l).hoistableStyles,g=fr(n);s=s||"default";var b=f.get(g);if(!b){var C={loading:0,preload:null};if(b=l.querySelector(ka(g)))C.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":s},a),(a=un.get(g))&&ff(n,a);var A=b=l.createElement("link");he(A),ye(A,"link",n),A._p=new Promise(function(P,F){A.onload=P,A.onerror=F}),A.addEventListener("load",function(){C.loading|=1}),A.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Tl(b,s,l)}b={type:"stylesheet",instance:b,count:1,state:C},f.set(g,b)}}}function T6(n,s){ti.X(n,s);var a=hr;if(a&&n){var l=Ds(a).hoistableScripts,f=dr(n),g=l.get(f);g||(g=a.querySelector(Da(f)),g||(n=y({src:n,async:!0},s),(s=un.get(f))&&df(n,s),g=a.createElement("script"),he(g),ye(g,"link",n),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(f,g))}}function j6(n,s){ti.M(n,s);var a=hr;if(a&&n){var l=Ds(a).hoistableScripts,f=dr(n),g=l.get(f);g||(g=a.querySelector(Da(f)),g||(n=y({src:n,async:!0,type:"module"},s),(s=un.get(f))&&df(n,s),g=a.createElement("script"),he(g),ye(g,"link",n),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(f,g))}}function P0(n,s,a,l){var f=(f=vt.current)?Cl(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=fr(a.href),a=Ds(f).hoistableStyles,l=a.get(s),l||(l={type:"style",instance:null,count:0,state:null},a.set(s,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=fr(a.href);var g=Ds(f).hoistableStyles,b=g.get(n);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,b),(g=f.querySelector(ka(n)))&&!g._p&&(b.instance=g,b.state.loading=5),un.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},un.set(n,a),g||_6(f,n,a,b.state))),s&&l===null)throw Error(r(528,""));return b}if(s&&l!==null)throw Error(r(529,""));return null;
vendor: 5,353 bytes, line 9
9case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=dr(a),a=Ds(f).hoistableScripts,l=a.get(s),l||(l={type:"script",instance:null,count:0,state:null},a.set(s,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function fr(n){return'href="'+en(n)+'"'}function ka(n){return'link[rel="stylesheet"]['+n+"]"}function U0(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function _6(n,s,a,l){n.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=n.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),ye(s,"link",a),he(s),n.head.appendChild(s))}function dr(n){return'[src="'+en(n)+'"]'}function Da(n){return"script[async]"+n}function H0(n,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var l=n.querySelector('style[data-href~="'+en(a.href)+'"]');if(l)return s.instance=l,he(l),l;var f=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),he(l),ye(l,"style",f),Tl(l,a.precedence,n),s.instance=l;case"stylesheet":f=fr(a.href);var g=n.querySelector(ka(f));if(g)return s.state.loading|=4,s.instance=g,he(g),g;l=U0(a),(f=un.get(f))&&ff(l,f),g=(n.ownerDocument||n).createElement("link"),he(g);var b=g;return b._p=new Promise(function(C,A){b.onload=C,b.onerror=A}),ye(g,"link",l),s.state.loading|=4,Tl(g,a.precedence,n),s.instance=g;case"script":return g=dr(a.src),(f=n.querySelector(Da(g)))?(s.instance=f,he(f),f):(l=a,(f=un.get(g))&&(l=y({},a),df(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),he(f),ye(f,"link",l),n.head.appendChild(f),s.instance=f);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(l=s.instance,s.state.loading|=4,Tl(l,a.precedence,n));return s.instance}function Tl(n,s,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,g=f,b=0;b<l.length;b++){var C=l[b];if(C.dataset.precedence===s)g=C;else if(g!==f)break}g?g.parentNode.insertBefore(n,g.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(n,s.firstChild))}function ff(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.title==null&&(n.title=s.title)}function df(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.integrity==null&&(n.integrity=s.integrity)}var jl=null;function Z0(n,s,a){if(jl===null){var l=new Map,f=jl=new Map;f.set(a,l)}else f=jl,l=f.get(a),l||(l=new Map,f.set(a,l));if(l.has(n))return l;for(l.set(n,null),a=a.getElementsByTagName(n),f=0;f<a.length;f++){var g=a[f];if(!(g[Wr]||g[me]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var b=g.getAttribute(s)||"";b=n+b;var C=l.get(b);C?C.push(g):l.set(b,[g])}}return l}function Y0(n,s,a){n=n.ownerDocument||n,n.head.insertBefore(a,s==="title"?n.querySelector("head > title"):null)}function A6(n,s,a){if(a===1||s.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(n=s.disabled,typeof s.precedence=="string"&&n==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function G0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function N6(n,s,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=fr(l.href),g=s.querySelector(ka(f));if(g){s=g._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(n.count++,n=_l.bind(n),s.then(n,n)),a.state.loading|=4,a.instance=g,he(g);return}g=s.ownerDocument||s,l=U0(l),(f=un.get(f))&&ff(l,f),g=g.createElement("link"),he(g);var b=g;b._p=new Promise(function(C,A){b.onload=C,b.onerror=A}),ye(g,"link",l),a.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=_l.bind(n),s.addEventListener("load",a),s.addEventListener("error",a))}}var mf=0;function R6(n,s){return n.stylesheets&&n.count===0&&Nl(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var l=setTimeout(function(){if(n.stylesheets&&Nl(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+s);0<n.imgBytes&&mf===0&&(mf=62500*h6());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Nl(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>mf?50:800)+s);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function _l(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nl(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Al=null;function Nl(n,s){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Al=new Map,s.forEac
vendor: 9,854 bytes, line 9
9h(O6,n),Al=null,_l.call(n))}function O6(n,s){if(!(s.state.loading&4)){var a=Al.get(n);if(a)var l=a.get(null);else{a=new Map,Al.set(n,a);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<f.length;g++){var b=f[g];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),l=b)}l&&a.set(null,l)}f=s.instance,b=f.getAttribute("data-precedence"),g=a.get(b)||l,g===l&&a.set(null,f),a.set(b,f),this.count++,l=_l.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),g?g.parentNode.insertBefore(f,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),s.state.loading|=4}}var La={$$typeof:N,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function k6(n,s,a,l,f,g,b,C,A){this.tag=1,this.containerInfo=n,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=lu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.hiddenUpdates=lu(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=g,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function K0(n,s,a,l,f,g,b,C,A,P,F,I){return n=new k6(n,s,a,b,A,P,F,I,C),s=1,g===!0&&(s|=24),g=Ke(3,null,null,s),n.current=g,g.stateNode=n,s=Fu(),s.refCount++,n.pooledCache=s,s.refCount++,g.memoizedState={element:l,isDehydrated:a,cache:s},Wu(g),n}function F0(n){return n?(n=Gs,n):Gs}function q0(n,s,a,l,f,g){f=F0(f),l.context===null?l.context=f:l.pendingContext=f,l=vi(s),l.payload={element:a},g=g===void 0?null:g,g!==null&&(l.callback=g),a=yi(n,l,s),a!==null&&(Ve(a,n,s),da(a,n,s))}function X0(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<s?a:s}}function pf(n,s){X0(n,s),(n=n.alternate)&&X0(n,s)}function I0(n){if(n.tag===13||n.tag===31){var s=ts(n,67108864);s!==null&&Ve(s,n,67108864),pf(n,67108864)}}function W0(n){if(n.tag===13||n.tag===31){var s=We();s=cu(s);var a=ts(n,s);a!==null&&Ve(a,n,s),pf(n,s)}}var Rl=!0;function D6(n,s,a,l){var f=k.T;k.T=null;var g=Y.p;try{Y.p=2,gf(n,s,a,l)}finally{Y.p=g,k.T=f}}function L6(n,s,a,l){var f=k.T;k.T=null;var g=Y.p;try{Y.p=8,gf(n,s,a,l)}finally{Y.p=g,k.T=f}}function gf(n,s,a,l){if(Rl){var f=vf(l);if(f===null)ef(n,s,l,Ol,a),J0(n,l);else if(V6(f,n,s,a,l))l.stopPropagation();else if(J0(n,l),s&4&&-1<z6.indexOf(n)){for(;f!==null;){var g=ks(f);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var b=Ii(g.pendingLanes);if(b!==0){var C=g;for(C.pendingLanes|=2,C.entangledLanes|=2;b;){var A=1<<31-Ye(b);C.entanglements[1]|=A,b&=~A}Tn(g),(Dt&6)===0&&(ml=He()+500,Aa(0))}}break;case 31:case 13:C=ts(g,2),C!==null&&Ve(C,g,2),gl(),pf(g,2)}if(g=vf(l),g===null&&ef(n,s,l,Ol,a),g===f)break;f=g}f!==null&&l.stopPropagation()}else ef(n,s,l,null,a)}}function vf(n){return n=yu(n),yf(n)}var Ol=null;function yf(n){if(Ol=null,n=Os(n),n!==null){var s=c(n);if(s===null)n=null;else{var a=s.tag;if(a===13){if(n=u(s),n!==null)return n;n=null}else if(a===31){if(n=h(s),n!==null)return n;n=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null)}}return Ol=n,null}function Q0(n){switch(n){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(w4()){case r1:return 2;case a1:return 8;case wo:case S4:return 32;case o1:return 268435456;default:return 32}default:return 32}}var xf=!1,Ai=null,Ni=null,Ri=null,za=new Map,Va=new Map,Oi=[],z6="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 J0(n,s){switch(n){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":za.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Va.delete(s.pointerId)}}function Ba(n,s,a,l,f,g){return n===null||n.nativeEvent!==g?(n={blockedOn:s,domEventName:a,eventSystemFlags:l,nativeEvent:g,targetContainers:[f]},s!==null&&(s=ks(s),s!==null&&I0(s)),n):(n.eventSystemFlags|=l,s=n.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),n)}function V6(n,s,a,l,f){switch(s){case"focusin":return Ai=Ba(Ai,n,s,a,l,f),!0;case"dragenter":return Ni=Ba(Ni,n,s,a,l,f),!0;case"mouseover":return Ri=Ba(Ri,n,s,a,l,f),!0;case"pointerover":var g=f.pointerId;return za.set(g,Ba(za.get(g)||null,n,s,a,l,f)),!0;case"gotpointercapture":return g=f.pointerId,Va.set(g,Ba(Va.get(g)||null,n,s,a,l,f)),!0}return!1}function $0(n){var s=Os(n.target);if(s!==null){var a=c(s);if(a!==null){if(s=a.tag,s===13){if(s=u(a),s!==null){n.blockedOn=s,d1(n.priority,function(){W0(a)});return}}else if(s===31){if(s=h(a),s!==null){n.blockedOn=s,d1(n.priority,function(){W0(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function kl(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var a=vf(n.nativeEvent);if(a===null){a=n.nativeEvent;var l=new a.constructor(a.type,a);vu=l,a.target.dispatchEvent(l),vu=null}else return s=ks(a),s!==null&&I0(s),n.blockedOn=a,!1;s.shift()}return!0}function tv(n,s,a){kl(n)&&a.delete(s)}function B6(){xf=!1,Ai!==null&&kl(Ai)&&(Ai=null),Ni!==null&&kl(Ni)&&(Ni=null),Ri!==null&&kl(Ri)&&(Ri=null),za.forEach(tv),Va.forEach(tv)}function Dl(n,s){n.blockedOn===s&&(n.blockedOn=null,xf||(xf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,B6)))}var Ll=null;function ev(n){Ll!==n&&(Ll=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ll===n&&(Ll=null);for(var s=0;s<n.length;s+=3){var a=n[s],l=n[s+1],f=n[s+2];if(typeof l!="function"){if(yf(l||a)===null)continue;break}var g=ks(a);g!==null&&(n.splice(s,3),s-=3,gh(g,{pending:!0,data:f,method:a.method,action:l},l,f))}}))}function mr(n){function s(A){return Dl(A,n)}Ai!==null&&Dl(Ai,n),Ni!==null&&Dl(Ni,n),Ri!==null&&Dl(Ri,n),za.forEach(s),Va.forEach(s);for(var a=0;a<Oi.length;a++){var l=Oi[a];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Oi.length&&(a=Oi[0],a.blockedOn===null);)$0(a),a.blockedOn===null&&Oi.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var f=a[l],g=a[l+1],b=f[Re]||null;if(typeof g=="function")b||ev(a);else if(b){var C=null;if(g&&g.hasAttribute("formAction")){if(f=g,b=g[Re]||null)C=b.formAction;else if(yf(f)!==null)continue}else C=b.action;typeof C=="function"?a[l+1]=C:(a.splice(l,3),l-=3),ev(a)}}}function nv(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function s(){f!==null&&(f(),f=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),f!==null&&(f(),f=null)}}}function bf(n){this._internalRoot=n}zl.prototype.render=bf.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(r(409));var a=s.current,l=We();q0(a,l,n,s,null,null)},zl.prototype.unmount=bf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;q0(n.current,2,null,n,null,null),gl(),s[Rs]=null}};function zl(n){this._internalRoot=n}zl.prototype.unstable_scheduleHydration=function(n){if(n){var s=f1();n={blockedOn:null,target:n,priority:s};for(var a=0;a<Oi.length&&s!==0&&s<Oi[a].priority;a++);Oi.splice(a,0,n),a===0&&$0(n)}};var iv=t.version;if(iv!=="19.2.4")throw Error(r(527,iv,"19.2.4"));Y.findDOMNode=function(n){var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(s),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var P6={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};
vendor: 33,505 bytes, line 9
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{qr=Vl.inject(P6),Ze=Vl}catch{}}return Ua.createRoot=function(n,s){if(!o(n))throw Error(r(299));var a=!1,l="",f=ug,g=hg,b=fg;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(l=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(g=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=K0(n,1,!1,null,null,a,l,null,f,g,b,nv),n[Rs]=s.current,tf(n),new bf(s)},Ua.hydrateRoot=function(n,s,a){if(!o(n))throw Error(r(299));var l=!1,f="",g=ug,b=hg,C=fg,A=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),s=K0(n,1,!0,s,a??null,l,f,A,g,b,C,nv),s.context=F0(null),a=s.current,l=We(),l=cu(l),f=vi(l),f.callback=null,yi(a,f,l),a=l,s.current.lanes=a,Ir(s,a),Tn(s),n[Rs]=s.current,tf(n),new zl(s)},Ua.version="19.2.4",Ua}var dv;function I6(){if(dv)return Mf.exports;dv=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(),Mf.exports=X6(),Mf.exports}var W6=I6();const rm=E.createContext({});function ho(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const gx=typeof window<"u",am=gx?E.useLayoutEffect:E.useEffect,Vc=E.createContext(null);function om(e,t){e.indexOf(t)===-1&&e.push(t)}function gc(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Dn=(e,t,i)=>i>t?t:i<e?e:i;let lm=()=>{};const ri={},vx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yx(e){return typeof e=="object"&&e!==null}const xx=e=>/^0[^.\s]+$/u.test(e);function bx(e){let t;return()=>(t===void 0&&(t=e()),t)}const fn=e=>e,Q6=(e,t)=>i=>t(e(i)),fo=(...e)=>e.reduce(Q6),no=(e,t,i)=>{const r=t-e;return r===0?1:(i-e)/r};class cm{constructor(){this.subscriptions=[]}add(t){return om(this.subscriptions,t),()=>gc(this.subscriptions,t)}notify(t,i,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,i,r);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,i,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xn=e=>e*1e3,hn=e=>e/1e3;function wx(e,t){return t?e*(1e3/t):0}const Sx=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,J6=1e-7,$6=12;function tS(e,t,i,r,o){let c,u,h=0;do u=t+(i-t)/2,c=Sx(u,r,o)-e,c>0?i=u:t=u;while(Math.abs(c)>J6&&++h<$6);return u}function mo(e,t,i,r){if(e===t&&i===r)return fn;const o=c=>tS(c,0,1,e,i);return c=>c===0||c===1?c:Sx(o(c),t,r)}const Mx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ex=e=>t=>1-e(1-t),Cx=mo(.33,1.53,.69,.99),um=Ex(Cx),Tx=Mx(um),jx=e=>(e*=2)<1?.5*um(e):.5*(2-Math.pow(2,-10*(e-1))),hm=e=>1-Math.sin(Math.acos(e)),_x=Ex(hm),Ax=Mx(hm),eS=mo(.42,0,1,1),nS=mo(0,0,.58,1),Nx=mo(.42,0,.58,1),iS=e=>Array.isArray(e)&&typeof e[0]!="number",Rx=e=>Array.isArray(e)&&typeof e[0]=="number",sS={linear:fn,easeIn:eS,easeInOut:Nx,easeOut:nS,circIn:hm,circInOut:Ax,circOut:_x,backIn:um,backInOut:Tx,backOut:Cx,anticipate:jx},rS=e=>typeof e=="string",mv=e=>{if(Rx(e)){lm(e.length===4);const[t,i,r,o]=e;return mo(t,i,r,o)}else if(rS(e))return sS[e];return e},Bl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aS(e,t){let i=new Set,r=new Set,o=!1,c=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function d(v){u.has(v)&&(m.schedule(v),e()),v(h)}const m={schedule:(v,y=!1,x=!1)=>{const M=x&&o?i:r;return y&&u.add(v),M.has(v)||M.add(v),v},cancel:v=>{r.delete(v),u.delete(v)},process:v=>{if(h=v,o){c=!0;return}o=!0,[i,r]=[r,i],i.forEach(d),i.clear(),o=!1,c&&(c=!1,m.process(v))}};return m}const oS=40;function Ox(e,t){let i=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,u=Bl.reduce((N,D)=>(N[D]=aS(c),N),{}),{setup:h,read:d,resolveKeyframes:m,preUpdate:v,update:y,preRender:x,render:w,postRender:M}=u,S=()=>{const N=ri.useManualTiming?o.timestamp:performance.now();i=!1,ri.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(N-o.timestamp,oS),1)),o.timestamp=N,o.isProcessing=!0,h.process(o),d.process(o),m.process(o),v.process(o),y.process(o),x.process(o),w.process(o),M.process(o),o.isProcessing=!1,i&&t&&(r=!1,e(S))},T=()=>{i=!0,r=!0,o.isProcessing||e(S)};return{schedule:Bl.reduce((N,D)=>{const z=u[D];return N[D]=(K,Z=!1,U=!1)=>(i||T(),z.schedule(K,Z,U)),N},{}),cancel:N=>{for(let D=0;D<Bl.length;D++)u[Bl[D]].cancel(N)},state:o,steps:u}}const{schedule:Ht,cancel:ai,state:be,steps:jf}=Ox(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0);let sc;function lS(){sc=void 0}const _e={now:()=>(sc===void 0&&_e.set(be.isProcessing||ri.useManualTiming?be.timestamp:performance.now()),sc),set:e=>{sc=e,queueMicrotask(lS)}},kx=e=>t=>typeof t=="string"&&t.startsWith(e),Dx=kx("--"),cS=kx("var(--"),fm=e=>cS(e)?uS.test(e.split("/*")[0].trim()):!1,uS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function pv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Br={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},io={...Br,transform:e=>Dn(0,1,e)},Pl={...Br,default:1},Fa=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hS(e){return e==null}const fS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mm=(e,t)=>i=>!!(typeof i=="string"&&fS.test(i)&&i.startsWith(e)||t&&!hS(i)&&Object.prototype.hasOwnProperty.call(i,t)),Lx=(e,t,i)=>r=>{if(typeof r!="string")return r;const[o,c,u,h]=r.match(dm);return{[e]:parseFloat(o),[t]:parseFloat(c),[i]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},dS=e=>Dn(0,255,e),_f={...Br,transform:e=>Math.round(dS(e))},vs={test:mm("rgb","red"),parse:Lx("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+_f.transform(e)+", "+_f.transform(t)+", "+_f.transform(i)+", "+Fa(io.transform(r))+")"};function mS(e){let t="",i="",r="",o="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,i+=i,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const yd={test:mm("#"),parse:mS,transform:vs.transform},po=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vi=po("deg"),On=po("%"),ot=po("px"),pS=po("vh"),gS=po("vw"),gv={...On,parse:e=>On.parse(e)/100,transform:e=>On.transform(e*100)},Sr={test:mm("hsl","hue"),parse:Lx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+On.transform(Fa(t))+", "+On.transform(Fa(i))+", "+Fa(io.transform(r))+")"},ae={test:e=>vs.test(e)||yd.test(e)||Sr.test(e),parse:e=>vs.test(e)?vs.parse(e):Sr.test(e)?Sr.parse(e):yd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vs.transform(e):Sr.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},vS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yS(e){return isNaN(e)&&typeof e=="string"&&(e.match(dm)?.length||0)+(e.match(vS)?.length||0)>0}const zx="number",Vx="color",xS="var",bS="var(",vv="${}",wS=/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 so(e){const t=e.toString(),i=[],r={color:[],number:[],var:[]},o=[];let c=0;const h=t.replace(wS,d=>(ae.test(d)?(r.color.push(c),o.push(Vx),i.push(ae.parse(d))):d.startsWith(bS)?(r.var.push(c),o.push(xS),i.push(d)):(r.number.push(c),o.push(zx),i.push(parseFloat(d))),++c,vv)).split(vv);return{values:i,split:h,indexes:r,types:o}}function Bx(e){return so(e).values}function Px(e){const{split:t,types:i}=so(e),r=t.length;return o=>{let c="";for(let u=0;u<r;u++)if(c+=t[u],o[u]!==void 0){const h=i[u];h===zx?c+=Fa(o[u]):h===Vx?c+=ae.transform(o[u]):c+=o[u]}return c}}const SS=e=>typeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e;function MS(e){const t=Bx(e);return Px(e)(t.map(SS))}const bn={test:yS,parse:Bx,createTransformer:Px,getAnimatableNone:MS};function Af(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function ES({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,t/=100,i/=100;let o=0,c=0,u=0;if(!t)o=c=u=i;else{const h=i<.5?i*(1+t):i+t-i*t,d=2*i-h;o=Af(d,h,e+1/3),c=Af(d,h,e),u=Af(d,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:r}}function vc(e,t){return i=>i>0?t:e}const Xt=(e,t,i)=>e+(t-e)*i,Nf=(e,t,i)=>{const r=e*e,o=i*(t*t-r)+r;return o<0?0:Math.sqrt(o)},CS=[yd,vs,Sr],TS=e=>CS.find(t=>t.test(e));function yv(e){const t=TS(e);if(!t)return!1;let i=t.parse(e);return t===Sr&&(i=ES(i)),i}const xv=(e,t)=>{const i=yv(e),r=yv(t);if(!i||!r)return vc(e,t);const o={...i};return c=>(o.red=Nf(i.red,r.red,c),o.green=Nf(i.green,r.green,c),o.blue=Nf(i.blue,r.blue,c),o.alpha=Xt(i.alpha,r.alpha,c),vs.transform(o))},xd=new Set(["none","hidden"]);function jS(e,t){return xd.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}function _S(e,t){return i=>Xt(e,t,i)}function pm(e){return typeof e=="number"?_S:typeof e=="string"?fm(e)?vc:ae.test(e)?xv:RS:Array.isArray(e)?Ux:typeof e=="object"?ae.test(e)?xv:AS:vc}function Ux(e,t){const i=[...e],r=i.length,o=e.map((c,u)=>pm(c)(c,t[u]));return c=>{for(let u=0;u<r;u++)i[u]=o[u](c);return i}}function AS(e,t){const i={...e,...t},r={};for(const o in i)e[o]!==void 0&&t[o]!==void 0&&(r[o]=pm(e[o])(e[o],t[o]));return o=>{for(const c in r)i[c]=r[c](o);return i}}function NS(e,t){const i=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const c=t.types[o],u=e.indexes[c][r[c]],h=e.values[u]??0;i[o]=h,r[c]++}return i}const RS=(e,t)=>{const i=bn.createTransformer(t),r=so(e),o=so(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?xd.has(e)&&!o.values.length||xd.has(t)&&!r.values.length?jS(e,t):fo(Ux(NS(r,o),o.values),i):vc(e,t)};function Hx(e,t,i){return typeof e=="number"&&typeof t=="number"&&typeof i=="number"?Xt(e,t,i):pm(e)(e,t)}const OS=e=>{const t=({timestamp:i})=>e(i);return{start:(i=!0)=>Ht.update(t,i),stop:()=>ai(t),now:()=>be.isProcessing?be.timestamp:_e.now()}},Zx=(e,t,i=10)=>{let r="";const o=Math.max(Math.round(t/i),2);for(let c=0;c<o;c++)r+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},yc=2e4;function gm(e){let t=0;const i=50;let r=e.next(t);for(;!r.done&&t<yc;)t+=i,r=e.next(t);return t>=yc?1/0:t}function kS(e,t=100,i){const r=i({...e,keyframes:[0,t]}),o=Math.min(gm(r),yc);return{type:"keyframes",ease:c=>r.next(o*c).value/t,duration:hn(o)}}const DS=5;function Yx(e,t,i){const r=Math.max(t-DS,0);return wx(i-e(r),t-r)}const Qt={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},Rf=.001;function LS({duration:e=Qt.duration,bounce:t=Qt.bounce,velocity:i=Qt.velocity,mass:r=Qt.mass}){let o,c,u=1-t;u=Dn(Qt.minDamping,Qt.maxDamping,u),e=Dn(Qt.minDuration,Qt.maxDuration,hn(e)),u<1?(o=m=>{const v=m*u,y=v*e,x=v-i,w=bd(m,u),M=Math.exp(-y);return Rf-x/w*M},c=m=>{const y=m*u*e,x=y*i+i,w=Math.pow(u,2)*Math.pow(m,2)*e,M=Math.exp(-y),S=bd(Math.pow(m,2),u);return(-o(m)+Rf>0?-1:1)*((x-w)*M)/S}):(o=m=>{const v=Math.exp(-m*e),y=(m-i)*e+1;return-Rf+v*y},c=m=>{const v=Math.exp(-m*e),y=(i-m)*(e*e);return v*y});const h=5/e,d=VS(o,c,h);if(e=xn(e),isNaN(d))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:e};{const m=Math.pow(d,2)*r;return{stiffness:m,damping:u*2*Math.sqrt(r*m),duration:e}}}const zS=12;function VS(e,t,i){let r=i;for(let o=1;o<zS;o++)r=r-e(r)/t(r);return r}function bd(e,t){return e*Math.sqrt(1-t*t)}const BS=["duration","bounce"],PS=["stiffness","damping","mass"];function bv(e,t){return t.some(i=>e[i]!==void 0)}function US(e){let t={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...e};if(!bv(e,PS)&&bv(e,BS))if(t.velocity=0,e.visualDuration){const i=e.visualDuration,r=2*Math.PI/(i*1.2),o=r*r,c=2*Dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Qt.mass,stiffness:o,damping:c}}else{const i=LS({...e,velocity:0});t={...t,...i,mass:Qt.mass},t.isResolvedFromDuration=!0}return t}function xc(e=Qt.visualDuration,t=Qt.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=i;const c=i.keyframes[0],u=i.keyframes[i.keyframes.length-1],h={done:!1,value:c},{stiffness:d,damping:m,mass:v,duration:y,velocity:x,isResolvedFromDuration:w}=US({...i,velocity:-hn(i.velocity||0)}),M=x||0,S=m/(2*Math.sqrt(d*v)),T=u-c,j=hn(Math.sqrt(d/v)),_=Math.abs(T)<5;r||(r=_?Qt.restSpeed.granular:Qt.restSpeed.default),o||(o=_?Qt.restDelta.granular:Qt.restDelta.default);let N;if(S<1){const z=bd(j,S);N=K=>{const Z=Math.exp(-S*j*K);return u-Z*((M+S*j*T)/z*Math.sin(z*K)+T*Math.cos(z*K))}}else if(S===1)N=z=>u-Math.exp(-j*z)*(T+(M+j*T)*z);else{const z=j*Math.sqrt(S*S-1);N=K=>{const Z=Math.exp(-S*j*K),U=Math.min(z*K,300);return u-Z*((M+S*j*T)*Math.sinh(U)+z*T*Math.cosh(U))/z}}const D={calculatedDuration:w&&y||null,next:z=>{const K=N(z);if(w)h.done=z>=y;else{let Z=z===0?M:0;S<1&&(Z=z===0?xn(M):Yx(N,z,K));const U=Math.abs(Z)<=r,W=Math.abs(u-K)<=o;h.done=U&&W}return h.value=h.done?u:K,h},toString:()=>{const z=Math.min(gm(D),yc),K=Zx(Z=>D.next(z*Z).value,z,30);return z+"ms "+K},toTransition:()=>{}};return D}xc.applyToOptions=e=>{const t=kS(e,100,xc);return e.ease=t.ease,e.duration=xn(t.duration),e.type="keyframes",e};function wd({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:h,max:d,restDelta:m=.5,restSpeed:v}){const y=e[0],x={done:!1,value:y},w=U=>h!==void 0&&U<h||d!==void 0&&U>d,M=U=>h===void 0?d:d===void 0||Math.abs(h-U)<Math.abs(d-U)?h:d;let S=i*t;const T=y+S,j=u===void 0?T:u(T);j!==T&&(S=j-y);const _=U=>-S*Math.exp(-U/r),N=U=>j+_(U),D=U=>{const W=_(U),nt=N(U);x.done=Math.abs(W)<=m,x.value=x.done?j:nt};let z,K;const Z=U=>{w(x.value)&&(z=U,K=xc({keyframes:[x.value,M(x.value)],velocity:Yx(N,U,x.value),damping:o,stiffness:c,restDelta:m,restSpeed:v}))};return Z(0),{calculatedDuration:null,next:U=>{let W=!1;return!K&&z===void 0&&(W=!0,D(U),Z(U)),z!==void 0&&U>=z?K.next(U-z):(!W&&D(U),x)}}}function HS(e,t,i){const r=[],o=i||ri.mix||Hx,c=e.length-1;for(let u=0;u<c;u++){let h=o(e[u],e[u+1]);if(t){const d=Array.isArray(t)?t[u]||fn:t;h=fo(d,h)}r.push(h)}return r}function Gx(e,t,{clamp:i=!0,ease:r,mixer:o}={}){const c=e.length;if(lm(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=HS(t,r,o),d=h.length,m=v=>{if(u&&v<e[0])return t[0];let y=0;if(d>1)for(;y<e.length-2&&!(v<e[y+1]);y++);const x=no(e[y],e[y+1],v);return h[y](x)};return i?v=>m(Dn(e[0],e[c-1],v)):m}function ZS(e,t){const i=e[e.length-1];for(let r=1;r<=t;r++){const o=no(0,t,r);e.push(Xt(i,1,o))}}function YS(e){const t=[0];return ZS(t,e.length-1),t}function GS(e,t){return e.map(i=>i*t)}function KS(e,t){return e.map(()=>t||Nx).splice(0,e.length-1)}function qa({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){const o=iS(r)?r.map(mv):mv(r),c={done:!1,value:t[0]},u=GS(i&&i.length===t.length?i:YS(t),e),h=Gx(u,t,{ease:Array.isArray(o)?o:KS(t,o)});return{calculatedDuration:e,next:d=>(c.value=h(d),c.done=d>=e,c)}}const FS=e=>e!==null;function vm(e,{repeat:t,repeatType:i="loop"},r,o=1){const c=e.filter(FS),h=o<0||t&&i!=="loop"&&t%2===1?0:c.length-1;return!h||r===void 0?c[h]:r}const qS={decay:wd,inertia:wd,tween:qa,keyframes:qa,spring:xc};function Kx(e){typeof e.type=="string"&&(e.type=qS[e.type])}class ym{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,i){return this.finished.then(t,i)}}const XS=e=>e/100;class Bc extends ym{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:i}=this.options;i&&i.updatedAt!==_e.now()&&this.tick(_e.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;Kx(t);const{type:i=qa,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=t;let{keyframes:h}=t;const d=i||qa;d!==qa&&typeof h[0]!="number"&&(this.mixKeyframes=fo(XS,Hx(h[0],h[1])),h=[0,100]);const m=d({...t,keyframes:h});c==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...h].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=gm(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=m}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:r,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:h,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:v,repeat:y,repeatType:x,repeatDelay:w,type:M,onUpdate:S,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const j=this.currentTime-m*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?j<0:j>o;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let N=this.currentTime,D=r;if(y){const U=Math.min(this.currentTime,o)/h;let W=Math.floor(U),nt=U%1;!nt&&U>=1&&(nt=1),nt===1&&W--,W=Math.min(W,y+1),W%2&&(x==="reverse"?(nt=1-nt,w&&(nt-=w/h)):x==="mirror"&&(D=u)),N=Dn(0,1,nt)*h}const z=_?{done:!1,value:v[0]}:D.next(N);c&&(z.value=c(z.value));let{done:K}=z;!_&&d!==null&&(K=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&K);return Z&&M!==wd&&(z.value=vm(v,this.options,T,this.speed)),S&&S(z.value),Z&&this.finish(),z}then(t,i){return this.finished.then(t,i)}get duration(){return hn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+hn(t)}get time(){return hn(this.currentTime)}set time(t){t=xn(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(_e.now());const i=this.playbackSpeed!==t;this.playbackSpeed=t,i&&(this.time=hn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=OS,startTime:i}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i??r),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(_e.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 IS(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ys=e=>e*180/Math.PI,Sd=e=>{const t=ys(Math.atan2(e[1],e[0]));return Md(t)},WS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sd,rotateZ:Sd,skewX:e=>ys(Math.atan(e[1])),skewY:e=>ys(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Md=e=>(e=e%360,e<0&&(e+=360),e),wv=Sd,Sv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Mv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),QS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sv,scaleY:Mv,scale:e=>(Sv(e)+Mv(e))/2,rotateX:e=>Md(ys(Math.atan2(e[6],e[5]))),rotateY:e=>Md(ys(Math.atan2(-e[2],e[0]))),rotateZ:wv,rotate:wv,skewX:e=>ys(Math.atan(e[4])),skewY:e=>ys(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ed(e){return e.includes("scale")?1:0}function Cd(e,t){if(!e||e==="none")return Ed(t);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(i)r=QS,o=i;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=WS,o=h}if(!o)return Ed(t);const c=r[t],u=o[1].split(",").map($S);return typeof c=="function"?c(u):u[c]}const JS=(e,t)=>{const{transform:i="none"}=getComputedStyle(e);return Cd(i,t)};function $S(e){return parseFloat(e.trim())}const Pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(Pr),Ev=e=>e===Br||e===ot,tM=new Set(["x","y","z"]),eM=Pr.filter(e=>!tM.has(e));function nM(e){const t=[];return eM.forEach(i=>{const r=e.getValue(i);r!==void 0&&(t.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),t}const Pi={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),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})=>Cd(t,"x"),y:(e,{transform:t})=>Cd(t,"y")};Pi.translateX=Pi.x;Pi.translateY=Pi.y;const xs=new Set;let Td=!1,jd=!1,_d=!1;function Fx(){if(jd){const e=Array.from(xs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),i=new Map;t.forEach(r=>{const o=nM(r);o.length&&(i.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=i.get(r);o&&o.forEach(([c,u])=>{r.getValue(c)?.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jd=!1,Td=!1,xs.forEach(e=>e.complete(_d)),xs.clear()}function qx(){xs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jd=!0)})}function iM(){_d=!0,qx(),Fx(),_d=!1}class xm{constructor(t,i,r,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=i,this.name=r,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(xs.add(this),Td||(Td=!0,Ht.read(qx),Ht.resolveKeyframes(Fx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:i,element:r,motionValue:o}=this;if(t[0]===null){const c=o?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&i){const h=r.readValue(i,u);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}IS(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xs.delete(this)}cancel(){this.state==="scheduled"&&(xs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sM=e=>e.startsWith("--");function rM(e,t,i){sM(t)?e.style.setProperty(t,i):e.style[t]=i}const aM={};function Xx(e,t){const i=bx(e);return()=>aM[t]??i()}const oM=Xx(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ix=Xx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ga=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,Cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ga([0,.65,.55,1]),circOut:Ga([.55,0,1,.45]),backIn:Ga([.31,.01,.66,-.59]),backOut:Ga([.33,1.53,.69,.99])};function Wx(e,t){if(e)return typeof e=="function"?Ix()?Zx(e,t):"ease-out":Rx(e)?Ga(e):Array.isArray(e)?e.map(i=>Wx(i,t)||Cv.easeOut):Cv[e]}function lM(e,t,i,{delay:r=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:h="easeOut",times:d}={},m=void 0){const v={[t]:i};d&&(v.offset=d);const y=Wx(h,o);Array.isArray(y)&&(v.easing=y);const x={delay:r,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return m&&(x.pseudoElement=m),e.animate(v,x)}function Qx(e){return typeof e=="function"&&"applyToOptions"in e}function cM({type:e,...t}){return Qx(e)&&Ix()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Jx extends ym{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:i,name:r,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:h,onComplete:d}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,lm(typeof t.type!="string");const m=cM(t);this.animation=lM(i,r,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const v=vm(o,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(v):rM(i,r,v),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return hn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+hn(t)}get time(){return hn(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xn(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&oM()?(this.animation.timeline=t,fn):i(this)}}const $x={anticipate:jx,backInOut:Tx,circInOut:Ax};function uM(e){return e in $x}function hM(e){typeof e.ease=="string"&&uM(e.ease)&&(e.ease=$x[e.ease])}const Of=10;class fM extends Jx{constructor(t){hM(t),Kx(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:i,onUpdate:r,onComplete:o,element:c,...u}=this.options;if(!i)return;if(t!==void 0){i.set(t);return}const h=new Bc({...u,autoplay:!1}),d=Math.max(Of,_e.now()-this.startTime),m=Dn(0,Of,d-Of);i.setWithVelocity(h.sample(Math.max(0,d-m)).value,h.sample(d).value,m),h.stop()}}const Tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bn.test(e)||e==="0")&&!e.startsWith("url("));function dM(e){const t=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}function mM(e,t,i,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=Tv(o,t),h=Tv(c,t);return!u||!h?!1:dM(e)||(i==="spring"||Qx(i))&&r}function Ad(e){e.duration=0,e.type="keyframes"}const pM=new Set(["opacity","clipPath","filter","transform"]),gM=bx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vM(e){const{motionValue:t,name:i,repeatDelay:r,repeatType:o,damping:c,type:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:m}=t.owner.getProps();return gM()&&i&&pM.has(i)&&(i!=="transform"||!m)&&!d&&!r&&o!=="mirror"&&c!==0&&u!=="inertia"}const yM=40;class xM extends ym{constructor({autoplay:t=!0,delay:i=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:h,name:d,motionValue:m,element:v,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=_e.now();const x={autoplay:t,delay:i,type:r,repeat:o,repeatDelay:c,repeatType:u,name:d,motionValue:m,element:v,...y},w=v?.KeyframeResolver||xm;this.keyframeResolver=new w(h,(M,S,T)=>this.onKeyframesResolved(M,S,x,!T),d,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,i,r,o){this.keyframeResolver=void 0;const{name:c,type:u,velocity:h,delay:d,isHandoff:m,onUpdate:v}=r;this.resolvedAt=_e.now(),mM(t,c,u,h)||((ri.instantAnimations||!d)&&v?.(vm(t,r,i)),t[0]=t[t.length-1],Ad(r),r.repeat=0);const x={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>yM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...r,keyframes:t},w=!m&&vM(x),M=x.motionValue?.owner?.current,S=w?new fM({...x,element:M}):new Bc(x);S.finished.then(()=>{this.notifyFinished()}).catch(fn),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,i){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),iM()),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()}}function tb(e,t,i,r=0,o=1){const c=Array.from(e).sort((m,v)=>m.sortNodePosition(v)).indexOf(t),u=e.size,h=(u-1)*r;return typeof i=="function"?i(c,u):o===1?c*r:h-c*r}const bM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wM(e){const t=bM.exec(e);if(!t)return[,];const[,i,r,o]=t;return[`--${i??r}`,o]}function eb(e,t,i=1){const[r,o]=wM(e);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const u=c.trim();return vx(u)?parseFloat(u):u}return fm(o)?eb(o,t,i+1):o}const SM={type:"spring",stiffness:500,damping:25,restSpeed:10},MM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),EM={type:"keyframes",duration:.8},CM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TM=(e,{keyframes:t})=>t.length>2?EM:Ur.has(e)?e.startsWith("scale")?MM(t[1]):SM:CM,jM=e=>e!==null;function _M(e,{repeat:t,repeatType:i="loop"},r){const o=e.filter(jM),c=t&&i!=="loop"&&t%2===1?0:o.length-1;return o[c]}function nb(e,t){if(e?.inherit&&t){const{inherit:i,...r}=e;return{...t,...r}}return e}function bm(e,t){const i=e?.[t]??e?.default??e;return i!==e?nb(i,e):i}function AM({when:e,delay:t,delayChildren:i,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:h,from:d,elapsed:m,...v}){return!!Object.keys(v).length}const wm=(e,t,i,r={},o,c)=>u=>{const h=bm(r,e)||{},d=h.delay||r.delay||0;let{elapsed:m=0}=r;m=m-xn(d);const v={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-m,onUpdate:x=>{t.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:c?void 0:o};AM(h)||Object.assign(v,TM(e,v)),v.duration&&(v.duration=xn(v.duration)),v.repeatDelay&&(v.repeatDelay=xn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let y=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Ad(v),v.delay===0&&(y=!0)),(ri.instantAnimations||ri.skipAnimations||o?.shouldSkipAnimations)&&(y=!0,Ad(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,y&&!c&&t.get()!==void 0){const x=_M(v.keyframes,h);if(x!==void 0){Ht.update(()=>{v.onUpdate(x),v.onComplete()});return}}return h.isSync?new Bc(v):new xM(v)};function jv(e){const t=[{},{}];
vendor: 21,186 bytes, line 9
9return e?.values.forEach((i,r)=>{t[0][r]=i.get(),t[1][r]=i.getVelocity()}),t}function Sm(e,t,i,r){if(typeof t=="function"){const[o,c]=jv(r);t=t(i!==void 0?i:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=jv(r);t=t(i!==void 0?i:e.custom,o,c)}return t}function Ar(e,t,i){const r=e.getProps();return Sm(r,t,i!==void 0?i:r.custom,e)}const ib=new Set(["width","height","top","left","right","bottom",...Pr]),_v=30,NM=e=>!isNaN(parseFloat(e)),Xa={current:void 0};class RM{constructor(t,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=_e.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=i.owner}setCurrent(t){this.current=t,this.updatedAt=_e.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=NM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new cm);const r=this.events[t].add(i);return t==="change"?()=>{r(),Ht.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,i){this.passiveEffect=t,this.stopPassiveEffect=i}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,i,r){this.set(i),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,i=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&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 Xa.current&&Xa.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=_e.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_v)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,_v);return wx(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(t){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=t(i),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 ws(e,t){return new RM(e,t)}const Nd=e=>Array.isArray(e);function OM(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,ws(i))}function kM(e){return Nd(e)?e[e.length-1]||0:e}function DM(e,t){const i=Ar(e,t);let{transitionEnd:r={},transition:o={},...c}=i||{};c={...c,...r};for(const u in c){const h=kM(c[u]);OM(e,u,h)}}const de=e=>!!(e&&e.getVelocity);function LM(e){return!!(de(e)&&e.add)}function Rd(e,t){const i=e.getValue("willChange");if(LM(i))return i.add(t);if(!i&&ri.WillChange){const r=new ri.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Mm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const zM="framerAppearId",sb="data-"+Mm(zM);function rb(e){return e.props[sb]}function VM({protectedKeys:e,needsAnimating:t},i){const r=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,r}function ab(e,t,{delay:i=0,transitionOverride:r,type:o}={}){let{transition:c,transitionEnd:u,...h}=t;const d=e.getDefaultTransition();c=c?nb(c,d):d;const m=c?.reduceMotion;r&&(c=r);const v=[],y=o&&e.animationState&&e.animationState.getState()[o];for(const x in h){const w=e.getValue(x,e.latestValues[x]??null),M=h[x];if(M===void 0||y&&VM(y,x))continue;const S={delay:i,...bm(c||{},x)},T=w.get();if(T!==void 0&&!w.isAnimating&&!Array.isArray(M)&&M===T&&!S.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const D=rb(e);if(D){const z=window.MotionHandoffAnimation(D,x,Ht);z!==null&&(S.startTime=z,j=!0)}}Rd(e,x);const _=m??e.shouldReduceMotion;w.start(wm(x,w,M,_&&ib.has(x)?{type:!1}:S,e,j));const N=w.animation;N&&v.push(N)}if(u){const x=()=>Ht.update(()=>{u&&DM(e,u)});v.length?Promise.all(v).then(x):x()}return v}function Od(e,t,i={}){const r=Ar(e,t,i.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(o=i.transitionOverride);const c=r?()=>Promise.all(ab(e,r,i)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:y}=o;return BM(e,t,d,m,v,y,i)}:()=>Promise.resolve(),{when:h}=o;if(h){const[d,m]=h==="beforeChildren"?[c,u]:[u,c];return d().then(()=>m())}else return Promise.all([c(),u(i.delay)])}function BM(e,t,i=0,r=0,o=0,c=1,u){const h=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),h.push(Od(d,t,{...u,delay:i+(typeof r=="function"?0:r)+tb(e.variantChildren,d,r,o,c)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(h)}function PM(e,t,i={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(c=>Od(e,c,i));r=Promise.all(o)}else if(typeof t=="string")r=Od(e,t,i);else{const o=typeof t=="function"?Ar(e,t,i.custom):t;r=Promise.all(ab(e,o,i))}return r.then(()=>{e.notify("AnimationComplete",t)})}const UM={test:e=>e==="auto",parse:e=>e},ob=e=>t=>t.test(e),lb=[Br,ot,On,Vi,gS,pS,UM],Av=e=>lb.find(ob(e));function HM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xx(e):!0}const ZM=new Set(["brightness","contrast","saturate","opacity"]);function YM(e){const[t,i]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=i.match(dm)||[];if(!r)return e;const o=i.replace(r,"");let c=ZM.has(t)?1:0;return r!==i&&(c*=100),t+"("+c+o+")"}const GM=/\b([a-z-]*)\(.*?\)/gu,kd={...bn,getAnimatableNone:e=>{const t=e.match(GM);return t?t.map(YM).join(" "):e}},Dd={...bn,getAnimatableNone:e=>{const t=bn.parse(e);return bn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Nv={...Br,transform:Math.round},KM={rotate:Vi,rotateX:Vi,rotateY:Vi,rotateZ:Vi,scale:Pl,scaleX:Pl,scaleY:Pl,scaleZ:Pl,skew:Vi,skewX:Vi,skewY:Vi,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:io,originX:gv,originY:gv,originZ:ot},Em={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,inset:ot,insetBlock:ot,insetBlockStart:ot,insetBlockEnd:ot,insetInline:ot,insetInlineStart:ot,insetInlineEnd:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,paddingBlock:ot,paddingBlockStart:ot,paddingBlockEnd:ot,paddingInline:ot,paddingInlineStart:ot,paddingInlineEnd:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,marginBlock:ot,marginBlockStart:ot,marginBlockEnd:ot,marginInline:ot,marginInlineStart:ot,marginInlineEnd:ot,fontSize:ot,backgroundPositionX:ot,backgroundPositionY:ot,...KM,zIndex:Nv,fillOpacity:io,strokeOpacity:io,numOctaves:Nv},FM={...Em,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:kd,WebkitFilter:kd,mask:Dd,WebkitMask:Dd},cb=e=>FM[e],qM=new Set([kd,Dd]);function ub(e,t){let i=cb(e);return qM.has(i)||(i=bn),i.getAnimatableNone?i.getAnimatableNone(t):void 0}const XM=new Set(["auto","none","0"]);function IM(e,t,i){let r=0,o;for(;r<e.length&&!o;){const c=e[r];typeof c=="string"&&!XM.has(c)&&so(c).values.length&&(o=e[r]),r++}if(o&&i)for(const c of t)e[c]=ub(i,o)}class WM extends xm{constructor(t,i,r,o,c){super(t,i,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:i,name:r}=this;if(!i||!i.current)return;super.readKeyframes();for(let v=0;v<t.length;v++){let y=t[v];if(typeof y=="string"&&(y=y.trim(),fm(y))){const x=eb(y,i.current);x!==void 0&&(t[v]=x),v===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!ib.has(r)||t.length!==2)return;const[o,c]=t,u=Av(o),h=Av(c),d=pv(o),m=pv(c);if(d!==m&&Pi[r]){this.needsMeasurement=!0;return}if(u!==h)if(Ev(u)&&Ev(h))for(let v=0;v<t.length;v++){const y=t[v];typeof y=="string"&&(t[v]=parseFloat(y))}else Pi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:i}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||HM(t[o]))&&r.push(o);r.length&&IM(t,r,i)}measureInitialState(){const{element:t,unresolvedKeyframes:i,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:i,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(i);o&&o.jump(this.measuredOrigin,!1);const c=r.length-1,u=r[c];r[c]=Pi[i](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,d])=>{t.getValue(h).set(d)}),this.resolveNoneKeyframes()}}const QM=new Set(["opacity","clipPath","filter","transform"]);function Cm(e,t,i){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const hb=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ld(e){return yx(e)&&"offsetHeight"in e}const{schedule:Tm}=Ox(queueMicrotask,!1),vn={x:!1,y:!1};function fb(){return vn.x||vn.y}function JM(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function db(e,t){const i=Cm(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[i,o,()=>r.abort()]}function $M(e){return!(e.pointerType==="touch"||fb())}function t8(e,t,i={}){const[r,o,c]=db(e,i);return r.forEach(u=>{let h=!1,d=!1,m;const v=()=>{u.removeEventListener("pointerleave",M)},y=T=>{m&&(m(T),m=void 0),v()},x=T=>{h=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),d&&(d=!1,y(T))},w=()=>{h=!0,window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",x,o)},M=T=>{if(T.pointerType!=="touch"){if(h){d=!0;return}y(T)}},S=T=>{if(!$M(T))return;d=!1;const j=t(u,T);typeof j=="function"&&(m=j,u.addEventListener("pointerleave",M,o))};u.addEventListener("pointerenter",S,o),u.addEventListener("pointerdown",w,o)}),c}const mb=(e,t)=>t?e===t?!0:mb(e,t.parentElement):!1,jm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,e8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function n8(e){return e8.has(e.tagName)||e.isContentEditable===!0}const i8=new Set(["INPUT","SELECT","TEXTAREA"]);function s8(e){return i8.has(e.tagName)||e.isContentEditable===!0}const rc=new WeakSet;function Rv(e){return t=>{t.key==="Enter"&&e(t)}}function kf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const r8=(e,t)=>{const i=e.currentTarget;if(!i)return;const r=Rv(()=>{if(rc.has(i))return;kf(i,"down");const o=Rv(()=>{kf(i,"up")}),c=()=>kf(i,"cancel");i.addEventListener("keyup",o,t),i.addEventListener("blur",c,t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)};function Ov(e){return jm(e)&&!fb()}const kv=new WeakSet;function a8(e,t,i={}){const[r,o,c]=db(e,i),u=h=>{const d=h.currentTarget;if(!Ov(h)||kv.has(h))return;rc.add(d),i.stopPropagation&&kv.add(h);const m=t(d,h),v=(w,M)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),rc.has(d)&&rc.delete(d),Ov(w)&&typeof m=="function"&&m(w,{success:M})},y=w=>{v(w,d===window||d===document||i.useGlobalTarget||mb(d,w.target))},x=w=>{v(w,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",x,o)};return r.forEach(h=>{(i.useGlobalTarget?window:h).addEventListener("pointerdown",u,o),Ld(h)&&(h.addEventListener("focus",m=>r8(m,o)),!n8(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function _m(e){return yx(e)&&"ownerSVGElement"in e}const ac=new WeakMap;let oc;const pb=(e,t,i)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:_m(r)&&"getBBox"in r?r.getBBox()[t]:r[i],o8=pb("inline","width","offsetWidth"),l8=pb("block","height","offsetHeight");function c8({target:e,borderBoxSize:t}){ac.get(e)?.forEach(i=>{i(e,{get width(){return o8(e,t)},get height(){return l8(e,t)}})})}function u8(e){e.forEach(c8)}function h8(){typeof ResizeObserver>"u"||(oc=new ResizeObserver(u8))}function f8(e,t){oc||h8();const i=Cm(e);return i.forEach(r=>{let o=ac.get(r);o||(o=new Set,ac.set(r,o)),o.add(t),oc?.observe(r)}),()=>{i.forEach(r=>{const o=ac.get(r);o?.delete(t),o?.size||oc?.unobserve(r)})}}const lc=new Set;let Mr;function d8(){Mr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};lc.forEach(t=>t(e))},window.addEventListener("resize",Mr)}function m8(e){return lc.add(e),Mr||d8(),()=>{lc.delete(e),!lc.size&&typeof Mr=="function"&&(window.removeEventListener("resize",Mr),Mr=void 0)}}function Dv(e,t){return typeof e=="function"?m8(e):f8(e,t)}function p8(e){return _m(e)&&e.tagName==="svg"}function g8(...e){const t=!Array.isArray(e[0]),i=t?0:-1,r=e[0+i],o=e[1+i],c=e[2+i],u=e[3+i],h=Gx(o,c,u);return t?h(r):h}function v8(e,t,i={}){const r=e.get();let o=null,c=r,u;const h=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,d=()=>{o&&(o.stop(),o=null)},m=()=>{d();const v=zv(e.get()),y=zv(c);v!==y&&(o=new Bc({keyframes:[v,y],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:u}))};if(e.attach((v,y)=>{c=v,u=x=>y(Lv(x,h)),Ht.postRender(()=>{m(),e.events.animationStart?.notify(),o?.then(()=>{e.events.animationComplete?.notify()})})},d),de(t)){const v=t.on("change",x=>e.set(Lv(x,h))),y=e.on("destroy",v);return()=>{v(),y()}}return d}function Lv(e,t){return t?e+t:e}function zv(e){return typeof e=="number"?e:parseFloat(e)}const y8=[...lb,ae,bn],x8=e=>y8.find(ob(e)),Vv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Er=()=>({x:Vv(),y:Vv()}),Bv=()=>({min:0,max:0}),ue=()=>({x:Bv(),y:Bv()}),b8=new WeakMap;function Pc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ro(e){return typeof e=="string"||Array.isArray(e)}const Am=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nm=["initial",...Am];function Uc(e){return Pc(e.animate)||Nm.some(t=>ro(e[t]))}function gb(e){return!!(Uc(e)||e.variants)}function w8(e,t,i){for(const r in t){const o=t[r],c=i[r];if(de(o))e.addValue(r,o);else if(de(c))e.addValue(r,ws(o,{owner:e}));else if(c!==o)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(r);e.addValue(r,ws(u!==void 0?u:o,{owner:e}))}}for(const r in i)t[r]===void 0&&e.removeValue(r);return t}const zd={current:null},vb={current:!1},S8=typeof window<"u";function M8(){if(vb.current=!0,!!S8)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zd.current=e.matches;e.addEventListener("change",t),t()}else zd.current=!1}const Pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let bc={};function yb(e){bc=e}function E8(){return bc}class C8{scrapeMotionValuesFromProps(t,i,r){return{}}constructor({parent:t,props:i,presenceContext:r,reducedMotionConfig:o,skipAnimations:c,blockInitialAnimation:u,visualState:h},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=_e.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Ht.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=h;this.latestValues=m,this.baseTarget={...m},this.initialValues=i.initial?{...m}:{},this.renderState=v,this.parent=t,this.props=i,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=c,this.options=d,this.blockInitialAnimation=!!u,this.isControllingVariants=Uc(i),this.isVariantNode=gb(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...x}=this.scrapeMotionValuesFromProps(i,{},this);for(const w in x){const M=x[w];m[w]!==void 0&&de(M)&&M.set(m[w])}}mount(t){if(this.hasBeenMounted)for(const i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,b8.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((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(vb.current||M8(),this.shouldReduceMotion=zd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ai(this.notifyUpdate),ai(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 i=this.features[t];i&&(i.unmount(),i.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,i){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),i.accelerate&&QM.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:h,times:d,ease:m,duration:v}=i.accelerate,y=new Jx({element:this.current,name:t,keyframes:h,times:d,ease:m,duration:xn(v)}),x=u(y);this.valueSubscriptions.set(t,()=>{x(),y.cancel()});return}const r=Ur.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Ht.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{o(),c&&c(),i.owner&&i.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 bc){const i=bc[t];if(!i)continue;const{isEnabled:r,Feature:o}=i;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let r=0;r<Pv.length;r++){const o=Pv[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=t[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=w8(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}
vendor: 15,179 bytes, line 9
9addVariantChild(t){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const r=this.values.get(t);i!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&i!==void 0&&(r=ws(i===null?void 0:i,{owner:this}),this.addValue(t,r)),r}readValue(t,i){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(vx(r)||xx(r))?r=parseFloat(r):!x8(r)&&bn.test(i)&&(r=ub(t,i)),this.setBaseTarget(t,de(r)?r.get():r)),de(r)?r.get():r}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const c=Sm(this.props,i,this.presenceContext?.custom);c&&(r=c[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!de(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new cm),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){Tm.render(this.render)}}class xb extends C8{constructor(){super(...arguments),this.KeyframeResolver=WM}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){const r=t.style;return r?r[i]:void 0}removeValueFromRenderState(t,{vars:i,style:r}){delete i[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;de(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class Yi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function bb({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function T8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function j8(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}function Df(e){return e===void 0||e===1}function Vd({scale:e,scaleX:t,scaleY:i}){return!Df(e)||!Df(t)||!Df(i)}function gs(e){return Vd(e)||wb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wb(e){return Uv(e.x)||Uv(e.y)}function Uv(e){return e&&e!=="0%"}function wc(e,t,i){const r=e-i,o=t*r;return i+o}function Hv(e,t,i,r,o){return o!==void 0&&(e=wc(e,o,r)),wc(e,i,r)+t}function Bd(e,t=0,i=1,r,o){e.min=Hv(e.min,t,i,r,o),e.max=Hv(e.max,t,i,r,o)}function Sb(e,{x:t,y:i}){Bd(e.x,t.translate,t.scale,t.originPoint),Bd(e.y,i.translate,i.scale,i.originPoint)}const Zv=.999999999999,Yv=1.0000000000001;function _8(e,t,i,r=!1){const o=i.length;if(!o)return;t.x=t.y=1;let c,u;for(let h=0;h<o;h++){c=i[h],u=c.projectionDelta;const{visualElement:d}=c.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Tr(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Sb(e,u)),r&&gs(c.latestValues)&&Tr(e,c.latestValues))}t.x<Yv&&t.x>Zv&&(t.x=1),t.y<Yv&&t.y>Zv&&(t.y=1)}function Cr(e,t){e.min=e.min+t,e.max=e.max+t}function Gv(e,t,i,r,o=.5){const c=Xt(e.min,e.max,o);Bd(e,t,i,c,r)}function Tr(e,t){Gv(e.x,t.x,t.scaleX,t.scale,t.originX),Gv(e.y,t.y,t.scaleY,t.scale,t.originY)}function Mb(e,t){return bb(j8(e.getBoundingClientRect(),t))}function A8(e,t,i){const r=Mb(e,i),{scroll:o}=t;return o&&(Cr(r.x,o.offset.x),Cr(r.y,o.offset.y)),r}const N8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R8=Pr.length;function O8(e,t,i){let r="",o=!0;for(let c=0;c<R8;c++){const u=Pr[c],h=e[u];if(h===void 0)continue;let d=!0;if(typeof h=="number")d=h===(u.startsWith("scale")?1:0);else{const m=parseFloat(h);d=u.startsWith("scale")?m===1:m===0}if(!d||i){const m=hb(h,Em[u]);if(!d){o=!1;const v=N8[u]||u;r+=`${v}(${m}) `}i&&(t[u]=m)}}return r=r.trim(),i?r=i(t,o?"":r):o&&(r="none"),r}function Rm(e,t,i){const{style:r,vars:o,transformOrigin:c}=e;let u=!1,h=!1;for(const d in t){const m=t[d];if(Ur.has(d)){u=!0;continue}else if(Dx(d)){o[d]=m;continue}else{const v=hb(m,Em[d]);d.startsWith("origin")?(h=!0,c[d]=v):r[d]=v}}if(t.transform||(u||i?r.transform=O8(t,e.transform,i):r.transform&&(r.transform="none")),h){const{originX:d="50%",originY:m="50%",originZ:v=0}=c;r.transformOrigin=`${d} ${m} ${v}`}}function Eb(e,{style:t,vars:i},r,o){const c=e.style;let u;for(u in t)c[u]=t[u];o?.applyProjectionStyles(c,r);for(u in i)c.setProperty(u,i[u])}function Kv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ha={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ot.test(e))e=parseFloat(e);else return e;const i=Kv(e,t.target.x),r=Kv(e,t.target.y);return`${i}% ${r}%`}},k8={correct:(e,{treeScale:t,projectionDelta:i})=>{const r=e,o=bn.parse(e);if(o.length>5)return r;const c=bn.createTransformer(e),u=typeof o[0]!="number"?1:0,h=i.x.scale*t.x,d=i.y.scale*t.y;o[0+u]/=h,o[1+u]/=d;const m=Xt(h,d,.5);return typeof o[2+u]=="number"&&(o[2+u]/=m),typeof o[3+u]=="number"&&(o[3+u]/=m),c(o)}},Pd={borderRadius:{...Ha,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ha,borderTopRightRadius:Ha,borderBottomLeftRadius:Ha,borderBottomRightRadius:Ha,boxShadow:k8};function Cb(e,{layout:t,layoutId:i}){return Ur.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!Pd[e]||e==="opacity")}function Om(e,t,i){const r=e.style,o=t?.style,c={};if(!r)return c;for(const u in r)(de(r[u])||o&&de(o[u])||Cb(u,e)||i?.getValue(u)?.liveStyle!==void 0)&&(c[u]=r[u]);return c}function D8(e){return window.getComputedStyle(e)}class L8 extends xb{constructor(){super(...arguments),this.type="html",this.renderInstance=Eb}readValueFromInstance(t,i){if(Ur.has(i))return this.projection?.isProjecting?Ed(i):JS(t,i);{const r=D8(t),o=(Dx(i)?r.getPropertyValue(i):r[i])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:i}){return Mb(t,i)}build(t,i,r){Rm(t,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,i,r){return Om(t,i,r)}}const z8={offset:"stroke-dashoffset",array:"stroke-dasharray"},V8={offset:"strokeDashoffset",array:"strokeDasharray"};function B8(e,t,i=1,r=0,o=!0){e.pathLength=1;const c=o?z8:V8;e[c.offset]=`${-r}`,e[c.array]=`${t} ${i}`}const P8=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Tb(e,{attrX:t,attrY:i,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...h},d,m,v){if(Rm(e,h,m),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:x}=e;y.transform&&(x.transform=y.transform,delete y.transform),(x.transform||y.transformOrigin)&&(x.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),x.transform&&(x.transformBox=v?.transformBox??"fill-box",delete y.transformBox);for(const w of P8)y[w]!==void 0&&(x[w]=y[w],delete y[w]);t!==void 0&&(y.x=t),i!==void 0&&(y.y=i),r!==void 0&&(y.scale=r),o!==void 0&&B8(y,o,c,u,!1)}const jb=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"]),_b=e=>typeof e=="string"&&e.toLowerCase()==="svg";function U8(e,t,i,r){Eb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(jb.has(o)?o:Mm(o),t.attrs[o])}function Ab(e,t,i){const r=Om(e,t,i);for(const o in e)if(de(e[o])||de(t[o])){const c=Pr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=e[o]}return r}class H8 extends xb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if(Ur.has(i)){const r=cb(i);return r&&r.default||0}return i=jb.has(i)?i:Mm(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,r){return Ab(t,i,r)}build(t,i,r){Tb(t,i,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,i,r,o){U8(t,i,r,o)}mount(t){this.isSVGTag=_b(t.tagName),super.mount(t)}}const Z8=Nm.length;function Nb(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?Nb(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<Z8;i++){const r=Nm[i],o=e.props[r];(ro(o)||o===!1)&&(t[r]=o)}return t}function Rb(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}const Y8=[...Am].reverse(),G8=Am.length;function K8(e){return t=>Promise.all(t.map(({animation:i,options:r})=>PM(e,i,r)))}function F8(e){let t=K8(e),i=Fv(),r=!0;const o=d=>(m,v)=>{const y=Ar(e,v,d==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:x,transitionEnd:w,...M}=y;m={...m,...M,...w}}return m};function c(d){t=d(e)}function u(d){const{props:m}=e,v=Nb(e.parent)||{},y=[],x=new Set;let w={},M=1/0;for(let T=0;T<G8;T++){const j=Y8[T],_=i[j],N=m[j]!==void 0?m[j]:v[j],D=ro(N),z=j===d?_.isActive:null;z===!1&&(M=T);let K=N===v[j]&&N!==m[j]&&D;if(K&&r&&e.manuallyAnimateOnMount&&(K=!1),_.protectedKeys={...w},!_.isActive&&z===null||!N&&!_.prevProp||Pc(N)||typeof N=="boolean")continue;if(j==="exit"&&_.isActive&&z!==!0){_.prevResolvedValues&&(w={...w,..._.prevResolvedValues});continue}const Z=q8(_.prevProp,N);let U=Z||j===d&&_.isActive&&!K&&D||T>M&&D,W=!1;const nt=Array.isArray(N)?N:[N];let ct=nt.reduce(o(j),{});z===!1&&(ct={});const{prevResolvedValues:ut={}}=_,gt={...ut,...ct},mt=Y=>{U=!0,x.has(Y)&&(W=!0,x.delete(Y)),_.needsAnimating[Y]=!0;const V=e.getValue(Y);V&&(V.liveStyle=!1)};for(const Y in gt){const V=ct[Y],it=ut[Y];if(w.hasOwnProperty(Y))continue;let ht=!1;Nd(V)&&Nd(it)?ht=!Rb(V,it):ht=V!==it,ht?V!=null?mt(Y):x.add(Y):V!==void 0&&x.has(Y)?mt(Y):_.protectedKeys[Y]=!0}_.prevProp=N,_.prevResolvedValues=ct,_.isActive&&(w={...w,...ct}),r&&e.blockInitialAnimation&&(U=!1);const tt=K&&Z;U&&(!tt||W)&&y.push(...nt.map(Y=>{const V={type:j};if(typeof Y=="string"&&r&&!tt&&e.manuallyAnimateOnMount&&e.parent){const{parent:it}=e,ht=Ar(it,Y);if(it.enteringChildren&&ht){const{delayChildren:R}=ht.transition||{};V.delay=tb(it.enteringChildren,e,R)}}return{animation:Y,options:V}}))}if(x.size){const T={};if(typeof m.initial!="boolean"){const j=Ar(e,Array.isArray(m.initial)?m.initial[0]:m.initial);j&&j.transition&&(T.transition=j.transition)}x.forEach(j=>{const _=e.getBaseTarget(j),N=e.getValue(j);N&&(N.liveStyle=!0),T[j]=_??null}),y.push({animation:T})}let S=!!y.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(y):Promise.resolve()}function h(d,m){if(i[d].isActive===m)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(d,m)),i[d].isActive=m;const v=u(d);for(const y in i)i[y].protectedKeys={};return v}return{animateChanges:u,setActive:h,setAnimateFunction:c,getState:()=>i,reset:()=>{i=Fv()}}}function q8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rb(t,e):!1}function ds(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fv(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}function qv(e,t){e.min=t.min,e.max=t.max}function gn(e,t){qv(e.x,t.x),qv(e.y,t.y)}function Xv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ob=1e-4,X8=1-Ob,I8=1+Ob,kb=.01,W8=0-kb,Q8=0+kb;function Ae(e){return e.max-e.min}function J8(e,t,i){return Math.abs(e-t)<=i}function Iv(e,t,i,r=.5){e.origin=r,e.originPoint=Xt(t.min,t.max,e.origin),e.scale=Ae(i)/Ae(t),e.translate=Xt(i.min,i.max,e.origin)-e.originPoint,(e.scale>=X8&&e.scale<=I8||isNaN(e.scale))&&(e.scale=1),(e.translate>=W8&&e.translate<=Q8||isNaN(e.translate))&&(e.translate=0)}function Ia(e,t,i,r){Iv(e.x,t.x,i.x,r?r.originX:void 0),Iv(e.y,t.y,i.y,r?r.originY:void 0)}function Wv(e,t,i){e.min=i.min+t.min,e.max=e.min+Ae(t)}function $8(e,t,i){Wv(e.x,t.x,i.x),Wv(e.y,t.y,i.y)}function Qv(e,t,i){e.min=t.min-i.min,e.max=e.min+Ae(t)}function Sc(e,t,i){Qv(e.x,t.x,i.x),Qv(e.y,t.y,i.y)}function Jv(e,t,i,r,o){return e-=t,e=wc(e,1/i,r),o!==void 0&&(e=wc(e,1/o,r)),e}function t9(e,t=0,i=1,r=.5,o,c=e,u=e){if(On.test(t)&&(t=parseFloat(t),t=Xt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=Xt(c.min,c.max,r);e===c&&(h-=t),e.min=Jv(e.min,t,i,h,o),e.max=Jv(e.max,t,i,h,o)}function $v(e,t,[i,r,o],c,u){t9(e,t[i],t[r],t[o],t.scale,c,u)}const e9=["x","scaleX","originX"],n9=["y","scaleY","originY"];function t2(e,t,i,r){$v(e.x,t,e9,i?i.x:void 0,r?r.x:void 0),$v(e.y,t,n9,i?i.y:void 0,r?r.y:void 0)}function e2(e){return e.translate===0&&e.scale===1}function Db(e){return e2(e.x)&&e2(e.y)}function n2(e,t){return e.min===t.min&&e.max===t.max}function i9(e,t){return n2(e.x,t.x)&&n2(e.y,t.y)}function i2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lb(e,t){return i2(e.x,t.x)&&i2(e.y,t.y)}function s2(e){return Ae(e.x)/Ae(e.y)}function r2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function _n(e){return[e("x"),e("y")]}function s9(e,t,i){let r="";const o=e.x.translate/t.x,c=e.y.translate/t.y,u=i?.z||0;if((o||c||u)&&(r=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:m,rotate:v,rotateX:y,rotateY:x,skewX:w,skewY:M}=i;m&&(r=`perspective(${m}px) ${r}`),v&&(r+=`rotate(${v}deg) `),y&&(r+=`rotateX(${y}deg) `),x&&(r+=`rotateY(${x}deg) `),w&&(r+=`skewX(${w}deg) `),M&&(r+=`skewY(${M}deg) `)}const h=e.x.scale*t.x,d=e.y.scale*t.y;return(h!==1||d!==1)&&(r+=`scale(${h}, ${d})`),r||"none"}const zb=["TopLeft","TopRight","BottomLeft","BottomRight"],r9=zb.length,a2=e=>typeof e=="string"?parseFloat(e):e,o2=e=>typeof e=="number"||ot.test(e);function a9(e,t,i,r,o,c){o?(e.opacity=Xt(0,i.opacity??1,o9(r)),e.opacityExit=Xt(t.opacity??1,0,l9(r))):c&&(e.opacity=Xt(t.opacity??1,i.opacity??1,r));for(let u=0;u<r9;u++){const h=`border${zb[u]}Radius`;let d=l2(t,h),m=l2(i,h);if(d===void 0&&m===void 0)continue;d||(d=0),m||(m=0),d===0||m===0||o2(d)===o2(m)?(e[h]=Math.max(Xt(a2(d),a2(m),r),0),(On.test(m)||On.test(d))&&(e[h]+="%")):e[h]=m}(t.rotate||i.rotate)&&(e.rotate=Xt(t.rotate||0,i.rotate||0,r))}function l2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const o9=Vb(0,.5,_x),l9=Vb(.5,.95,fn);function Vb(e,t,i){return r=>r<e?0:r>t?1:i(no(e,t,r))}function c9(e,t,i){const r=de(e)?e:ws(e);return r.start(wm("",r,t,i)),r.animation}function ao(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}const u9=(e,t)=>
9e.depth-t.depth;class h9{constructor(){this.children=[],this.isDirty=!1}add(t){om(this.children,t),this.isDirty=!0}remove(t){gc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(u9),this.isDirty=!1,this.children.forEach(t)}}function f9(e,t){const i=_e.now(),r=({timestamp:o})=>{const c=o-i;c>=t&&(ai(r),e(c-t))};return Ht.setup(r,!0),()=>ai(r)}function cc(e){return de(e)?e.get():e}class d9{constructor(){this.members=[]}add(t){om(this.members,t);for(let i=this.members.length-1;i>=0;i--){const r=this.members[i];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;o&&o.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&gc(this.members,r)}t.scheduleRender()}remove(t){if(gc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){const i=this.members.findIndex(o=>t===o);if(i===0)return!1;let r;for(let o=i;o>=0;o--){const c=this.members[o],u=c.instance;if(c.isPresent!==!1&&(!u||u.isConnected!==!1)){r=c;break}}return r?(this.promote(r),!0):!1}promote(t,i){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,c=t.options.layoutDependency;if(!(o!==void 0&&c!==void 0&&o===c)){const d=r.instance;d&&d.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,i&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:h}=t.options;h===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:i,resumingFrom:r}=t;i.onExitComplete&&i.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const uc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lf=["","X","Y","Z"],m9=1e3;let p9=0;function zf(e,t,i,r){const{latestValues:o}=t;o[e]&&(i[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Bb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=rb(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",Ht,!(o||c))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Bb(r)}function Pb({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(u={},h=t?.()){this.id=p9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(y9),this.nodes.forEach(S9),this.nodes.forEach(M9),this.nodes.forEach(x9)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new h9)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new cm),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const d=this.eventHandlers.get(u);d&&d.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=_m(u)&&!p8(u),this.instance=u;const{layoutId:h,layout:d,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||h)&&(this.isLayoutDirty=!0),e){let v,y=0;const x=()=>this.root.updateBlockedByResize=!1;Ht.read(()=>{y=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==y&&(y=w,this.root.updateBlockedByResize=!0,v&&v(),v=f9(x,250),uc.hasAnimatedSinceResize&&(uc.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 32,486 bytes, lines 9-17
9h(h2)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||d)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:y,hasRelativeLayoutChanged:x,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||m.getDefaultTransition()||_9,{onLayoutAnimationStart:S,onLayoutAnimationComplete:T}=m.getProps(),j=!this.targetLayout||!Lb(this.targetLayout,w),_=!y&&x;if(this.options.layoutRoot||this.resumeFrom||_||y&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...bm(M,"layout"),onPlay:S,onComplete:T};(m.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(v,_)}else y||h2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ai(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(E9),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:h,layout:d}=this.options;if(h===void 0&&!d)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(c2);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(u2);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(w9),this.nodes.forEach(g9),this.nodes.forEach(v9)):this.nodes.forEach(u2),this.clearAllSnapshots();const h=_e.now();be.delta=Dn(0,1e3/60,h-be.timestamp),be.timestamp=h,be.isProcessing=!0,jf.update.process(be),jf.preRender.process(be),jf.render.process(be),be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(b9),this.sharedNodes.forEach(C9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ht.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ht.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ae(this.snapshot.measuredBox.x)&&!Ae(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 u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(h=!1),h&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:d,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Db(this.projectionDelta),d=this.getTransformTemplate(),m=d?d(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;u&&this.instance&&(h||gs(this.latestValues)||v)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let d=this.removeElementScroll(h);return u&&(d=this.removeTransform(d)),A9(d),{animationId:this.root.animationId,measuredBox:h,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return ue();const h=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(N9))){const{scroll:m}=this.root;m&&(Cr(h.x,m.offset.x),Cr(h.y,m.offset.y))}return h}removeElementScroll(u){const h=ue();if(gn(h,u),this.scroll?.wasRoot)return h;for(let d=0;d<this.path.length;d++){const m=this.path[d],{scroll:v,options:y}=m;m!==this.root&&v&&y.layoutScroll&&(v.wasRoot&&gn(h,u),Cr(h.x,v.offset.x),Cr(h.y,v.offset.y))}return h}applyTransform(u,h=!1){const d=ue();gn(d,u);for(let m=0;m<this.path.length;m++){const v=this.path[m];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Tr(d,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),gs(v.latestValues)&&Tr(d,v.latestValues)}return gs(this.latestValues)&&Tr(d,this.latestValues),d}removeTransform(u){const h=ue();gn(h,u);for(let d=0;d<this.path.length;d++){const m=this.path[d];if(!m.instance||!gs(m.latestValues))continue;Vd(m.latestValues)&&m.updateSnapshot();const v=ue(),y=m.measurePageBox();gn(v,y),t2(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return gs(this.latestValues)&&t2(h,this.latestValues),h}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==h;if(!(u||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:y}=this.options;if(!this.layout||!(v||y))return;this.resolvedRelativeTargetAt=be.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$8(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gn(this.target,this.layout.layoutBox),Sb(this.target,this.targetDelta)):gn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Vd(this.parent.latestValues)||wb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,h,d){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Sc(this.relativeTargetOrigin,h,d),gn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),h=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===be.timestamp&&(d=!1),d)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;gn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,x=this.treeScale.y;_8(this.layoutCorrected,this.treeScale,this.path,h),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ue());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xv(this.prevProjectionDelta.x,this.projectionDelta.x),Xv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ia(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==x||!r2(this.projectionDelta.x,this.prevProjectionDelta.x)||!r2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Er(),this.projectionDelta=Er(),this.projectionDeltaWithTransform=Er()}setAnimationOrigin(u,h=!1){const d=this.snapshot,m=d?d.latestValues:{},v={...this.latestValues},y=Er();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=ue(),w=d?d.source:void 0,M=this.layout?this.layout.source:void 0,S=w!==M,T=this.getStack(),j=!T||T.members.length<=1,_=!!(S&&!j&&this.options.crossfade===!0&&!this.path.some(j9));this.animationProgress=0;let N;this.mixTargetDelta=D=>{const z=D/1e3;f2(y.x,u.x,z),f2(y.y,u.y,z),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sc(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),T9(this.relativeTarget,this.relativeTargetOrigin,x,z),N&&i9(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=ue()),gn(N,this.relativeTarget)),S&&(this.animationValues=v,a9(v,m,this.latestValues,z,_,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ai(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ht.update(()=>{uc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ws(0)),this.motionValue.jump(0,!1),this.currentAnimation=c9(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),u.onUpdate&&u.onUpdate(h)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(m9),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:d,layout:m,latestValues:v}=u;if(!(!h||!d||!m)){if(this!==u&&this.layout&&m&&Ub(this.options.animationType,this.layout.layoutBox,m.layoutBox)){d=this.target||ue();const y=Ae(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const x=Ae(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+x}gn(h,d),Tr(h,v),Ia(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new d9),this.sharedNodes.get(u).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:d}={}){const m=this.getStack();m&&m.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(h=!0),!h)return;const m={};d.z&&zf("z",u,m,this.animationValues);for(let v=0;v<Lf.length;v++)zf(`rotate${Lf[v]}`,u,m,this.animationValues),zf(`skew${Lf[v]}`,u,m,this.animationValues);u.render();for(const v in m)u.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=cc(h?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=cc(h?.pointerEvents)||""),this.hasProjected&&!gs(this.latestValues)&&(u.transform=d?d({},""):"none",this.hasProjected=!1);return}u.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let y=s9(this.projectionDeltaWithTransform,this.treeScale,v);d&&(y=d(v,y)),u.transform=y;const{x,y:w}=this.projectionDelta;u.transformOrigin=`${x.origin*100}% ${w.origin*100}% 0`,m.animationValues?u.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:u.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const M in Pd){if(v[M]===void 0)continue;const{correct:S,applyTo:T,isCSSVariable:j}=Pd[M],_=y==="none"?v[M]:S(v[M],m);if(T){const N=T.length;for(let D=0;D<N;D++)u[T[D]]=_}else j?this.options.visualElement.renderState.vars[M]=_:u[M]=_}this.options.layoutId&&(u.pointerEvents=m===this?cc(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(c2),this.root.sharedNodes.clear()}}}function g9(e){e.updateLayout()}function v9(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:o}=e.options,c=t.source!==e.layout.source;o==="size"?_n(v=>{const y=c?t.measuredBox[v]:t.layoutBox[v],x=Ae(y);y.min=i[v].min,y.max=y.min+x}):Ub(o,t.layoutBox,i)&&_n(v=>{const y=c?t.measuredBox[v]:t.layoutBox[v],x=Ae(i[v]);y.max=y.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+x)});const u=Er();Ia(u,i,t.layoutBox);const h=Er();c?Ia(h,e.applyTransform(r,!0),t.measuredBox):Ia(h,i,t.layoutBox);const d=!Db(u);let m=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:y,layout:x}=v;if(y&&x){const w=ue();Sc(w,t.layoutBox,y.layoutBox);const M=ue();Sc(M,i,x.layoutBox),Lb(w,M)||(m=!0),v.options.layoutRoot&&(e.relativeTarget=M,e.relativeTargetOrigin=w,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:h,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function y9(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 x9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function b9(e){e.clearSnapshot()}function c2(e){e.clearMeasurements()}function u2(e){e.isLayoutDirty=!1}function w9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function h2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function S9(e){e.resolveTargetDelta()}function M9(e){e.calcProjection()}function E9(e){e.resetSkewAndRotation()}function C9(e){e.removeLeadSnapshot()}function f2(e,t,i){e.translate=Xt(t.translate,0,i),e.scale=Xt(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function d2(e,t,i,r){e.min=Xt(t.min,i.min,r),e.max=Xt(t.max,i.max,r)}function T9(e,t,i,r){d2(e.x,t.x,i.x,r),d2(e.y,t.y,i.y,r)}function j9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _9={duration:.45,ease:[.4,0,.1,1]},m2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),p2=m2("applewebkit/")&&!m2("chrome/")?Math.round:fn;function g2(e){e.min=p2(e.min),e.max=p2(e.max)}function A9(e){g2(e.x),g2(e.y)}function Ub(e,t,i){return e==="position"||e==="preserve-aspect"&&!J8(s2(t),s2(i),.2)}function N9(e){return e!==e.root&&e.scroll?.wasRoot}const R9=Pb({attachResizeListener:(e,t)=>ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Vf={current:void 0},Hb=Pb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vf.current){const e=new R9({});e.mount(window),e.setOptions({layoutScroll:!0}),Vf.current=e}return Vf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),go=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function v2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function O9(...e){return t=>{let i=!1;const r=e.map(o=>{const c=v2(o,t);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<r.length;o++){const c=r[o];typeof c=="function"?c():v2(e[o],null)}}}}function k9(...e){return E.useCallback(O9(...e),e)}class D9 extends E.Component{getSnapshotBeforeUpdate(t){const i=this.props.childRef.current;if(i&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=i.offsetParent,o=Ld(r)&&r.offsetWidth||0,c=Ld(r)&&r.offsetHeight||0,u=this.props.sizeRef.current;u.height=i.offsetHeight||0,u.width=i.offsetWidth||0,u.top=i.offsetTop,u.left=i.offsetLeft,u.right=o-u.width-u.left,u.bottom=c-u.height-u.top}return null}componentDidUpdate(){}render(){return this.props.children}}function L9({children:e,isPresent:t,anchorX:i,anchorY:r,root:o,pop:c}){const u=E.useId(),h=E.useRef(null),d=E.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=E.useContext(go),v=e.props?.ref??e?.ref,y=k9(h,v);return E.useInsertionEffect(()=>{const{width:x,height:w,top:M,left:S,right:T,bottom:j}=d.current;if(t||c===!1||!h.current||!x||!w)return;const _=i==="left"?`left: ${S}`:`right: ${T}`,N=r==="bottom"?`bottom: ${j}`:`top: ${M}`;h.current.dataset.motionPopId=u;const D=document.createElement("style");m&&(D.nonce=m);const z=o??document.head;return z.appendChild(D),D.sheet&&D.sheet.insertRule(` 10 [data-motion-pop-id="${u}"] { 11 position: absolute !important; 12 width: ${x}px !important; 13 height: ${w}px !important; 14 ${_}px !important; 15 ${N}px !important; 16 } 17 `),()=>{z.contains(D)&&z.removeChild(D)}},[t]),p.jsx(D9,{isPresent:t,childRef:h,sizeRef:d,pop:c,children:c===!1?e:E.cloneElement(e,{ref:y})})}const z9=({children:e,initial:t,isPresent:i,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:u,anchorX:h,anchorY:d,root:m})=>{const v=ho(V9),y=E.useId();let x=!0,w=E.useMemo(()=>(x=!1,{id:y,initial:t,isPresent:i,custom:o,onExitComplete:M=>{v.set(M,!0);for(const S of v.values())if(!S)return;r&&r()},register:M=>(v.set(M,!1),()=>v.delete(M))}),[i,v,r]);return c&&x&&(w={...w}),E.useMemo(()=>{v.forEach((M,S)=>v.set(S,!1))},[i]),E.useEffect(()=>{!i&&!v.size&&r&&r()},[i]),e=p.jsx(L9,{pop:u==="popLayout",isPresent:i,anchorX:h,anchorY:d,root:m,children:e}),p.jsx(Vc.Provider,{value:w,children:e})};function V9(){return new Map}function Zb(e=!0){const t=E.useContext(Vc);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:r,register:o}=t,c=E.useId();E.useEffect(()=>{if(e)return o(c)},[e]);const u=E.useCallback(()=>e&&r&&r(c),[c,r,e]);return!i&&r?[!1,u]:[!0]}const Ul=e=>e.key||"";function y2(e){const t=[];return E.Children.forEach(e,i=>{E.isValidElement(i)&&t.push(i)}),t}const B9=({children:e,custom:t,initial:i=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1,anchorX:h="left",anchorY:d="top",root:m})=>{const[v,y]=Zb(u),x=E.useMemo(()=>y2(e),[e]),w=u&&!v?[]:x.map(Ul),M=E.useRef(!0),S=E.useRef(x),T=ho(()=>new Map),j=E.useRef(new Set),[_,N]=E.useState(x),[D,z]=E.useState(x);am(()=>{M.current=!1,S.current=x;for(let U=0;U<D.length;U++){const W=Ul(D[U]);w.includes(W)?(T.delete(W),j.current.delete(W)):T.get(W)!==!0&&T.set(W,!1)}},[D,w.length,w.join("-")]);const K=[];if(x!==_){let U=[...x];for(let W=0;W<D.length;W++){const nt=D[W],ct=Ul(nt);w.includes(ct)||(U.splice(W,0,nt),K.push(nt))}return c==="wait"&&K.length&&(U=K),z(y2(U)),N(x),null}const{forceRender:Z}=E.useContext(rm);return p.jsx(p.Fragment,{children:D.map(U=>{const W=Ul(U),nt=u&&!v?!1:x===D||w.includes(W),ct=()=>{if(j.current.has(W))return;if(j.current.add(W),T.has(W))T.set(W,!0);else return;let ut=!0;T.forEach(gt=>{gt||(ut=!1)}),ut&&(Z?.(),z(S.current),u&&y?.(),r&&r())};return p.jsx(z9,{isPresent:nt,initial:!M.current||i?void 0:!1,custom:t,presenceAffectsLayout:o,mode:c,root:m,onExitComplete:nt?void 0:ct,anchorX:h,anchorY:d,children:U},W)})})},Yb=E.createContext({strict:!1}),x2={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"]};let b2=!1;function P9(){if(b2)return;const e={};for(const t in x2)e[t]={isEnabled:i=>x2[t].some(r=>!!i[r])};yb(e),b2=!0}function Gb(){return P9(),E8()}function U9(e){const t=Gb();for(const i in e)t[i]={...t[i],...e[i]};yb(t)}const H9=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","propagate","ignoreStrict","viewport"]);function Mc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||H9.has(e)}let Kb=e=>!Mc(e);function Z9(e){typeof e=="function"&&(Kb=t=>t.startsWith("on")?!Mc(t):e(t))}try{Z9(require("@emotion/is-prop-valid").default)}catch{}function Y9(e,t,i){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Kb(o)||i===!0&&Mc(o)||!t&&!Mc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Hc=E.createContext({});function G9(e,t){if(Uc(e)){const{initial:i,animate:r}=e;return{initial:i===!1||ro(i)?i:void 0,animate:ro(r)?r:void 0}}return e.inherit!==!1?t:{}}function K9(e){const{initial:t,animate:i}=G9(e,E.useContext(Hc));return E.useMemo(()=>({initial:t,animate:i}),[w2(t),w2(i)])}function w2(e){return Array.isArray(e)?e.join(" "):e}const km=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fb(e,t,i){for(const r in t)!de(t[r])&&!Cb(r,i)&&(e[r]=t[r])}function F9({transformTemplate:e},t){return E.useMemo(()=>{const i=km();return Rm(i,t,e),Object.assign({},i.vars,i.style)},[t])}function q9(e,t){const i=e.style||{},r={};return Fb(r,i,e),Object.assign(r,F9(e,t)),r}function X9(e,t){const i={},r=q9(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=r,i}const qb=()=>({...km(),attrs:{}});function I9(e,t,i,r){const o=E.useMemo(()=>{const c=qb();return Tb(c,t,_b(r),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};Fb(c,e.style,e),o.style={...c,...o.style}}return o}const W9=["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 Dm(e){return typeof e!="string"||e.includes("-")?!1:!!(W9.indexOf(e)>-1||/[A-Z]/u.test(e))}function Q9(e,t,i,{latestValues:r},o,c=!1,u){const d=(u??Dm(e)?I9:X9)(t,r,o,e),m=Y9(t,typeof e=="string",c),v=e!==E.Fragment?{...m,...d,ref:i}:{},{children:y}=t,x=E.useMemo(()=>de(y)?y.get():y,[y]);return E.createElement(e,{...v,children:x})}function J9({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,o){return{latestValues:$9(i,r,o,e),renderState:t()}}function $9(e,t,i,r){const o={},c=r(e,{});for(const x in c)o[x]=cc(c[x]);let{initial:u,animate:h}=e;const d=Uc(e),m=gb(e);t&&m&&!d&&e.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let v=i?i.initial===!1:!1;v=v||u===!1;const y=v?h:u;if(y&&typeof y!="boolean"&&!Pc(y)){const x=Array.isArray(y)?y:[y];for(let w=0;w<x.length;w++){const M=Sm(e,x[w]);if(M){const{transitionEnd:S,transition:T,...j}=M;for(const _ in j){let N=j[_];if(Array.isArray(N)){const D=v?N.length-1:0;N=N[D]}N!==null&&(o[_]=N)}for(const _ in S)o[_]=S[_]}}}return o}const Xb=e=>(t,i)=>{const r=E.useContext(Hc),o=E.useContext(Vc),c=()=>J9(e,t,r,o);return i?c():ho(c)},t7=Xb({scrapeMotionValuesFromProps:Om,createRenderState:km}),e7=Xb({scrapeMotionValuesFromProps:Ab,createRenderState:qb}),n7=Symbol.for("motionComponentSymbol");function i7(e,t,i){const r=E.useRef(i);E.useInsertionEffect(()=>{r.current=i});const o=E.useRef(null);return E.useCallback(c=>{c&&e.onMount?.(c),t&&(c?t.mount(c):t.unmount());const u=r.current;if(typeof u=="function")if(c){const h=u(c);typeof h=="function"&&(o.current=h)}else o.current?(o.current(),o.current=null):u(c);else u&&(u.current=c)},[t])}const Ib=E.createContext({});function wr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function s7(e,t,i,r,o,c){const{visualElement:u}=E.useContext(Hc),h=E.useContext(Yb),d=E.useContext(Vc),m=E.useContext(go),v=m.reducedMotion,y=m.skipAnimations,x=E.useRef(null),w=E.useRef(!1);r=r||h.renderer,!x.current&&r&&(x.current=r(e,{visualState:t,parent:u,props:i,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:v,skipAnimations:y,isSVG:c}),w.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const M=x.current,S=E.useContext(Ib);M&&!M.projection&&o&&(M.type==="html"||M.type==="svg")&&r7(x.current,i,o,S);const T=E.useRef(!1);E.useInsertionEffect(()=>{M&&T.current&&M.update(i,d)});const j=i[sb],_=E.useRef(!!j&&!window.MotionHandoffIsComplete?.(j)&&window.MotionHasOptimisedAnimation?.(j));return am(()=>{w.current=!0,M&&(T.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),_.current&&M.animationState&&M.animationState.animateChanges())}),E.useEffect(()=>{M&&(!_.current&&M.animationState&&M.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(j)}),_.current=!1),M.enteringChildren=void 0)}),M}function r7(e,t,i,r){const{layoutId:o,layout:c,drag:u,dragConstraints:h,layoutScroll:d,layoutRoot:m,layoutCrossfade:v}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:Wb(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||h&&wr(h),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:d,layoutRoot:m})}function Wb(e){if(e)return e.options.allowProjection!==!1?e.projection:Wb(e.parent)}function Bf(e,{forwardMotionProps:t=!1,type:i}={},r,o){r&&U9(r);const c=i?i==="svg":Dm(e),u=c?e7:t7;function h(m,v){let y;const x={...E.useContext(go),...m,layoutId:a7(m)},{isStatic:w}=x,M=K9(m),S=u(m,w);if(!w&&gx){o7();const T=l7(x);y=T.MeasureLayout,M.visualElement=s7(e,S,x,o,T.ProjectionNode,c)}return p.jsxs(Hc.Provider,{value:M,children:[y&&M.visualElement?p.jsx(y,{visualElement:M.visualElement,...x}):null,Q9(e,m,i7(S,M.visualElement,v),S,w,t,c)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=E.forwardRef(h);return d[n7]=e,d}function a7({layoutId:e}){const t=E.useContext(rm).id;return t&&e!==void 0?t+"-"+e:e}function o7(e,t){E.useContext(Yb).strict}function l7(e){const t=Gb(),{drag:i,layout:r}=t;if(!i&&!r)return{};const o={...i,...r};return{MeasureLayout:i?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function c7(e,t){if(typeof Proxy>"u")return Bf;const i=new Map,r=(c,u)=>Bf(c,u,e,t),o=(c,u)=>r(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?r:(i.has(u)||i.set(u,Bf(u,void 0,e,t)),i.get(u))})}const u7=(e,t)=>t.isSVG??Dm(e)?new H8(t):new L8(t,{allowProjection:e!==E.Fragment});class h7 extends Yi{constructor(t){super(t),t.animationState||(t.animationState=F8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Pc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let f7=0;class d7 extends Yi{constructor(){super(...arguments),this.id=f7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);i&&!t&&o.then(()=>{i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};
vendor: 18,391 bytes, line 17
17i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const m7={animation:{Feature:h7},exit:{Feature:d7}};function vo(e){return{point:{x:e.pageX,y:e.pageY}}}const p7=e=>t=>jm(t)&&e(t,vo(t));function Wa(e,t,i,r){return ao(e,t,p7(i),r)}const Qb=({current:e})=>e?e.ownerDocument.defaultView:null,S2=(e,t)=>Math.abs(e-t);function g7(e,t){const i=S2(e.x,t.x),r=S2(e.y,t.y);return Math.sqrt(i**2+r**2)}const M2=new Set(["auto","scroll"]);class Jb{constructor(t,i,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Uf(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,S=g7(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!S)return;const{point:T}=w,{timestamp:j}=be;this.history.push({...T,timestamp:j});const{onStart:_,onMove:N}=this.handlers;M||(_&&_(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,w)},this.handlePointerMove=(w,M)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Pf(M,this.transformPagePoint),Ht.update(this.updatePoint,!0)},this.handlePointerUp=(w,M)=>{this.end();const{onEnd:S,onSessionEnd:T,resumeAnimation:j}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Uf(w.type==="pointercancel"?this.lastMoveEventInfo:Pf(M,this.transformPagePoint),this.history);this.startEvent&&S&&S(w,_),T&&T(w,_)},!jm(t))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=r,this.distanceThreshold=u,this.contextWindow=o||window;const d=vo(t),m=Pf(d,this.transformPagePoint),{point:v}=m,{timestamp:y}=be;this.history=[{...v,timestamp:y}];const{onSessionStart:x}=i;x&&x(t,Uf(m,this.history)),this.removeListeners=fo(Wa(this.contextWindow,"pointermove",this.handlePointerMove),Wa(this.contextWindow,"pointerup",this.handlePointerUp),Wa(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let i=t.parentElement;for(;i;){const r=getComputedStyle(i);(M2.has(r.overflowX)||M2.has(r.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const i=this.scrollPositions.get(t);if(!i)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},c={x:o.x-i.x,y:o.y-i.y};c.x===0&&c.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(t,o),Ht.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ai(this.updatePoint)}}function Pf(e,t){return t?{point:t(e.point)}:e}function E2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uf({point:e},t){return{point:e,delta:E2(e,$b(t)),offset:E2(e,v7(t)),velocity:y7(t,.1)}}function v7(e){return e[0]}function $b(e){return e[e.length-1]}function y7(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,r=null;const o=$b(e);for(;i>=0&&(r=e[i],!(o.timestamp-r.timestamp>xn(t)));)i--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>xn(t)*2&&(r=e[1]);const c=hn(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function x7(e,{min:t,max:i},r){return t!==void 0&&e<t?e=r?Xt(t,e,r.min):Math.max(e,t):i!==void 0&&e>i&&(e=r?Xt(i,e,r.max):Math.min(e,i)),e}function C2(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function b7(e,{top:t,left:i,bottom:r,right:o}){return{x:C2(e.x,i,o),y:C2(e.y,t,r)}}function T2(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function w7(e,t){return{x:T2(e.x,t.x),y:T2(e.y,t.y)}}function S7(e,t){let i=.5;const r=Ae(e),o=Ae(t);return o>r?i=no(t.min,t.max-r,e.min):r>o&&(i=no(e.min,e.max-o,t.min)),Dn(0,1,i)}function M7(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const Ud=.35;function E7(e=Ud){return e===!1?e=0:e===!0&&(e=Ud),{x:j2(e,"left","right"),y:j2(e,"top","bottom")}}function j2(e,t,i){return{min:_2(e,t),max:_2(e,i)}}function _2(e,t){return typeof e=="number"?e:e[t]||0}const C7=new WeakMap;class T7{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=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:i=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=y=>{i&&this.snapToCursor(vo(y).point),this.stopAnimation()},u=(y,x)=>{const{drag:w,dragPropagation:M,onDragStart:S}=this.getProps();if(w&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JM(w),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_n(j=>{let _=this.getAxisMotionValue(j).get()||0;if(On.test(_)){const{projection:N}=this.visualElement;if(N&&N.layout){const D=N.layout.layoutBox[j];D&&(_=Ae(D)*(parseFloat(_)/100))}}this.originPoint[j]=_}),S&&Ht.update(()=>S(y,x),!1,!0),Rd(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},h=(y,x)=>{this.latestPointerEvent=y,this.latestPanInfo=x;const{dragPropagation:w,dragDirectionLock:M,onDirectionLock:S,onDrag:T}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:j}=x;if(M&&this.currentDirection===null){this.currentDirection=_7(j),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",x.point,j),this.updateAxis("y",x.point,j),this.visualElement.render(),T&&Ht.update(()=>T(y,x),!1,!0)},d=(y,x)=>{this.latestPointerEvent=y,this.latestPanInfo=x,this.stop(y,x),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Jb(t,{onSessionStart:c,onStart:u,onMove:h,onSessionEnd:d,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:Qb(this.visualElement),element:this.visualElement.current})}stop(t,i){const r=t||this.latestPointerEvent,o=i||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!r)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:h}=this.getProps();h&&Ht.postRender(()=>h(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,i,r){const{drag:o}=this.getProps();if(!r||!Hl(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=x7(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&wr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=b7(r.layoutBox,t):this.constraints=!1,this.elastic=E7(i),o!==this.constraints&&!wr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&_n(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=M7(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!wr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=A8(r,o.root,this.visualElement.getTransformPagePoint());let u=w7(o.layout.layoutBox,c);if(i){const h=i(T8(u));this.hasMutatedConstraints=!!h,h&&(u=bb(h))}return u}startAnimation(t){const{drag:i,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),d=this.constraints||{},m=_n(v=>{if(!Hl(v,i,this.currentDirection))return;let y=d&&d[v]||{};u&&(y={min:0,max:0});const x=o?200:1e6,w=o?40:1e7,M={type:"inertia",velocity:r?t[v]:0,bounceStiffness:x,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...y};return this.startAxisValueAnimation(v,M)});return Promise.all(m).then(h)}startAxisValueAnimation(t,i){const r=this.getAxisMotionValue(t);return Rd(this.visualElement,t),r.start(wm(t,r,0,i,this.visualElement,!1))}stopAnimation(){_n(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[i];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){_n(i=>{const{drag:r}=this.getProps();if(!Hl(i,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(i);if(o&&o.layout){const{min:u,max:h}=o.layout.layoutBox[i],d=c.get()||0;c.set(t[i]-Xt(u,h,.5)+d)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:r}=this.visualElement;if(!wr(i)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};_n(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const d=h.get();o[u]=S7({min:d,max:d},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),_n(u=>{if(!Hl(u,t,null))return;const h=this.getAxisMotionValue(u),{min:d,max:m}=this.constraints[u];h.set(Xt(d,m,o[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;C7.set(this.visualElement,this);const t=this.visualElement.current,i=Wa(t,"pointerdown",m=>{const{drag:v,dragListener:y=!0}=this.getProps(),x=m.target,w=x!==t&&s8(x);v&&y&&!w&&this.start(m)});let r;const o=()=>{const{dragConstraints:m}=this.getProps();wr(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),r||(r=j7(t,m.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ht.read(o);const h=ao(window,"resize",()=>this.scalePositionWithinConstraints()),d=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(_n(y=>{const x=this.getAxisMotionValue(y);x&&(this.originPoint[y]+=m[y].translate,x.set(x.get()+m[y].translate))}),this.visualElement.render())}));return()=>{h(),i(),u(),d&&d(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=Ud,dragMomentum:h=!0}=t;return{...t,drag:i,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function A2(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function j7(e,t,i){const r=Dv(e,A2(i)),o=Dv(t,A2(i));return()=>{r(),o()}}function Hl(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function _7(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class A7 extends Yi{constructor(t){super(t),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new T7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};t!==i&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Hf=e=>(t,i)=>{e&&Ht.update(()=>e(t,i),!1,!0)};class N7 extends Yi{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(t){this.session=new Jb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hf(t),onStart:Hf(i),onMove:Hf(r),onEnd:(c,u)=>{delete this.session,o&&Ht.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=Wa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zf=!1;class R7 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=t;c&&(i.group&&i.group.add(c),r&&r.register&&o&&r.register(c),Zf&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),uc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:r,drag:o,isPresent:c}=this.props,{projection:u}=r;return u&&(u.isPresent=c,t.layoutDependency!==i&&u.setOptions({...u.options,layoutDependency:i}),Zf=!0,o||t.layoutDependency!==i||i===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Ht.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:r}=this.props,{projection:o}=t;Zf=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function t3(e){const[t,i]=Zb(),r=E.useContext(rm);return p.jsx(R7,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Ib),isPresent:t,safeToRemove:i})}const O7={pan:{Feature:N7},drag:{Feature:A7,ProjectionNode:Hb,MeasureLayout:t3}};function N2(e,t,i){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,c=r[o];c&&Ht.postRender(()=>c(t,vo(t)))}class k7 extends Yi{mount(){const{current:t}=this.node;t&&(this.unmount=t8(t,(i,r)=>(N2(this.node,r,"Start"),o=>N2(this.node,o,"End"))))}unmount(){}}class D7 extends Yi{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=fo(ao(this.node.current,"focus",()=>this.onFocus()),ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function R2(e,t,i){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),c=r[o];c&&Ht.postRender(()=>c(t,vo(t)))}class L7 extends Yi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:i,propagate:r}=this.node.props;this.unmount=a8(t,(o,c)=>(R2(this.node,c,"Start"),(u,{success:h})=>R2(this.node,u,h?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:r?.tap===!1})}unmount(){}}const Hd=new WeakMap,Yf=new WeakMap,z7=e=>{const t=Hd.get(e.target);t&&t(e)},V7=e=>{e.forEach(z7)};function B7({root:e,...t}){const i=e||document;Yf.has(i)||Yf.set(i,{});const r=Yf.get(i),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(V7,{root:e,...t})),r[o]}function P7(e,t,i){const r=B7(t);return Hd.set(e,i),r.observe(e),()=>{Hd.delete(e),r.unobserve(e)}}const U7={some:0,all:1};class H7 extends Yi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:c}=t,u={root:i?i.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:U7[o]},h=d=>{const{isIntersecting:m}=d;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),x=m?v:y;x&&x(d)};return P7(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(Z7(t,i))&&this.startObserver()}unmount(){}}function Z7({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const Y7={inView:{Feature:H7},tap:{Feature:L7},focus:{Feature:D7},hover:{Feature:k7}},G7={layout:{ProjectionNode:Hb,MeasureLayout:t3}},K7={...m7,...Y7,...O7,...G7},kt=c7(K7,u7);function e3(e){const t=ho(()=>ws(e)),{isStatic:i}=E.useContext(go);if(i){const[,r]=E.useState(e);E.useEffect(()=>t.on("change",r),[])}return t}function n3(e,t){const i=e3(t()),r=()=>i.set(t());return r(),am(()=>{const o=()=>Ht.preRender(r,!1,!0),c=e.map(u=>u.on("change",o));return()=>
17{c.forEach(u=>u()),ai(r)}}),i}function F7(e){Xa.current=[],e();const t=n3(Xa.current,e);return Xa.current=void 0,t}function q7(e,t,i,r){if(typeof e=="function")return F7(e);const c=g8(t,i,r),u=Array.isArray(e)?O2(e,c):O2([e],([d])=>c(d)),h=Array.isArray(e)?void 0:e.accelerate;return h&&!h.isTransformed&&typeof t!="function"&&Array.isArray(i)&&r?.clamp!==!1&&(u.accelerate={...h,times:t,keyframes:i,isTransformed:!0}),u}function O2(e,t){const i=ho(()=>[]);return n3(e,()=>{i.length=0;const r=e.length;for(let o=0;o<r;o++)i[o]=e[o].get();return t(i)})}function X7(e,t={}){const{isStatic:i}=E.useContext(go),r=()=>de(e)?e.get():e;if(i)return q7(r);const o=e3(r());return E.useInsertionEffect(()=>v8(o,e,t),[o,JSON.stringify(t)]),o}function k2(e,t={}){return X7(e,{type:"spring",...t})}const I7={some:0,all:1};function W7(e,t,{root:i,margin:r,amount:o="some"}={}){const c=Cm(e),u=new WeakMap,h=m=>{m.forEach(v=>{const y=u.get(v.target);if(v.isIntersecting!==!!y)if(v.isIntersecting){const x=t(v.target,v);typeof x=="function"?u.set(v.target,x):d.unobserve(v.target)}else typeof y=="function"&&(y(v),u.delete(v.target))})},d=new IntersectionObserver(h,{root:i,rootMargin:r,threshold:typeof o=="number"?o:I7[o]});return c.forEach(m=>d.observe(m)),()=>d.disconnect()}function Q7(e,{root:t,margin:i,amount:r,once:o=!1,initial:c=!1}={}){const[u,h]=E.useState(c);return E.useEffect(()=>{if(!e.current||o&&u)return;const d=()=>(h(!0),o?void 0:()=>h(!1)),m={root:t&&t.current||void 0,margin:i,amount:r};return W7(e.current,d,m)},[t,e,i,o,r]),u}function i3(){return p.jsxs("svg",{viewBox:"0 0 2625 500",xmlns:"http://www.w3.org/2000/svg",className:"h-full",preserveAspectRatio:"xMinYMid slice",children:[p.jsxs("g",{fill:"#fff",children:[p.jsx("path",{d:"M530.2,202.31l9.61-45.19h-220.02c.77,3.28,3.07,4.71,5.82,6.11.23.12.41-.12.31.45-3.35.83-5.72,3.82-6.68,7.01l-1.33-2.61c-1.6-2.36-4.01-4.03-6.87-4.4-.06-.58,0-.35.32-.44.83-.25,1.73-.4,2.52-.76,2.05-.95,4.08-3.2,4.81-5.36h-17.94c.95,3.55,3.74,5,6.96,6.07.29.1.58-.09.48.38-11.05,2.27-10.93,17.5.22,19.48-.92.49-1.95.56-2.93,1.01-8.63,4.04-6.87,16.72,2.27,18.69-8.93,2-11.03,13.65-3.13,18.45l2.91,1.35c-4.29.72-7.62,4.67-7.88,8.98l-.92-3.12c-3.58-8.17-15.96-7.23-18.05,1.55-2.66,11.2,12.74,16.64,17.92,6.54l1.05-3.43c.16,3.07,2.04,6.13,4.62,7.75.83.52,1.51.63,2.3.98.26.12.39-.1.31.46-3.72.91-6.73,4.28-7.22,8.1l-1.05-2.77c-6.07-11.15-22.81-2.73-17.3,8.77,1.57,3.28,3.78,4.01,6.89,5.15.3.11.37-.08.31.46-11.12,1.9-10.9,17.59.22,19.37-10.9,2.23-11.61,16.61-.88,19.7-8.59,2.13-10.73,13.2-3.35,18.24l3.13,1.57c-4.09.7-7.23,4.47-7.66,8.54l-.77-2.4c-4.75-11.01-21.3-5.44-18.11,6.3,2.18,8.02,13.47,9.33,17.52,2.08l1.35-3.57c.43,4.17,3.41,7.24,7.22,8.65-.84.39-1.75.69-2.56,1.16-.34.2-.96.59-1.16.92h12.91l-1.25-1.05-2.47-1.14c2.01-.51,4.09-1.88,5.34-3.52.53-.7.75-1.42,1.17-2.11.52-.86.52.34.81.82,1.1,1.89,2.66,3.72,4.71,4.59.37.53-2.53,1.68-2.62,2.4l10.48.06h73.25l14.29-66.75h105.45l9.61-45.19h-105.45l5.97-28.31h114.54ZM303.05,321.94c-1.4,1.18-2.9,2.89-3.4,4.67l-.43.14c-.98-3.06-3.78-5.19-6.79-6.02,2.16-.86,4.01-1.86,5.46-3.73.59-.75.81-1.52,1.27-2.23.14-.21-.02-.39.49-.28.56,1.95,1.83,3.38,3.28,4.71.22.38,2.14,1.15,1.97,1.53-.1.22-1.46.89-1.85,1.21ZM301.4,304.09c-.84,1.02-1.06,1.92-1.69,2.9-.14.21.02.39-.49.28-.68-2.21-2.75-4.39-4.81-5.37l-2.41-.98c2.18-.38,4.44-1.77,5.78-3.52.69-.91.93-1.78,1.42-2.73.09-.17.07-.69.45-.31.08.08.56,1.64.84,2.12,1.27,2.19,2.81,3.28,4.85,4.67-1.46.52-2.97,1.77-3.94,2.95ZM303.74,282.58c-2.03,1.37-3.39,3.36-4.2,5.65l-1.33-2.39c-1.65-2.58-4.2-3.81-7.09-4.51,4.05-.54,7.22-3.5,8.43-7.33.92,3.24,3.17,6.17,6.45,7.23-.65.59-1.49.83-2.26,1.35ZM306.07,261.96c-3.34.98-5.6,3.98-6.53,7.23-1.17-3.7-4.25-6.76-8.21-7.23-.06-.58.01-.35.32-.44,4.28-1.29,6.86-3.32,7.88-7.88.71,3.55,3.13,6.79,6.67,7.89l-.14.43ZM342.1,203.7c-1.32,1.15-2.47,2.44-3.39,3.98-1.18-2.11-2.99-4.07-5.36-4.82.68-.71,1.61-1,2.41-1.64,1.18-.95,2.01-2.23,2.95-3.39,1.08,1.54,2.15,3.21,3.74,4.24l-.35,1.62ZM320.9,303.28l-1.88,2.23c-1.29-1.95-2.95-3.61-5.14-4.49l2.41-1.53,2.95-3.18c.56,1.19,1.42,2.37,2.45,3.28l-.78,3.68ZM319.02,276.19c.59.88,1.05,1.81,1.75,2.62.85,1,1.95,1.52,2.72,2.31.18.18.31.19.23.53l-2.08,1.31-2.62,3.29c-1.43-2.21-3.22-3.76-5.58-4.92,2.41-1.11,4.3-2.82,5.58-5.14ZM313.22,261.53c2.67-.84,4.46-2.88,5.8-5.25.76,1.13,1.43,2.53,2.4,3.51.64.65,1.74,1.14,2.3,1.64.2.18.29.22.23.54-2.24.86-3.75,3.02-4.92,5.03-1.07-1.89-2.52-3.47-4.41-4.55-.26-.15-1.79-.48-1.38-.91ZM333.92,222.58l-.14-.45c2.06-.71,3.93-2.61,4.82-4.6l.44.54-1.55,7.3c-.99-1.17-2.14-2.18-3.56-2.79ZM338.71,188.19c-1.54-2.26-3.32-3.94-5.79-5.14,2.51-1.11,4.44-2.99,5.8-5.36,1.08,2.18,2.63,4.27,4.92,5.25-2.07,1.46-3.61,3.06-4.92,5.25ZM332.69,163.25c1.7-.46,3.51-1.79,4.59-3.18.59-.75.85-1.67,1.53-2.29.38,1.23,1.3,2.69,2.19,3.61.65.67,1.82,1.23,2.4,1.76.2.18.29.22.23.53-2.28.98-3.82,3.11-4.92,5.26-1.12-1.98-2.68-3.6-4.63-4.78-.29-.17-1.76-.45-1.38-.91ZM318.44,177.55c.22-.45.28-.93.45-1.3.12-.26-.1-.39.46-.31.65,3.33,3.32,5.85,6.35,7.11-2.58,1.13-4.43,2.68-5.77,5.
1717-.24.45-.35,1-.56,1.41-.12.23.11.41-.46.31-.91-3.85-4.49-6.03-8.1-6.89,3.32-.54,6.14-2.47,7.63-5.5ZM318.89,196.39c.12-.23-.12-.41.45-.31.65,3.18,3.14,5.11,5.69,6.78-2.59,1-4.87,3.3-5.69,5.99l-.43.14c-.78-2.29-2.6-4.1-4.67-5.29l-2.77-1.05c4.02-.67,5.69-2.9,7.42-6.26ZM318.89,216.35l.45-.13c.2,1.59,1.42,2.72,2.29,3.95l2.96,2.29c-.97.69-2.22,1.34-3.06,2.19-1.1,1.12-1.64,2.64-2.62,3.83-1.07-3.1-3.92-5.19-7-6.02,3.12-1.02,5.75-2.97,6.99-6.1ZM315.26,240.69c1.6-1.02,3.05-2.74,3.66-4.55,1.47,2.22,2.78,4.77,5.47,5.69.36.39-1.23,1-1.52,1.22-1.72,1.31-2.8,2.8-3.84,4.69-1.45-2.6-3.61-4.92-6.67-5.47.84-.72,1.95-.96,2.91-1.57ZM314.45,320.85l-.14-.45c1.44-.44,2.54-1.46,3.5-2.6l-.98,4.6c-.86-.72-1.81-1.33-2.38-1.55Z"}),p.jsx("path",{d:"M273.06,319.95c10.7-3.09,7.72-19.6-3.64-18.53-13.57,1.28-9.78,22.41,3.64,18.53Z"}),p.jsx("path",{d:"M292.22,221.8c11.23-2.74,8.41-19.5-2.9-18.66-13.45,1-10.23,21.86,2.9,18.66Z"}),p.jsx("path",{d:"M270.88,300.7c12.52-.73,10.99-20.21-1.69-18.76-11.87,1.36-10.37,19.46,1.69,18.76Z"}),p.jsx("path",{d:"M292.22,202.1c11.16-2.72,8.14-19.6-3.12-18.44-13.15,1.35-9.78,21.59,3.12,18.44Z"}),p.jsx("path",{d:"M268.35,280.69c14.61,2.3,14.84-20.22.18-18.23-9.72,1.32-9.99,16.69-.18,18.23Z"}),p.jsx("path",{d:"M291.43,182.48c11.31-1.34,9.93-20.06-2.98-18.31-11.24,1.53-9.8,19.82,2.98,18.31Z"}),p.jsx("path",{d:"M268.53,261.03c14.4,1.95,14.4-20.01,0-18.05-9.73,1.32-9.73,16.73,0,18.05Z"}),p.jsx("path",{d:"M249.28,321.55c-11.28,1.54-9.63,19.54,2.76,18.09,11.35-1.33,9.74-19.79-2.76-18.09Z"}),p.jsx("path",{d:"M271.1,241.38c11.78-.88,10.35-19.52-1.91-18.1-11.53,1.34-10.01,18.99,1.91,18.1Z"}),p.jsx("path",{d:"M252.84,319.64c10.52-2.59,8.15-18.37-2.67-17.78-12.83.7-9.96,20.89,2.67,17.78Z"}),p.jsx("path",{d:"M279.02,214.51c1.4-6.56-3.99-11.59-10.49-10.71-5.94.8-8.86,8.05-6.08,13.19,3.87,7.15,14.86,5.56,16.57-2.48Z"}),p.jsx("path",{d:"M252.84,299.94c10.51-2.56,7.93-18.44-2.9-17.56-12.4,1-9.55,20.59,2.9,17.56Z"}),p.jsx("path",{d:"M268.31,201.71c13,2.82,14.83-18.12,1.55-17.62-10.19.38-11.54,15.45-1.55,17.62Z"}),p.jsx("path",{d:"M249.66,280.34c13.08,1.3,12.82-19.25-.38-17.45-9.87,1.35-9.67,16.45.38,17.45Z"}),p.jsx("path",{d:"M271.29,182.04c11.37-1.13,9.6-19.06-2.32-17.43-10.89,1.49-9.29,18.58,2.32,17.43Z"}),p.jsx("path",{d:"M253.77,260.16c9.39-3.37,6.25-18.22-4.49-16.75-11.97,1.64-7.75,21.14,4.49,16.75Z"}),p.jsx("path",{d:"M230.03,321.99c-10.94,1.19-9.46,17.92,1.47,17.23,11.61-.73,10.13-18.49-1.47-17.23Z"}),p.jsx("path",{d:"M252.84,240.63c10.06-2.48,7.46-17.91-2.9-16.91-12.08,1.16-9.03,19.84,2.9,16.91Z"}),p.jsx("path",{d:"M229.59,319.25c13.03,1.78,13.03-18.52,0-16.74-9.29,1.27-9.29,15.47,0,16.74Z"}),p.jsx("path",{d:"M251.82,221c10.72-1.16,9.24-18.39-2.54-16.77-10.2,1.4-8.91,18.01,2.54,16.77Z"}),p.jsx("path",{d:"M229.41,299.51c12.98,2.05,13.15-18.25.18-16.48-9.03,1.24-9.2,15.05-.18,16.48Z"}),p.jsx("path",{d:"M251.82,201.31c10.59-1.24,9.04-18.14-2.55-16.55-10.15,1.39-8.7,17.88,2.55,16.55Z"}),p.jsx("path",{d:"M231.28,279.92c11.09-.31,10.18-17.67-1.04-16.59-10.55,1.02-9.45,16.88,1.04,16.59Z"}),p.jsx("path",{d:"M250.75,181.65c11.05-.04,10.57-17.39-.59-16.59-10.61.76-9.76,16.63.59,16.59Z"}),p.jsx("path",{d:"M233.15,259.89c9.37-2.42,7-16.99-2.9-16.04-11.46,1.1-8.47,18.98,2.9,16.04Z"}
17),p.jsx("path",{d:"M215.99,323.76c-7.48-4.74-16.36,4.1-11.17,11.5,5.04,7.18,16.64,2.08,14.43-6.77-.39-1.54-1.92-3.88-3.26-4.73Z"}),p.jsx("path",{d:"M232.13,240.27c10.2-1.19,8.61-17.53-2.55-15.9-9.66,1.41-8.31,17.16,2.55,15.9Z"}),p.jsx("path",{d:"M212.02,318.86c10.45-.71,9.23-17.08-1.47-15.91-10.21,1.11-8.87,16.62,1.47,15.91Z"}),p.jsx("path",{d:"M230.25,204.68c-11.56,1.11-7.89,19.39,3.55,15.37,8.47-2.98,5.65-16.25-3.55-15.37Z"}),p.jsx("path",{d:"M212.02,299.17c10.27-.64,9.17-16.86-1.47-15.69-10.01,1.09-8.74,16.33,1.47,15.69Z"}),p.jsx("path",{d:"M235.75,199.23c8.34-6.38-1.61-18.71-9.48-12.44-8.15,6.49,1.37,18.66,9.48,12.44Z"}),p.jsx("path",{d:"M218,275.6c5.52-9.32-9.14-17.22-13.79-6.79-.19.43,0,.99-.55,1.08-1.35,8.45,9.88,13.24,14.34,5.7Z"}),p.jsx("path",{d:"M232.13,180.95c9.55-1.12,8.22-16.69-2.33-15.24-9.59,1.31-8.11,16.46,2.33,15.24Z"}),p.jsx("path",{d:"M209.93,259.45c11.85,1.88,11.97-16.57.18-14.95-8.16,1.12-8.3,13.66-.18,14.95Z"}),p.jsx("path",{d:"M190.86,323.08c-10.65,1.25-7.33,17.99,3.24,14.62,8.49-2.71,5.64-15.66-3.24-14.62Z"}),p.jsx("path",{d:"M213.46,239.53c8.62-2.34,6.25-15.54-2.68-14.72-10.62.97-7.79,17.57,2.68,14.72Z"}),p.jsx("path",{d:"M194.34,317.81c7.9-2.8,5.42-15.49-3.92-14.21-10,1.37-6.58,17.94,3.92,14.21Z"}),p.jsx("path",{d:"M212.44,219.91c9.21-1.03,7.91-15.94-2.11-14.58-9.25,1.26-7.78,15.69,2.11,14.58Z"}),p.jsx("path",{d:"M192.75,298.49c9.06-1.02,7.81-15.71-2.11-14.37-8.94,1.21-7.72,15.47,2.11,14.37Z"}),p.jsx("path",{d:"M212.22,200.21c9.49-1.04,7.86-15.68-1.89-14.36-8.96,1.21-7.49,15.39,1.89,14.36Z"}),p.jsx("path",{d:"M190.38,278.58c11.25,1.49,11.09-15.69-.18-13.94-7.43,1.15-7.28,12.95.18,13.94Z"}),p.jsx("path",{d:"M210.11,180.26c11.07,1.61,11.05-15.51,0-13.89-7.55,1.1-7.56,12.8,0,13.89Z"}),p.jsx("path",{d:"M193.15,258.84c8.22-1.29,7.06-15.11-2.73-13.68-8.43,1.23-7.12,15.22,2.73,13.68Z"}),p.jsx("path",{d:"M168.39,324.69c-.48.28-2.39,1.97-2.59,2.33-.16.3-.72,2.9-.73,3.34-.18,6.67,8.35,9.76,12.48,4.37,4.52-5.9-2.49-13.99-9.17-10.04Z"}),p.jsx("path",{d:"M191.24,239.19c9.59.61,9.9-14.56-.38-13.72-8.1.66-7.89,13.19.38,13.72Z"}),p.jsx("path",{d:"M194.63,218.73c6.87-3.15,3.75-14.02-3.99-12.97-9.7,1.31-5.63,17.37,3.99,12.97Z"}),p.jsx("path",{d:"M177.9,314.28c3.05-5.18-1.52-11.02-7.39-10.02-2.56.43-4.95,3.21-5.19,5.75-.72,7.5,8.93,10.5,12.58,4.27Z"}),p.jsx("path",{d:"M176.02,296.64c3.7-2.65,3.31-8.22-.05-10.97-2.19-1.79-6.84-1.46-8.69.69-5.52,6.41,2.17,14.99,8.74,10.28Z"}),p.jsx("path",{d:"M190.46,199.48c10.29,1.64,10.32-14.36.4-13.19-7.09.83-7.69,12.03-.4,13.19Z"}),p.jsx("path",{d:"M193.15,179.61c7.47-1.16,6.42-14.26-2.74-12.81-7.6,1.2-6.62,14.27,2.74,12.81Z"}),p.jsx("path",{d:"M172.19,278.16c8.53-.15,8.16-13.65-.58-13.09-8.35.54-7.79,13.23.58,13.09Z"}),p.jsx("path",{d:"M173.08,258.24c5.42-.6,6.98-7.71,3.1-11.31-1.59-1.48-5.35-1.52-7.21-.47-6,3.36-3.26,12.59,4.12,11.78Z"}),p.jsx("path",{d:"M155.83,325.07c-.92-.75-3.17-1.02-4.32-.84-5.89.91-7.23,8.79-2.24,11.68,5.78,3.35,11.94-3.3
171,8.43-8.66-.21-.33-1.62-1.97-1.87-2.18Z"}),p.jsx("path",{d:"M172.19,238.55c8.39-.26,7.98-13.8-1.46-12.43-6.92,1-6.2,12.66,1.46,12.43Z"}),p.jsx("path",{d:"M158.02,308.32c-1.33-3.56-6.35-4.9-9.27-2.52-2.53,2.06-3.07,6.14-1.12,8.76,4.06,5.44,13.06.92,10.39-6.24Z"}),p.jsx("path",{d:"M172.83,218.6c7.57-.88,6.59-13.03-1.45-12.17-7.96.85-6.67,13.11,1.45,12.17Z"}),p.jsx("path",{d:"M155.97,296.07c3.17-2.33,3.08-7.3.08-9.74-3.15-2.56-7.97-.65-9.19,3.04-1.8,5.46,4.42,10.14,9.11,6.7Z"}),p.jsx("path",{d:"M172.2,198.94c7.58-.15,7.49-12.2-.38-11.99-7.54.2-7.39,12.15.38,11.99Z"}),p.jsx("path",{d:"M153.55,277.22c6.94-1.01,5.77-12.66-2.3-11.27-6.77,1.16-5.72,12.44,2.3,11.27Z"}),p.jsx("path",{d:"M170.77,178.91c8.93,1.71,9.32-12.56.17-11.23-6.05.88-6.03,10.1-.17,11.23Z"}),p.jsx("path",{d:"M153.77,237.83c6.46-1.09,5.35-11.98-2.08-11.05-7.19.89-6.09,12.43,2.08,11.05Z"}),p.jsx("path",{d:"M151.69,246.48c-7.26.96-5.83,11.82,1.45,11.08,7.11-.72,6.08-12.07-1.45-11.08Z"}),p.jsx("path",{d:"M131.56,325.05c-6.44,1.1-5.32,11.32,1.45,11.09,7.3-.24,6.93-12.53-1.45-11.09Z"}),p.jsx("path",{d:"M131.56,305.57c-6.44,1.1-5.18,11.48,1.67,10.87,7.3-.65,6.33-12.24-1.67-10.87Z"}),p.jsx("path",{d:"M154.31,217.79c6.04-2.17,3.97-11.48-2.83-10.49-7.45,1.08-4.66,13.18,2.83,10.49Z"}),p.jsx("path",{d:"M134.08,296.49c5.93-1,5.01-11.55-2.3-10.4-6.36,1-5.64,11.74,2.3,10.4Z"}),p.jsx("path",{d:"M153.37,198.25c6.36-.89,5.38-11.07-1.45-10.43-6.91.65-5.89,11.45,1.45,10.43Z"}),p.jsx("path",{d:"M134.46,276.51c5.69-1.87,3.88-10.95-2.68-9.9-6.82,1.09-4.46,12.25,2.68,9.9Z"}),p.jsx("path",{d:"M151.44,178.33c8.27,1.15,7.68-11.01.26-9.99-5.74.79-5.53,9.26-.26,9.99Z"}),p.jsx("path",{d:"M133.67,256.91c5.93-.82,4.95-10.53-1.45-9.78-6.33.75-5.63,10.76,1.45,9.78Z"}),p.jsx("path",{d:"M297.02,159.63c.28-.34,1.61-2.22,1.32-2.51h-16.85c2.38,6.44,11.16,7.78,15.53,2.51Z"}),p.jsx("path",{d:"M133.46,236.99c5.99-.75,4.79-9.99-1.23-9.34-6.05.66-5.19,10.15,1.23,9.34Z"}),p.jsx("path",{d:"M112.3,325.93c-5.72.91-4.68,10.34,2.09,9.09.5-.09.92-.36,1.33-.64,4.04-2.73,1.77-9.27-3.41-8.45Z"}),p.jsx("path",{d:"M115.07,315.12c4.81-2.08,2.82-9.68-2.99-8.68-1.53.26-3.21,2.04-3.42,3.58-.51,3.74,2.87,6.63,6.41,5.1Z"}),p.jsx("path",{d:"M135.32,216.31c3.88-2.72,1.46-8.64-3.1-8.14-1.2.13-2.43.96-3.11,1.93-2.88,4.11,2.13,9.07,6.21,6.21Z"}),p.jsx("path",{d:"M278.21,157.12h-15.97c3.04,6.94,13.1,7.11,15.97,0Z"}),p.jsx("path",{d:"M115.5,294.76c.14-.08,1.33-1.05,1.39-1.12.93-1.15.59-3.79-.28-4.96-1.71-2.31-
175.51-2.08-7.06.35-2.45,3.86,1.73,8.27,5.95,5.73Z"}),p.jsx("path",{d:"M136.21,195.53c3.1-4.33-2.93-9.05-6.48-5.5-4.21,4.21,2.88,10.53,6.48,5.5Z"}),p.jsx("path",{d:"M112.52,275.7c6.11.99,6.45-9.26-.44-7.99-4.07.75-3.91,7.29.44,7.99Z"}),p.jsx("path",{d:"M133.01,177.46c5.56-.28,4.7-9.26-1.23-8.03-4.51.93-3.74,8.28,1.23,8.03Z"}),p.jsx("path",{d:"M258.08,157.12h-14.66c2.64,6.36,11.92,6.31,14.66,0Z"}),p.jsx("path",{d:"M114.17,255.78c4.41-.82,3.41-8.36-1.65-7.56-4.86.77-3.99,8.61,1.65,7.56Z"}),p.jsx("path",{d:"M92.83,327.02c-4.5.76-3.85,8.14,1.65,7.12,4.06-.75,3.26-7.94-1.65-7.12Z"}),p.jsx("path",{d:"M235.65,159.74c.31-.24,2.41-2.34,2.08-2.62h-13.57c2.15,4.21,7.69,5.59,11.48,2.62Z"}),p.jsx("path",{d:"M113.76,235.89c4.55-.58,3.53-7.79-1.02-7.16-4.58.63-4.02,7.8,1.02,7.16Z"}),p.jsx("path",{d:"M94.07,314.25c4.33-.59,3.2-7.31-1.02-6.72-4.37.6-3.68,7.36,1.02,6.72Z"}),p.jsx("path",{d:"M113.47,215.9c4.45-.42,3.66-7.42-1.17-6.42-3.64.75-2.82,6.79,1.17,6.42Z"}),p.jsx("path",{d:"M215.71,159.27c.27-.2,2.01-1.86,1.68-2.15h-12.03c2.04,3.7,6.96,4.69,10.36,2.15Z"}),p.jsx("path",{d:"M93.64,294.36c4.07-.22,3.59-6.38-.37-6.09-3.95.29-3.53,6.3.37,6.09Z"}),p.jsx("path",{d:"M113.51,196.04c3.86-.44,3.24-6.84-1.21-5.82-3.17.72-2.53,6.24,1.21,5.82Z"}),p.jsx("path",{d:"M94.47,274.16c2.78-.71,1.99-5.89-1.65-5.15-3.28.66-2.41,6.19,1.65,5.15Z"}),p.jsx("path",{d:"M187.51,158.44c2.88,2.57,7.52,1.95,9.52-1.32h-10.5c.02.52.62,1,.98,1.32Z"}),p.jsx("path",{d:"M113.34,175.95c3.51-.19,3.03-5.6-.37-5.22-3.32.37-3.07,5.41.37,5.22Z"}),p.jsx("path",{d:"M273.83,341.31c-2.72-1.04-6.52-.95-8.91.92-.18.14-.4,0-.28.5h11.16c-.04-.68-1.39-1.2-1.97-1.42Z"}),p.jsx("path",{d:"M94.26,254.25c2.5-.57,1.68-5.01-1.21-4.51-2.93.51-2.28,5.31,1.21,4.51Z"}),p.jsx("path",{d:"M73.36,328.54c-2.12.43-2.19,3.8-.04,4.11,3.46.5,3.17-4.75.04-4.11Z"}),p.jsx("path",{d:"M174.48,158.74c.27-.12,2.13-1.3,1.77-1.62h-8.53c1.53,2.2,4.36,2.73,6.76,1.62Z"}),p.jsx("path",{d:"M93.82,234.34c2.55-.42,2.02-4.55-.99-3.86-2.07.48-1.46,4.26.99,3.86Z"}),p.jsx("path",{d:"M75.06,309.67c-1.72-1.69-4.19,1.12-2.46,2.57,1.74,1.47,4-1.07,2.46-2.57Z"}),p.jsx("path",{d:"M254.14,341.74c-2.04-.76-4.39-.79-6.46-.12l-1.63.88h9.41c-.16-.33-.97-.64-1.32-.76Z"}),p.jsx("path",{d:"M93.63,214.24c2.16-.22,1.68-3.62-.37-3.25-1.93.35-1.76,3.46.37,3.25Z"}),p.jsx("path",{d:"M155.9,157.12h-6.56c1.49,1.91,5,1.67,6.56,0Z"}),p.jsx("path",{d:"M228.05,342.13c-.23.09-.65.06-.6.38h7.22l-2.35-.82c-1.53-.17-2.83-.14-4.26.44Z"}),p.jsx("polygon",{points:"209.29 342.51 213.66 342.51 211.36 342.05 209.29 342.51"}),p.jsx("path",{d:"M133.8,157.12c-.47.01-.95-.02-1.42,0-.27.01-.81-.17-.76.22.47-.01.95.02,1.42,0,.27-.01.81.17.76-.22Z"})]}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"40ms"},d:"M555.27,157.27h73.25l-39.48,185.45h-73.25l39.48-185.45Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"80ms"},d:"M645.28,157.27h154.28c21.04,0,33.25,1.82,42.34,6.75,12.47,6.75,20,24.68,15.58,44.93-3.64,17.4-14.8,36.1-37.4,42.34l-.26.52c10.39,3.12,17.14,12.47,15.06,28.57l-5.45,40.52c-1.04,8.31,1.04,16.1,4.42,21.82h-80c-1.56-5.45.26-13.51,3.64-35.06,2.08-13.77-.78-22.08-14.29-22.08h-51.95l-12.21,57.14h-73.25l39.48-185.45ZM701.13,238.83h51.95c14.29,0,21.56-5.71,23.9-17.4,3.12-14.03-5.19-17.4-17.4-17.4h-50.91l-7.53,34.8Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"120ms"},d:"M907.35,264.02c-34.54-5.45-44.93-26.23-39.48-52.21,10.13-48.05,60-61.04,120.26-61.04,82.6,0,111.95,21.56,106.23,60.78h-85.19c1.82-7.53-1.82-12.21-8.05-14.8-5.71-2.86-13.77-3.9-21.82-3.9-21.82,0-30.65,5.46-32.21,13.25-1.04,5.19.52,8.57,7.53,9.61l84.67,12.99c35.84,5.45,55.06,22.6,48.31,54.03-9.61,45.19-50.91,66.49-133.25,66.49-56.36,0-116.36-7.79-104.93-62.34h88.31c-1.04,6.24.26,10.39,4.94,13.25,4.94,2.6,12.73,3.9,24.16,3.9,22.86,0,30.39-6.24,32.21-15.07,1.04-5.46-1.04-10.91-10.65-12.47l-81.04-12.47Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"160ms"},d:"M1173.2,204.03h-67.79l9.87-46.75h208.83l-9.87,46.75h-67.79l-29.61,138.7h-73.25l29.61-138.7Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"200ms"},d:"M1364.32,264.02c-34.54-5.45-44.93-26.23-39.48-52.21,10.13-48.05,60-61.04,120.26-61.04,82.6,0,111.95,21.56,
17106.23,60.78h-85.19c1.82-7.53-1.82-12.21-8.05-14.8-5.71-2.86-13.77-3.9-21.82-3.9-21.82,0-30.65,5.46-32.21,13.25-1.04,5.19.52,8.57,7.53,9.61l84.67,12.99c35.84,5.45,55.06,22.6,48.31,54.03-9.61,45.19-50.91,66.49-133.25,66.49-56.36,0-116.36-7.79-104.93-62.34h88.31c-1.04,6.24.26,10.39,4.94,13.25,4.93,2.6,12.73,3.9,24.15,3.9,22.86,0,30.39-6.24,32.21-15.07,1.04-5.46-1.04-10.91-10.65-12.47l-81.04-12.47Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"240ms"},d:"M1630.17,204.03h-67.79l9.87-46.75h208.83l-9.87,46.75h-67.79l-29.61,138.7h-73.25l29.61-138.7Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"280ms"},d:"M1795.9,157.27h154.28c21.04,0,33.25,1.82,42.34,6.75,12.47,6.75,20,24.68,15.58,44.93-3.64,17.4-14.81,36.1-37.4,42.34l-.26.52c10.39,3.12,17.14,12.47,15.07,28.57l-5.45,40.52c-1.04,8.31,1.04,16.1,4.41,21.82h-80c-1.56-5.45.26-13.51,3.64-35.06,2.08-13.77-.78-22.08-14.29-22.08h-51.95l-12.21,57.14h-73.25l39.48-185.45ZM1851.75,238.83h51.95c14.29,0,21.56-5.71,23.9-17.4,3.12-14.03-5.19-17.4-17.4-17.4h-50.91l-7.53,34.8Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"320ms"},d:"M2033.37,157.27h73.25l-39.48,185.45h-73.25l39.48-185.45Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"360ms"},d:"M2196.39,271.56l-28.57,21.3-10.65,49.87h-73.25l39.48-185.45h73.25l-14.02,65.45,82.07-65.45h97.14l-98.18,71.69,65.71,113.77h-97.4l-35.58-71.17Z"}),p.jsx("path",{className:"logo-letter",style:{"--stagger":"400ms"},d:"M2373.92,157.27h197.14l-9.61,45.19h-123.89l-5.46,24.93h115.06l-9.61,45.19h-115.06l-5.19,24.94h123.89l-9.61,45.19h-197.14l39.48-185.45Z"})]})}function J7({theme:e,onToggleTheme:t,activePage:i,onNavigate:r}){return p.jsxs("nav",{className:"group/sidebar blue-gradient-grain relative fixed left-2 top-2 z-10 flex h-[calc(100vh-16px)] w-14 flex-col overflow-hidden rounded-xl border-none shadow-[var(--shadow-card)] transition-[width] duration-250 ease-out hover:w-[200px] max-md:fixed max-md:bottom-1.5 max-md:left-1.5 max-md:right-1.5 max-md:top-auto max-md:h-14 max-md:w-[calc(100%-12px)] max-md:flex-row max-md:hover:w-[calc(100%-12px)]",children:[p.jsx("button",{onClick:()=>r("landing"),className:"relative z-10 flex h-14 w-14 shrink-0 cursor-pointer items-center justify-center border-none bg-transparent group-hover/sidebar:w-full max-md:group-hover/sidebar:w-14",title:"Back to home",children:p.jsx("div",{className:"absolute left-[8px] top-[12px] h-[32px] w-[38px] overflow-hidden transition-[width] duration-300 ease-out group-hover/sidebar:w-[calc(100%-12px)] max-md:!w-[38px]",children:p.jsx(i3,{})})}),p.jsxs("div",{className:"relative z-10 flex flex-1 flex-col gap-0.5 py-2 max-md:flex-row max-md:items-center max-md:justify-center max-md:gap-0 max-md:py-0",children:[p.jsx(D2,{icon:p.jsx($7,{}),label:"Strikes",active:i==="strikes",onClick:()=>r("strikes")}),p.jsx(D2,{icon:p.jsx(tE,{}),label:"Portfolio",active:i==="portfolio",onClick:()=>r("portfolio")})]}),p.jsx("div",{className:"relative z-10 shrink-0 py-1.5 max-md:flex max-md:items-center max-md:py-0",children:p.jsxs("button",{onClick:t,title:e==="dark"?"Switch to light mode":"Switch to dark mode",className:"flex h-10 w-10 mx-2 rounded-lg cursor-pointer items-center justify-center gap-3 border-none bg-transparent text-[var(--nav-text)] whitespace-nowrap transition-colors hover:bg-[var(--nav-hover-bg)] hover:text-[var(--nav-text-hover)] group-hover/sidebar:w-[calc(100%-16px)] group-hover/sidebar:justify-start group-hover/sidebar:px-4 max-md:h-10 max-md:w-auto max-md:mx-1 max-md:px-3 max-md:group-hover/sidebar:w-auto max-md:group-hover/sidebar:justify-center max-md:group-hover/sidebar:px-3",children:[p.jsx("span",{className:"flex w-5 shrink-0 items-center justify-center",children:e==="dark"?p.jsx(nE,{}):p.jsx(eE,{})}),p.jsx("span",{className:"hidden font-display text-ui tracking-nav group-hover/sidebar:inline max-md:!hidden",children:e==="dark"?"Light Mode":"Dark Mode"})]})})]})}function D2({icon:e,label:t,active:i,disabled:r,onClick:o}){const c="flex h-10 w-10 items-center justify-center gap-3 whitespace-nowrap transition-colors cursor-pointer text-[var(--nav-text)] rounded-lg mx-2 group-hover/sidebar:w-[calc(100%-16px)] group-hover/sidebar:justify-start group-hover/sidebar:px-4 max-md:h-10 max-md:w-auto max-md:mx-1 max-md:px-3 max-md:group-hover/sidebar:w-auto max-md:group-hover/sidebar:justify-center max-md:group-hover/sidebar:px-3",u=r?"opacity-30 pointer-events-none cursor-default":i?"text-[var(--nav-text-hover)] bg-[var(--nav-active-bg)]":"hover:bg-[var(--nav-hover-bg)] hover:text-[var(--nav-text-hover)]";return p.jsxs("a",{className:`${c} ${u}`,title:t,onClick:o,children:[p.jsx("span",{className:"flex w-5 shrink-0 items-center justify-center",children:e}),p.jsx("span",{className:"hidden font-display text-ui font-normal tracking-nav group-hover/sidebar:inline max-md:!hidden",children:t})]})}function $7(){return p.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]})}function tE(){return p.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("rect",{x:"32",y:"128",width:"448",height:"320",rx:"48"}),p.jsx("path",{d:"M192 128V96a64 64 0 0164-64h0a64 64 0 0164 64v32"}),p.jsx("path",{d:"M32 240h448"})]})}function eE(){return p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z"})})}function nE(){return p.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"}),p.jsx("circle",{cx:"256",cy:"256",r:"80"})]})}const s3=(...e)=>e.filter((t,i,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===i).join(" ").trim();const iE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const sE=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,r)=>r?r.toUpperCase():i.toLowerCase());const L2=e=>{const t=sE(e);return t.charAt(0).toUpperCase()+t.slice(1)};var rE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const aE=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const oE=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:c,iconNode:u,...h},d)=>E.createElement("svg",{ref:d,...rE,width:t,height:t,stroke:e,strokeWidth:r?Number(i)*24/Number(t):i,className:s3("lucide",o),...!c&&!aE(h)&&{"aria-hidden":"true"},...h},[...u.map(([m,v])=>
17E.createElement(m,v)),...Array.isArray(c)?c:[c]]));const Gi=(e,t)=>{const i=E.forwardRef(({className:r,...o},c)=>E.createElement(oE,{ref:c,iconNode:t,className:s3(`lucide-${iE(L2(e))}`,`lucide-${e}`,r),...o}));return i.displayName=L2(e),i};const lE=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],cE=Gi("activity",lE);const uE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],r3=Gi("arrow-right",uE);const hE=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],fE=Gi("brain",hE);const dE=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],mE=Gi("briefcase",dE);const pE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],gE=Gi("check",pE);const vE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Lm=Gi("chevron-down",vE);const yE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xE=Gi("chevron-up",yE);const bE=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],wE=Gi("gauge",bE),SE={hidden:{},visible:{transition:{staggerChildren:.12,delayChildren:.2}}},Zl={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.22,1,.36,1]}}};function ME({onEnter:e}){return p.jsxs("section",{className:"relative flex min-h-screen flex-col items-center justify-center px-6 py-20 text-center",children:[p.jsxs(kt.div,{variants:SE,initial:"hidden",animate:"visible",className:"flex flex-col items-center gap-8",children:[p.jsxs(kt.div,{variants:Zl,className:"relative flex items-center justify-center",children:[p.jsx("div",{className:"blue-gradient-grain absolute -skew-x-[12deg]",style:{to
17p:"10px",bottom:"10px",left:"-2px",right:"-2px"}}),p.jsx("div",{className:"relative z-10 w-[min(50vw,260px)]",children:p.jsx(_E,{})})]}),p.jsx(kt.h1,{variants:Zl,className:"font-display text-[clamp(36px,7vw,64px)] font-black leading-[1] tracking-[-2px] text-[var(--text-primary)]",children:"Every Word Has a Price"}),p.jsxs(kt.p,{variants:Zl,className:"flex flex-wrap items-center justify-center gap-x-3 font-mono text-label uppercase tracking-header text-[var(--text-tertiary)]",children:[p.jsx("span",{children:"AI Probability Scoring"}),p.jsx("span",{className:"text-electric-blue",children:"·"}),p.jsx("span",{children:"Real-Time Earnings Tracking"}),p.jsx("span",{className:"text-electric-blue",children:"·"}),p.jsx("span",{children:"Portfolio P&L"})]}),p.jsx(kt.button,{variants:Zl,onClick:e,whileHover:{scale:1.03},whileTap:{scale:.98},className:"blue-gradient-grain relative mt-2 flex cursor-pointer items-center gap-1.5 rounded-lg px-5 py-2 font-display text-cell font-medium text-white shadow-[var(--shadow-card)] transition-shadow hover:shadow-[var(--shadow-card-hover)]",children:p.jsxs("span",{className:"relative z-10 flex items-center gap-1.5",children:["Enter Dashboard",p.jsx(r3,{size:14,strokeWidth:2.5})]})})]}),p.jsxs(kt.div,{initial:{opacity:0}
17,animate:{opacity:1},transition:{delay:1.5,duration:.6},className:"absolute bottom-8 flex flex-col items-center gap-1 text-[var(--text-tertiary)]",children:[p.jsx("span",{className:"font-mono text-label uppercase tracking-header",children:"Scroll to explore"}),p.jsx(kt.div,{animate:{y:[0,6,0]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"},children:p.jsx(Lm,{size:16})})]})]})}const EE={hidden:{},visible:{transition:{staggerChildren:.05,delayChildren:.6}}},CE={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.6,ease:[.22,1,.36,1]}}},TE={hidden:{opacity:0,x:-20},visible:{opacity:1,x:0,transition:{duration:.4,ease:[.22,1,.36,1]}}},jE=["M555.27,157.27h73.25l-39.48,185.45h-73.25l39.48-185.45Z","M645.28,157.27h154.28c21.04,0,33.25,1.82,42.34,6.75,12.47,6.75,20,24.68,15.58,44.93-3.64,17.4-14.8,36.1-37.4,42.34l-.26.52c10.39,3.12,17.14,12.47,15.06,28.57l-5.45,40.52c-1.04,8.31,1.04,16.1,4.42,21.82h-80c-1.56-5.45.26-13.51,3.64-35.06,2.08-13.77-.78-22.08-14.29-22.08h-51.95l-12.21,57.14h-73.25l39.48-185.45ZM701.13,238.83h51.95c14.29,0,21.56-5.71,23.9-17.4,3.12-14.03-5.19-17.4-17.4-17.4h-50.91l-7.53,34.8Z","M907.35,264.02c-34.54-5.45-44.93-26.23-39.48-52.21,10.13-48.05,60-61.04,120.26-61.04,82.6,0,111.95,21.56,106.23,60.78h-85.19c1.82-7.53-1.82-12.21-8.05-14.8-5.71-2.86-13.77-3.9-21.82-3.9-21.82,0-30.65,5.46-32.21,13.25-1.04,5.19.52,8.57,7.53,9.61l84.67,12.99c35.84,5.45,55.06,22.6,48.31,54.03-9.61,45.19-50.91,66.49-133.25,66.49-56.36,0-116.36-7.79-104.93-62.34h88.31c-1.04,6.24.26,10.39,4.94,13.25,4.94,2.6,12.73,3.9,24.16,3.9,22.86,0,30.39-6.24,32.21-15.07,1.04-5.46-1.04-10.91-10.65-12.47l-81.04-12.47Z","M1173.2,204.03h-67.79l9.87-46.75h208.83l-9.87,46.75h-67.79l-29.61,138.7h-73.25l29.61-138.7Z","M1364.32,264.02c-34.54-5.45-44.93-26.23-39.48-52.21,10.13-48.05,60-61.04,120.26-61.04,82.6,0,111.95,21.56,106.23,60.78h-85.19c1.82-7.53-1.82-12.21-8.05-14.8-5.71-2.86-13.77-3.9-21.82-3.9-21.82,0-30.65,5.46-32.21,13.25-1.04,5.19.52,8.57,7.53,9.61l84.67,12.99c35.84,5.45,55.06,22.6,48.31,54.03-9.61,45.19-50.91,66.49-133.25,66.49-56.36,0-116.36-7.79-104.93-62.34h88.31c-1.04,6.24.26,10.39,4.94,13.25,4.93,2.6,12.73,3.9,24.15,3.9,22.86,0,30.39-6.24,32.21-15.07,1.04-5.46-1.04-10.91-10.65-12.47l-81.04-12.47Z","M1630.17,204.03h-67.79l9.87-46.75h208.83l-9.87,46.75h-67.79l-29.61,138.7h-73.25l29.61-138.7Z","M1795.9,157.27h154.28c21.04,0,33.25,1.82,42.34,6.75,12.47,6.75,20,24.68,15.58,44.93-3.64,17.4-14.81,36.1-37.4,42.34l-.26.52c10.39,3.12,17.14,12.47,15.07,28.57l-5.45,40.52c-1.04,8.31,1.04,16.1,4.41,21.82h-80c-1.56-5.45.26-13.51,3.64-35.06,2.08-13.77-.78-22.08-14.29-22.08h-51.95l-12.21,57.14h-73.25l39.48-185.45ZM1851.75,238.83h51.95c14.29,0,21.56-5.71,23.9-17.4,3.12-14.03-5.19-17.4-17.4-17.4h-50.91l-7.53,34.8Z","M2033.37,157.27h73.25l-39.48,185.45h-73.25l39.48-185.45Z","M2196.39,271.56l-28.57,21.3-10.65,49.87h-73.25l39.48-185.45h73.25l-14.02,65.45,82.07-65.45h97.14l-98.18,71.69,65.71,113.77h-97.4l-35.58-71.17Z","M2373.92,157.27h197.14l-9.61,45.19h-123.89l-5.46,24.93h115.06l-9.61,45.19h-115.06l-5.19,24.94h123.89l-9.61,45.19h-197.14l39.48-185.45Z"];function _E(){return p.jsxs(kt.svg,{viewBox:"0 0 2625 500",xmlns:"http://www.w3.org/2000/svg",className:"h-full w-full",preserveAspectRatio:"xMidYMid meet",variants:EE,initial:"hidden",animate:"visible",children:[p.jsxs(kt.g,{fill:"#fff",variants:CE,children:[p.jsx("path",{d:"M530.2,202.31l9.61-45.19h-220.02c.77,3.28,3.07,4.71,5.82,6.11.23.12.41-.12.31.45-3.35.83-5.72,3.82-6.68,7.01l-1.33-2.61c-1.6-2.36-4.01-4.03-6.87-4.4-.06-.58,0-.35.32-.44.83-.25,1.73-.4,2.52-.76,2.05-.95,4.08-3.2,4.81-5.36h-17.94c.95,3.55,3.74,5,6.96,6.07.29.1.58-.09.48.38-11.05,2.27-10.93,17.5.22,19.48-.92.49-1.95.56-2.93,1.01-8.63,4.04-6.87,16.72,2.27,18.69-8.93,2-11.03,13.65-3.13,18.45l2.91,1.35c-4.29.72-7.62,4.67-7.88,8.98l-.92-3.12c-3.58-8.17-15.96-7.23-18.05,1.55-2.66,11.2,12.74,16.64,17.92,6.54l1.05-3.43c.16,3.07,2.04,6.13,4.62,7.75.83.52,1.51.63,2.3.98.26.12.39-.1.31.46-3.72.91-6.73,4.28-7.22,8.1l-1.05-2.77c-6.07-11.15-22.81-2.73-17.3,8.77,1.57,3.28,3.78,4.01,6.89,5.15.3.11.37-.08.31.46-11.12,1.9-10.9,17.59.22,19.37-10.9,2.23-11.61,16.61-.88,19.7-8.59,2.13-10.73,13.2-3.35,18.24l3.13,1.57c-4.09.7-7.23,4.47-7.66,8.54l-.77-2.4c-4.75-11.01-21.3-5.44-18.11,6.3,2.18,8.02,13.47,9.33,17.52,2.08l1.35-3.57c.43,4.17,3.41,7.24,7.22,8.65-.84.39-1.75.69-2.56,1.16-.34.2-.96.59-1.16.92h12.91l-1.25-1.05-2.47-1.14c2.01-.51,4.09-1.88,5.34-3.52.53-.7.75-1.42,1.17-2.11.52-.86.52.34.81.82,1.1,1.89,2.66,3.72,4.71,4.59.37.53-2.53,1.68-2.62,2.4l10.48.06h73.25l14.29-66.75h10
175.45l9.61-45.19h-105.45l5.97-28.31h114.54ZM303.05,321.94c-1.4,1.18-2.9,2.89-3.4,4.67l-.43.14c-.98-3.06-3.78-5.19-6.79-6.02,2.16-.86,4.01-1.86,5.46-3.73.59-.75.81-1.52,1.27-2.23.14-.21-.02-.39.49-.28.56,1.95,1.83,3.38,3.28,4.71.22.38,2.14,1.15,1.97,1.53-.1.22-1.46.89-1.85,1.21ZM301.4,304.09c-.84,1.02-1.06,1.92-1.69,2.9-.14.21.02.39-.49.28-.68-2.21-2.75-4.39-4.81-5.37l-2.41-.98c2.18-.38,4.44-1.77,5.78-3.52.69-.91.93-1.78,1.42-2.73.09-.17.07-.69.45-.31.08.08.56,1.64.84,2.12,1.27,2.19,2.81,3.28,4.85,4.67-1.46.52-2.97,1.77-3.94,2.95ZM303.74,282.58c-2.03,1.37-3.39,3.36-4.2,5.65l-1.33-2.39c-1.65-2.58-4.2-3.81-7.09-4.51,4.05-.54,7.22-3.5,8.43-7.33.92,3.24,3.17,6.17,6.45,7.23-.65.59-1.49.83-2.26,1.35ZM306.07,261.96c-3.34.98-5.6,3.98-6.53,7.23-1.17-3.7-4.25-6.76-8.21-7.23-.06-.58.01-.35.32-.44,4.28-1.29,6.86-3.32,7.88-7.88.71,3.55,3.13,6.79,6.67,7.89l-.14.43ZM342.1,203.7c-1.32,1.15-2.47,2.44-3.39,3.98-1.18-2.11-2.99-4.07-5.36-4.82.68-.71,1.61-1,2.41-1.64,1.18-.95,2.01-2.23,2.95-3.39,1.08,1.54,2.15,3.21,3.74,4.24l-.35,1.62ZM320.9,303.28l-1.88,2.23c-1.29-1.95-2.95-3.61-5.14-4.49l2.41-1.53,2.95-3.18c.56,1.19,1.42,2.37,2.45,3.28l-.78,3.68ZM319.02,276.19c.59.88,1.05,1.81,1.75,2.62.85,1,1.95,1.52,2.72,2.31.18.18.31.19.23.53l-2.08,1.31-2.62,3.29c-1.43-2.21-3.22-3.76-5.58-4.92,2.41-1.11,4.3-2.82,5.58-5.14ZM313.22,261.53c2.67-.84,4.46-2.88,5.8-5.25.76,1.13,1.43,2.53,2.4,3.51.64.65,1.74,1.14,2.3,1.64.2.18.29.22.23.54-2.24.86-3.75,3.02-4.92,5.03-1.07-1.89-2.52-3.47-4.41-4.55-.26-.15-1.79-.48-1.38-.91ZM333.92,222.58l-.14-.45c2.06-.71,3.93-2.61,4.82-4.6l.44.54-1.55,7.3c-.99-1.17-2.14-2.18-3.56-2.79ZM338.71,188.19c-1.54-2.26-3.32-3.94-5.79-5.14,2.51-1.11,4.44-2.99,5.8-5.36,1.08,2.18,2.63,4.27,4.92,5.25-2.07,1.46-3.61,3.06-4.92,5.25ZM332.69,163.25c1.7-.46,3.51-1.79,4.59-3.18.59-.75.85-1.67,1.53-2.29.38,1.23,1.3,2.69,2.19,3.61.65.67,1.82,1.23,2.4,1.76.2.18.29.22.23.53-2.28.98-3.82,3.11-4.92,5.26-1.12-1.98-2.68-3.6-4.63-4.78-.29-.17-1.76-.45-1.38-.91ZM318.44,177.55c.22-.45.28-.93.45-1.3.12-.26-.1-.39.46-.31.65,3.33,3.32,5.85,6.35,7.11-2.58,1.13-4.43,2.68-5.77,5.17-.24.45-.35,1-.56,1.41-.12.23.11.41-.46.31-.91-3.85-4.49-6.03-8.1-6.89,3.32-.54,6.14-2.47,7.63-5.5ZM318.89,196.39c.12-.23-.12-.41.45-.31.65,3.18,3.14,5.11,5.69,6.78-2.59,1-4.87,3.3-5.69,5.99l-.43.14c-.78-2.29-2.6-4.1-4.67-5.29l-2.77-1.05c4.02-.67,5.69-2.9,7.42-6.26ZM318.89,216.35l.45-.13c.2,1.59,1.42,2.72,2.29,3.95l2.96,2.29c-.97.69-2.22,1.34-3.06,2.19-1.1,1.12-1.64,2.64-2.62,3.83-1.07-3.1-3.92-5.19-7-6.02,3.12-1.02,5.75-2.97,6.99-6.1ZM315.26,240.69c1.6-1.02,3.05-2.74,3.66-4.55,1.47,2.22,2.78,4.77,5.47,5.69.36.39-1.23,1-1.52,1.22-1.72,1.31-2.8,2.8-3.84,4.69-1.45-2.6-3.61-4.92-6.67-5.47.84-.72,1.95-.96,2.91-1.57ZM314.45,320.85l-.14-.45c1.44-.44,2.54-1.46,3.5-2.6l-.98,4.6c-.86-.72-1.81-1.33-2.38-1.55Z"}),p.jsx("path",{d:"M273.06,319.95c10.7-3.09,7.72-19.6-3.64-18.53-13.57,1.28-9.78,22.41,3.64,18.53Z"}),p.jsx("path",{d:"M292.22,221.8c11.23-2.74,8.41-19.5-2.9-18.66-13.45,1-10.23,21.86,2.9,18.66Z"}),p.jsx("path",{d:"M270.88,300.7c12.52-.73,10.99-20.21-1.69-18.76-11.87,1.36-10.37,19.46,1.69,18.76Z"}),p.jsx("path",{d:"M292.22,202.1c11.16-2.72,8.14-19.6-3.12-18.44-13.15,1.35-9.78,21.59,3.12,18.44Z"}),p.jsx("path",{d:"M268.35,280.69c14.61,2.3,14.84-20.22.18-18.23-9.72,1.32-9.99,16.69-.18,18.23Z"}),p.jsx("path",{d:"M291.43,182.48c11.31-1.34,9.93-20.06-2.98-18.31-11.24,1.53-9.8,19.82,2.98,18.31Z"}),p.jsx("path",{d:"M268.53,261.03c14.4,1.95,14.4-20.01,0-18.05-9.73,1.32-9.73,16.73,0,18.05Z"}),p.jsx("path",{d:"M249.28,321.55c-11.28,1.54-9.63,19.54,2.76,18.09,11.35-1.33,9.74-19.79-2.76-18.09Z"}),p.jsx("path",{d:"M271.1,241.38c11.78-.88,10.35-19.52-1.91-18.1-11.53,1.34-10.01,18.99,1.91,18.1Z"}),p.jsx("path",{d:"M252.84,319.64c10.52-2.59,8.15-18.37-2.67-17.78-12.83.7-9.96,20.89,2.67,17.78Z"}),p.jsx("path",{d:"M279.02,214.51c1.4-6.56-3.99-11.59-10.49-10.71-5.94.8-8.86,8.05-6.08,13.19,3.87,7.15,14.86,5.56,16.57-2.48Z"}),p.jsx("path",{d:"M252.84,299.94c10.51-2.56,7.93-18.44-2.9-17.56-12.4,1-9.55,20.59,2.9,17.56Z"}),p.jsx("path",{d:"M268.31,201.71c13,2.82,14.83-18.12,1.55-17.62-10.19.38-11.54,15.45-1.55,17.62Z"}),p.jsx("path",{d:"M249.66,280.34c13.08,1.3,12.82-19.25-.38-17.45-9.87,1.35-9.67,16.45.38,17.45Z"}),p.jsx("path",{d:"M271.29,182.04c11.37-1.13,9.6-19.06-2.32-17.43-10.89,1.49-9.29,18.58,2.32,17.43Z"}),p.jsx("path",{d:"M253.77,260.16c9.39-3.37,6.25-18.22-4.49-16.75-11.97,1.64-7.75,21.14,4.49,16.75Z"}),p.jsx("path",{d:"M230.03,321.99c-10.94,1.19-9.46,17.92,1.47,17.23,11.61-.73,10.
1713-18.49-1.47-17.23Z"}),p.jsx("path",{d:"M252.84,240.63c10.06-2.48,7.46-17.91-2.9-16.91-12.08,1.16-9.03,19.84,2.9,16.91Z"}),p.jsx("path",{d:"M229.59,319.25c13.03,1.78,13.03-18.52,0-16.74-9.29,1.27-9.29,15.47,0,16.74Z"}),p.jsx("path",{d:"M251.82,221c10.72-1.16,9.24-18.39-2.54-16.77-10.2,1.4-8.91,18.01,2.54,16.77Z"}),p.jsx("path",{d:"M229.41,299.51c12.98,2.05,13.15-18.25.18-16.48-9.03,1.24-9.2,15.05-.18,16.48Z"}),p.jsx("path",{d:"M251.82,201.31c10.59-1.24,9.04-18.14-2.55-16.55-10.15,1.39-8.7,17.88,2.55,16.55Z"}),p.jsx("path",{d:"M231.28,279.92c11.09-.31,10.18-17.67-1.04-16.59-10.55,1.02-9.45,16.88,1.04,16.59Z"}),p.jsx("path",{d:"M250.75,181.65c11.05-.04,10.57-17.39-.59-16.59-10.61.76-9.76,16.63.59,16.59Z"}),p.jsx("path",{d:"M233.15,259.89c9.37-2.42,7-16.99-2.9-16.04-11.46,1.1-8.47,18.98,2.9,16.04Z"}),p.jsx("path",{d:"M215.99,323.76c-7.48-4.74-16.36,4.1-11.17,11.5,5.04,7.18,16.64,2.08,14.43-6.77-.39-1.54-1.92-3.88-3.26-4.73Z"}),p.jsx("path",{d:"M232.13,240.27c10.2-1.19,8.61-17.53-2.55-15.9-9.66,1.41-8.31,17.16,2.55,15.9Z"}),p.jsx("path",{d:"M212.02,318.86c10.45-.71,9.23-17.08-1.47-15.91-10.21,1.11-8.87,16.62,1.47,15.91Z"}),p.jsx("path",{d:"M230.25,204.68c-11.56,1.11-7.89,19.39,3.55,15.37,8.47-2.98,5.65-16.25-3.55-15.37Z"}),p.jsx("path",{d:"M212.02,299.17c10.27-.64,9.17-16.86-1.47-15.69-10.01,1.09-8.74,16.33,1.47,15.69Z"}),p.jsx("path",{d:"M235.75,199.23c8.34-6.38-1.61-18.71-9.48-12.44-8.15,6.49,1.37,18.66,9.48,12.44Z"}),p.jsx("path",{d:"M218,275.6c5.52-9.32-9.14-17.22-13.79-6.79-.19.43,0,.99-.55,1.08-1.35,8.45,9.88,13.24,14.34,5.7Z"}),p.jsx("path",{d:"M232.13,180.95c9.55-1.12,8.22-16.69-2.33-15.24-9.59,1.31-8.11,16.46,2.33,15.24Z"}),p.jsx("path",{d:"M209.93,259.45c11.85,1.88,11.97-16.57.18-14.95-8.16,1.12-8.3,13.66-.18,14.95Z"}),p.jsx("path",{d:"M190.86,323.08c-10.65,1.25-7.33,17.99,3.24,14.62,8.49-2.71,5.64-15.66-3.24-14.62Z"}),p.jsx("path",{d:"M213.46,239.53c8.62-2.34,6.25-15.54-2.68-14.72-10.62.97-7.79,17.57,2.68,14.72Z"}),p.jsx("path",{d:"M194.34,317.81c7.9-2.8,5.42-15.49-3.92-14.21-10,1.37-6.58,17.94,3.92,14.21Z"}),p.jsx("path",{d:"M212.44,219.91c9.21-1.03,7.91-15.94-2.11-14.58-9.25,1.26-7.78,15.69,2.11,14.58Z"}),p.jsx("path",{d:"M192.75,298.49c9.06-1.02,7.81-15.71-2.11-14.37-8.94,1.21-7.72,15.47,2.11,14.37Z"}),p.jsx("path",{d:"M212.22,200.21c9.49-1.04,7.86-15.68-1.89-14.36-8.96,1.21-7.49,15.39,1.89,14.36Z"}),p.jsx("path",{d:"M190.38,278.58c11.25,1.49,11.09-15.69-.18-13.94-7.43,1.15-7.28,12.95.18,13.94Z"}),p.jsx("path",{d:"M210.11,180.26c11.07,1.61,11.05-15.51,0-13.89-7.55,1.1-7.56,12.8,0,13.89Z"}),p.jsx("path",{d:"M193.15,258.84c8.22-1.29,7.06-15.11-2.73-13.68-8.43,1.23-7.12,15.22,2.73,13.68Z"}),p.jsx("path",{d:"M168.39,324.69c-.48.28-2.39,1.97-2.59,2.33-.16.3-.72,2.9-.73,3.34-.18,6.67,8.35,9.76,12.48,4.37,4.52-5.9-2.49-13.99-9.17-10.04Z"}),p.jsx("path",{d:"M191.24,239.19c9.59.61,9.9-14.56-.38-13.72-8.1.66-7.89,13.19.38,13.72Z"}),p.jsx("path",{d:"M194.63,218.73c6.87-3.15,3.75-14.02-3.99-12.97-9.7,1.31-5.63,17.37,3.99,12.97Z"}),p.jsx("path",{d:"M177.9,314.28c3.05-5.18-1.52-11.02-7.39-10.02-2.56.43-4.95,3.21-5.19,5.75-.72,7.5,8.93,10.5,12.58,4.27Z"}),p.jsx("path",{d:"M176.02,296.64c3.7-2.65,3.31-8.22-.05-10.97-2.19-1.79-6.84-1.46-8.69.69-5.52,6.41,2.17,14.99,8.74,10.28Z"}),p.jsx("path",{d:"M190.46,199.48c10.29,1.64,10.32-14.36.4-13.19-7.09.83-7.69,12.03-.4,13.19Z"}),p.jsx("path",{d:"M193.15,179.61c7.47-1.16,6.42-14.26-2.74-12.81-7.6,1.2-6.62,14.27,2.74,12.81Z"}),p.jsx("path",{d:"M172.19,278.16c8.53-.15,8.16-13.65-.58-13.09-8.35.54-7.79,13.23.58,13.09Z"}),p.jsx("path",{d:"M173.08,258.24c5.42-.6,6.98-7.71,3.1-11.31-1.59-1.48-5.35-1.52-7.21-.47-6,3.36-3.26,12.59,4.12,11.78Z"}),p.jsx("path",{d:"M155.83,325.07c-.92-.75-3.17-1.02-4.32-.84-5.89.91-7.23,8.79-2.24,11.68,5.78,3.35,11.94-3.3
171,8.43-8.66-.21-.33-1.62-1.97-1.87-2.18Z"}),p.jsx("path",{d:"M172.19,238.55c8.39-.26,7.98-13.8-1.46-12.43-6.92,1-6.2,12.66,1.46,12.43Z"}),p.jsx("path",{d:"M158.02,308.32c-1.33-3.56-6.35-4.9-9.27-2.52-2.53,2.06-3.07,6.14-1.12,8.76,4.06,5.44,13.06.92,10.39-6.24Z"}),p.jsx("path",{d:"M172.83,218.6c7.57-.88,6.59-13.03-1.45-12.17-7.96.85-6.67,13.11,1.45,12.17Z"}),p.jsx("path",{d:"M155.97,296.07c3.17-2.33,3.08-7.3.08-9.74-3.15-2.56-7.97-.65-9.19,3.04-1.8,5.46,4.42,10.14,9.11,6.7Z"}),p.jsx("path",{d:"M172.2,198.94c7.58-.15,7.49-12.2-.38-11.99-7.54.2-7.39,12.15.38,11.99Z"}),p.jsx("path",{d:"M153.55,277.22c6.94-1.01,5.77-12.66-2.3-11.27-6.77,1.16-5.72,12.44,2.3,11.27Z"}),p.jsx("path",{d:"M170.77,178.91c8.93,1.71,9.32-12.56.17-11.23-6.05.88-6.03,10.1-.17,11.23Z"}),p.jsx("path",{d:"M153.77,237.83c6.46-1.09,5.35-11.98-2.08-11.05-7.19.89-6.09,12.43,2.08,11.05Z"}),p.jsx("path",{d:"M151.69,246.48c-7.26.96-5.83,11.82,1.45,11.08,7.11-.72,6.08-12.07-1.45-11.08Z"}),p.jsx("path",{d:"M131.56,325.05c-6.44,1.1-5.32,11.32,1.45,11.09,7.3-.24,6.93-12.53-1.45-11.09Z"}),p.jsx("path",{d:"M131.56,305.57c-6.44,1.1-5.18,11.48,1.67,10.87,7.3-.65,6.33-12.24-1.67-10.87Z"}),p.jsx("path",{d:"M154.31,217.79c6.04-2.17,3.97-11.48-2.83-10.49-7.45,1.08-4.66,13.18,2.83,10.49Z"}),p.jsx("path",{d:"M134.08,296.49c5.93-1,5.01-11.55-2.3-10.4-6.36,1-5.64,11.74,2.3,10.4Z"}),p.jsx("path",{d:"M153.37,198.25c6.36-.89,5.38-11.07-1.45-10.43-6.91.65-5.89,11.45,1.45,10.43Z"}),p.jsx("path",{d:"M134.46,276.51c5.69-1.87,3.88-10.95-2.68-9.9-6.82,1.09-4.46,12.25,2.68,9.9Z"}),p.jsx("path",{d:"M151.44,178.33c8.27,1.15,7.68-11.01.26-9.99-5.74.79-5.53,9.26-.26,9.99Z"}),p.jsx("path",{d:"M133.67,256.91c5.93-.82,4.95-10.53-1.45-9.78-6.33.75-5.63,10.76,1.45,9.78Z"}),p.jsx("path",{d:"M297.02,159.63c.28-.34,1.61-2.22,1.32-2.51h-16.85c2.38,6.44,11.16,7.78,15.53,2.51Z"}),p.jsx("path",{d:"M133.46,236.99c5.99-.75,4.79-9.99-1.23-9.34-6.05.66-5.19,10.15,1.23,9.34Z"}),p.jsx("path",{d:"M112.3,325.93c-5.72.91-4.68,10.34,2.09,9.09.5-.09.92-.36,1.33-.64,4.04-2.73,1.77-9.27-3.41-8.45Z"}),p.jsx("path",{d:"M115.07,315.12c4.81-2.08,2.82-9.68-2.99-8.68-1.53.26-3.21,2.04-3.42,3.58-.51,3.74,2.87,6.63,6.41,5.1Z"}),p.jsx("path",{d:"M135.32,216.31c3.88-2.72,1.46-8.64-3.1-8.14-1.2.13-2.43.96-3.11,1.93-2.88,4.11,2.13,9.07,6.21,6.21Z"}),p.jsx("path",{d:"M278.21,157.12h-15.97c3.04,6.94,13.1,7.11,15.97,0Z"}),p.jsx("path",{d:"M115.5,294.76c.14-.08,1.33-1.05,1.39-1.12.93-1.15.59-3.79-.28-4.96-1.71-2.31-
175.51-2.08-7.06.35-2.45,3.86,1.73,8.27,5.95,5.73Z"}),p.jsx("path",{d:"M136.21,195.53c3.1-4.33-2.93-9.05-6.48-5.5-4.21,4.21,2.88,10.53,6.48,5.5Z"}),p.jsx("path",{d:"M112.52,275.7c6.11.99,6.45-9.26-.44-7.99-4.07.75-3.91,7.29.44,7.99Z"}),p.jsx("path",{d:"M133.01,177.46c5.56-.28,4.7-9.26-1.23-8.03-4.51.93-3.74,8.28,1.23,8.03Z"}),p.jsx("path",{d:"M258.08,157.12h-14.66c2.64,6.36,11.92,6.31,14.66,0Z"}),p.jsx("path",{d:"M114.17,255.78c4.41-.82,3.41-8.36-1.65-7.56-4.86.77-3.99,8.61,1.65,7.56Z"}),p.jsx("path",{d:"M92.83,327.02c-4.5.76-3.85,8.14,1.65,7.12,4.06-.75,3.26-7.94-1.65-7.12Z"}),p.jsx("path",{d:"M235.65,159.74c.31-.24,2.41-2.34,2.08-2.62h-13.57c2.15,4.21,7.69,5.59,11.48,2.62Z"}),p.jsx("path",{d:"M113.76,235.89c4.55-.58,3.53-7.79-1.02-7.16-4.58.63-4.02,7.8,1.02,7.16Z"}),p.jsx("path",{d:"M94.07,314.25c4.33-.59,3.2-7.31-1.02-6.72-4.37.6-3.68,7.36,1.02,6.72Z"}),p.jsx("path",{d:"M113.47,215.9c4.45-.42,3.66-7.42-1.17-6.42-3.64.75-2.82,6.79,1.17,6.42Z"}),p.jsx("path",{d:"M215.71,159.27c.27-.2,2.01-1.86,1.68-2.15h-12.03c2.04,3.7,6.96,4.69,10.36,2.15Z"}),p.jsx("path",{d:"M93.64,294.36c4.07-.22,3.59-6.38-.37-6.09-3.95.29-3.53,6.3.37,6.09Z"}),p.jsx("path",{d:"M113.51,196.04c3.86-.44,3.24-6.84-1.21-5.82-3.17.72-2.53,6.24,1.21,5.82Z"}),p.jsx("path",{d:"M94.47,274.16c2.78-.71,1.99-5.89-1.65-5.15-3.28.66-2.41,6.19,1.65,5.15Z"}),p.jsx("path",{d:"M187.51,158.44c2.88,2.57,7.52,1.95,9.52-1.32h-10.5c.02.52.62,1,.98,1.32Z"}),p.jsx("path",{d:"M113.34,175.95c3.51-.19,3.03-5.6-.37-5.22-3.32.37-3.07,5.41.37,5.22Z"}),p.jsx("path",{d:"M273.83,341.31c-2.72-1.04-6.52-.95-8.91.92-.18.14-.4,0-.28.5h11.16c-.04-.68-1.39-1.2-1.97-1.42Z"}),p.jsx("path",{d:"M94.26,254.25c2.5-.57,1.68-5.01-1.21-4.51-2.93.51-2.28,5.31,1.21,4.51Z"}),p.jsx("path",{d:"M73.36,328.54c-2.12.43-2.19,3.8-.04,4.11,3.46.5,3.17-4.75.04-4.11Z"}),p.jsx("path",{d:"M174.48,158.74c.27-.12,2.13-1.3,1.77-1.62h-8.53c1.53,2.2,4.36,2.73,6.76,1.62Z"}),p.jsx("path",{d:"M93.82,234.34c2.55-.42,2.02-4.55-.99-3.86-2.07.48-1.46,4.26.99,3.86Z"}),p.jsx("path",{d:"M75.06,309.67c-1.72-1.69-4.19,1.12-2.46,2.57,1.74,1.47,4-1.07,2.46-2.57Z"}),p.jsx("path",{d:"M254.14,341.74c-2.04-.76-4.39-.79-6.46-.12l-1.63.88h9.41c-.16-.33-.97-.64-1.32-.76Z"}),p.jsx("path",{d:"M93.63,214.24c2.16-.22,1.68-3.62-.37-3.25-1.93.35-1.76,3.46.37,3.25Z"}),p.jsx("path",{d:"M155.9,157.12h-6.56c1.49,1.91,5,1.67,6.56,0Z"}),p.jsx("path",{d:"M228.05,342.13c-.23.09-.65.06-.6.38h7.22l-2.35-.82c-1.53-.17-2.83-.14-4.26.44Z"}),p.jsx("polygon",{points:"209.29 342.51 213.66 342.51 211.36 342.05 209.29 342.51"}),p.jsx("path",{d:"M133.8,157.12c-.47.01-.95-.02-1.42,0-.27.01-.81-.17-.76.22.47-.01.95.02,1.42,0,.27-.01.81.17.76-.22Z"})]}),jE.map((e,t)=>p.jsx(kt.path,{d:e,fill:"#fff",variants:TE},t))]})}const AE=[{icon:p.jsx(fE,{size:28}),title:"AI Probability Scoring",subtitle:"Predict Before They Speak",description:"ML models trained on 10,000+ historical earnings transcripts calculate word-mention probability with confidence scores. See which words CEOs are statistically likely to say â and how confident the model is â before the call even begins."},{icon:p.jsx(cE,{size:28}),title:"Real-Time Earnings Tracking",subtitle:"Live Data, Every Season",description:"Market prices, closing times, and trading volume sync directly from Kalshi in real time. Track every earnings call as it happens, with automatic updates so you never miss a price movement during earnings season."},{icon:p.jsx(mE,{size:28}),title:"Portfolio P&L Tracking",subtitle:"Your Positions at a Glance",description:"Connect your Kalshi account to monitor open positions, realized gains, and cumulative P&L over time. See exactly how your mention market bets are performing with a clear, visual breakdown."},{icon:p.jsx(wE,{size:28}),title:"Sentiment Analysis",subtitle:"Instant Signal, Zero Noise",description:"Every market gets classified as likely, uncertain, or unlikely based on AI analysis. Color-coded sentiment indicators let you scan dozens of markets in seconds and focus on the highest-conviction opportunities."}];function NE({icon:e,title:t,subtitle:i,description:r,index:o}){const c=E.useRef(null),[u,h]=E.useState({x:0,y:0}),[d,m]=E.useState(!1),v=k2(0,{stiffness:300,damping:30}),y=k2(0,{stiffness:300,damping:30}),x=o%2===0;function w(T){const j=c.current;if(!j)return;const _=j.getBoundingClientRect(),N=T.clientX-_.left,D=T.clientY-_.top,z=_.width/2,K=_.height/2;h({x:N,y:D}),y.set((N-z)/z*6),v.set((K-D)/K*6)}function M(){m(!0)}function S(){m(!1),v.set(0),y.set(0)}return p.jsxs(kt.div,{initial:{opacity:0,y:48,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-100px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:`flex items-start gap-8 max-md:flex-col ${x?"":"flex-row-reverse"}`,children:[p.jsxs(kt.div,{ref:c,onMouseMove:w,onMouseEnter:M,onMouseLeave:S,style:{rotateX:v,rotateY:y,transformPerspective:600},className:"feature-card-border group relative w-72 shrink-0 rounded-xl bg-[var(--bg-glass)] px-7 py-7 shadow-[var(--shadow-card)] backdrop-blur-[var(--glass-blur)] transition-shadow hover:shadow-[var(--shadow-card-hover)] max-md:w-full",children:[p.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-xl transition-opacity duration-300",style:{background:`radial-gradient(400px circle at ${u.x}px ${u.y}px, rgba(0,61,255,0.1), transparent 60%)`,opacity:d?1:0}}),p.jsxs(kt.div,{className:"relative z-10 mb-4 flex h-14 w-14 items-center justify-center rounded-xl bg-electric-blue/15 text-electric-blue",whileHover:{scale:1.1,rotate:8},transition:{type:"spring",stiffness:300,damping:15},children:[p.jsx(kt.div,{className:"absolute inset-0 rounded-xl",initial:{boxShadow:"0 0 0 0 rgba(0,61,255,0)"},whileInView:{boxShadow:["0 0 0 0 rgba(0,61,255,0)","0 0 0 8px rgba(0,61,255,0.15)","0 0 0 0 rgba(0,61,255,0)"]},viewport:{once:!0},transition:{duration:1.5,delay:.3}}),e]}),p.jsx("div",{className:"relative z-10 mb-1 font-mono text-xs font-medium uppercase tracking-widest text-electric-blue",children:i}),p.jsx("h3",{className:"relative z-10 font-display text-xl font-bold text-[var(--text-primary)]",children:t})]}),p.jsx(kt.p,{initial:{opacity:0}
17,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.2,ease:[.22,1,.36,1]},className:`pt-4 font-body text-body leading-relaxed text-[var(--text-secondary)] max-md:pt-0 ${x?"text-left":"text-right max-md:text-left"}`,children:r})]})}function RE(){return p.jsxs("section",{className:"mx-auto w-full max-w-4xl px-6 py-20",children:[p.jsx(kt.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.4},className:"mb-14 text-center font-display text-title font-bold leading-[1.1] tracking-[-0.5px] text-[var(--text-primary)]",children:"Built for Prediction Markets"}),p.jsx("div",{className:"flex flex-col gap-20",children:AE.map((e,t)=>p.jsx(NE,{...e,index:t},e.title))})]})}function OE(e,t,i=1200){const[r,o]=E.useState(0),c=E.useRef(0);return E.useEffect(()=>{if(!t)return;const u=performance.now(),h=d=>{const m=d-u,v=Math.min(m/i,1),y=1-Math.pow(1-v,3);o(Math.round(y*e)),v<1&&(c.current=requestAnimationFrame(h))};return c.current=requestAnimationFrame(h),()=>cancelAnimationFrame(c.current)},[t,e,i]),r}const kE=[{label:"Companies Tracked",value:25,suffix:"+"},{label:"Active Markets",value:33,suffix:""},{label:"Strikes Analyzed",value:10,suffix:"K+"}],DE={hidden:{},visible:{transition:{staggerChildren:.15}}},LE={hidden:{opacity:0,scale:.9,filter:"blur(4px)"},visible:{opacity:1,scale:1,filter:"blur(0px)",transition:{duration:.5,ease:[.22,1,.36,1]}}},zE=[{left:"20%",delay:0},{left:"45%",delay:.1},{left:"70%",delay:.2},{left:"85%",delay:.05}];function VE({label:e,value:t,suffix:i}){const r=E.useRef(null),o=Q7(r,{once:!0,margin:"-60px"}),c=OE(t,o,1200),[u,h]=E.useState(!1),d=t>0?c/t:0;E.useEffect(()=>{c===t&&o&&!u&&h(!0)},[c,t,o,u]);const m=Math.round(d*20),v=(.1+d*.4).toFixed(2);return p.jsxs(kt.div,{ref:r,variants:LE,whileHover:{y:-4,scale:1.02},transition:{type:"spring",stiffness:150,damping:25,mass:.8},className:"group relative select-none overflow-hidden rounded-lg bg-[var(--bg-glass)] px-6 py-5 text-center shadow-[var(--shadow-sm)] backdrop-blur-[var(--glass-blur)] transition-shadow duration-300 ease-out hover:shadow-[var(--shadow-card-hover)]",children:[u&&zE.map((y,x)=>p.jsx(kt.div,{className:"absolute top-2 h-[3px] w-[3px] rounded-full bg-electric-blue/60",style:{left:y.left},initial:{opacity:0,y:0,scale:.5},animate:{opacity:[0,1,0],y:[0,-12],scale:[.5,1.2,0]},transition:{duration:.6,delay:y.delay,ease:"easeOut"}},x)),u&&p.jsx(kt.div,{className:"pointer-events-none absolute inset-0 flex items-center justify-center",initial:{opacity:.5,scale:1},animate:{opacity:0,scale:2},transition:{duration:.6,ease:"easeOut"},children:p.jsx("div",{className:"h-16 w-16 rounded-full bg-[radial-gradient(circle,rgba(0,61,255,0.25),transparent)]"})}),p.jsx("div",{className:"font-mono text-label uppercase tracking-header text-[var(--text-tertiary)]",children:e}),p.jsxs(kt.div,{className:"mt-1 font-display text-[32px] font-bold tabular-nums text-[var(--text-primary)] transition-colors duration-300 ease-out group-hover:text-electric-blue",style:{textShadow:o&&!u?`0 0 ${m}px rgba(0,61,255,${v})`:"none"},animate:u?{scale:[1,1.08,1]}:void 0,transition:u?{duration:.3}:void 0,children:[c,i]}),p.jsx(kt.div,{className:"absolute bottom-0 left-0 h-[2px] origin-left bg-gradient-to-r from-transparent via-electric-blue to-transparent",initial:{scaleX:0},animate:o?{scaleX:1}:{scaleX:0},transition:{duration:1.2,ease:[.22,1,.36,1]}})]})}function BE(){return p.jsxs("section",{className:"mx-auto w-full max-w-3xl px-6 py-16",children:[p.jsx(kt.div,{initial:{scaleX:0,opacity:0},whileInView:{scaleX:1,opacity:1},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"mx-auto mb-12 h-px w-48 origin-center bg-gradient-to-r from-transparent via-electric-blue/30 to-transparent"}),p.jsx(kt.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-60px"},variants:DE,className:"grid grid-cols-3 gap-4 max-md:grid-cols-1",children:kE.map(e=>p.jsx(VE,{...e},e.label))})]})}const PE={hidden:{},visible:{transition:{staggerChildren:.15,delayChildren:.1}}},UE={hidden:{opacity:0,scale:.9,filter:"blur(4px)"},visible:{opacity:1,scale:1,filter:"blur(0px)",transition:{duration:.6,ease:[.22,1,.36,1]}}},HE={hidden:{opacity:0,y:12},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.22,1,.36,1]}}},ZE={hidden:{opacity:0,y:20,scale:.9},visible:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:200,damping:15}}},YE=[{left:"15%",size:3,duration:4,delay:0},{left:"30%",size:2,duration:3.5,delay:.8},{left:"45%",size:4,duration:4.5,delay:.3}
17,{left:"60%",size:2,duration:3.8,delay:1.2},{left:"72%",size:3,duration:4.2,delay:.6},{left:"85%",size:2,duration:3.6,delay:1.5}];function GE({onEnter:e}){return p.jsxs("section",{className:"flex flex-col items-center justify-center px-6 py-24 text-center",children:[p.jsx(kt.div,{initial:{scaleX:0,opacity:0},whileInView:{scaleX:1,opacity:1},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"mb-16 h-px w-48 origin-center bg-gradient-to-r from-transparent via-electric-blue/30 to-transparent"}),p.jsx("div",{className:"cta-ring relative rounded-2xl",children:p.jsxs(kt.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-60px"},variants:PE,className:"relative flex flex-col items-center gap-5 rounded-2xl bg-[var(--bg-glass)] px-12 py-14 backdrop-blur-[var(--glass-blur)] max-md:px-6 max-md:py-10",children:[p.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden rounded-2xl",children:YE.map((t,i)=>p.jsx(kt.div,{className:"absolute bottom-4 rounded-full",style:{left:t.left,width:t.size,height:t.size,background:"rgba(0,61,255,0.4)",filter:"blur(1px)"},animate:{y:[0,-60,-120],opacity:[0,.6,0]},transition:{repeat:1/0,duration:t.duration,delay:t.delay,ease:"linear"}},i))}),p.jsx(kt.h2,{variants:UE,className:"hero-gradient-text font-display text-title font-bold leading-[1.1] tracking-[-0.5px]","data-text":"Ready to Analyze Mention Markets?",children:"Ready to Analyze Mention Markets?"}),p.jsx(kt.p,{variants:HE,className:"max-w-md font-body text-lg leading-relaxed text-[var(--text-secondary)]",children:"See what CEOs are likely to say next â and what the market thinks about it."}),p.jsx(kt.button,{variants:ZE,onClick:e,whileHover:{scale:1.03},whileTap:{scale:.98},className:"btn-shimmer blue-gradient-grain group/btn relative flex cursor-pointer items-center gap-1.5 rounded-lg px-5 py-2 font-display text-cell font-medium text-white shadow-[var(--shadow-card)] transition-shadow hover:shadow-[var(--shadow-card-hover)]",children:p.jsxs("span",{className:"relative z-10 flex items-center gap-1.5",children:["Enter Dashboard",p.jsx(kt.span,{className:"inline-flex",whileHover:{x:[0,4,0]},transition:{repeat:1/0,duration:.8},children:p.jsx(r3,{size:14,strokeWidth:2.5})})]})})]})})]})}function KE({onEnter:e,theme:t,onToggleTheme:i}){return p.jsxs(kt.div,{className:"relative z-[1] flex h-screen w-full flex-col overflow-y-auto overflow-x-hidden",initial:{opacity:0}
17,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:[p.jsxs("nav",{className:"fixed left-0 right-0 top-0 z-50 flex items-center justify-between px-6 py-4",children:[p.jsx("div",{className:"landing-logo-visible h-6 w-32 opacity-70",children:p.jsx(i3,{})}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{onClick:e,className:"flex cursor-pointer items-center gap-2 rounded-lg bg-[var(--bg-glass)] px-4 py-2 font-display text-ui font-medium text-[var(--text-secondary)] shadow-[var(--shadow-sm)] backdrop-blur-[var(--glass-blur)] transition-colors hover:text-[var(--text-primary)]",children:["Enter Dashboard",p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M5 12h14"}),p.jsx("path",{d:"m12 5 7 7-7 7"})]})]}),p.jsx("button",{onClick:i,className:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-lg bg-[var(--bg-glass)] text-[var(--text-secondary)] shadow-[var(--shadow-sm)] backdrop-blur-[var(--glass-blur)] transition-colors hover:text-[var(--text-primary)]",title:t==="dark"?"Switch to light mode":"Switch to dark mode",children:t==="dark"?p.jsx(qE,{}):p.jsx(FE,{})})]})]}),p.jsx(ME,{onEnter:e}),p.jsx(RE,{}),p.jsx(BE,{}),p.jsx(GE,{onEnter:e})]})}function FE(){return p.jsx("svg",{width:"18",height:"18",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z"})})}function qE(){return p.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"}),p.jsx("circle",{cx:"256",cy:"256",r:"80"})]})}function XE({search:e,onSearchChange:t}){return p.jsx("div",{className:"shrink-0 px-6 pb-1 pt-1 max-md:px-4",children:p.jsxs("div",{className:"relative",children:[p.jsxs("svg",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[var(--text-tertiary)]",width:"14",height:"14",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z"}),p.jsx("path",{d:"M338.29 338.29L448 448"})]}),p.jsx("input",{id:"search-input",type:"text",value:e,onChange:i=>t(i.target.value),placeholder:"Search companies or words...",className:"w-full rounded-xl border border-transparent bg-[var(--bg-glass)] py-2 pr-3 pl-9 font-body text-ui text-[var(--text-primary)] shadow-[var(--shadow-sm)] outline-none transition-shadow placeholder:text-[var(--text-tertiary)] focus:border-[var(--focus-border)] focus:ring-1 focus:ring-[var(--focus-ring)] focus:shadow-[var(--shadow-card)]"})]})})}const IE=60,WE=30,QE=50,JE=6,$E=1440*60*1e3,tC=9e5,eC=1e5,z2=10,nC=200,iC=220,sC=10,rC=-10,V2=.3,aC="https://kalshi.com/markets",oC="https://assets.parqet.com/logos/symbol";function B2(e){return e>=IE?"likely":e>=WE?"uncertain":"unlikely"}function lC(e,t){const i=[...e];switch(t){case"close_time_asc":i.sort((r,o)=>new Date(r.earliest_close).getTime()-new Date(o.earliest_close).getTime());break;case"close_time_desc":i.sort((r,o)=>new Date(o.earliest_close).getTime()-new Date(r.earliest_close).getTime());break;case"company_name":i.sort((r,o)=>r.company_name.localeCompare(o.company_name));break;case"word_count":i.sort((r,o)=>o.word_count-r.word_count);break}return i}function a3(e){return`${oC}/${e}`}const cC={SPOT:"https://investors.spotify.com/events-and-presentations",NFLX:"https://ir.netflix.net/ir/events-and-presentations",MSFT:"https://www.microsoft.com/en-us/investor/events",TSLA:"https://ir.tesla.com/#quarterly-disclosure",GOOGL:"https://abc.xyz/investor/",META:"https://investor.fb.com/investor-events/default.aspx",AAPL:"https://investor.apple.com/investor-relations/default.aspx",AMZN:"https://ir.aboutamazon.com/quarterly-results/default.aspx",NVDA:"https://investor.nvidia.com/events-and-presentations",CRM:"https://investor.salesforce.com/events-and-presentations"};function o3(e){return cC[e]??`https://www.google.com/search?q=${encodeURIComponent(e+" investor relations earnings call")}`}function l3(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function c3(e){const t=new Date(e),i=t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"}),r=t.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"});return`${i}, ${r}`}function Qa(e){return`${e>=0?"+$":"-$"}${Math.abs(e).toFixed(2)}`}function u3(e){let t=0;for(let i=0;i<e.length;i++)t=t*31+e.charCodeAt(i)|0;return Math.abs(t)}function h3(e){return e.historical_pct>=QE&&e.quarters_analyzed>=JE?"HIGH":"LOW"}function f3(e){return e.ev_side==="yes"?Math.max(1,e.ai_probability-e.ev_value):Math.min(99,e.ai_probability+e.ev_value)}function uC(e){return e.trend_pct>=sC?"EMERGING":e.trend_pct<=rC?"NONE":"STABLE"}function zm(e){return`${aC}/${e.toLowerCase()}`}function ni(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}function Vm(e){return u3(e+"vol")%tC+eC}function d3(e){const t=new Date(e).getTime()-Date.now();return t>0&&t<$E}function m3(e){return e.markets.reduce((i,r)=>r.ai_probability>
17i.ai_probability?r:i).ai_recommendation}function p3(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e.toLocaleString()}const Zc={buy_yes:"BUY YES",buy_no:"BUY NO",pass:"PASS"},Yc={buy_yes:"mint",buy_no:"coral",pass:"amber"};function Yt(e){var t=e.width,i=e.height;if(t<0)throw new Error("Negative width is not allowed for Size");if(i<0)throw new Error("Negative height is not allowed for Size");return{width:t,height:i}}function bs(e,t){return e.width===t.width&&e.height===t.height}var hC=(function(){function e(t){var i=this;this._resolutionListener=function(){return i._onResolutionChanged()},this._resolutionMediaQueryList=null,this._observers=[],this._window=t,this._installResolutionListener()}return e.prototype.dispose=function(){this._uninstallResolutionListener(),this._window=null},Object.defineProperty(e.prototype,"value",{get:function(){return this._window.devicePixelRatio},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(t){var i=this,r={next:t};return this._observers.push(r),{unsubscribe:function(){i._observers=i._observers.filter(function(o){return o!==r})}}},e.prototype._installResolutionListener=function(){if(this._resolutionMediaQueryList!==null)throw new Error("Resolution listener is already installed");var t=this._window.devicePixelRatio;this._resolutionMediaQueryList=this._window.matchMedia("all and (resolution: ".concat(t,"dppx)")),this._resolutionMediaQueryList.addListener(this._resolutionListener)},e.prototype._uninstallResolutionListener=function(){this._resolutionMediaQueryList!==null&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},e.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},e.prototype._onResolutionChanged=function(){var t=this;this._observers.forEach(function(i){return i.next(t._window.devicePixelRatio)}),this._reinstallResolutionListener()},e})();function fC(e){return new hC(e)}var dC=(function(){function e(t,i,r){var o;this._canvasElement=null,this._bitmapSizeChangedListeners=[],this._suggestedBitmapSize=null,this._suggestedBitmapSizeChangedListeners=[],this._devicePixelRatioObservable=null,this._canvasElementResizeObserver=null,this._canvasElement=t,this._canvasElementClientSize=Yt({width:this._canvasElement.clientWidth,height:this._canvasElement.clientHeight}),this._transformBitmapSize=i??(function(c){return c}),this._allowResizeObserver=(o=r?.allowResizeObserver)!==null&&o!==void 0?o:!0,this._chooseAndInitObserver()}return e.prototype.dispose=function(){var t,i;if(this._canvasElement===null)throw new Error("Object is disposed");(t=this._canvasElementResizeObserver)===null||t===void 0||t.disconnect(),this._canvasElementResizeObserver=null,(i=this._devicePixelRatioObservable)===null||i===void 0||i.dispose(),this._devicePixelRatioObservable=null,this._suggestedBitmapSizeChangedListeners.length=0,this._bitmapSizeChangedListeners.length=0,this._canvasElement=null},Object.defineProperty(e.prototype,"canvasElement",{get:function(){if(this._canvasElement===null)throw new Error("Object is disposed");return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvasElementClientSize",{get:function(){return this._canvasElementClientSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bitmapSize",{get:function(){return Yt({width:this.canvasElement.width,height:this.canvasElement.height})},enumerable:!1,configurable:!0}),e.prototype.resizeCanvasElement=function(t){this._canvasElementClientSize=Yt(t),this.canvasElement.style.width="".concat(this._canvasElementClientSize.width,"px"),this.canvasElement.style.height="".concat(this._canvasElementClientSize.height,"px"),this._invalidateBitmapSize()},e.prototype.subscribeBitmapSizeChanged=function(t){this._bitmapSizeChangedListeners.push(t)},e.prototype.unsubscribeBitmapSizeChanged=function(t){this._bitmapSizeChangedListeners=this._bitmapSizeChangedListeners.filter(function(i){return i!==t})},Object.defineProperty(e.prototype,"suggestedBitmapSize",{get:function(){return this._suggestedBitmapSize}
17,enumerable:!1,configurable:!0}),e.prototype.subscribeSuggestedBitmapSizeChanged=function(t){this._suggestedBitmapSizeChangedListeners.push(t)},e.prototype.unsubscribeSuggestedBitmapSizeChanged=function(t){this._suggestedBitmapSizeChangedListeners=this._suggestedBitmapSizeChangedListeners.filter(function(i){return i!==t})},e.prototype.applySuggestedBitmapSize=function(){if(this._suggestedBitmapSize!==null){var t=this._suggestedBitmapSize;this._suggestedBitmapSize=null,this._resizeBitmap(t),this._emitSuggestedBitmapSizeChanged(t,this._suggestedBitmapSize)}},e.prototype._resizeBitmap=function(t){var i=this.bitmapSize;bs(i,t)||(this.canvasElement.width=t.width,this.canvasElement.height=t.height,this._emitBitmapSizeChanged(i,t))},e.prototype._emitBitmapSizeChanged=function(t,i){var r=this;this._bitmapSizeChangedListeners.forEach(function(o){return o.call(r,t,i)})},e.prototype._suggestNewBitmapSize=function(t){var i=this._suggestedBitmapSize,r=Yt(this._transformBitmapSize(t,this._canvasElementClientSize)),o=bs(this.bitmapSize,r)?null:r;i===null&&o===null||i!==null&&o!==null&&bs(i,o)||(this._suggestedBitmapSize=o,this._emitSuggestedBitmapSizeChanged(i,o))},e.prototype._emitSuggestedBitmapSizeChanged=function(t,i){var r=this;this._suggestedBitmapSizeChangedListeners.forEach(function(o){return o.call(r,t,i)})},e.prototype._chooseAndInitObserver=function(){var t=this;if(!this._allowResizeObserver){this._initDevicePixelRatioObservable();return}pC().then(function(i){return i?t._initResizeObserver():t._initDevicePixelRatioObservable()})},e.prototype._initDevicePixelRatioObservable=function(){var t=this;if(this._canvasElement!==null){var i=P2(this._canvasElement);if(i===null)throw new Error("No window is associated with the canvas");this._devicePixelRatioObservable=fC(i),this._devicePixelRatioObservable.subscribe(function(){return t._invalidateBitmapSize()}),this._invalidateBitmapSize()}},e.prototype._invalidateBitmapSize=function(){var t,i;if(this._canvasElement!==null){var r=P2(this._canvasElement);if(r!==null){var o=(i=(t=this._devicePixelRatioObservable)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:r.devicePixelRatio,c=this._canvasElement.getClientRects(),u=c[0]!==void 0?gC(c[0],o):Yt({width:this._canvasElementClientSize.width*o,height:this._canvasElementClientSize.height*o});this._suggestNewBitmapSize(u)}}},e.prototype._initResizeObserver=function(){var t=this;this._canvasElement!==null&&(this._canvasElementResizeObserver=new ResizeObserver(function(i){var r=i.find(function(u){return u.target===t._canvasElement});if(!(!r||!r.devicePixelContentBoxSize||!r.devicePixelContentBoxSize[0])){var o=r.devicePixelContentBoxSize[0],c=Yt({width:o.inlineSize,height:o.blockSize});t._suggestNewBitmapSize(c)}}),this._canvasElementResizeObserver.observe(this._canvasElement,{box:"device-pixel-content-box"}))},e})();function mC(e,t){return new dC(e,t.transform,t.options)}function P2(e){return e.ownerDocument.defaultView}function pC(){return new Promise(function(e){var t=new ResizeObserver(function(i){e(i.every(function(r){return"devicePixelContentBoxSize"in r})),t.disconnect()});t.observe(document.body,{box:"device-pixel-content-box"})}).catch(function(){return!1})}function gC(e,t){return Yt({width:Math.round(e.left*t+e.width*t)-Math.round(e.left*t),height:Math.round(e.top*t+e.height*t)-Math.round(e.top*t)})}var vC=(function(){function e(t,i,r){if(i.width===0||i.height===0)throw new TypeError("Rendering target could only be created on a media with positive width and height");if(this._mediaSize=i,r.width===0||r.height===0)throw new TypeError("Rendering target could only be created using a bitmap with positive integer width and height");this._bitmapSize=r,this._context=t}return e.prototype.useMediaCoordinateSpace=function(t){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),this._context.scale(this._horizontalPixelRatio,this._verticalPixelRatio),t({context:this._context,mediaSize:this._mediaSize})}finally{this._context.restore()}},e.prototype.useBitmapCoordinateSpace=function(t){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),t({context:this._context,mediaSize:this._mediaSize,bitmapSize:this._bitmapSize,horizontalPixelRatio:this._horizontalPixelRatio,verticalPixelRatio:this._verticalPixelRatio})}
17finally{this._context.restore()}},Object.defineProperty(e.prototype,"_horizontalPixelRatio",{get:function(){return this._bitmapSize.width/this._mediaSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_verticalPixelRatio",{get:function(){return this._bitmapSize.height/this._mediaSize.height},enumerable:!1,configurable:!0}),e})();function Ss(e,t){var i=e.canvasElementClientSize;if(i.width===0||i.height===0)return null;var r=e.bitmapSize;if(r.width===0||r.height===0)return null;var o=e.canvasElement.getContext("2d",t);return o===null?null:new vC(o,i,r)}const g3={title:"",visible:!0,lastValueVisible:!0,priceLineVisible:!0,priceLineSource:0,priceLineWidth:1,priceLineColor:"",priceLineStyle:2,baseLineVisible:!0,baseLineWidth:1,baseLineColor:"#B2B5BE",baseLineStyle:0,priceFormat:{type:"price",precision:2,minMove:.01}};var U2,H2;function Ms(e,t){const i={0:[],1:[e.lineWidth,e.lineWidth],2:[2*e.lineWidth,2*e.lineWidth],3:[6*e.lineWidth,6*e.lineWidth],4:[e.lineWidth,4*e.lineWidth]}[t];e.setLineDash(i)}function v3(e,t,i,r){e.beginPath();const o=e.lineWidth%2?.5:0;e.moveTo(i,t+o),e.lineTo(r,t+o),e.stroke()}function we(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))}function Be(e){if(e===void 0)throw new Error("Value is undefined");return e}function $(e){if(e===null)throw new Error("Value is null");return e}function Ui(e){return $(Be(e))}(function(e){e[e.Simple=0]="Simple",e[e.WithSteps=1]="WithSteps",e[e.Curved=2]="Curved"})(U2||(U2={})),(function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed",e[e.LargeDashed=3]="LargeDashed",e[e.SparseDotted=4]="SparseDotted"})(H2||(H2={}));class te{constructor(){this.t=[]}i(t,i,r){const o={h:t,l:i,o:r===!0};this.t.push(o)}_(t){const i=this.t.findIndex((r=>t===r.h));i>-1&&this.t.splice(i,1)}u(t){this.t=this.t.filter((i=>i.l!==t))}p(t,i,r){const o=[...this.t];this.t=this.t.filter((c=>!c.o)),o.forEach((c=>c.h(t,i,r)))}v(){return this.t.length>0}m(){this.t=[]}}function Je(e,...t){for(const i of t)for(const r in i)i[r]!==void 0&&Object.prototype.hasOwnProperty.call(i,r)&&!["__proto__","constructor","prototype"].includes(r)&&(typeof i[r]!="object"||e[r]===void 0||Array.isArray(i[r])?e[r]=i[r]:Je(e[r],i[r]));return e}function kr(e){return typeof e=="number"&&isFinite(e)}function oo(e){return typeof e=="number"&&e%1==0}function yo(e){return typeof e=="string"}function Yl(e){return typeof e=="boolean"}function ii(e){const t=e;if(!t||typeof t!="object")return t;let i,r,o;for(r in i=Array.isArray(t)?[]:{},t)t.hasOwnProperty(r)&&(o=t[r],i[r]=o&&typeof o=="object"?ii(o):o);return i}function Z2(e){return e!==null}function Zd(e){return e===null?void 0:e}const y3="-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif";function Ec(e,t,i){return t===void 0&&(t=y3),`${i=i!==void 0?`${i} `:""}${e}px ${t}`}class yC{constructor(t){this.M={S:1,C:5,k:NaN,P:"",T:"",R:"",D:"",I:0,V:0,B:0,A:0,L:0},this.O=t}N(){const t=this.M,i=this.F(),r=this.W();return t.k===i&&t.T===r||(t.k=i,t.T=r,t.P=Ec(i,r),t.A=2.5/12*i,t.I=t.A,t.V=i/12*t.C,t.B=i/12*t.C,t.L=0),t.R=this.H(),t.D=this.U(),this.M}H(){return this.O.N().layout.textColor}U(){return this.O.$()}F(){return this.O.N().layout.fontSize}W(){return this.O.N().layout.fontFamily}}function Gf(e){return e<0?0:e>255?255:Math.round(e)||0}function Y2(e){return .199*e[0]+.687*e[1]+.114*e[2]}class xC{constructor(t,i){this.q=new Map,this.j=t,i&&(this.q=i)}Y(t,i){if(t==="transparent")return t;const r=this.K(t),o=r[3];return`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${i*o})`}Z(t){const i=this.K(t);return{G:`rgb(${i[0]}, ${i[1]}, ${i[2]})`,X:Y2(i)>160?"black":"white"}}J(t){return Y2(this.K(t))}tt(t,i,r){const[o,c,u,h]=this.K(t),[d,m,v,y]=this.K(i),x=[Gf(o+r*(d-o)),Gf(c+r*(m-c)),Gf(u+r*(v-u)),(w=h+r*(y-h),w<=0||w>1?Math.min(Math.max(w,0),1):Math.round(1e4*w)/1e4)];var w;return`rgba(${x[0]}, ${x[1]}, ${x[2]}, ${x[3]})`}K(t){const i=this.q.get(t);if(i)return i;const r=(function(u){const h=document.createElement("div");h.style.display="none",document.body.appendChild(h),h.style.color=u;const d=window.getComputedStyle(h).color;return document.body.removeChild(h),d})(t),o=r.match(/^rgba?\s*\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)$/);if(!o){if(this.j.length)for(const u of this.j){const h=u(t);if(h)return this.q.set(t,h),h}throw new Error(`Failed to parse color: ${t}`)}const c=[parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10),o[4]?parseFloat(o[4]):1];return this.q.set(t,c),c}}class bC{constructor(){this.it=[]}st(t){this.it=t}nt(t,i,r){this.it.forEach((o=>{o.nt(t,i,r)}))}}class Ns{nt(t,i,r){t.useBitmapCoordinateSpace((o=>this.et(o,i,r)))}}class wC extends Ns{constructor(){super(...arguments),this.rt=null}ht(t){this.rt=t}et({context:t,horizontalPixelRatio:i,verticalPixelRatio:r}){if(this.rt===null||this.rt.lt===null)return;const o=this.rt.lt,c=this.rt,u=Math.max(1,Math.floor(i))%2/2,h=d=>{t.beginPath();for(let m=o.to-1;m>=o.from;--m){const v=c.ot[m],y=Math.round(v._t*i)+u,x=v.ut*r,w=d*r+u;t.moveTo(y,x),t.arc(y,x,w,0,2*Math.PI)}t.fill()};c.ct>0&&(t.fillStyle=c.dt,h(c.ft+c.ct)),t.fillStyle=c.vt,h(c.ft)}}function SC(){return{ot:[{_t:0,ut:0,wt:0,gt:0}],vt:"",dt:"",ft:0,ct:0,lt:null}}const MC={from:0,to:1};class EC{constructor(t,i,r){this.Mt=new bC,this.bt=[],this.St=[],this.xt=!0,this.O=t,this.Ct=i,this.yt=r,this.Mt.st(this.bt)}kt(t){this.Pt(),this.xt=!0}Tt(){return this.xt&&(this.Rt(),this.xt=!1),this.Mt}
vendor: 13,111 bytes, line 17
17Pt(){const t=this.yt.Dt();t.length!==this.bt.length&&(this.St=t.map(SC),this.bt=this.St.map((i=>{const r=new wC;return r.ht(i),r})),this.Mt.st(this.bt))}Rt(){const t=this.Ct.N().mode===2||!this.Ct.It(),i=this.yt.Vt(),r=this.Ct.Bt(),o=this.O.Et();this.Pt(),i.forEach(((c,u)=>{const h=this.St[u],d=c.At(r),m=c.Lt();!t&&d!==null&&c.It()&&m!==null?(h.vt=d.zt,h.ft=d.ft,h.ct=d.Ot,h.ot[0].gt=d.gt,h.ot[0].ut=c.Ft().Nt(d.gt,m.Wt),h.dt=d.Ht??this.O.Ut(h.ot[0].ut/c.Ft().$t()),h.ot[0].wt=r,h.ot[0]._t=o.qt(r),h.lt=MC):h.lt=null}))}}class CC extends Ns{constructor(t){super(),this.jt=t}et({context:t,bitmapSize:i,horizontalPixelRatio:r,verticalPixelRatio:o}){if(this.jt===null)return;const c=this.jt.Yt.It,u=this.jt.Kt.It;if(!c&&!u)return;const h=Math.round(this.jt._t*r),d=Math.round(this.jt.ut*o);t.lineCap="butt",c&&h>=0&&(t.lineWidth=Math.floor(this.jt.Yt.ct*r),t.strokeStyle=this.jt.Yt.R,t.fillStyle=this.jt.Yt.R,Ms(t,this.jt.Yt.Zt),(function(m,v,y,x){m.beginPath();const w=m.lineWidth%2?.5:0;m.moveTo(v+w,y),m.lineTo(v+w,x),m.stroke()})(t,h,0,i.height)),u&&d>=0&&(t.lineWidth=Math.floor(this.jt.Kt.ct*o),t.strokeStyle=this.jt.Kt.R,t.fillStyle=this.jt.Kt.R,Ms(t,this.jt.Kt.Zt),v3(t,d,0,i.width))}}class TC{constructor(t,i){this.xt=!0,this.Gt={Yt:{ct:1,Zt:0,R:"",It:!1},Kt:{ct:1,Zt:0,R:"",It:!1},_t:0,ut:0},this.Xt=new CC(this.Gt),this.Jt=t,this.yt=i}kt(){this.xt=!0}Tt(t){return this.xt&&(this.Rt(),this.xt=!1),this.Xt}Rt(){const t=this.Jt.It(),i=this.yt.Qt().N().crosshair,r=this.Gt;if(i.mode===2)return r.Kt.It=!1,void(r.Yt.It=!1);r.Kt.It=t&&this.Jt.ti(this.yt),r.Yt.It=t&&this.Jt.ii(),r.Kt.ct=i.horzLine.width,r.Kt.Zt=i.horzLine.style,r.Kt.R=i.horzLine.color,r.Yt.ct=i.vertLine.width,r.Yt.Zt=i.vertLine.style,r.Yt.R=i.vertLine.color,r._t=this.Jt.si(),r.ut=this.Jt.ni()}}function Gc(e,t,i,r,o,c){e.save(),e.globalCompositeOperation="copy",e.fillStyle=c,e.fillRect(t,i,r,o),e.restore()}function G2(e,t,i,r,o,c){e.beginPath(),e.roundRect?e.roundRect(t,i,r,o,c):(e.lineTo(t+r-c[1],i),c[1]!==0&&e.arcTo(t+r,i,t+r,i+c[1],c[1]),e.lineTo(t+r,i+o-c[2]),c[2]!==0&&e.arcTo(t+r,i+o,t+r-c[2],i+o,c[2]),e.lineTo(t+c[3],i+o),c[3]!==0&&e.arcTo(t,i+o,t,i+o-c[3],c[3]),e.lineTo(t,i+c[0]),c[0]!==0&&e.arcTo(t,i,t+c[0],i,c[0]))}function K2(e,t,i,r,o,c,u=0,h=[0,0,0,0],d=""){if(e.save(),!u||!d||d===c)return G2(e,t,i,r,o,h),e.fillStyle=c,e.fill(),void e.restore();const m=u/2;var v;G2(e,t+m,i+m,r-u,o-u,(v=-m,h.map((y=>y===0?y:y+v)))),c!=="transparent"&&(e.fillStyle=c,e.fill()),d!=="transparent"&&(e.lineWidth=u,e.strokeStyle=d,e.closePath(),e.stroke()),e.restore()}function x3(e,t,i,r,o,c,u){e.save(),e.globalCompositeOperation="copy";const h=e.createLinearGradient(0,0,0,o);h.addColorStop(0,c),h.addColorStop(1,u),e.fillStyle=h,e.fillRect(t,i,r,o),e.restore()}class F2{constructor(t,i){this.ht(t,i)}ht(t,i){this.jt=t,this.ei=i}$t(t,i){return this.jt.It?t.k+t.A+t.I:0}nt(t,i,r,o){if(!this.jt.It||this.jt.ri.length===0)return;const c=this.jt.R,u=this.ei.G,h=t.useBitmapCoordinateSpace((d=>{const m=d.context;m.font=i.P;const v=this.hi(d,i,r,o),y=v.ai;return v.li?K2(m,y.oi,y._i,y.ui,y.ci,u,y.di,[y.ft,0,0,y.ft],u):K2(m,y.fi,y._i,y.ui,y.ci,u,y.di,[0,y.ft,y.ft,0],u),this.jt.pi&&(m.fillStyle=c,m.fillRect(y.fi,y.mi,y.wi-y.fi,y.gi)),this.jt.Mi&&(m.fillStyle=i.D,m.fillRect(v.li?y.bi-y.di:0,y._i,y.di,y.Si-y._i)),v}));t.useMediaCoordinateSpace((({context:d})=>{const m=h.xi;d.font=i.P,d.textAlign=h.li?"right":"left",d.textBaseline="middle",d.fillStyle=c,d.fillText(this.jt.ri,m.Ci,(m._i+m.Si)/2+m.yi)}))}hi(t,i,r,o){const{context:c,bitmapSize:u,mediaSize:h,horizontalPixelRatio:d,verticalPixelRatio:m}=t,v=this.jt.pi||!this.jt.ki?i.C:0,y=this.jt.Pi?i.S:0,x=i.A+this.ei.Ti,w=i.I+this.ei.Ri,M=i.V,S=i.B,T=this.jt.ri,j=i.k,_=r.Di(c,T),N=Math.ceil(r.Ii(c,T)),D=j+x+w,z=i.S+M+S+N+v,K=Math.max(1,Math.floor(m));let Z=Math.round(D*m);Z%2!=K%2&&(Z+=1);const U=y>0?Math.max(1,Math.floor(y*d)):0,W=Math.round(z*d),nt=Math.round(v*d),ct=this.ei.Vi??this.ei.Bi??this.ei.Ei,ut=Math.round(ct*m)-Math.floor(.5*m),gt=Math.floor(ut+K/2-Z/2),mt=gt+Z,tt=o==="right",k=tt?h.width-y:y,Y=tt?u.width-U:U;let V,it,ht;return tt?(V=Y-W,it=Y-nt,ht=k-v-M-y):(V=Y+W,it=Y+nt,ht=k+v+M),{li:tt,ai:{_i:gt,mi:ut,Si:mt,ui:W,ci:Z,ft:2*d,di:U,oi:V,fi:Y,wi:it,gi:K,bi:u.width},xi:{_i:gt/m,Si:mt/m,Ci:ht,yi:_}}}}class Kc{constructor(t){this.Ai={Ei:0,G:"#000",Ri:0,Ti:0},this.Li={ri:"",It:!1,pi:!0,ki:!1,Ht:"",R:"#FFF",Mi:!1,Pi:!1},this.zi={ri:"",It:!1,pi:!1,ki:!0,Ht:"",R:"#FFF",Mi:!0,Pi:!0},this.xt=!0,this.Oi=new(t||F2)(this.Li,this.Ai),this.Ni=new(t||F2)(this.zi,this.Ai)}ri(){return this.Fi(),this.Li.ri}Ei(){return this.Fi(),this.Ai.Ei}kt(){this.xt=!0}$t(t,i=!1){return Math.max(this.Oi.$t(t,i),this.Ni.$t(t,i))}Wi(){return this.Ai.Vi??null}Hi(){return this.Ai.Vi??this.Ai.Bi??this.Ei()}Ui(t){this.Ai.Bi=t??void 0}$i(){return this.Fi(),this.Li.It||this.zi.It}qi(){return this.Fi(),this.Li.It}Tt(t){return this.Fi(),this.Li.pi=this.Li.pi&&t.N().ticksVisible,this.zi.pi=this.zi.pi&&t.N().ticksVisible,this.Oi.ht(this.Li,this.Ai),this.Ni.ht(this.zi,this.Ai),this.Oi}ji(){return this.Fi(),this.Oi.ht(this.Li,this.Ai),this.Ni.ht(this.zi,this.Ai),this.Ni}Fi(){this.xt&&(this.Li.pi=!0,this.zi.pi=!1,this.Yi(this.Li,this.zi,this.Ai))}}class jC extends Kc{constructor(t,i,r){super(),this.Jt=t,this.Ki=i,this.Zi=r}Yi(t,i,r){if(t.It=!1,this.Jt.N().mode===2)return;const o=this.Jt.N().horzLine;if(!o.labelVisible)return;const c=this.Ki.Lt();if(!this.Jt.It()||this.Ki.Gi()||c===null)return;const u=this.Ki.Xi().Z(o.labelBackgroundColor);r.G=u.G,t.R=u.X;const h=2/12*this.Ki.k();r.Ti=h,r.Ri=h;const d=this.Zi(this.Ki);r.Ei=d.Ei,t.ri=this.Ki.Ji(d.gt,c),t.It=!0}}const _C=/[1-9]/g;class b3{constructor(){this.jt=null}ht(t){this.jt=t}nt(t,i){if(this.jt===null||this.jt.It===!1||this.jt.ri.length===0)return;const r=t.useMediaCoordinateSpace((({context:x})=>(x.font=i.P,Math.round(i.Qi.Ii(x,$(this.jt).ri,_C)))));if(r<=0)return;const o=i.ts,c=r+2*o,u=c/2,h=this.jt.ss;let d=this.jt.Ei,m=Math.floor(d-u)+.5;m<0?(d+=Math.abs(0-m),m=Math.floor(d-u)+.5):m+c>h&&(d-=Math.abs(h-(m+c)),m=Math.floor(d-u)+.5);const v=m+c,y=Math.ceil(0+i.S+i.C+i.A+i.k+i.I);t.useBitmapCoordinateSpace((({context:x,horizontalPixelRatio:w,verticalPixelRatio:M})=>{const S=$(this.jt);x.fillStyle=S.G;const T=Math.round(m*w),j=Math.round(0*M),_=Math.round(v*w),N=Math.round(y*M),D=Math.round(2*w);if(x.beginPath(),x.moveTo(T,j),x.lineTo(T,N-D),x.arcTo(T,N,T+D,N,D),x.lineTo(_-D,N),x.arcTo(_,N,_,N-D,D),x.lineTo(_,j),x.fill(),S.pi){const z=Math.round(S.Ei*w),K=j,Z=Math.round((K+i.C)*M);x.fillStyle=S.R;const U=Math.max(1,Math.floor(w)),W=Math.floor(.5*w);x.fillRect(z-W,K,U,Z-K)}})),t.useMediaCoordinateSpace((({context:x})=>{const w=$(this.jt),M=0+i.S+i.C+i.A+i.k/2;x.font=i.P,x.textAlign="left",x.textBaseline="middle",x.fillStyle=w.R;const S=i.Qi.Di(x,"Apr0");x.translate(m+o,M+S),x.fillText(w.ri,0,0)}))}}class AC{constructor(t,i,r){this.xt=!0,this.Xt=new b3,this.Gt={It:!1,G:"#4c525e",R:"white",ri:"",ss:0,Ei:NaN,pi:!0},this.Ct=t,this.ns=i,this.Zi=r}kt(){this.xt=!0}Tt(){return this.xt&&(this.Rt(),this.xt=!1),this.Xt.ht(this.Gt),this.Xt}Rt(){const t=this.Gt;if(t.It=!1,this.Ct.N().mode===2)return;const i=this.Ct.N().vertLine;if(!i.labelVisible)return;const r=this.ns.Et();if(r.Gi())return;t.ss=r.ss();const o=this.Zi();if(o===null)return;t.Ei=o.Ei;const c=r.es(this.Ct.Bt());t.ri=r.rs($(c)),t.It=!0;const u=this.ns.Xi().Z(i.labelBackgroundColor);t.G=u.G,t.R=u.X,t.pi=r.N().ticksVisible}}class w3{constructor(){this.hs=null,this.ls=0}_s(){return this.ls}us(t){this.ls=t}Ft(){return this.hs}cs(t){this.hs=t}ds(t){return[]}fs(){return[]}It(){return!0}}var q2;(function(e){e[e.Normal=0]="Normal",e[e.Magnet=1]="Magnet",e[e.Hidden=2]="Hidden",e[e.MagnetOHLC=3]="MagnetOHLC"})(q2||(q2={}));class NC extends w3{constructor(t,i){super(),this.yt=null,this.ps=NaN,this.vs=0,this.ws=!1,this.gs=new Map,this.Ms=!1,this.bs=new WeakMap,this.Ss=new WeakMap,this.xs=NaN,this.Cs=NaN,this.ys=NaN,this.ks=NaN,this.ns=t,this.Ps=i,this.Ts=((o,c)=>u=>{const h=c(),d=o();if(u===$(this.yt).Rs())return{gt:d,Ei:h};{const m=$(u.Lt());return{gt:u.Ds(h,m),Ei:h}}})((()=>this.ps),(()=>this.Cs));const r=((o,c)=>()=>{const u=this.ns.Et().Is(o()),h=c();return u&&Number.isFinite(h)?{wt:u,Ei:h}:null})((()=>this.vs),(()=>this.si()));this.Vs=new AC(this,t,r)}N(){return this.Ps}Bs(t,i){this.ys=t,this.ks=i}Es(){this.ys=NaN,this.ks=NaN}As(){return this.ys}Ls(){return this.ks}zs(t,i,r){this.Ms||(this.Ms=!0),this.ws=!0,this.Os(t,i,r)}Bt(){return this.vs}si(){return this.xs}ni(){return this.Cs}It(){return this.ws}Ns(){this.ws=!1,this.Fs(),this.ps=NaN,this.xs=NaN,this.Cs=NaN,this.yt=null,this.Es(),this.Ws()}Hs(t){if(!this.Ps.doNotSnapToHiddenSeriesIndices)return t;const i=this.ns,r=i.Et();let o=null,c=null;for(const m of i.Us()){const v=m.qs().$s(t,-1);if(v){if(v.js===t)return t;(o===null||v.js>o)&&(o=v.js)}const y=m.qs().$s(t,1);if(y){if(y.js===t)return t;(c===null||y.js<c)&&(c=y.js)}}const u=[o,c].filter(Z2);if(u.length===0)return t;const h=r.qt(t),d=u.map((m=>Math.abs(h-r.qt(m))));return u[d.indexOf(Math.min(...d))]}Ys(t){let i=this.bs.get(t);i||(i=new TC(this,t),this.bs.set(t,i));let r=this.Ss.get(t);return r||(r=new EC(this.ns,this,t),this.Ss.set(t,r)),[i,r]}ti(t){return t===this.yt&&this.Ps.horzLine.visible}ii(){return this.Ps.vertLine.visible}Ks(t,i){this.ws&&this.yt===t||this.gs.clear();const r=[];return this.yt===t&&r.push(this.Zs(this.gs,i,this.Ts)),r}fs(){return this.ws?[this.Vs]:[]}Gs(){return this.yt}Ws(){this.ns.Xs().forEach((t=>{this.bs.get(t)?.kt(),this.Ss.get(t)?.kt()})),this.gs.forEach((t=>t.kt())),this.Vs.kt()}Js(t){return t&&!t.Rs().Gi()?t.Rs():null}Os(t,i,r){this.Qs(t,i,r)&&this.Ws()}Qs(t,i,r){const o=this.xs,c=this.Cs,u=this.ps,h=this.vs,d=this.yt,m=this.Js(r);this.vs=t,this.xs=isNaN(t)?NaN:this.ns.Et().qt(t),this.yt=r;const v=m!==null?m.Lt():null;return m!==null&&v!==null?(this.ps=i,this.Cs=m.Nt(i,v)):(this.ps=NaN,this.Cs=NaN),o!==this.xs||c!==this.Cs||h!==this.vs||u!==this.ps||d!==this.yt}Fs(){const t=this.ns.tn().map((r=>r.qs().sn())).filter(Z2),i=t.length===0?null:Math.max(...t);this.vs=i!==null?i:NaN}Zs(t,i,r){let o=t.get(i);return o===void 0&&(o=new jC(this,i,r),t.set(i,o)),o}}function Fc(e){return e==="left"||e==="right"}class xe{constructor(t){this.nn=new Map,this.en=[],this.rn=t}hn(t,i){const r=(function(o,c){return o===void 0?c:{an:Math.max(o.an,c.an),ln:o.ln||c.ln}})(this.nn.get(t),i);this.nn.set(t,r)}_n(){return this.rn}un(t){const i=this.nn.get(t);return i===void 0?{an:this.rn}:{an:Math.max(this.rn,i.an),ln:i.ln}}cn(){this.dn(),this.en=[{fn:0}]}pn(t){this.dn(),this.en=[{fn:1,Wt:t}]}vn(t){this.mn(),this.en.push({fn:5,Wt:t})}dn(){this.mn(),this.en.push({fn:6})}wn(){this.dn(),this.en=[{fn:4}]}gn(t){this.dn(),this.en.push({fn:2,Wt:t})}Mn(t){this.dn(),this.en.push({fn:3,Wt:t})}bn(){return this.en}Sn(t){for(const i of t.en)this.xn(i);this.rn=Math.max(this.rn,t.rn),t.nn.forEach(((i,r)=>{this.hn(r,i)}))}static Cn(){return new xe(2)}static yn(){return new xe(3)}xn(t){switch(t.fn){case 0:this.cn();break;case 1:this.pn(t.Wt);break;case 2:this.gn(t.Wt);break;case 3:this.Mn(t.Wt);break;case 4:this.wn();break;case 5:this.vn(t.Wt);break;case 6:this.mn()}}mn(){const t=this.en.findIndex((i=>i.fn===5));t!==-1&&this.en.splice(t,1)}}class S3{formatTickmarks(t){return t.map((i=>this.format(i)))}}const X2=".";function si(e,t){if(!kr(e))return"n/a";if(!oo(t))throw new TypeError("invalid length");if(t<0||t>16)throw new TypeError("invalid length");return t===0?e.toString():("0000000000000000"+e.toString()).slice(-t)}class qc extends S3{constructor(t,i){if(super(),i||(i=1),kr(t)&&oo(t)||(t=100),t<0)throw new TypeError("invalid base");this.Ki=t,this.kn=i,this.Pn()}format(t){const i=t<0?"â":"";return t=Math.abs(t),i+this.Tn(t)}Pn(){if(this.Rn=0,this.Ki>0&&this.kn>0){let t=this.Ki;for(;t>1;)t/=10,this.Rn++}}Tn(t){const i=this.Ki/this.kn;let r=Math.floor(t),o="";const c=this.Rn!==void 0?this.Rn:NaN;if(i>1){let u=+(Math.round(t*i)-r*i).toFixed(this.Rn);u>=i&&(u-=i,r+=1),o=X2+si(+u.toFixed(this.Rn)*this.kn,c)}else r=Math.round(r*i)/i,c>0&&(o=X2+si(0,c));return r.toFixed(0)+o}}class M3 extends qc{constructor(t=100){super(t)}format(t){return`${super.format(t)}%`}}class RC extends S3{constructor(t){super(),this.Dn=t}format(t){let i="";return t<0&&(i="-",t=-t),t<995?i+this.In(t):t<999995?i+this.In(t/1e3)+"K":t<999999995?(t=1e3*Math.round(t/1e3),i+this.In(t/1e6)+"M"):(t=1e6*Math.round(t/1e6),i+this.In(t/1e9)+"B")}In(t){let i;const r=Math.pow(10,this.Dn);return i=(t=Math.round(t*r)/r)>=1e-15&&t<1?t.toFixed(this.Dn).replace(/\.?0+$/,""):String(t),i.replace(/(\.[1-9]*)0+$/,((o,c)=>c))}}const OC=/[2-9]/g;class Cc{constructor(t=50){this.Vn=0,this.Bn=1,this.En=1,this.An={},this.Ln=new Map,this.zn=t}On(){this.Vn=0,this.Ln.clear(),this.Bn=1,this.En=1,this.An={}}Ii(t,i,r){return this.Nn(t,i,r).width}Di(t,i,r){const o=this.Nn(t,i,r);return((o.actualBoundingBoxAscent||0)-(o.actualBoundingBoxDescent||0))/2}Nn(t,i,r){const o=r||OC,c=String(i).replace(o,"0");if(this.Ln.has(c))return Be(this.Ln.get(c)).Fn;if(this.Vn===this.zn){const h=this.An[this.En];delete this.An[this.En],this.Ln.delete(h),this.En++,this.Vn--}t.save(),t.textBaseline="middle";const u=t.measureText(c);
17return t.restore(),u.width===0&&i.length||(this.Ln.set(c,{Fn:u,Wn:this.Bn}),this.An[this.Bn]=c,this.Vn++,this.Bn++),u}}class kC{constructor(t){this.Hn=null,this.M=null,this.Un="right",this.$n=t}qn(t,i,r){this.Hn=t,this.M=i,this.Un=r}nt(t){this.M!==null&&this.Hn!==null&&this.Hn.nt(t,this.M,this.$n,this.Un)}}class E3{constructor(t,i,r){this.jn=t,this.$n=new Cc(50),this.Yn=i,this.O=r,this.F=-1,this.Xt=new kC(this.$n)}Tt(){const t=this.O.Kn(this.Yn);if(t===null)return null;const i=t.Zn(this.Yn)?t.Gn():this.Yn.Ft();if(i===null)return null;const r=t.Xn(i);if(r==="overlay")return null;const o=this.O.Jn();return o.k!==this.F&&(this.F=o.k,this.$n.On()),this.Xt.qn(this.jn.ji(),o,r),this.Xt}}class DC extends Ns{constructor(){super(...arguments),this.jt=null}ht(t){this.jt=t}Qn(t,i){if(!this.jt?.It)return null;const{ut:r,ct:o,te:c}=this.jt;return i>=r-o-7&&i<=r+o+7?{ie:this.jt,te:c}:null}et({context:t,bitmapSize:i,horizontalPixelRatio:r,verticalPixelRatio:o}){if(this.jt===null||this.jt.It===!1)return;const c=Math.round(this.jt.ut*o);c<0||c>i.height||(t.lineCap="butt",t.strokeStyle=this.jt.R,t.lineWidth=Math.floor(this.jt.ct*r),Ms(t,this.jt.Zt),v3(t,c,0,i.width))}}class Bm{constructor(t){this.se={ut:0,R:"rgba(0, 0, 0, 0)",ct:1,Zt:0,It:!1},this.ne=new DC,this.xt=!0,this.ee=t,this.re=t.Qt(),this.ne.ht(this.se)}kt(){this.xt=!0}Tt(){return this.ee.It()?(this.xt&&(this.he(),this.xt=!1),this.ne):null}}class LC extends Bm{constructor(t){super(t)}he(){this.se.It=!1;const t=this.ee.Ft(),i=t.ae().ae;if(i!==2&&i!==3)return;const r=this.ee.N();if(!r.baseLineVisible||!this.ee.It())return;const o=this.ee.Lt();o!==null&&(this.se.It=!0,this.se.ut=t.Nt(o.Wt,o.Wt),this.se.R=r.baseLineColor,this.se.ct=r.baseLineWidth,this.se.Zt=r.baseLineStyle)}}class zC extends Ns{constructor(){super(...arguments),this.jt=null}ht(t){this.jt=t}le(){return this.jt}et({context:t,horizontalPixelRatio:i,verticalPixelRatio:r}){const o=this.jt;if(o===null)return;const c=Math.max(1,Math.floor(i)),u=c%2/2,h=Math.round(o.oe.x*i)+u,d=o.oe.y*r;t.fillStyle=o._e,t.beginPath();const m=Math.max(2,1.5*o.ue)*i;t.arc(h,d,m,0,2*Math.PI,!1),t.fill(),t.fillStyle=o.ce,t.beginPath(),t.arc(h,d,o.ft*i,0,2*Math.PI,!1),t.fill(),t.lineWidth=c,t.strokeStyle=o.de,t.beginPath(),t.arc(h,d,o.ft*i+c/2,0,2*Math.PI,!1),t.stroke()}}const VC=[{fe:0,pe:.25,ve:4,me:10,we:.25,ge:0,Me:.4,be:.8},{fe:.25,pe:.525,ve:10,me:14,we:0,ge:0,Me:.8,be:0},{fe:.525,pe:1,ve:14,me:14,we:0,ge:0,Me:0,be:0}];class BC{constructor(t){this.Xt=new zC,this.xt=!0,this.Se=!0,this.xe=performance.now(),this.Ce=this.xe-1,this.ye=t}ke(){this.Ce=this.xe-1,this.kt()}Pe(){if(this.kt(),this.ye.N().lastPriceAnimation===2){const t=performance.now(),i=this.Ce-t;if(i>0)return void(i<650&&(this.Ce+=2600));this.xe=t,this.Ce=t+2600}}kt(){this.xt=!0}Te(){this.Se=!0}It(){return this.ye.N().lastPriceAnimation!==0}Re(){switch(this.ye.N().lastPriceAnimation){case 0:return!1;case 1:return!0;case 2:return performance.now()<=this.Ce}}Tt(){return this.xt?(this.Rt(),this.xt=!1,this.Se=!1):this.Se&&(this.De(),this.Se=!1),this.Xt}Rt(){this.Xt.ht(null);const t=this.ye.Qt().Et(),i=t.Ie(),r=this.ye.Lt();if(i===null||r===null)return;const o=this.ye.Ve(!0);if(o.Be||!i.Ee(o.js))return;const c={x:t.qt(o.js),y:this.ye.Ft().Nt(o.gt,r.Wt)},u=o.R,h=this.ye.N().lineWidth,d=this.Ae(this.Le(),u);this.Xt.ht({_e:u,ue:h,ce:d.ce,de:d.de,ft:d.ft,oe:c})}De(){const t=this.Xt.le();if(t!==null){const i=this.Ae(this.Le(),t._e);t.ce=i.ce,t.de=i.de,t.ft=i.ft}}Le(){return this.Re()?performance.now()-this.xe:2599}ze(t,i,r,o){const c=r+(o-r)*i;return this.ye.Qt().Xi().Y(t,c)}Ae(t,i){const r=t%2600/2600;let o;for(const m of VC)if(r>=m.fe&&r<=m.pe){o=m;break}we(o!==void 0,"Last price animation internal logic error");const c=(r-o.fe)/(o.pe-o.fe);return{ce:this.ze(i,c,o.we,o.ge),de:this.ze(i,c,o.Me,o.be),ft:(u=c,h=o.ve,d=o.me,h+(d-h)*u)};var u,h,d}}class PC extends Bm{constructor(t){super(t)}he(){const t=this.se;t.It=!1;const i=this.ee.N();if(!i.priceLineVisible||!this.ee.It())return;const r=this.ee.Ve(i.priceLineSource===0);r.Be||(t.It=!0,t.ut=r.Ei,t.R=this.ee.Oe(r.R),t.ct=i.priceLineWidth,t.Zt=i.priceLineStyle)}
17}class UC extends Kc{constructor(t){super(),this.Jt=t}Yi(t,i,r){t.It=!1,i.It=!1;const o=this.Jt;if(!o.It())return;const c=o.N(),u=c.lastValueVisible,h=o.Ne()!=="",d=c.seriesLastValueMode===0,m=o.Ve(!1);if(m.Be)return;u&&(t.ri=this.Fe(m,u,d),t.It=t.ri.length!==0),(h||d)&&(i.ri=this.We(m,u,h,d),i.It=i.ri.length>0);const v=o.Oe(m.R),y=this.Jt.Qt().Xi().Z(v);r.G=y.G,r.Ei=m.Ei,i.Ht=o.Qt().Ut(m.Ei/o.Ft().$t()),t.Ht=v,t.R=y.X,i.R=y.X}We(t,i,r,o){let c="";const u=this.Jt.Ne();return r&&u.length!==0&&(c+=`${u} `),i&&o&&(c+=this.Jt.Ft().He()?t.Ue:t.$e),c.trim()}Fe(t,i,r){return i?r?this.Jt.Ft().He()?t.$e:t.Ue:t.ri:""}}function I2(e,t,i,r){const o=Number.isFinite(t),c=Number.isFinite(i);return o&&c?e(t,i):o||c?o?t:i:r}class Ne{constructor(t,i){this.qe=t,this.je=i}Ye(t){return t!==null&&this.qe===t.qe&&this.je===t.je}Ke(){return new Ne(this.qe,this.je)}Ze(){return this.qe}Ge(){return this.je}Xe(){return this.je-this.qe}Gi(){return this.je===this.qe||Number.isNaN(this.je)||Number.isNaN(this.qe)}Sn(t){return t===null?this:new Ne(I2(Math.min,this.Ze(),t.Ze(),-1/0),I2(Math.max,this.Ge(),t.Ge(),1/0))}Je(t){if(!kr(t)||this.je-this.qe===0)return;const i=.5*(this.je+this.qe);let r=this.je-i,o=this.qe-i;r*=t,o*=t,this.je=i+r,this.qe=i+o}Qe(t){kr(t)&&(this.je+=t,this.qe+=t)}tr(){return{minValue:this.qe,maxValue:this.je}}static ir(t){return t===null?null:new Ne(t.minValue,t.maxValue)}}class Tc{constructor(t,i){this.sr=t,this.nr=i||null}er(){return this.sr}rr(){return this.nr}tr(){return{priceRange:this.sr===null?null:this.sr.tr(),margins:this.nr||void 0}}static ir(t){return t===null?null:new Tc(Ne.ir(t.priceRange),t.margins)}}const HC=[2,4,8,16,32,64,128,256,512],ZC="Custom series with conflation reducer must have a priceValueBuilder method";class YC extends Bm{constructor(t,i){super(t),this.hr=i}he(){const t=this.se;t.It=!1;const i=this.hr.N();if(!this.ee.It()||!i.lineVisible)return;const r=this.hr.ar();r!==null&&(t.It=!0,t.ut=r,t.R=i.color,t.ct=i.lineWidth,t.Zt=i.lineStyle,t.te=this.hr.N().id)}}class GC extends Kc{constructor(t,i){super(),this.ye=t,this.hr=i}Yi(t,i,r){t.It=!1,i.It=!1;const o=this.hr.N(),c=o.axisLabelVisible,u=o.title!=="",h=this.ye;if(!c||!h.It())return;const d=this.hr.ar();if(d===null)return;u&&(i.ri=o.title,i.It=!0),i.Ht=h.Qt().Ut(d/h.Ft().$t()),t.ri=this.lr(o.price),t.It=!0;const m=this.ye.Qt().Xi().Z(o.axisLabelColor||o.color);r.G=m.G;const v=o.axisLabelTextColor||m.X;t.R=v,i.R=v,r.Ei=d}lr(t){const i=this.ye.Lt();return i===null?"":this.ye.Ft().Ji(t,i.Wt)}}class KC{constructor(t,i){this.ye=t,this.Ps=i,this._r=new YC(t,this),this.jn=new GC(t,this),this.ur=new E3(this.jn,t,t.Qt())}cr(t){Je(this.Ps,t),this.kt(),this.ye.Qt().dr()}N(){return this.Ps}pr(){return this._r}vr(){return this.ur}mr(){return this.jn}kt(){this._r.kt(),this.jn.kt()}ar(){const t=this.ye,i=t.Ft();if(t.Qt().Et().Gi()||i.Gi())return null;const r=t.Lt();return r===null?null:i.Nt(this.Ps.price,r.Wt)}}class FC{constructor(){this.wr=new WeakMap}gr(t,i,r){const o=1/i*r;if(t>=o)return 1;const c=o/t,u=Math.pow(2,Math.floor(Math.log2(c)));return Math.min(u,512)}Mr(t,i,r,o=!1,c){if(t.length===0||i<=1)return t;const u=this.br(i);if(u<=1)return t;const h=this.Sr(t);let d=h.Cr.get(u);return d!==void 0||(d=this.yr(t,u,r,o,c,h.Cr),h.Cr.set(u,d)),d}kr(t,i,r,o,c=!1,u){if(r<1||t.length===0)return t;const h=this.Sr(t),d=h.Cr.get(r);if(!d)return this.Mr(t,r,o,c,u);const m=this.Pr(t,i,r,d,c,o,u);return h.Cr.set(r,m),m}br(t){if(t<=2)return 2;for(const i of HC)if(t<=i)return i;return 512}Tr(t){if(t.length===0)return 0;const i=t[0],r=t[t.length-1];return 31*t.length+17*i.js+13*r.js}yr(t,i,r,o=!1,c,u=new Map){if(i===2)return this.Rr(t,2,r,o,c);const h=i/2;let d=u.get(h);return d||(d=this.yr(t,h,r,o,c,u),u.set(h,d)),this.Dr(d,r,o,c)}Rr(t,i,r,o=!1,c){const u=this.Ir(t,i,r,o,c);return this.Vr(u,o)}Dr(t,i,r=!1,o){const c=this.Ir(t,2,i,r,o);return this.Vr(c,r)}Ir(t,i,r,o=!1,c){const u=[];for(let h=0;h<t.length;h+=i)if(t.length-h>=i){const d=this.Br(t[h],t[h+1],r,o,c);d.Er=!1,u.push(d)}else if(u.length===0)u.push(this.Ar(t[h],!0));else{const d=u[u.length-1];u[u.length-1]=this.Lr(d,t[h],r,o,c)}return u}zr(t,i){return(t??1)+(i??1)}Br(t,i,r,o=!1,c){if(!o||!r||!c){const m=t.Wt[1]>i.Wt[1]?t.Wt[1]:i.Wt[1],v=t.Wt[2]<i.Wt[2]?t.Wt[2]:i.Wt[2];return{Or:t.js,Nr:i.js,Fr:t.wt,Wr:i.wt,Hr:t.Wt[0],Ur:m,$r:v,qr:i.Wt[3],jr:this.zr(t.jr,i.jr),Yr:void 0,Er:!1}}const u=r(this.Kr(t,c),this.Kr(i,c)),h=c(u),d=h.length?h[h.length-1]:0;return{Or:t.js,Nr:i.js,Fr:t.wt,Wr:i.wt,Hr:t.Wt[0],Ur:Math.max(t.Wt[1],d),$r:Math.min(t.Wt[2],d),qr:d,jr:this.zr(t.jr,i.jr),Yr:u,Er:!1}}Lr(t,i,r,o=!1,c){if(!o||!r||!c)return{Or:t.Or,Nr:i.js,Fr:t.Fr,Wr:i.wt,Hr:t.Hr,Ur:t.Ur>i.Wt[1]?t.Ur:i.Wt[1],$r:t.$r<i.Wt[2]?t.$r:i.Wt[2],qr:i.Wt[3],jr:t.jr+(i.jr??1),Yr:t.Yr,Er:!1};const u=t.Yr,h=this.Kr(i,c),d=u?{data:u,index:t.Or,originalTime:t.Fr,time:t.Fr,priceValues:c(u)}:null,m=d?r(d,h):h.data,v=d?c(m):h.priceValues,y=v.length?v[v.length-1]:0;return{Or:t.Or,Nr:i.js,Fr:t.Fr,Wr:i.wt,Hr:t.Hr,Ur:Math.max(t.Ur,y),$r:Math.min(t.$r,y),qr:y,jr:t.jr+(i.jr??1),Yr:m,Er:!1}}Zr(t,i,r,o,c,u,h=!1,d){const m=i===o?c:t[i];if(r-i==1)return this.Ar(m,!0);const v=i+1===o?c:t[i+1];let y=this.Br(m,v,u,h,d);for(let x=i+2;x<r;x++){const w=x===o?c:t[x];y=this.Lr(y,w,u,h,d)}return y}Kr(t,i){const r=t.le??{};return{data:t.le,index:t.js,originalTime:t.Gr,time:t.wt,priceValues:i(r)}}
17Xr(t,i=!1){const r=i===!0,o=!!t.Yr;return{js:t.Or,wt:t.Fr,Gr:t.Fr,Wt:[r?t.qr:t.Hr,t.Ur,t.$r,t.qr],jr:t.jr,le:r?o?t.Yr:{wt:t.Fr}:void 0}}Vr(t,i=!1){return t.map((r=>this.Xr(r,i)))}Pr(t,i,r,o,c=!1,u,h){if(o.length===0)return o;const d=t.length-1,m=Math.floor(d/r)*r;if(Math.min(m+r,t.length)-m<r&&t.length>r){const v=t.slice();return v[v.length-1]=i,this.Mr(v,r,u,c,h)}if(Math.floor((d-1)/r)===Math.floor(d/r)||o.length===1){const v=Math.min(m+r,t.length),y=v-m;if(y<=0)return o;const x=y===1?this.Ar(m===d?i:t[m],!0):this.Zr(t,m,v,d,i,u,c,h);return o[o.length-1]=this.Xr(x,c),o}{const v=t.slice();return v[v.length-1]=i,this.Mr(v,r,u,c,h)}}Ar(t,i=!1){return{Or:t.js,Nr:t.js,Fr:t.wt,Wr:t.wt,Hr:t.Wt[0],Ur:t.Wt[1],$r:t.Wt[2],qr:t.Wt[3],jr:t.jr??1,Yr:t.le,Er:i}}Sr(t){const i=this.Jr(t),r=this.Tr(t);return i.Qr!==r&&(i.Cr.clear(),i.Qr=r),i}Jr(t){let i=this.wr.get(t);return i===void 0&&(i={Qr:this.Tr(t),Cr:new Map},this.wr.set(t,i)),i}}class qC extends w3{constructor(t){super(),this.ns=t}Qt(){return this.ns}}const XC={Bar:(e,t,i,r)=>{const o=t.upColor,c=t.downColor,u=$(e(i,r)),h=Ui(u.Wt[0])<=Ui(u.Wt[3]);return{th:u.R??(h?o:c)}},Candlestick:(e,t,i,r)=>{const o=t.upColor,c=t.downColor,u=t.borderUpColor,h=t.borderDownColor,d=t.wickUpColor,m=t.wickDownColor,v=$(e(i,r)),y=Ui(v.Wt[0])<=Ui(v.Wt[3]);return{th:v.R??(y?o:c),ih:v.Ht??(y?u:h),sh:v.nh??(y?d:m)}},Custom:(e,t,i,r)=>({th:$(e(i,r)).R??t.color}),Area:(e,t,i,r)=>{const o=$(e(i,r));return{th:o.vt??t.lineColor,vt:o.vt??t.lineColor,eh:o.eh??t.topColor,rh:o.rh??t.bottomColor}},Baseline:(e,t,i,r)=>{const o=$(e(i,r));return{th:o.Wt[3]>=t.baseValue.price?t.topLineColor:t.bottomLineColor,hh:o.hh??t.topLineColor,ah:o.ah??t.bottomLineColor,oh:o.oh??t.topFillColor1,_h:o._h??t.topFillColor2,uh:o.uh??t.bottomFillColor1,dh:o.dh??t.bottomFillColor2}},Line:(e,t,i,r)=>{const o=$(e(i,r));return{th:o.R??t.color,vt:o.R??t.color}},Histogram:(e,t,i,r)=>({th:$(e(i,r)).R??t.color})};class IC{constructor(t){this.fh=(i,r)=>r!==void 0?r.Wt:this.ye.qs().ph(i),this.ye=t,this.mh=XC[t.wh()]}gh(t,i){return this.mh(this.fh,this.ye.N(),t,i)}}function C3(e,t,i,r,o=0,c=t.length){let u=c-o;for(;0<u;){const h=u>>1,d=o+h;r(t[d],i)===e?(o=d+1,u-=h+1):u=h}return o}const Dr=C3.bind(null,!0),T3=C3.bind(null,!1);var W2;(function(e){e[e.NearestLeft=-1]="NearestLeft",e[e.None=0]="None",e[e.NearestRight=1]="NearestRight"})(W2||(W2={}));const Di=30;class WC{constructor(){this.Mh=[],this.bh=new Map,this.Sh=new Map,this.xh=[]}Ch(){return this.yh()>0?this.Mh[this.Mh.length-1]:null}kh(){return this.yh()>0?this.Ph(0):null}sn(){return this.yh()>0?this.Ph(this.Mh.length-1):null}yh(){return this.Mh.length}Gi(){return this.yh()===0}Ee(t){return this.Th(t,0)!==null}ph(t){return this.$s(t)}$s(t,i=0){const r=this.Th(t,i);return r===null?null:{...this.Rh(r),js:this.Ph(r)}}Dh(){return this.Mh}Ih(t,i,r){if(this.Gi())return null;let o=null;for(const c of r)o=Gl(o,this.Vh(t,i,c));return o}ht(t){this.Sh.clear(),this.bh.clear(),this.Mh=t,this.xh=t.map((i=>i.js))}Bh(){return this.xh}Ph(t){return this.Mh[t].js}Rh(t){return this.Mh[t]}Th(t,i){const r=this.Eh(t);if(r===null&&i!==0)switch(i){case-1:return this.Ah(t);case 1:return this.Lh(t);default:throw new TypeError("Unknown search mode")}return r}Ah(t){let i=this.zh(t);return i>0&&(i-=1),i!==this.Mh.length&&this.Ph(i)<t?i:null}Lh(t){const i=this.Oh(t);return i!==this.Mh.length&&t<this.Ph(i)?i:null}Eh(t){const i=this.zh(t);return i===this.Mh.length||t<this.Mh[i].js?null:i}zh(t){return Dr(this.Mh,t,((i,r)=>i.js<r))}Oh(t){return T3(this.Mh,t,((i,r)=>i.js>r))}Nh(t,i,r){let o=null;for(let c=t;c<i;c++){const u=this.Mh[c].Wt[r];Number.isNaN(u)||(o===null?o={Fh:u,Wh:u}:(u<o.Fh&&(o.Fh=u),u>o.Wh&&(o.Wh=u)))}return o}Vh(t,i,r){if(this.Gi())return null;let o=null;const c=$(this.kh()),u=$(this.sn()),h=Math.max(t,c),d=Math.min(i,u),m=Math.ceil(h/Di)*Di,v=Math.max(m,Math.floor(d/Di)*Di);{const x=this.zh(h),w=this.Oh(Math.min(d,m,i));o=Gl(o,this.Nh(x,w,r))}let y=this.bh.get(r);y===void 0&&(y=new Map,this.bh.set(r,y));for(let x=Math.max(m+1,h);x<v;x+=Di){const w=Math.floor(x/Di);let M=y.get(w);if(M===void 0){const S=this.zh(w*Di),T=this.Oh((w+1)*Di-1);M=this.Nh(S,T,r),y.set(w,M)}o=Gl(o,M)}{const x=this.zh(v),w=this.Oh(d);o=Gl(o,this.Nh(x,w,r))}return o}}function Gl(e,t){return e===null?t:t===null?e:{Fh:Math.min(e.Fh,t.Fh),Wh:Math.max(e.Wh,t.Wh)}}function Kf(){return new WC}const jc={setLineStyle:Ms}
17;class QC{constructor(t){this.Hh=t}nt(t,i,r){this.Hh.draw(t,jc)}Uh(t,i,r){this.Hh.drawBackground?.(t,jc)}}class JC{constructor(t){this.Ln=null,this.$h=t}Tt(){const t=this.$h.renderer();if(t===null)return null;if(this.Ln?.qh===t)return this.Ln.jh;const i=new QC(t);return this.Ln={qh:t,jh:i},i}Yh(){return this.$h.zOrder?.()??"normal"}}class j3{constructor(t){this.Kh=null,this.Zh=t}Gh(){return this.Zh}Ws(){this.Zh.updateAllViews?.()}Ys(){const t=this.Zh.paneViews?.()??[];if(this.Kh?.qh===t)return this.Kh.jh;const i=t.map((r=>new JC(r)));return this.Kh={qh:t,jh:i},i}Qn(t,i){return this.Zh.hitTest?.(t,i)??null}}let $C=class extends j3{ds(){return[]}};class tT{constructor(t){this.Hh=t}nt(t,i,r){this.Hh.draw(t,jc)}Uh(t,i,r){this.Hh.drawBackground?.(t,jc)}}class Q2{constructor(t){this.Ln=null,this.$h=t}Tt(){const t=this.$h.renderer();if(t===null)return null;if(this.Ln?.qh===t)return this.Ln.jh;const i=new tT(t);return this.Ln={qh:t,jh:i},i}Yh(){return this.$h.zOrder?.()??"normal"}}function _3(e){return{ri:e.text(),Ei:e.coordinate(),Vi:e.fixedCoordinate?.(),R:e.textColor(),G:e.backColor(),It:e.visible?.()??!0,pi:e.tickVisible?.()??!0}}class eT{constructor(t,i){this.Xt=new b3,this.Xh=t,this.Jh=i}Tt(){return this.Xt.ht({ss:this.Jh.ss(),..._3(this.Xh)}),this.Xt}}class nT extends Kc{constructor(t,i){super(),this.Xh=t,this.Ki=i}Yi(t,i,r){const o=_3(this.Xh);r.G=o.G,t.R=o.R;const c=2/12*this.Ki.k();r.Ti=c,r.Ri=c,r.Ei=o.Ei,r.Vi=o.Vi,t.ri=o.ri,t.It=o.It,t.pi=o.pi}}class iT extends j3{constructor(t,i){super(t),this.Qh=null,this.ta=null,this.ia=null,this.sa=null,this.ye=i}fs(){const t=this.Zh.timeAxisViews?.()??[];if(this.Qh?.qh===t)return this.Qh.jh;const i=this.ye.Qt().Et(),r=t.map((o=>new eT(o,i)));return this.Qh={qh:t,jh:r},r}Ks(){const t=this.Zh.priceAxisViews?.()??[];if(this.ta?.qh===t)return this.ta.jh;const i=this.ye.Ft(),r=t.map((o=>new nT(o,i)));return this.ta={qh:t,jh:r},r}na(){const t=this.Zh.priceAxisPaneViews?.()??[];if(this.ia?.qh===t)return this.ia.jh;const i=t.map((r=>new Q2(r)));return this.ia={qh:t,jh:i},i}ea(){const t=this.Zh.timeAxisPaneViews?.()??[];if(this.sa?.qh===t)return this.sa.jh;const i=t.map((r=>new Q2(r)));return this.sa={qh:t,jh:i},i}ra(t,i){return this.Zh.autoscaleInfo?.(t,i)??null}}function Ff(e,t,i,r){e.forEach((o=>{t(o).forEach((c=>{c.Yh()===i&&r.push(c)}))}))}function qf(e){return e.Ys()}function sT(e){return e.na()}function rT(e){return e.ea()}const aT=["Area","Line","Baseline"];class Xc extends qC{constructor(t,i,r,o,c){super(t),this.jt=Kf(),this._r=new PC(this),this.ha=[],this.aa=new LC(this),this.la=null,this.oa=null,this._a=null,this.ua=[],this.ca=new FC,this.da=new Map,this.fa=null,this.Ps=r,this.pa=i;const u=new UC(this);if(this.gs=[u],this.ur=new E3(u,this,t),aT.includes(this.pa)&&(this.la=new BC(this)),this.va(),this.$h=o(this,this.Qt(),c),this.pa==="Custom"){const h=this.$h;h.ma&&this.wa(h.ma)}}m(){this._a!==null&&clearTimeout(this._a)}Oe(t){return this.Ps.priceLineColor||t}Ve(t){const i={Be:!0},r=this.Ft();if(this.Qt().Et().Gi()||r.Gi()||this.jt.Gi())return i;const o=this.Qt().Et().Ie(),c=this.Lt();if(o===null||c===null)return i;let u,h;if(t){const y=this.jt.Ch();if(y===null)return i;u=y,h=y.js}else{const y=this.jt.$s(o.bi(),-1);if(y===null||(u=this.jt.ph(y.js),u===null))return i;h=y.js}const d=u.Wt[3],m=this.ga().gh(h,{Wt:u}),v=r.Nt(d,c.Wt);return{Be:!1,gt:d,ri:r.Ji(d,c.Wt),Ue:r.Ma(d),$e:r.ba(d,c.Wt),R:m.th,Ei:v,js:h}}ga(){return this.oa!==null||(this.oa=new IC(this)),this.oa}N(){return this.Ps}cr(t){const i=this.Qt(),{priceScaleId:r,visible:o,priceFormat:c}=t;r!==void 0&&r!==this.Ps.priceScaleId&&i.Sa(this,r),o!==void 0&&o!==this.Ps.visible&&i.xa();const u=t.conflationThresholdFactor!==void 0;Je(this.Ps,t),u&&(this.da.clear(),this.Qt().dr()),c!==void 0&&(this.va(),i.Ca()),i.ya(this),i.ka(),this.$h.kt("options")}ht(t,i){this.jt.ht(t),this.da.clear();const r=this.Qt().Et().N();r.enableConflation&&r.precomputeConflationOnInit&&this.Pa(r.precomputeConflationPriority),this.$h.kt("data"),this.la!==null&&(i&&i.Ta?this.la.Pe():t.length===0&&this.la.ke());const o=this.Qt().Kn(this);this.Qt().Ra(o),this.Qt().ya(this),this.Qt().ka(),this.Qt().dr()}Da(t){const i=new KC(this,t);return this.ha.push(i),this.Qt().ya(this),i}Ia(t){const i=this.ha.indexOf(t);i!==-1&&this.ha.splice(i,1),this.Qt().ya(this)}Va(){return this.ha}wh(){return this.pa}Lt(){const t=this.Ba();return t===null?null:{Wt:t.Wt[3],Ea:t.wt}}Ba(){const t=this.Qt().Et().Ie();if(t===null)return null;const i=t.Aa();return this.jt.$s(i,1)}qs(){return this.jt}wa(t){this.fa=t,this.da.clear()}La(){return!!this.Qt().Et().N().enableConflation&&this.za()>1}kr(t){if(!this.La())return;const i=this.za();if(!this.da.has(i))return;const r=this.pa==="Custom",o=r&&this.fa||void 0,c=r&&this.$h.Oa?d=>{const m=d,v=this.$h.Oa(m);return Array.isArray(v)?v:[typeof v=="number"?v:0]}:void 0,u=this.ca.kr(this.jt.Dh(),t,i,o,r,c),h=Kf();h.ht(u),this.da.set(i,h)}Na(){const t=this.Qt().Et().N().enableConflation;if(this.pa==="Custom"&&this.fa===null)return this.jt;if(!t)return this.jt;const i=this.za(),r=this.da.get(i);return r||(this.Fa(i),this.da.get(i)??this.jt)}Wa(t){const i=this.jt.ph(t);return i===null?null:this.pa==="Bar"||this.pa==="Candlestick"||this.pa==="Custom"?{Hr:i.Wt[0],Ur:i.Wt[1],$r:i.Wt[2],qr:i.Wt[3]}:i.Wt[3]}Ha(t){const i=[];Ff(this.ua,qf,"top",i);const r=this.la;return r!==null&&r.It()&&(this._a===null&&r.Re()&&(this._a=setTimeout((()=>{this._a=null,this.Qt().Ua()}),0)),r.Te(),i.unshift(r)),i}Ys(){const t=[];this.$a()||t.push(this.aa),t.push(this.$h,this._r);const i=this.ha.map((r=>r.pr()));return t.push(...i),Ff(this.ua,qf,"normal",t),t}qa(){return this.ja(qf,"bottom")}Ya(t){return this.ja(sT,t)}Ka(t){return this.ja(rT,t)}Za(t,i){return this.ua.map((r=>r.Qn(t,i))).filter((r=>r!==null))}ds(){return[this.ur,...this.ha.map((t=>t.vr()))]}Ks(t,i){if(i!==this.hs&&!this.$a())return[];const r=[...this.gs];for(const o of this.ha)r.push(o.mr());return this.ua.forEach((o=>{r.push(...o.Ks())})),r}fs(){const t=[];return this.ua.forEach((i=>{t.push(...i.fs())})),t}ra(t,i){if(this.Ps.autoscaleInfoProvider!==void 0){const r=this.Ps.autoscaleInfoProvider((()=>{const o=this.Ga(t,i);return o===null?null:o.tr()}));return Tc.ir(r)}return this.Ga(t,i)}qh(){const t=this.Ps.priceFormat;return t.base??1/t.minMove}Xa(){return this.Ja}Ws(){this.$h.kt();for(const t of this.gs)t.kt();for(const t of this.ha)t.kt();this._r.kt(),this.aa.kt(),this.la?.kt(),this.ua.forEach((t=>t.Ws()))}Ft(){return $(super.Ft())}At(t){if(!((this.pa==="Line"||this.pa==="Area"||this.pa==="Baseline")&&this.Ps.crosshairMarkerVisible))return null;const i=this.jt.ph(t);return i===null?null:{gt:i.Wt[3],ft:this.Qa(),Ht:this.tl(),Ot:this.il(),zt:this.sl(t)}}Ne(){return this.Ps.title}It(){return this.Ps.visible}nl(t){this.ua.push(new iT(t,this))}el(t){this.ua=this.ua.filter((i=>i.Gh()!==t))}rl(){if(this.pa==="Custom")return t=>this.$h.Oa(t)}
17hl(){if(this.pa==="Custom")return t=>this.$h.al(t)}ll(){return this.jt.Bh()}$a(){return!Fc(this.Ft().ol())}Ga(t,i){if(!oo(t)||!oo(i)||this.jt.Gi())return null;const r=this.pa==="Line"||this.pa==="Area"||this.pa==="Baseline"||this.pa==="Histogram"?[3]:[2,1],o=this.jt.Ih(t,i,r);let c=o!==null?new Ne(o.Fh,o.Wh):null,u=null;if(this.wh()==="Histogram"){const h=this.Ps.base,d=new Ne(h,h);c=c!==null?c.Sn(d):d}return this.ua.forEach((h=>{const d=h.ra(t,i);if(d?.priceRange){const m=new Ne(d.priceRange.minValue,d.priceRange.maxValue);c=c!==null?c.Sn(m):m}d?.margins&&(u=d.margins)})),new Tc(c,u)}Qa(){switch(this.pa){case"Line":case"Area":case"Baseline":return this.Ps.crosshairMarkerRadius}return 0}tl(){switch(this.pa){case"Line":case"Area":case"Baseline":{const t=this.Ps.crosshairMarkerBorderColor;if(t.length!==0)return t}}return null}il(){switch(this.pa){case"Line":case"Area":case"Baseline":return this.Ps.crosshairMarkerBorderWidth}return 0}sl(t){switch(this.pa){case"Line":case"Area":case"Baseline":{const i=this.Ps.crosshairMarkerBackgroundColor;if(i.length!==0)return i}}return this.ga().gh(t).th}va(){switch(this.Ps.priceFormat.type){case"custom":{const t=this.Ps.priceFormat.formatter;this.Ja={format:t,formatTickmarks:this.Ps.priceFormat.tickmarksFormatter??(i=>i.map(t))};break}case"volume":this.Ja=new RC(this.Ps.priceFormat.precision);break;case"percent":this.Ja=new M3(this.Ps.priceFormat.precision);break;default:{const t=Math.pow(10,this.Ps.priceFormat.precision);this.Ja=new qc(t,this.Ps.priceFormat.minMove*t)}}this.hs!==null&&this.hs._l()}ja(t,i){const r=[];return Ff(this.ua,t,i,r),r}za(){const{ul:t,cl:i,dl:r}=this.fl();return this.ca.gr(t,i,r)}fl(){const t=this.Qt().Et(),i=t.ul(),r=window.devicePixelRatio||1,o=t.N().conflationThresholdFactor;return{ul:i,cl:r,dl:this.Ps.conflationThresholdFactor??o??1}}pl(t){const i=this.jt.Dh();let r;if(this.pa==="Custom"&&this.fa!==null){const c=this.rl();if(!c)throw new Error(ZC);r=this.ca.Mr(i,t,this.fa,!0,(u=>c(u)))}else r=this.ca.Mr(i,t);const o=Kf();return o.ht(r),o}Fa(t){const i=this.pl(t);this.da.set(t,i)}Pa(t){if(this.pa==="Custom"&&(this.fa===null||!this.rl()))return;this.da.clear();const i=this.Qt().Et().vl();for(const r of i){const o=()=>{this.ml(r)},c=typeof window=="object"&&window||typeof self=="object"&&self;c?.gl?.wl?c.gl.wl((()=>{o()}),{Ml:t}):Promise.resolve().then((()=>o()))}}ml(t){if(this.da.has(t)||this.jt.Dh().length===0)return;const i=this.pl(t);this.da.set(t,i)}}const oT=[3],lT=[0,1,2,3];class cT{constructor(t){this.Ps=t}bl(t,i,r){let o=t;if(this.Ps.mode===0)return o;const c=r.Rs(),u=c.Lt();if(u===null)return o;const h=c.Nt(t,u),d=r.Sl().filter((v=>v instanceof Xc)).reduce(((v,y)=>{if(r.Zn(y)||!y.It())return v;const x=y.Ft(),w=y.qs();if(x.Gi()||!w.Ee(i))return v;const M=w.ph(i);if(M===null)return v;const S=Ui(y.Lt()),T=this.Ps.mode===3?lT:oT;return v.concat(T.map((j=>x.Nt(M.Wt[j],S.Wt))))}),[]);if(d.length===0)return o;d.sort(((v,y)=>Math.abs(v-h)-Math.abs(y-h)));const m=d[0];return o=c.Ds(m,u),o}}function Ja(e,t,i){return Math.min(Math.max(e,t),i)}function Kl(e,t,i){return t-e<=i}class uT extends Ns{constructor(){super(...arguments),this.jt=null}ht(t){this.jt=t}et({context:t,bitmapSize:i,horizontalPixelRatio:r,verticalPixelRatio:o}){if(this.jt===null)return;const c=Math.max(1,Math.floor(r));t.lineWidth=c,(function(u,h){u.save(),u.lineWidth%2&&u.translate(.5,.5),h(),u.restore()})(t,(()=>{const u=$(this.jt);if(u.xl){t.strokeStyle=u.Cl,Ms(t,u.yl),t.beginPath();for(const h of u.kl){const d=Math.round(h.Pl*r);t.moveTo(d,-c),t.lineTo(d,i.height+c)}t.stroke()}if(u.Tl){t.strokeStyle=u.Rl,Ms(t,u.Dl),t.beginPath();for(const h of u.Il){const d=Math.round(h.Pl*o);t.moveTo(-c,d),t.lineTo(i.width+c,d)}t.stroke()}}))}}class hT{constructor(t){this.Xt=new uT,this.xt=!0,this.yt=t}kt(){this.xt=!0}Tt(){if(this.xt){const t=this.yt.Qt().N().grid,i={Tl:t.horzLines.visible,xl:t.vertLines.visible,Rl:t.horzLines.color,Cl:t.vertLines.color,Dl:t.horzLines.style,yl:t.vertLines.style,Il:this.yt.Rs().Vl(),kl:(this.yt.Qt().Et().Vl()||[]).map((r=>({Pl:r.coord})))};this.Xt.ht(i),this.xt=!1}return this.Xt}}class fT{constructor(t){this.$h=new hT(t)}pr(){return this.$h}}const Xf={Bl:4,El:1e-4};function jr(e,t){const i=100*(e-t)/t;return t<0?-i:i}function dT(e,t){const i=jr(e.Ze(),t),r=jr(e.Ge(),t);return new Ne(i,r)}function $a(e,t){const i=100*(e-t)/t+100;return t<0?-i:i}function mT(e,t){const i=$a(e.Ze(),t),r=$a(e.Ge(),t);return new Ne(i,r)}function _c(e,t){const i=Math.abs(e);if(i<1e-15)return 0;const r=Math.log10(i+t.El)+t.Bl;return e<0?-r:r}function to(e,t){const i=Math.abs(e);if(i<1e-15)return 0;const r=Math.pow(10,i-t.Bl)-t.El;return e<0?-r:r}function Za(e,t){if(e===null)return null;const i=_c(e.Ze(),t),r=_c(e.Ge(),t);return new Ne(i,r)}function _r(e,t){if(e===null)return null;const i=to(e.Ze(),t),r=to(e.Ge(),t);return new Ne(i,r)}function If(e){if(e===null)return Xf;const t=Math.abs(e.Ge()-e.Ze());if(t>=1||t<1e-15)return Xf;const i=Math.ceil(Math.abs(Math.log10(t))),r=Xf.Bl+i;return{Bl:r,El:1/Math.pow(10,r)}}class Wf{constructor(t,i){if(this.Al=t,this.Ll=i,(function(r){if(r<0)return!1;if(r>1e18)return!0;for(let o=r;o>1;o/=10)if(o%10!=0)return!1;return!0})(this.Al))this.zl=[2,2.5,2];else{this.zl=[];for(let r=this.Al;r!==1;){if(r%2==0)this.zl.push(2),r/=2;else{if(r%5!=0)throw new Error("unexpected base");this.zl.push(2,2.5),r/=5}if(this.zl.length>100)throw new Error("something wrong with base")}}}Ol(t,i,r){const o=this.Al===0?0:1/this.Al;let c=Math.pow(10,Math.max(0,Math.ceil(Math.log10(t-i)))),u=0,h=this.Ll[0];for(;;){const y=Kl(c,o,1e-14)&&c>o+1e-14,x=Kl(c,r*h,1e-14),w=Kl(c,1,1e-14);if(!(y&&x&&w))break;c/=h,h=this.Ll[++u%this.Ll.length]}if(c<=o+1e-14&&(c=o),c=Math.max(1,c),this.zl.length>0&&(d=c,m=1,v=1e-14,Math.abs(d-m)<v))for(u=0,h=this.zl[0];Kl(c,r*h,1e-14)&&c>o+1e-14;)c/=h,h=this.zl[++u%this.zl.length];var d,m,v;return c}}class J2{constructor(t,i,r,o){this.Nl=[],this.Ki=t,this.Al=i,this.Fl=r,this.Wl=o}Ol(t,i){if(t<i)throw new Error("high < low");const r=this.Ki.$t(),o=(t-i)*this.Hl()/r,c=new Wf(this.Al,[2,2.5,2]),u=new Wf(this.Al,[2,2,2.5]),h=new Wf(this.Al,[2.5,2,2]),d=[];return d.push(c.Ol(t,i,o),u.Ol(t,i,o),h.Ol(t,i,o)),(function(m){if(m.length<1)throw Error("array is empty");let v=m[0];for(let y=1;y<m.length;++y)m[y]<v&&(v=m[y]);return v})(d)}Ul(){const t=this.Ki,i=t.Lt();if(i===null)return void(this.Nl=[]);const r=t.$t(),o=this.Fl(r-1,i),c=this.Fl(0,i),u=this.Ki.N().entireTextOnly?this.$l()/2:0,h=u,d=r-1-u,m=Math.max(o,c),v=Math.min(o,c);if(m===v)return void(this.Nl=[]);const y=this.Ol(m,v);if(this.ql(i,y,m,v,h,d),t.jl()&&this.Yl(y,v,m)){const M=this.Ki.Kl();this.Zl(i,y,h,d,M,2*M)}const x=this.Nl.map((M=>M.Gl)),w=this.Ki.Xl(x);for(let M=0;M<this.Nl.length;M++)this.Nl[M].Jl=w[M]}Vl(){return this.Nl}$l(){return this.Ki.k()}Hl(){return Math.ceil(2.5*this.$l())}ql(t,i,r,o,c,u){const h=this.Nl,d=this.Ki;let m=r%i;m+=m<0?i:0;const v=r>=o?1:-1;let y=null,x=0;for(let w=r-m;w>o;w-=i){const M=this.Wl(w,t,!0);y!==null&&Math.abs(M-y)<this.Hl()||M<c||M>u||(x<h.length?(h[x].Pl=M,h[x].Jl=d.Ql(w),h[x].Gl=w):h.push({Pl:M,Jl:d.Ql(w),Gl:w}),x++,y=M,d.io()&&(i=this.Ol(w*v,o)))}h.length=x}Zl(t,i,r,o,c,u){const h=this.Nl,d=this.so(t,r,c,u),m=this.so(t,o,-u,-c),v=this.Wl(0,t,!0)-this.Wl(i,t,!0);h.length>0&&h[0].Pl-d.Pl<v/2&&h.shift(),h.length>0&&m.Pl-h[h.length-1].Pl<v/2&&h.pop(),h.unshift(d),h.push(m)}so(t,i,r,o){const c=(r+o)/2,u=this.Fl(i+r,t),h=this.Fl(i+o,t),d=Math.min(u,h),m=Math.max(u,h),v=Math.max(.1,this.Ol(m,d)),y=this.Fl(i+c,t),x=y-y%v,w=this.Wl(x,t,!0);return{Jl:this.Ki.Ql(x),Pl:w,Gl:x}}Yl(t,i,r){let o=Ui(this.Ki.er());return this.Ki.io()&&(o=_r(o,this.Ki.no())),o.Ze()-i<t&&r-o.Ge()<t}}function A3(e){return e.slice().sort(((t,i)=>$(t._s())-$(i._s())))}var $2;(function(e){e[e.Normal=0]="Normal",e[e.Logarithmic=1]="Logarithmic",e[e.Percentage=2]="Percentage",e[e.IndexedTo100=3]="IndexedTo100"})($2||($2={}));const ty=new M3,ey=new qc(100,1);class pT{constructor(t,i,r,o,c){this.eo=0,this.ro=null,this.sr=null,this.ho=null,this.ao={lo:!1,oo:null},this._o=!1,this.uo=0,this.co=0,this.do=new te,this.fo=new te,this.po=[],this.vo=null,this.mo=null,this.wo=null,this.Mo=null,this.bo=null,this.Ja=ey,this.So=If(null),this.xo=t,this.Ps=i,this.Co=r,this.yo=o,this.ko=c,this.Po=new J2(this,100,this.To.bind(this),this.Ro.bind(this))}ol(){return this.xo}N(){return this.Ps}cr(t){if(Je(this.Ps,t),this._l(),t.mode!==void 0&&this.Do({ae:t.mode}),t.scaleMargins!==void 0){const i=Be(t.scaleMargins.top),r=Be(t.scaleMargins.bottom);if(i<0||i>1)throw new Error(`Invalid top margin - expect value between 0 and 1, given=${i}`);if(r<0||r>1)throw new Error(`Invalid bottom margin - expect value between 0 and 1, given=${r}`);if(i+r>1)throw new Error(`Invalid margins - sum of margins must be less than 1, given=${i+r}`);this.Io(),this.wo=null}}Vo(){return this.Ps.autoScale}Bo(){return this._o}io(){return this.Ps.mode===1}He(){return this.Ps.mode===2}Eo(){return this.Ps.mode===3}no(){return this.So}ae(){return{ln:this.Ps.autoScale,Ao:this.Ps.invertScale,ae:this.Ps.mode}}Do(t){const i=this.ae();let r=null;t.ln!==void 0&&(this.Ps.autoScale=t.ln),t.ae!==void 0&&(this.Ps.mode=t.ae,t.ae!==2&&t.ae!==3||(this.Ps.autoScale=!0),this.ao.lo=!1),i.ae===1&&t.ae!==i.ae&&((function(c,u){if(c===null)return!1;const h=to(c.Ze(),u),d=to(c.Ge(),u);return isFinite(h)&&isFinite(d)})(this.sr,this.So)?(r=_r(this.sr,this.So),r!==null&&this.Lo(r)):this.Ps.autoScale=!0),t.ae===1&&t.ae!==i.ae&&(r=Za(this.sr,this.So),r!==null&&this.Lo(r));const o=i.ae!==this.Ps.mode;o&&(i.ae===2||this.He())&&this._l(),o&&(i.ae===3||this.Eo())&&this._l(),t.Ao!==void 0&&i.Ao!==t.Ao&&(this.Ps.invertScale=t.Ao,this.zo()),this.fo.p(i,this.ae())}Oo(){return this.fo}k(){return this.Co.fontSize}$t(){return this.eo}No(t){this.eo!==t&&(this.eo=t,this.Io(),this.wo=null)}Fo(){if(this.ro)return this.ro;const t=this.$t()-this.Wo()-this.Ho();return this.ro=t,t}er(){return this.Uo(),this.sr}Lo(t,i){const r=this.sr;(i||r===null&&t!==null||r!==null&&!r.Ye(t))&&(this.wo=null,this.sr=t)}$o(t){this.Lo(t),this.qo(t!==null)}Gi(){return this.Uo(),this.eo===0||!this.sr||this.sr.Gi()}jo(t){return this.Ao()?t:this.$t()-1-t}Nt(t,i){return this.He()?t=jr(t,i):this.Eo()&&(t=$a(t,i)),this.Ro(t,i)}Yo(t,i,r){this.Uo();const o=this.Ho(),c=$(this.er()),u=c.Ze(),h=c.Ge(),d=this.Fo()-1,m=this.Ao(),v=d/(
17h-u),y=r===void 0?0:r.from,x=r===void 0?t.length:r.to,w=this.Ko();for(let M=y;M<x;M++){const S=t[M],T=S.gt;if(isNaN(T))continue;let j=T;w!==null&&(j=w(S.gt,i));const _=o+v*(j-u),N=m?_:this.eo-1-_;S.ut=N}}Zo(t,i,r){this.Uo();const o=this.Ho(),c=$(this.er()),u=c.Ze(),h=c.Ge(),d=this.Fo()-1,m=this.Ao(),v=d/(h-u),y=r===void 0?0:r.from,x=r===void 0?t.length:r.to,w=this.Ko();for(let M=y;M<x;M++){const S=t[M];let T=S.Hr,j=S.Ur,_=S.$r,N=S.qr;w!==null&&(T=w(S.Hr,i),j=w(S.Ur,i),_=w(S.$r,i),N=w(S.qr,i));let D=o+v*(T-u),z=m?D:this.eo-1-D;S.Go=z,D=o+v*(j-u),z=m?D:this.eo-1-D,S.Xo=z,D=o+v*(_-u),z=m?D:this.eo-1-D,S.Jo=z,D=o+v*(N-u),z=m?D:this.eo-1-D,S.Qo=z}}Ds(t,i){const r=this.To(t,i);return this.t_(r,i)}t_(t,i){let r=t;return this.He()?r=(function(o,c){return c<0&&(o=-o),o/100*c+c})(r,i):this.Eo()&&(r=(function(o,c){return o-=100,c<0&&(o=-o),o/100*c+c})(r,i)),r}Sl(){return this.po}Dt(){return this.mo||(this.mo=A3(this.po)),this.mo}i_(t){this.po.indexOf(t)===-1&&(this.po.push(t),this._l(),this.s_())}n_(t){const i=this.po.indexOf(t);if(i===-1)throw new Error("source is not attached to scale");this.po.splice(i,1),this.po.length===0&&(this.Do({ln:!0}),this.Lo(null)),this._l(),this.s_()}Lt(){let t=null;for(const i of this.po){const r=i.Lt();r!==null&&(t===null||r.Ea<t.Ea)&&(t=r)}return t===null?null:t.Wt}Ao(){return this.Ps.invertScale}Vl(){const t=this.Lt()===null;if(this.wo!==null&&(t||this.wo.e_===t))return this.wo.Vl;this.Po.Ul();const i=this.Po.Vl();return this.wo={Vl:i,e_:t},this.do.p(),i}r_(){return this.do}h_(t){this.He()||this.Eo()||this.Mo===null&&this.ho===null&&(this.Gi()||(this.Mo=this.eo-t,this.ho=$(this.er()).Ke()))}a_(t){if(this.He()||this.Eo()||this.Mo===null)return;this.Do({ln:!1}),(t=this.eo-t)<0&&(t=0);let i=(this.Mo+.2*(this.eo-1))/(t+.2*(this.eo-1));const r=$(this.ho).Ke();i=Math.max(i,.1),r.Je(i),this.Lo(r)}l_(){this.He()||this.Eo()||(this.Mo=null,this.ho=null)}o_(t){this.Vo()||this.bo===null&&this.ho===null&&(this.Gi()||(this.bo=t,this.ho=$(this.er()).Ke()))}__(t){if(this.Vo()||this.bo===null)return;const i=$(this.er()).Xe()/(this.Fo()-1);let r=t-this.bo;this.Ao()&&(r*=-1);const o=r*i,c=$(this.ho).Ke();c.Qe(o),this.Lo(c,!0),this.wo=null}u_(){this.Vo()||this.bo!==null&&(this.bo=null,this.ho=null)}Xa(){return this.Ja||this._l(),this.Ja}Ji(t,i){switch(this.Ps.mode){case 2:return this.c_(jr(t,i));case 3:return this.Xa().format($a(t,i));default:return this.lr(t)}}Ql(t){switch(this.Ps.mode){case 2:return this.c_(t);case 3:return this.Xa().format(t);default:return this.lr(t)}}Xl(t){switch(this.Ps.mode){case 2:return this.d_(t);case 3:return this.Xa().formatTickmarks(t);default:return this.f_(t)}}Ma(t){return this.lr(t,$(this.vo).Xa())}ba(t,i){return t=jr(t,i),this.c_(t,ty)}p_(){return this.po}v_(t){this.ao={oo:t,lo:!1}}Ws(){this.po.forEach((t=>t.Ws()))}jl(){return this.Ps.ensureEdgeTickMarksVisible&&this.Vo()}Kl(){return this.k()/2}_l(){this.wo=null;let t=1/0;this.vo=null;for(const r of this.po)r._s()<t&&(t=r._s(),this.vo=r);let i=100;this.vo!==null&&(i=Math.round(this.vo.qh())),this.Ja=ey,this.He()?(this.Ja=ty,i=100):this.Eo()?(this.Ja=new qc(100,1),i=100):this.vo!==null&&(this.Ja=this.vo.Xa()),this.Po=new J2(this,i,this.To.bind(this),this.Ro.bind(this)),this.Po.Ul()}s_(){this.mo=null}m_(){return this.vo===null||this.He()||this.Eo()?1:1/this.vo.qh()}Xi(){return this.ko}qo(t){this._o=t}Wo(){return this.Ao()?this.Ps.scaleMargins.bottom*this.$t()+this.co:this.Ps.scaleMargins.top*this.$t()+this.uo}Ho(){return this.Ao()?this.Ps.scaleMargins.top*this.$t()+this.uo:this.Ps.scaleMargins.bottom*this.$t()+this.co}Uo(){this.ao.lo||(this.ao.lo=!0,this.w_())}Io(){this.ro=null}Ro(t,i){if(this.Uo(),this.Gi())return 0;t=this.io()&&t?_c(t,this.So):t;const r=$(this.er()),o=this.Ho()+(this.Fo()-1)*(t-r.Ze())/r.Xe();return this.jo(o)}To(t,i){if(this.Uo(),this.Gi())return 0;const r=this.jo(t),o=$(this.er()),c=o.Ze()+o.Xe()*((r-this.Ho())/(this.Fo()-1));return this.io()?to(c,this.So):c}zo(){this.wo=null,this.Po.Ul()}w_(){if(this.Bo()&&!this.Vo())return;const t=this.ao.oo;if(t===null)return;let i=null;const r=this.p_();let o=0,c=0;for(const d of r){if(!d.It())continue;const m=d.Lt();if(m===null)continue;const v=d.ra(t.Aa(),t.bi());let y=v&&v.er();if(y!==null){switch(this.Ps.mode){case 1:y=Za(y,this.So);break;case 2:y=dT(y,m.Wt);break;case 3:y=mT(y,m.Wt)}if(i=i===null?y:i.Sn($(y)),v!==null){const x=v.rr();x!==null&&(o=Math.max(o,x.above),c=Math.max(c,x.below))}}}if(this.jl()&&(o=Math.max(o,this.Kl()),c=Math.max(c,this.Kl())),o===this.uo&&c===this.co||(this.uo=o,this.co=c,this.wo=null,this.Io()),i!==null){if(i.Ze()===i.Ge()){const d=5*this.m_();this.io()&&(i=_r(i,this.So)),i=new Ne(i.Ze()-d,i.Ge()+d),this.io()&&(i=Za(i,this.So))}if(this.io()){const d=_r(i,this.So),m=If(d);if(u=m,h=this.So,u.Bl!==h.Bl||u.El!==h.El){const v=this.ho!==null?_r(this.ho,this.So):null;this.So=m,i=Za(d,m),v!==null&&(this.ho=Za(v,m))}}this.Lo(i)}else this.sr===null&&(this.Lo(new Ne(-.5,.5)),this.So=If(null));var u,h}Ko(){return this.He()?jr:this.Eo()?$a:this.io()?t=>_c(t,this.So):null}g_(t,i,r){return i===void 0?(r===void 0&&(r=this.Xa()),r.format(t)):i(t)}M_(t,i,r){return i===void 0?(r===void 0&&(r=this.Xa()),r.formatTickmarks(t)):i(t)}lr(t,i){return this.g_(t,this.yo.priceFormatter,i)}f_(t,i){const r=this.yo.priceFormatter;return this.M_(t,this.yo.tickmarksPriceFormatter??(r?o=>o.map(r):void 0),i)}c_(t,i){return this.g_(t,this.yo.percentageFormatter,i)}d_(t,i){const r=this.yo.percentageFormatter;return this.M_(t,this.yo.tickmarksPercentageFormatter??(r?o=>o.map(r):void 0),i)}}function ny(e){return e instanceof Xc}class iy{constructor(t,i){this.po=[],this.b_=new Map,this.eo=0,this.S_=0,this.x_=1,this.mo=null,this.C_=!1,this.y_=new te,this.ua=[],this.Jh=t,this.ns=i,this.k_=new fT(this);const r=i.N();this.P_=this.T_("left",r.leftPriceScale),this.R_=this.T_("right",r.rightPriceScale),this.P_.Oo().i(this.D_.bind(this,this.P_),this),this.R_.Oo().i(this.D_.bind(this,this.R_),this),this.I_(r)}I_(t){if(t.leftPriceScale&&this.P_.cr(t.leftPriceScale),t.rightPriceScale&&this.R_.cr(t.rightPriceScale),t.localization&&(this.P_._l(),this.R_._l()),t.overlayPriceScales){const i=Array.from(this.b_.values());for(const r of i){const o=$(r[0].Ft());o.cr(t.overlayPriceScales),t.localization&&o._l()}}}V_(t){switch(t){case"left":return this.P_;case"right":return this.R_}return this.b_.has(t)?Be(this.b_.get(t))[0].Ft():null}m(){this.Qt().B_().u(this),this.P_.Oo().u(this),this.R_.Oo().u(this),this.po.forEac
17h((t=>{t.m&&t.m()})),this.ua=this.ua.filter((t=>{const i=t.Gh();return i.detached&&i.detached(),!1})),this.y_.p()}E_(){return this.x_}A_(t){this.x_=t}Qt(){return this.ns}ss(){return this.S_}$t(){return this.eo}L_(t){this.S_=t,this.z_()}No(t){this.eo=t,this.P_.No(t),this.R_.No(t),this.po.forEach((i=>{if(this.Zn(i)){const r=i.Ft();r!==null&&r.No(t)}})),this.z_()}O_(t){this.C_=t}N_(){return this.C_}F_(){return this.po.filter(ny)}Sl(){return this.po}Zn(t){const i=t.Ft();return i===null||this.P_!==i&&this.R_!==i}i_(t,i,r){this.W_(t,i,r?t._s():this.po.length)}n_(t,i){const r=this.po.indexOf(t);we(r!==-1,"removeDataSource: invalid data source"),this.po.splice(r,1),i||this.po.forEach(((u,h)=>u.us(h)));const o=$(t.Ft()).ol();if(this.b_.has(o)){const u=Be(this.b_.get(o)),h=u.indexOf(t);h!==-1&&(u.splice(h,1),u.length===0&&this.b_.delete(o))}const c=t.Ft();c&&c.Sl().indexOf(t)>=0&&(c.n_(t),this.H_(c)),this.mo=null}Xn(t){return t===this.P_?"left":t===this.R_?"right":"overlay"}U_(){return this.P_}q_(){return this.R_}j_(t,i){t.h_(i)}Y_(t,i){t.a_(i),this.z_()}K_(t){t.l_()}Z_(t,i){t.o_(i)}G_(t,i){t.__(i),this.z_()}X_(t){t.u_()}z_(){this.po.forEach((t=>{t.Ws()}))}Rs(){let t=null;return this.ns.N().rightPriceScale.visible&&this.R_.Sl().length!==0?t=this.R_:this.ns.N().leftPriceScale.visible&&this.P_.Sl().length!==0?t=this.P_:this.po.length!==0&&(t=this.po[0].Ft()),t===null&&(t=this.R_),t}Gn(){let t=null;return this.ns.N().rightPriceScale.visible?t=this.R_:this.ns.N().leftPriceScale.visible&&(t=this.P_),t}H_(t){t!==null&&t.Vo()&&this.J_(t)}Q_(t){const i=this.Jh.Ie();t.Do({ln:!0}),i!==null&&t.v_(i),this.z_()}tu(){this.J_(this.P_),this.J_(this.R_)}iu(){this.H_(this.P_),this.H_(this.R_),this.po.forEach((t=>{this.Zn(t)&&this.H_(t.Ft())})),this.z_(),this.ns.dr()}Dt(){return this.mo===null&&(this.mo=A3(this.po)),this.mo}su(t,i){i=Ja(i,0,this.po.length-1);const r=this.po.indexOf(t);we(r!==-1,"setSeriesOrder: invalid data source"),this.po.splice(r,1),this.po.splice(i,0,t),this.po.forEach(((o,c)=>o.us(c))),this.mo=null;for(const o of[this.P_,this.R_])o.s_(),o._l();this.ns.dr()}Vt(){return this.Dt().filter(ny)}nu(){return this.y_}eu(){return this.k_}nl(t){this.ua.push(new $C(t))}el(t){this.ua=this.ua.filter((i=>i.Gh()!==t)),t.detached&&t.detached(),this.ns.dr()}ru(){return this.ua}Za(t,i){return this.ua.map((r=>r.Qn(t,i))).filter((r=>r!==null))}J_(t){const i=t.p_();if(i&&i.length>0&&!this.Jh.Gi()){const r=this.Jh.Ie();r!==null&&t.v_(r)}t.Ws()}W_(t,i,r){let o=this.V_(i);if(o===null&&(o=this.T_(i,this.ns.N().overlayPriceScales)),this.po.splice(r,0,t),!Fc(i)){const c=this.b_.get(i)||[];c.push(t),this.b_.set(i,c)}t.us(r),o.i_(t),t.cs(o),this.H_(o),this.mo=null}D_(t,i,r){i.ae!==r.ae&&this.J_(t)}T_(t,i){const r={visible:!0,autoScale:!0,...ii(i)},o=new pT(t,r,this.ns.N().layout,this.ns.N().localization,this.ns.Xi());return o.No(this.$t()),o}}function Fl(e){return{hu:e.hu,au:{te:e.lu.externalId},ou:e.lu.cursorStyle}}function gT(e,t,i,r){for(const o of e){const c=o.Tt(r);if(c!==null&&c.Qn){const u=c.Qn(t,i);if(u!==null)return{_u:o,au:u}}}return null}function vT(e){return e.Ys!==void 0}function N3(e,t,i){const r=[e,...e.Dt()],o=(function(c,u,h){let d,m;for(const x of c){const w=x.Za?.(u,h)??[];for(const M of w)v=M.zOrder,y=d?.zOrder,(!y||v==="top"&&y!=="top"||v==="normal"&&y==="bottom")&&(d=M,m=x)}var v,y;return d&&m?{lu:d,hu:m}:null})(r,t,i);if(o?.lu.zOrder==="top")return Fl(o);for(const c of r){if(o&&o.hu===c&&o.lu.zOrder!=="bottom"&&!o.lu.isBackground)return Fl(o);if(vT(c)){const u=gT(c.Ys(e),t,i,e);if(u!==null)return{hu:c,_u:u._u,au:u.au}}if(o&&o.hu===c&&o.lu.zOrder!=="bottom"&&o.lu.isBackground)return Fl(o)}return o?.lu?Fl(o):null}class yT{constructor(t,i,r=50){this.Vn=0,this.Bn=1,this.En=1,this.Ln=new Map,this.An=new Map,this.uu=t,this.cu=i,this.zn=r}du(t){const i=t.time,r=this.cu.cacheKey(i),o=this.Ln.get(r);if(o!==void 0)return o.fu;if(this.Vn===this.zn){const u=this.An.get(this.En);this.An.delete(this.En),this.Ln.delete(Be(u)),this.En++,this.Vn--}const c=this.uu(t);return this.Ln.set(r,{fu:c,Wn:this.Bn}),this.An.set(this.Bn,r),this.Vn++,this.Bn++,c}}class eo{constructor(t,i){we(t<=i,"right should be >= left"),this.pu=t,this.vu=i}Aa(){return this.pu}bi(){return this.vu}mu(){return this.vu-this.pu+1}Ee(t){return this.pu<=t&&t<=this.vu}Ye(t){return this.pu===t.Aa()&&this.vu===t.bi()}}function sy(e,t){return e===null||t===null?e===t:e.Ye(t)}class xT{constructor(){this.wu=new Map,this.Ln=null,this.gu=!1}Mu(t){this.gu=t,this.Ln=null}bu(t,i){this.Su(i),this.Ln=null;for(let r=i;r<t.length;++r){const o=t[r];let c=this.wu.get(o.timeWeight);c===void 0&&(c=[],this.wu.set(o.timeWeight,c)),c.push({index:r,t
17ime:o.time,weight:o.timeWeight,originalTime:o.originalTime})}}xu(t,i,r,o,c){const u=Math.ceil(i/t);return this.Ln!==null&&this.Ln.Cu===u&&c===this.Ln.yu&&r===this.Ln.ku||(this.Ln={yu:c,ku:r,Vl:this.Pu(u,r,o),Cu:u}),this.Ln.Vl}Su(t){if(t===0)return void this.wu.clear();const i=[];this.wu.forEach(((r,o)=>{t<=r[0].index?i.push(o):r.splice(Dr(r,t,(c=>c.index<t)),1/0)}));for(const r of i)this.wu.delete(r)}Pu(t,i,r){let o=[];const c=u=>!i||r.has(u.index);for(const u of Array.from(this.wu.keys()).sort(((h,d)=>d-h))){if(!this.wu.get(u))continue;const h=o;o=[];const d=h.length;let m=0;const v=Be(this.wu.get(u)),y=v.length;let x=1/0,w=-1/0;for(let M=0;M<y;M++){const S=v[M],T=S.index;for(;m<d;){const j=h[m],_=j.index;if(!(_<T&&c(j))){x=_;break}m++,o.push(j),w=_,x=1/0}if(x-T>=t&&T-w>=t&&c(S))o.push(S),w=T;else if(this.gu)return h}for(;m<d;m++)c(h[m])&&o.push(h[m])}return o}}class Nr{constructor(t){this.Tu=t}Ru(){return this.Tu===null?null:new eo(Math.floor(this.Tu.Aa()),Math.ceil(this.Tu.bi()))}Du(){return this.Tu}static Iu(){return new Nr(null)}}function bT(e,t){return e.weight>t.weight?e:t}class wT{constructor(t,i,r,o){this.S_=0,this.Vu=null,this.Bu=[],this.bo=null,this.Mo=null,this.Eu=new xT,this.Au=new Map,this.Lu=Nr.Iu(),this.zu=!0,this.Ou=new te,this.Nu=new te,this.Fu=new te,this.Wu=null,this.Hu=null,this.Uu=new Map,this.$u=-1,this.qu=[],this.ju=1,this.Ps=i,this.yo=r,this.Yu=i.rightOffset,this.Ku=i.barSpacing,this.ns=t,this.Zu(i),this.cu=o,this.Gu(),this.Eu.Mu(i.uniformDistribution),this.Xu(),this.Ju()}N(){return this.Ps}Qu(t){Je(this.yo,t),this.tc(),this.Gu()}cr(t,i){Je(this.Ps,t),this.Ps.fixLeftEdge&&this.sc(),this.Ps.fixRightEdge&&this.nc(),t.barSpacing!==void 0&&this.ns.gn(t.barSpacing),t.rightOffset!==void 0&&this.ns.Mn(t.rightOffset),this.Zu(t),t.minBarSpacing===void 0&&t.maxBarSpacing===void 0||this.ns.gn(t.barSpacing??this.Ku),t.ignoreWhitespaceIndices!==void 0&&t.ignoreWhitespaceIndices!==this.Ps.ignoreWhitespaceIndices&&this.Ju(),this.tc(),this.Gu(),t.enableConflation===void 0&&t.conflationThresholdFactor===void 0||this.Xu(),this.Fu.p()}Is(t){return this.Bu[t]?.time??null}es(t){return this.Bu[t]??null}ec(t,i){if(this.Bu.length<1)return null;if(this.cu.key(t)>this.cu.key(this.Bu[this.Bu.length-1].time))return i?this.Bu.length-1:null;const r=Dr(this.Bu,this.cu.key(t),((o,c)=>this.cu.key(o.time)<c));return this.cu.key(t)<this.cu.key(this.Bu[r].time)?i?r:null:r}Gi(){return this.S_===0||this.Bu.length===0||this.Vu===null}rc(){return this.Bu.length>0}Ie(){return this.hc(),this.Lu.Ru()}ac(){return this.hc(),this.Lu.Du()}lc(){const t=this.Ie();if(t===null)return null;const i={from:t.Aa(),to:t.bi()};return this.oc(i)}oc(t){const i=Math.round(t.from),r=Math.round(t.to),o=$(this._c()),c=$(this.uc());return{from:$(this.es(Math.max(o,i))),to:$(this.es(Math.min(c,r)))}}cc(t){return{from:$(this.ec(t.from,!0)),to:$(this.ec(t.to,!0))}}ss(){return this.S_}L_(t){if(!isFinite(t)||t<=0||this.S_===t)return;const i=this.ac(),r=this.S_;if(this.S_=t,this.zu=!0,this.Ps.lockVisibleTimeRangeOnResize&&r!==0){const o=this.Ku*t/r;this.Ku=o}if(this.Ps.fixLeftEdge&&i!==null&&i.Aa()<=0){const o=r-t;this.Yu-=Math.round(o/this.Ku)+1,this.zu=!0}this.dc(),this.fc()}qt(t){if(this.Gi()||!oo(t))return 0;const i=this.vc()+this.Yu-t;return this.S_-(i+.5)*this.Ku-1}mc(t,i){const r=this.vc(),o=i===void 0?0:i.from,c=i===void 0?t.length:i.to;for(let u=o;u<c;u++){const h=t[u].wt,d=r+this.Yu-h,m=this.S_-(d+.5)*this.Ku-1;t[u]._t=m}}wc(t,i){const r=Math.ceil(this.gc(t));return i&&this.Ps.ignoreWhitespaceIndices&&!this.Mc(r)?this.bc(r):r}Mn(t){this.zu=!0,this.Yu=t,this.fc(),this.ns.Sc(),this.ns.dr()}ul(){return this.Ku}gn(t){const i=this.Ku;if(this.xc(t),this.Ps.rightOffsetPixels!==void 0&&i!==0){const r=this.Yu*i/this.Ku;this.Yu=r}this.fc(),this.ns.Sc(),this.ns.dr()}Cc(){return this.Yu}Vl(){if(this.Gi())return null;if(this.Hu!==null)return this.Hu;const t=this.Ku,i=5*(this.ns.N().layout.fontSize+4)/8*(this.Ps.tickMarkMaxCharacterLength||8),r=Math.round(i/t),o=$(this.Ie()),c=Math.max(o.Aa(),o.Aa()-r),u=Math.max(o.bi(),o.bi()-r),h=this.Eu.xu(t,i,this.Ps.ignoreWhitespaceIndices,this.Uu,this.$u),d=this._c()+r,m=this.uc()-r,v=this.yc(),y=this.Ps.fixLeftEdge||v,x=this.Ps.fixRightEdge||v;let w=0;
17for(const M of h){if(!(c<=M.index&&M.index<=u))continue;let S;w<this.qu.length?(S=this.qu[w],S.coord=this.qt(M.index),S.label=this.kc(M),S.weight=M.weight):(S={needAlignCoordinate:!1,coord:this.qt(M.index),label:this.kc(M),weight:M.weight},this.qu.push(S)),this.Ku>i/2&&!v?S.needAlignCoordinate=!1:S.needAlignCoordinate=y&&M.index<=d||x&&M.index>=m,w++}return this.qu.length=w,this.Hu=this.qu,this.qu}Pc(){let t;this.zu=!0,this.gn(this.Ps.barSpacing),t=this.Ps.rightOffsetPixels!==void 0?this.Ps.rightOffsetPixels/this.ul():this.Ps.rightOffset,this.Mn(t)}Tc(t){this.zu=!0,this.Vu=t,this.fc(),this.sc()}Rc(t,i){const r=this.gc(t),o=this.ul(),c=o+i*(o/10);this.gn(c),this.Ps.rightBarStaysOnScroll||this.Mn(this.Cc()+(r-this.gc(t)))}h_(t){this.bo&&this.u_(),this.Mo===null&&this.Wu===null&&(this.Gi()||(this.Mo=t,this.Dc()))}a_(t){if(this.Wu===null)return;const i=Ja(this.S_-t,0,this.S_),r=Ja(this.S_-$(this.Mo),0,this.S_);i!==0&&r!==0&&this.gn(this.Wu.ul*i/r)}l_(){this.Mo!==null&&(this.Mo=null,this.Ic())}o_(t){this.bo===null&&this.Wu===null&&(this.Gi()||(this.bo=t,this.Dc()))}__(t){if(this.bo===null)return;const i=(this.bo-t)/this.ul();this.Yu=$(this.Wu).Cc+i,this.zu=!0,this.fc()}u_(){this.bo!==null&&(this.bo=null,this.Ic())}Vc(){this.Bc(this.Ps.rightOffset)}Bc(t,i=400){if(!isFinite(t))throw new RangeError("offset is required and must be finite number");if(!isFinite(i)||i<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const r=this.Yu,o=performance.now();this.ns.vn({Ec:c=>(c-o)/i>=1,Ac:c=>{const u=(c-o)/i;return u>=1?t:r+(t-r)*u}})}kt(t,i){this.zu=!0,this.Bu=t,this.Eu.bu(t,i),this.fc()}Lc(){return this.Ou}zc(){return this.Nu}Oc(){return this.Fu}vc(){return this.Vu||0}Nc(t,i){const r=t.mu(),o=i&&this.Ps.rightOffsetPixels||0;this.xc((this.S_-o)/r),this.Yu=t.bi()-this.vc(),i&&(this.Yu=o?o/this.ul():this.Ps.rightOffset),this.fc(),this.zu=!0,this.ns.Sc(),this.ns.dr()}Fc(){const t=this._c(),i=this.uc();if(t===null||i===null)return;const r=!this.Ps.rightOffsetPixels&&this.Ps.rightOffset||0;this.Nc(new eo(t,i+r),!0)}Wc(t){const i=new eo(t.from,t.to);this.Nc(i)}rs(t){return this.yo.timeFormatter!==void 0?this.yo.timeFormatter(t.originalTime):this.cu.formatHorzItem(t.time)}Ju(){if(!this.Ps.ignoreWhitespaceIndices)return;this.Uu.clear();const t=this.ns.tn();for(const i of t)for(const r of i.ll())this.Uu.set(r,!0);this.$u++}Hc(){return this.ju}vl(){const t=1/(window.devicePixelRatio||1),i=this.Ps.minBarSpacing;if(i>=t)return[1];const r=[1];let o=2;for(;o<=512;)i<t/o&&r.push(o),o*=2;return r}yc(){const t=this.ns.N().handleScroll,i=this.ns.N().handleScale;return!(t.horzTouchDrag||t.mouseWheel||t.pressedMouseMove||t.vertTouchDrag||i.axisDoubleClickReset.time||i.axisPressedMouseMove.time||i.mouseWheel||i.pinch)}_c(){return this.Bu.length===0?null:0}uc(){return this.Bu.length===0?null:this.Bu.length-1}Uc(t){return(this.S_-1-t)/this.Ku}gc(t){const i=this.Uc(t),r=this.vc()+this.Yu-i;return Math.round(1e6*r)/1e6}xc(t){const i=this.Ku;this.Ku=t,this.dc(),i!==this.Ku&&(this.zu=!0,this.$c(),this.Xu())}hc(){if(!this.zu)return;if(this.zu=!1,this.Gi())return void this.qc(Nr.Iu());const t=this.vc(),i=this.S_/this.Ku,r=this.Yu+t,o=new eo(r-i+1,r);this.qc(new Nr(o))}dc(){const t=Ja(this.Ku,this.jc(),this.Yc());this.Ku!==t&&(this.Ku=t,this.zu=!0)}Yc(){return this.Ps.maxBarSpacing>0?this.Ps.maxBarSpacing:.5*this.S_}jc(){return this.Ps.fixLeftEdge&&this.Ps.fixRightEdge&&this.Bu.length!==0?this.S_/this.Bu.length:this.Ps.minBarSpacing}Xu(){if(!this.Ps.enableConflation)return void(this.ju=1);const t=1/(window.devicePixelRatio||1)*(this.Ps.conflationThresholdFactor??1);if(this.Ku>=t)return void(this.ju=1);const i=t/this.Ku,r=Math.pow(2,Math.floor(Math.log2(i)));this.ju=Math.min(r,512)}fc(){const t=this.Kc();t!==null&&this.Yu<t&&(this.Yu=t,this.zu=!0);const i=this.Zc();this.Yu>i&&(this.Yu=i,this.zu=!0)}Kc(){const t=this._c(),i=this.Vu;return t===null||i===null?null:t-i-1+(this.Ps.fixLeftEdge?this.S_/this.Ku:Math.min(2,this.Bu.length))}Zc(){return this.Ps.fixRightEdge?0:this.S_/this.Ku-Math.min(2,this.Bu.length)}Dc(){this.Wu={ul:this.ul(),Cc:this.Cc()}}Ic(){this.Wu=null}kc(t){let i=this.Au.get(t.weight);return i===void 0&&(i=new yT((r=>this.Gc(r)),this.cu),this.Au.set(t.weight,i)),i.du(t)}Gc(t){return this.cu.formatTickmark(t,this.yo)}qc(t){const i=this.Lu;this.Lu=t,sy(i.Ru(),this.Lu.Ru())||this.Ou.p(),sy(i.Du(),this.Lu.Du())||this.Nu.p(),this.$c()}$c(){this.Hu=null}tc(){this.$c(),this.Au.clear()}Gu(){this.cu.updateFormatter(this.yo)}sc(){if(!this.Ps.fixLeftEdge)return;const t=this._c();if(t===null)return;const i=this.Ie();if(i===null)return;const r=i.Aa()-t;if(r<0){const o=this.Yu-r-1;this.Mn(o)}this.dc()}nc(){this.fc(),this.dc()}Mc(t){return!this.Ps.ignoreWhitespaceIndices||this.Uu.get(t)||!1}bc(t){const i=(function*(o){const c=Math.round(o),u=c<o;let h=1;for(;;
17)u?(yield c+h,yield c-h):(yield c-h,yield c+h),h++})(t),r=this.uc();for(;r;){const o=i.next().value;if(this.Uu.get(o))return o;if(o<0||o>r)break}return t}Zu(t){if(t.rightOffsetPixels!==void 0){const i=t.rightOffsetPixels/(t.barSpacing||this.Ku);this.ns.Mn(i)}}}var ry,ay,oy,Ac,ly;(function(e){e[e.OnTouchEnd=0]="OnTouchEnd",e[e.OnNextTap=1]="OnNextTap"})(ry||(ry={}));class ST{constructor(t,i,r){this.Xc=[],this.Jc=[],this.Qc=null,this.S_=0,this.td=null,this.sd=new te,this.nd=new te,this.ed=null,this.rd=t,this.Ps=i,this.cu=r,this.ko=new xC(this.Ps.layout.colorParsers),this.hd=new yC(this),this.Jh=new wT(this,i.timeScale,this.Ps.localization,r),this.Ct=new NC(this,i.crosshair),this.ad=new cT(i.crosshair),i.addDefaultPane&&(this.ld(0),this.Xc[0].A_(2)),this.od=this._d(0),this.ud=this._d(1)}Ca(){this.dd(xe.yn())}dr(){this.dd(xe.Cn())}Ua(){this.dd(new xe(1))}ya(t){const i=this.fd(t);this.dd(i)}pd(){return this.td}vd(t){if(this.td?.hu===t?.hu&&this.td?.au?.te===t?.au?.te)return;const i=this.td;this.td=t,i!==null&&this.ya(i.hu),t!==null&&t.hu!==i?.hu&&this.ya(t.hu)}N(){return this.Ps}cr(t){Je(this.Ps,t),this.Xc.forEach((i=>i.I_(t))),t.timeScale!==void 0&&this.Jh.cr(t.timeScale),t.localization!==void 0&&this.Jh.Qu(t.localization),(t.leftPriceScale||t.rightPriceScale)&&this.sd.p(),this.od=this._d(0),this.ud=this._d(1),this.Ca()}md(t,i,r=0){const o=this.Xc[r];if(o===void 0)return;if(t==="left")return Je(this.Ps,{leftPriceScale:i}),o.I_({leftPriceScale:i}),this.sd.p(),void this.Ca();if(t==="right")return Je(this.Ps,{rightPriceScale:i}),o.I_({rightPriceScale:i}),this.sd.p(),void this.Ca();const c=this.wd(t,r);c!==null&&(c.Ft.cr(i),this.sd.p())}wd(t,i){const r=this.Xc[i];if(r===void 0)return null;const o=r.V_(t);return o!==null?{Gs:r,Ft:o}:null}Et(){return this.Jh}Xs(){return this.Xc}gd(){return this.Ct}Md(){return this.nd}bd(t,i){t.No(i),this.Sc()}L_(t){this.S_=t,this.Jh.L_(this.S_),this.Xc.forEach((i=>i.L_(t))),this.Sc()}Sd(t){this.Xc.length!==1&&(we(t>=0&&t<this.Xc.length,"Invalid pane index"),this.Xc.splice(t,1),this.Ca())}xd(t,i){if(this.Xc.length<2)return;we(t>=0&&t<this.Xc.length,"Invalid pane index");const r=this.Xc[t],o=this.Xc.reduce(((y,x)=>y+x.E_()),0),c=this.Xc.reduce(((y,x)=>y+x.$t()),0),u=c-30*(this.Xc.length-1);i=Math.min(u,Math.max(30,i));const h=o/c,d=r.$t();r.A_(i*h);let m=i-d,v=this.Xc.length-1;for(const y of this.Xc)if(y!==r){const x=Math.min(u,Math.max(30,y.$t()-m/v));m-=y.$t()-x,v-=1;const w=x*h;y.A_(w)}this.Ca()}Cd(t,i){we(t>=0&&t<this.Xc.length&&i>=0&&i<this.Xc.length,"Invalid pane index");const r=this.Xc[t],o=this.Xc[i];this.Xc[t]=o,this.Xc[i]=r,this.Ca()}yd(t,i){if(we(t>=0&&t<this.Xc.length&&i>=0&&i<this.Xc.length,"Invalid pane index"),t===i)return;const[r]=this.Xc.splice(t,1);this.Xc.splice(i,0,r),this.Ca()}j_(t,i,r){t.j_(i,r)}Y_(t,i,r){t.Y_(i,r),this.ka(),this.dd(this.kd(t,2))}K_(t,i){t.K_(i),this.dd(this.kd(t,2))}Z_(t,i,r){i.Vo()||t.Z_(i,r)}G_(t,i,r){i.Vo()||(t.G_(i,r),this.ka(),this.dd(this.kd(t,2)))}X_(t,i){i.Vo()||(t.X_(i),this.dd(this.kd(t,2)))}Q_(t,i){t.Q_(i),this.dd(this.kd(t,2))}Pd(t){this.Jh.h_(t)}Td(t,i){const r=this.Et();if(r.Gi()||i===0)return;const o=r.ss();t=Math.max(1,Math.min(t,o)),r.Rc(t,i),this.Sc()}Rd(t){this.Dd(0),this.Id(t),this.Vd()}Bd(t){this.Jh.a_(t),this.Sc()}Ed(){this.Jh.l_(),this.dr()}Dd(t){this.Jh.o_(t)}Id(t){this.Jh.__(t),this.Sc()}Vd(){this.Jh.u_(),this.dr()}tn(){return this.Jc}Us(){return this.Qc===null&&(this.Qc=this.Jc.filter((t=>t.It()))),this.Qc}xa(){this.Qc=null}Ad(t,i,r,o,c){this.Ct.Bs(t,i);let u=NaN,h=this.Jh.wc(t,!0);const d=this.Jh.Ie();d!==null&&(h=Math.min(Math.max(d.Aa(),h),d.bi())),h=this.Ct.Hs(h);const m=o.Rs(),v=m.Lt();if(v!==null&&(u=m.Ds(i,v)),u=this.ad.bl(u,h,o),this.Ct.zs(h,u,o),this.Ua(),!c){const y=N3(o,t,i);this.vd(y&&{hu:y.hu,au:y.au,ou:y.ou||null}),this.nd.p(this.Ct.Bt(),{x:t,y:i},r)}}Ld(t,i,r){const o=r.Rs(),c=o.Lt(),u=o.Nt(t,$(c)),h=this.Jh.ec(i,!0),d=this.Jh.qt($(h));this.Ad(d,u,null,r,!0)}zd(t){this.gd().Ns(),this.Ua(),t||this.nd.p(null,null,null)}ka(){const t=this.Ct.Gs();if(t!==null){const i=this.Ct.As(),r=this.Ct.Ls();this.Ad(i,r,null,t)}this.Ct.Ws()}Od(t,i,r){const o=this.Jh.Is(0);i!==void 0&&r!==void 0&&this.Jh.kt(i,r);const c=this.Jh.Is(0),u=this.Jh.vc(),h=this.Jh.Ie();if(h!==null&&o!==null&&c!==null){const d=h.Ee(u),m=this.cu.key(o)>this.cu.key(c),v=t!==null&&t>u&&!m,y=this.Jh.N().allowShiftVisibleRangeOnWhitespaceReplacement,x=d&&(r!==void 0||y)&&this.Jh.N().shiftVisibleRangeOnNewBar;if(v&&!x){const w=t-u;this.Jh.Mn(this.Jh.Cc()-w)}}this.Jh.Tc(t)}Ra(t){t!==null&&t.iu()}Kn(t){if((function(r){return r instanceof iy})(t))return t;const i=this.Xc.find((r=>r.Dt().includes(t)));return i===void 0?null:i}Sc(){this.Xc.forEach((t=>t.iu())),this.ka()}m(){this.Xc.forEach((t=>t.m())),this.Xc.length=0,this.Ps.localization.priceFormatter=void 0,this.Ps.localization.percentageFormatter=void 0,this.Ps.localization.timeFormatter=void 0}Nd(){return this.hd}Jn(){return this.hd.N()}B_(){return this.sd}Fd(t,i){const r=this.ld(i);this.Wd(t,r),this.Jc.push(t),this.xa(),this.Jc.length===1?this.Ca():this.dr()}Hd(t){const i=this.Kn(t),r=this.Jc.indexOf(t);we(r!==-1,"Series not found");const o=$(i);this.Jc.splice(r,1),o.n_(t),t.m&&t.m(),this.xa(),this.Jh.Ju(),this.Ud(o)}Sa(t,i){const r=$(this.Kn(t));r.n_(t,!0),r.i_(t,i,!0)}Fc(){const t=xe.Cn();t.cn(),this.dd(t)}$d(t){const i=xe.Cn();i.pn(t),this.dd(i)}wn(){const t=xe.Cn();t.wn(),this.dd(t)}gn(t){const i=xe.Cn();i.gn(t),this.dd(i)}Mn(t){const i=xe.Cn();i.Mn(t),this.dd(i)}vn(t){const i=xe.Cn();i.vn(t),this.dd(i)}dn(){const t=xe.Cn();t.dn(),this.dd(t)}qd(){return this.Ps.rightPriceScale.visible?"right":"left"}jd(t,i){if(we(i>=0,"Index should be greater or equal to 0"),i===this.Yd(t))return;const r=$(this.Kn(t));r.n_(t);const o=this.ld(i);this.Wd(t,o),r.Sl().length===0&&this.Ud(r),this.Ca()}Kd(){return this.ud}$(){return this.od}Ut(t){const i=this.ud,r=this.od;if(i===r)return i;if(t=Math.max(0,Math.min(100,Math.round(100*t))),this.ed===null||this.ed.eh!==r||this.ed.rh!==i)this.ed={eh:r,rh:i,Zd:new Map};else{const c=this.ed.Zd.get(t);if(c!==void 0)return c}const o=this.ko.tt(r,i,t/100);return this.ed.Zd.set(t,o),o}Gd(t){return this.Xc.indexOf(t)}Xi(){return this.ko}Xd(){return this.Jd()}Jd(t){const i=new iy(this.Jh,this);this.Xc.push(i);const r=t??this.Xc.length-1,o=xe.yn();return o.hn(r,{an:0,ln:!0}),this.dd(o),i}ld(t){return we(t>=0,"Index should be greater or equal to 0"),(t=Math.min(this.Xc.length,t))<this.Xc.length?this.Xc[t]:this.Jd(t)}Yd(t){return this.Xc.findIndex((i=>i.F_().includes(t)))}kd(t,i){const r=new xe(i);if(t!==null){const o=this.Xc.indexOf(t);r.hn(o,{an:i})}return r}fd(t,i){return i===void 0&&(i=2),this.kd(this.Kn(t),i)}dd(t){this.rd&&this.rd(t),this.Xc.forEach((i=>
17i.eu().pr().kt()))}Wd(t,i){const r=t.N().priceScaleId,o=r!==void 0?r:this.qd();i.i_(t,o),Fc(o)||t.cr(t.N())}_d(t){const i=this.Ps.layout;return i.background.type==="gradient"?t===0?i.background.topColor:i.background.bottomColor:i.background.color}Ud(t){!t.N_()&&t.Sl().length===0&&this.Xc.length>1&&this.Xc.splice(this.Gd(t),1)}}function R3(e){if(e>=1)return 0;let t=0;for(;t<8;t++){const i=Math.round(e);if(Math.abs(i-e)<1e-8)return t;e*=10}return t}function Yd(e){return!kr(e)&&!yo(e)}function O3(e){return kr(e)}(function(e){e[e.Disabled=0]="Disabled",e[e.Continuous=1]="Continuous",e[e.OnDataUpdate=2]="OnDataUpdate"})(ay||(ay={})),(function(e){e[e.LastBar=0]="LastBar",e[e.LastVisible=1]="LastVisible"})(oy||(oy={})),(function(e){e.Solid="solid",e.VerticalGradient="gradient"})(Ac||(Ac={})),(function(e){e[e.Year=0]="Year",e[e.Month=1]="Month",e[e.DayOfMonth=2]="DayOfMonth",e[e.Time=3]="Time",e[e.TimeWithSeconds=4]="TimeWithSeconds"})(ly||(ly={}));const cy=e=>e.getUTCFullYear();function MT(e,t,i){return t.replace(/yyyy/g,(r=>si(cy(r),4))(e)).replace(/yy/g,(r=>si(cy(r)%100,2))(e)).replace(/MMMM/g,((r,o)=>new Date(r.getUTCFullYear(),r.getUTCMonth(),1).toLocaleString(o,{month:"long"}))(e,i)).replace(/MMM/g,((r,o)=>new Date(r.getUTCFullYear(),r.getUTCMonth(),1).toLocaleString(o,{month:"short"}))(e,i)).replace(/MM/g,(r=>si((o=>o.getUTCMonth()+1)(r),2))(e)).replace(/dd/g,(r=>si((o=>o.getUTCDate())(r),2))(e))}class k3{constructor(t="yyyy-MM-dd",i="default"){this.Qd=t,this.tf=i}du(t){return MT(t,this.Qd,this.tf)}}class ET{constructor(t){this.if=t||"%h:%m:%s"}du(t){return this.if.replace("%h",si(t.getUTCHours(),2)).replace("%m",si(t.getUTCMinutes(),2)).replace("%s",si(t.getUTCSeconds(),2))}}const CT={sf:"yyyy-MM-dd",nf:"%h:%m:%s",ef:" ",rf:"default"};class TT{constructor(t={}){const i={...CT,...t};this.hf=new k3(i.sf,i.rf),this.af=new ET(i.nf),this.lf=i.ef}du(t){return`${this.hf.du(t)}${this.lf}${this.af.du(t)}`}}function ql(e){return 60*e*60*1e3}function Qf(e){return 60*e*1e3}const Xl=[{_f:(uy=1,1e3*uy),uf:10},{_f:Qf(1),uf:20},{_f:Qf(5),uf:21},{_f:Qf(30),uf:22},{_f:ql(1),uf:30},{_f:ql(3),uf:31},{_f:ql(6),uf:32},{_f:ql(12),uf:33}];var uy;function hy(e,t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;for(let i=Xl.length-1;i>=0;--i)if(Math.floor(t.getTime()/Xl[i]._f)!==Math.floor(e.getTime()/Xl[i]._f))return Xl[i].uf;return 0}function Jf(e){let t=e;if(yo(e)&&(t=Pm(e)),!Yd(t))throw new Error("time must be of type BusinessDay");const i=new Date(Date.UTC(t.year,t.month-1,t.day,0,0,0,0));return{cf:Math.round(i.getTime()/1e3),df:t}}function fy(e){if(!O3(e))throw new Error("time must be of type isUTCTimestamp");return{cf:e}}function Pm(e){const t=new Date(e);if(isNaN(t.getTime()))throw new Error(`Invalid date string=${e}, expected format=yyyy-mm-dd`);return{day:t.getUTCDate(),month:t.getUTCMonth()+1,year:t.getUTCFullYear()}}function dy(e){yo(e.time)&&(e.time=Pm(e.time))}class my{options(){return this.Ps}setOptions(t){this.Ps=t,this.updateFormatter(t.localization)}preprocessData(t){Array.isArray(t)?(function(i){i.forEach(dy)})(t):dy(t)}createConverterToInternalObj(t){return $((function(i){return i.length===0?null:Yd(i[0].time)||yo(i[0].time)?Jf:fy})(t))}key(t){return typeof t=="object"&&"cf"in t?t.cf:this.key(this.convertHorzItemToInternal(t))}cacheKey(t){const i=t;return i.df===void 0?new Date(1e3*i.cf).getTime():new Date(Date.UTC(i.df.year,i.df.month-1,i.df.day)).getTime()}convertHorzItemToInternal(t){return O3(i=t)?fy(i):Yd(i)?Jf(i):Jf(Pm(i));var i}updateFormatter(t){if(!this.Ps)return;const i=t.dateFormat;this.Ps.timeScale.timeVisible?this.ff=new TT({sf:i,nf:this.Ps.timeScale.secondsVisible?"%h:%m:%s":"%h:%m",ef:" ",rf:t.locale}):this.ff=new k3(i,t.locale)}formatHorzItem(t){const i=t;return this.ff.du(new Date(1e3*i.cf))}formatTickmark(t,i){const r=(function(c,u,h){switch(c){case 0:case 10:return u?h?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return u?3:2;case 50:return 2;case 60:return 1;case 70:return 0}})(t.weight,this.Ps.timeScale.timeVisible,this.Ps.timeScale.secondsVisible),o=this.Ps.timeScale;if(o.tickMarkFormatter!==void 0){const c=o.tickMarkFormatter(t.originalTime,r,i.locale);if(c!==null)return c}return(function(c,u,h){const d={};switch(u){case 0:d.year="numeric";break;case 1:d.month="short";break;case 2:d.day="numeric";break;case 3:d.hour12=!1,d.hour="2-digit",d.minute="2-digit";break;case 4:d.hour12=!1,d.hour="2-digit",d.minute="2-digit",d.second="2-digit"}const m=c.df===void 0?new Date(1e3*c.cf):new Date(Date.UTC(c.df.year,c.df.month-1,c.df.day));return new Date(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()).toLocaleStr
17ing(h,d)})(t.time,r,i.locale)}maxTickMarkWeight(t){let i=t.reduce(bT,t[0]).weight;return i>30&&i<50&&(i=30),i}fillWeightsForPoints(t,i){(function(r,o=0){if(r.length===0)return;let c=o===0?null:r[o-1].time.cf,u=c!==null?new Date(1e3*c):null,h=0;for(let d=o;d<r.length;++d){const m=r[d],v=new Date(1e3*m.time.cf);u!==null&&(m.timeWeight=hy(v,u)),h+=m.time.cf-(c||m.time.cf),c=m.time.cf,u=v}if(o===0&&r.length>1){const d=Math.ceil(h/(r.length-1)),m=new Date(1e3*(r[0].time.cf-d));r[0].timeWeight=hy(new Date(1e3*r[0].time.cf),m)}})(t,i)}static pf(t){return Je({localization:{dateFormat:"dd MMM 'yy"}},t??{})}}const Lr=typeof window<"u";function py(){return!!Lr&&window.navigator.userAgent.toLowerCase().indexOf("firefox")>-1}function $f(){return!!Lr&&/iPhone|iPad|iPod/.test(window.navigator.platform)}function Gd(e){return e+e%2}function jT(e){Lr&&window.chrome!==void 0&&e.addEventListener("mousedown",(t=>{if(t.button===1)return t.preventDefault(),!1}))}class Ic{constructor(t,i,r){this.vf=0,this.mf=null,this.wf={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY},this.gf=0,this.Mf=null,this.bf={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY},this.Sf=null,this.xf=!1,this.Cf=null,this.yf=null,this.kf=!1,this.Pf=!1,this.Tf=!1,this.Rf=null,this.Df=null,this.If=null,this.Vf=null,this.Bf=null,this.Ef=null,this.Af=null,this.Lf=0,this.zf=!1,this.Of=!1,this.Nf=!1,this.Ff=0,this.Wf=null,this.Hf=!$f(),this.Uf=o=>{this.$f(o)},this.qf=o=>{if(this.jf(o)){const c=this.Yf(o);if(++this.gf,this.Mf&&this.gf>1){const{Kf:u}=this.Zf(jn(o),this.bf);u<30&&!this.Tf&&this.Gf(c,this.Jf.Xf),this.Qf()}}else{const c=this.Yf(o);if(++this.vf,this.mf&&this.vf>1){const{Kf:u}=this.Zf(jn(o),this.wf);u<5&&!this.Pf&&this.tp(c,this.Jf.ip),this.sp()}}},this.np=t,this.Jf=i,this.Ps=r,this.ep()}m(){this.Rf!==null&&(this.Rf(),this.Rf=null),this.Df!==null&&(this.Df(),this.Df=null),this.Vf!==null&&(this.Vf(),this.Vf=null),this.Bf!==null&&(this.Bf(),this.Bf=null),this.Ef!==null&&(this.Ef(),this.Ef=null),this.If!==null&&(this.If(),this.If=null),this.rp(),this.sp()}hp(t){this.Vf&&this.Vf();const i=this.ap.bind(this);if(this.Vf=()=>{this.np.removeEventListener("mousemove",i)},this.np.addEventListener("mousemove",i),this.jf(t))return;const r=this.Yf(t);this.tp(r,this.Jf.lp),this.Hf=!0}sp(){this.mf!==null&&clearTimeout(this.mf),this.vf=0,this.mf=null,this.wf={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY}}Qf(){this.Mf!==null&&clearTimeout(this.Mf),this.gf=0,this.Mf=null,this.bf={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY}}ap(t){if(this.Nf||this.yf!==null||this.jf(t))return;const i=this.Yf(t);this.tp(i,this.Jf.op),this.Hf=!0}_p(t){const i=td(t.changedTouches,$(this.Wf));if(i===null||(this.Ff=Il(t),this.Af!==null)||this.Of)return;this.zf=!0;const r=this.Zf(jn(i),$(this.yf)),{up:o,cp:c,Kf:u}=r;if(this.kf||!(u<5)){if(!this.kf){const h=.5*o,d=c>=h&&!this.Ps.dp(),m=h>c&&!this.Ps.fp();d||m||(this.Of=!0),this.kf=!0,this.Tf=!0,this.rp(),this.Qf()}if(!this.Of){const h=this.Yf(t,i);this.Gf(h,this.Jf.pp),pr(t)}}}vp(t){if(t.button!==0)return;const i=this.Zf(jn(t),$(this.Cf)),{Kf:r}=i;if(r>=5&&(this.Pf=!0,this.sp()),this.Pf){const o=this.Yf(t);this.tp(o,this.Jf.mp)}}Zf(t,i){const r=Math.abs(i._t-t._t),o=Math.abs(i.ut-t.ut);return{up:r,cp:o,Kf:r+o}}wp(t){let i=td(t.changedTouches,$(this.Wf));if(i===null&&t.touches.length===0&&(i=t.changedTouches[0]),i===null)return;this.Wf=null,this.Ff=Il(t),this.rp(),this.yf=null,this.Ef&&(this.Ef(),this.Ef=null);const r=this.Yf(t,i);if(this.Gf(r,this.Jf.gp),++this.gf,this.Mf&&this.gf>1){const{Kf:o}=this.Zf(jn(i),this.bf);o<30&&!this.Tf&&this.Gf(r,this.Jf.Xf),this.Qf()}else this.Tf||(this.Gf(r,this.Jf.Mp),this.Jf.Mp&&pr(t));this.gf===0&&pr(t),t.touches.length===0&&this.xf&&(this.xf=!1,pr(t))}$f(t){if(t.button!==0)return;const i=this.Yf(t);if(this.Cf=null,this.Nf=!1,this.Bf&&(this.Bf(),this.Bf=null),py()&&this.np.ownerDocument.documentElement.removeEventListener("mouseleave",this.Uf),!this.jf(t))if(this.tp(i,this.Jf.bp),++this.vf,this.mf&&this.vf>1){const{Kf:r}=this.Zf(jn(t),this.wf);r<5&&!this.Pf&&this.tp(i,this.Jf.ip),this.sp()}else this.Pf||this.tp(i,this.Jf.Sp)}rp(){this.Sf!==null&&(clearTimeout(this.Sf),this.Sf=null)}xp(t){if(this.Wf!==null)return;const i=t.changedTouches[0];this.Wf=i.identifier,this.Ff=Il(t);const r=this.np.ownerDocument.documentElement;this.Tf=!1,this.kf=!1,this.Of=!1,this.yf=jn(i),this.Ef&&(this.Ef(),this.Ef=null);{const c=this._p.bind(this),u=this.wp.bind(this);this.Ef=()=>{r.removeEventListener("touchmove",c),r.removeEventListener("touchend",u)},r.addEventListener("touchmove",c,{passive:!1}),r.addEventListener("touchend",u,{passive:!1}),this.rp(),this.Sf=setTimeout(this.Cp.bind(this,t),240)}const o=this.Yf(t,i);this.Gf(o,this.Jf.yp),this.Mf||(this.gf=0,this.Mf=setTimeout(this.Qf.bind(this),500),this.bf=jn(i))}kp(t){if(t.button!==0)return;const i=this.np.ownerDocument.documentElement;py()&&i.addEventListener("mouseleave",this.Uf),this.Pf=!1,this.Cf=jn(t),this.Bf&&(this.Bf(),this.Bf=null);{const o=this.vp.bind(this),c=this.$f.bind(this);this.Bf=()=>{i.removeEventListener("mousemove",o),i.removeEventListener("mouseup",c)},i.addEventListener("mousemove",o),i.addEventListener("mouseup",c)}if(this.Nf=!0,this.jf(t))return;const r=this.Yf(t);this.tp(r,this.Jf.Pp),this.mf||(this.vf=0,this.mf=setTimeout(this.sp.bind(this),500),this.wf=jn(t))}ep(){this.np.addEventListener("mouseenter",this.hp.bind(this)),this.np.addEventListener("touchcancel",this.rp.bind(this));{const t=this.np.ownerDocument,i=r=>{this.Jf.Tp&&(r.composed&&this.np.contains(r.composedPath()[0])||r.target&&this.np.contains(r.target)||this.Jf.Tp())};this.Df=()=>{t.removeEventListener("touchstart",i)},this.Rf=()=>{t.removeEventListener("mousedown",i)},t.addEventListener("mousedown",i),t.addEventListener("touchstart",i,{passive:!0})}$f()&&(this.If=()=>{this.np.removeEventListener("dblclick",this.qf)},this.np.addEventListener("dblclick",this.qf)),this.np.addEventListener("mouseleave",this.Rp.bind(this)),this.np.addEventListener("touchstart",this.xp.bind(this),{passive:!0}),jT(this.np),this.np.addEventListener("mousedown",this.kp.bind(this)),this.Dp(),this.np.addEventListener("touchmove",(()=>{}),{passive:!1})}Dp(){this.Jf.Ip===void 0&&this.Jf.Vp===void 0&&this.Jf.Bp===void 0||(this.np.addEventListener("touchstart",(t=>this.Ep(t.touches)),{passive:!0}),this.np.addEventListener("touchmove",(t=>{if(t.touches.length===2&&this.Af!==null&&this.Jf.Vp!==void 0){const i=gy(t.touches[0],t.touches[1])/this.Lf;
17this.Jf.Vp(this.Af,i),pr(t)}}),{passive:!1}),this.np.addEventListener("touchend",(t=>{this.Ep(t.touches)})))}Ep(t){t.length===1&&(this.zf=!1),t.length!==2||this.zf||this.xf?this.Ap():this.Lp(t)}Lp(t){const i=this.np.getBoundingClientRect()||{left:0,top:0};this.Af={_t:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,ut:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this.Lf=gy(t[0],t[1]),this.Jf.Ip!==void 0&&this.Jf.Ip(),this.rp()}Ap(){this.Af!==null&&(this.Af=null,this.Jf.Bp!==void 0&&this.Jf.Bp())}Rp(t){if(this.Vf&&this.Vf(),this.jf(t)||!this.Hf)return;const i=this.Yf(t);this.tp(i,this.Jf.zp),this.Hf=!$f()}Cp(t){const i=td(t.touches,$(this.Wf));if(i===null)return;const r=this.Yf(t,i);this.Gf(r,this.Jf.Op),this.Tf=!0,this.xf=!0}jf(t){return t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents!==void 0?t.sourceCapabilities.firesTouchEvents:Il(t)<this.Ff+500}Gf(t,i){i&&i.call(this.Jf,t)}tp(t,i){i&&i.call(this.Jf,t)}Yf(t,i){const r=i||t,o=this.np.getBoundingClientRect()||{left:0,top:0};return{clientX:r.clientX,clientY:r.clientY,pageX:r.pageX,pageY:r.pageY,screenX:r.screenX,screenY:r.screenY,localX:r.clientX-o.left,localY:r.clientY-o.top,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey,Np:!t.type.startsWith("mouse")&&t.type!=="contextmenu"&&t.type!=="click",Fp:t.type,Wp:r.target,_u:t.view,Hp:()=>{t.type!=="touchstart"&&pr(t)}}}}function gy(e,t){const i=e.clientX-t.clientX,r=e.clientY-t.clientY;return Math.sqrt(i*i+r*r)}function pr(e){e.cancelable&&e.preventDefault()}function jn(e){return{_t:e.pageX,ut:e.pageY}}function Il(e){return e.timeStamp||performance.now()}function td(e,t){for(let i=0;i<e.length;++i)if(e[i].identifier===t)return e[i];return null}class _T{constructor(t,i,r){this.Up=null,this.$p=null,this.qp=!0,this.jp=null,this.Yp=t,this.Kp=t.Zp()[i],this.Gp=t.Zp()[r],this.Xp=document.createElement("tr"),this.Xp.style.height="1px",this.Jp=document.createElement("td"),this.Jp.style.position="relative",this.Jp.style.padding="0",this.Jp.style.margin="0",this.Jp.setAttribute("colspan","3"),this.Qp(),this.Xp.appendChild(this.Jp),this.qp=this.Yp.N().layout.panes.enableResize,this.qp?this.tv():(this.Up=null,this.$p=null)}m(){this.$p!==null&&this.$p.m()}iv(){return this.Xp}sv(){return Yt({width:this.Kp.sv().width,height:1})}nv(){return Yt({width:this.Kp.nv().width,height:1*window.devicePixelRatio})}ev(t,i,r){const o=this.nv();t.fillStyle=this.Yp.N().layout.panes.separatorColor,t.fillRect(i,r,o.width,o.height)}kt(){this.Qp(),this.Yp.N().layout.panes.enableResize!==this.qp&&(this.qp=this.Yp.N().layout.panes.enableResize,this.qp?this.tv():(this.Up!==null&&(this.Jp.removeChild(this.Up.rv),this.Jp.removeChild(this.Up.hv),this.Up=null),this.$p!==null&&(this.$p.m(),this.$p=null)))}tv(){const t=document.createElement("div"),i=t.style;i.position="fixed",i.display="none",i.zIndex="49",i.top="0",i.left="0",i.width="100%",i.height="100%",i.cursor="row-resize",this.Jp.appendChild(t);const r=document.createElement("div"),o=r.style;o.position="absolute",o.zIndex="50",o.top="-4px",o.height="9px",o.width="100%",o.backgroundColor="",o.cursor="row-resize",this.Jp.appendChild(r);const c={lp:this.av.bind(this),zp:this.lv.bind(this),Pp:this.ov.bind(this),yp:this.ov.bind(this),mp:this._v.bind(this),pp:this._v.bind(this),bp:this.uv.bind(this),gp:this.uv.bind(this)};this.$p=new Ic(r,c,{dp:()=>!1,fp:()=>!0}),this.Up={hv:r,rv:t}}Qp(){this.Jp.style.background=this.Yp.N().layout.panes.separatorColor}av(t){this.Up!==null&&(this.Up.hv.style.backgroundColor=this.Yp.N().layout.panes.separatorHoverColor)}lv(t){this.Up!==null&&this.jp===null&&(this.Up.hv.style.backgroundColor="")}ov(t){if(this.Up===null)return;const i=this.Kp.cv().E_()+this.Gp.cv().E_(),r=i/(this.Kp.sv().height+this.Gp.sv().height),o=30*r;i<=2*o||(this.jp={dv:t.pageY,fv:this.Kp.cv().E_(),pv:i-o,vv:i,mv:r,wv:o},this.Up.rv.style.display="block")}_v(t){const i=this.jp;if(i===null)return;const r=(t.pageY-i.dv)*i.mv,o=Ja(i.fv+r,i.wv,i.pv);this.Kp.cv().A_(o),this.Gp.cv().A_(i.vv-o),this.Yp.Qt().Ca()}uv(t){this.jp!==null&&this.Up!==null&&(this.jp=null,this.Up.rv.style.display="none")}}function ed(e,t){return e.gv-t.gv}
17function nd(e,t,i){const r=(e.gv-t.gv)/(e.wt-t.wt);return Math.sign(r)*Math.min(Math.abs(r),i)}class AT{constructor(t,i,r,o){this.Mv=null,this.bv=null,this.Sv=null,this.xv=null,this.Cv=null,this.yv=0,this.kv=0,this.Pv=t,this.Tv=i,this.Rv=r,this.kn=o}Dv(t,i){if(this.Mv!==null){if(this.Mv.wt===i)return void(this.Mv.gv=t);if(Math.abs(this.Mv.gv-t)<this.kn)return}this.xv=this.Sv,this.Sv=this.bv,this.bv=this.Mv,this.Mv={wt:i,gv:t}}fe(t,i){if(this.Mv===null||this.bv===null||i-this.Mv.wt>50)return;let r=0;const o=nd(this.Mv,this.bv,this.Tv),c=ed(this.Mv,this.bv),u=[o],h=[c];if(r+=c,this.Sv!==null){const m=nd(this.bv,this.Sv,this.Tv);if(Math.sign(m)===Math.sign(o)){const v=ed(this.bv,this.Sv);if(u.push(m),h.push(v),r+=v,this.xv!==null){const y=nd(this.Sv,this.xv,this.Tv);if(Math.sign(y)===Math.sign(o)){const x=ed(this.Sv,this.xv);u.push(y),h.push(x),r+=x}}}}let d=0;for(let m=0;m<u.length;++m)d+=h[m]/r*u[m];Math.abs(d)<this.Pv||(this.Cv={gv:t,wt:i},this.kv=d,this.yv=(function(m,v){const y=Math.log(v);return Math.log(1*y/-m)/y})(Math.abs(d),this.Rv))}Ac(t){const i=$(this.Cv),r=t-i.wt;return i.gv+this.kv*(Math.pow(this.Rv,r)-1)/Math.log(this.Rv)}Ec(t){return this.Cv===null||this.Iv(t)===this.yv}Iv(t){const i=t-$(this.Cv).wt;return Math.min(i,this.yv)}}class NT{constructor(t,i){this.Vv=void 0,this.Bv=void 0,this.Ev=void 0,this.ws=!1,this.Av=t,this.Lv=i,this.zv()}kt(){this.zv()}Ov(){this.Vv&&this.Av.removeChild(this.Vv),this.Bv&&this.Av.removeChild(this.Bv),this.Vv=void 0,this.Bv=void 0}Nv(){return this.ws!==this.Fv()||this.Ev!==this.Wv()}Wv(){return this.Lv.Qt().Xi().J(this.Lv.N().layout.textColor)>160?"dark":"light"}Fv(){return this.Lv.N().layout.attributionLogo}Hv(){const t=new URL(location.href);return t.hostname?"&utm_source="+t.hostname+t.pathname:""}zv(){this.Nv()&&(this.Ov(),this.ws=this.Fv(),this.ws&&(this.Ev=this.Wv(),this.Bv=document.createElement("style"),this.Bv.innerText="a#tv-attr-logo{--fill:#131722;--stroke:#fff;position:absolute;left:10px;bottom:10px;height:19px;width:35px;margin:0;padding:0;border:0;z-index:3;}a#tv-attr-logo[data-dark]{--fill:#D1D4DC;--stroke:#131722;}",this.Vv=document.createElement("a"),this.Vv.href=`https://www.tradingview.com/?utm_medium=lwc-link&utm_campaign=lwc-chart${this.Hv()}`,this.Vv.title="Charting by TradingView",this.Vv.id="tv-attr-logo",this.Vv.target="_blank",this.Vv.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="35" height="19" fill="none"><g fill-rule="evenodd" clip-path="url(#a)" clip-rule="evenodd"><path fill="var(--stroke)" d="M2 0H0v10h6v9h21.4l.5-1.3 6-15 1-2.7H23.7l-.5 1.3-.2.6a5 5 0 0 0-7-.9V0H2Zm20 17h4l5.2-13 .8-2h-7l-1 2.5-.2.5-1.5 3.8-.3.7V17Zm-.8-10a3 3 0 0 0 .7-2.7A3 3 0 1 0 16.8 7h4.4ZM14 7V2H2v6h6v9h4V7h2Z"/><path fill="var(--fill)" d="M14 2H2v6h6v9h6V2Zm12 15h-7l6-15h7l-6 15Zm-7-9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></g><defs><clipPath id="a"><path fill="var(--stroke)" d="M0 0h35v19H0z"/></clipPath></defs></svg>',this.Vv.toggleAttribute("data-dark",this.Ev==="dark"),this.Av.appendChild(this.Bv),this.Av.appendChild(this.Vv)))}}function Es(e,t){const i=$(e.ownerDocument).createElement("canvas");e.appendChild(i);const r=mC(i,{options:{allowResizeObserver:!0},transform:(o,c)=>({width:Math.max(o.width,c.width),height:Math.max(o.height,c.height)})});return r.resizeCanvasElement(t),r}function Cs(e){e.width=1,e.height=1,e.getContext("2d")?.clearRect(0,0,1,1)}function Kd(e,t,i,r){e.Uh&&e.Uh(t,i,r)}function hc(e,t,i,r){e.nt(t,i,r)}function Fd(e,t,i,r){const o=e(i,r);for(const c of o){const u=c.Tt(r);u!==null&&t(u)}}function id(e,t){return i=>(function(r){return r.Ft!==void 0})(i)?(i.Ft()?.ol()??"")!==t?[]:i.Ya?.(e)??[]:[]}function vy(e,t,i,r){if(!e.length)return;let o=0;const c=e[0].$t(r,!0);let u=t===1?i/2-(e[0].Hi()-c/2):e[0].Hi()-c/2-i/2;u=Math.max(0,u);for(let h=1;h<e.length;h++){const d=e[h],m=e[h-1],v=m.$t(r,!1),y=d.Hi(),x=m.Hi();if(t===1?y>x-v:y<x+v){const w=x-v*t;d.Ui(w);const M=w-t*v/2;if((t===1?M<0:M>i)&&u>0){const S=t===1?-1-M:M-i,T=Math.min(S,u);for(let j=o;j<e.length;j++)e[j].Ui(e[j].Hi()+t*T);u-=T}}else o=h,u=t===1?x-v-y:y-(x+v)}}class yy{constructor(t,i,r,o){this.Ki=null,this.Uv=null,this.$v=!1,this.qv=new Cc(200),this.jv=null,this.Yv=0,this.Kv=!1,this.Zv=()=>{this.Kv||this.yt.Gv().Qt().dr()},this.Xv=()=>{this.Kv||this.yt.Gv().Qt().dr()},this.yt=t,this.Ps=i,this.Co=i.layout,this.hd=r,this.Jv=o==="left",this.Qv=id("normal",o),this.tm=id("top",o),this.im=id("bottom",o),this.Jp=document.createElement("div"),this.Jp.style.height="100%",this.Jp.style.overflow="hidden",this.Jp.style.width="25px",this.Jp.style.left="0",this.Jp.style.position="relative",this.sm=Es(this.Jp,Yt({width:16,height:16})),this.sm.subscribeSuggestedBitmapSizeChanged(this.Zv);const c=this.sm.canvasElement;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this.nm=Es(this.Jp,Yt({width:16,height:16})),this.nm.subscribeSuggestedBitmapSizeChanged(this.Xv);const u=this.nm.canvasElement;
17u.style.position="absolute",u.style.zIndex="2",u.style.left="0",u.style.top="0";const h={Pp:this.ov.bind(this),yp:this.ov.bind(this),mp:this._v.bind(this),pp:this._v.bind(this),Tp:this.rm.bind(this),bp:this.uv.bind(this),gp:this.uv.bind(this),ip:this.hm.bind(this),Xf:this.hm.bind(this),lp:this.am.bind(this),zp:this.lv.bind(this)};this.$p=new Ic(this.nm.canvasElement,h,{dp:()=>!this.Ps.handleScroll.vertTouchDrag,fp:()=>!0})}m(){this.$p.m(),this.nm.unsubscribeSuggestedBitmapSizeChanged(this.Xv),Cs(this.nm.canvasElement),this.nm.dispose(),this.sm.unsubscribeSuggestedBitmapSizeChanged(this.Zv),Cs(this.sm.canvasElement),this.sm.dispose(),this.Ki!==null&&this.Ki.r_().u(this),this.Ki=null}iv(){return this.Jp}k(){return this.Co.fontSize}lm(){const t=this.hd.N();return this.jv!==t.P&&(this.qv.On(),this.jv=t.P),t}om(){if(this.Ki===null)return 0;let t=0;const i=this.lm(),r=$(this.sm.canvasElement.getContext("2d",{colorSpace:this.yt.Gv().N().layout.colorSpace}));r.save();const o=this.Ki.Vl();r.font=this._m(),o.length>0&&(t=Math.max(this.qv.Ii(r,o[0].Jl),this.qv.Ii(r,o[o.length-1].Jl)));const c=this.um();for(let m=c.length;m--;){const v=this.qv.Ii(r,c[m].ri());v>t&&(t=v)}const u=this.Ki.Lt();if(u!==null&&this.Uv!==null&&(h=this.Ps.crosshair).mode!==2&&h.horzLine.visible&&h.horzLine.labelVisible){const m=this.Ki.Ds(1,u),v=this.Ki.Ds(this.Uv.height-2,u);t=Math.max(t,this.qv.Ii(r,this.Ki.Ji(Math.floor(Math.min(m,v))+.11111111111111,u)),this.qv.Ii(r,this.Ki.Ji(Math.ceil(Math.max(m,v))-.11111111111111,u)))}var h;r.restore();const d=t||34;return Gd(Math.ceil(i.S+i.C+i.V+i.B+5+d))}dm(t){this.Uv!==null&&bs(this.Uv,t)||(this.Uv=t,this.Kv=!0,this.sm.resizeCanvasElement(t),this.nm.resizeCanvasElement(t),this.Kv=!1,this.Jp.style.width=`${t.width}px`,this.Jp.style.height=`${t.height}px`)}fm(){return $(this.Uv).width}cs(t){this.Ki!==t&&(this.Ki!==null&&this.Ki.r_().u(this),this.Ki=t,t.r_().i(this.do.bind(this),this))}Ft(){return this.Ki}On(){const t=this.yt.cv();this.yt.Gv().Qt().Q_(t,$(this.Ft()))}pm(t){if(this.Uv===null)return;const i={colorSpace:this.yt.Gv().N().layout.colorSpace};if(t!==1){this.vm(),this.sm.applySuggestedBitmapSize();const o=Ss(this.sm,i);o!==null&&(o.useBitmapCoordinateSpace((c=>{this.wm(c),this.gm(c)})),this.yt.Mm(o,this.im),this.bm(o),this.yt.Mm(o,this.Qv),this.Sm(o))}this.nm.applySuggestedBitmapSize();const r=Ss(this.nm,i);r!==null&&(r.useBitmapCoordinateSpace((({context:o,bitmapSize:c})=>{o.clearRect(0,0,c.width,c.height)})),this.xm(r),this.yt.Mm(r,this.tm))}nv(){return this.sm.bitmapSize}ev(t,i,r,o){const c=this.nv();if(c.width>0&&c.height>0&&(t.drawImage(this.sm.canvasElement,i,r),o)){const u=this.nm.canvasElement;t.drawImage(u,i,r)}}kt(){this.Ki?.Vl()}ov(t){if(this.Ki===null||this.Ki.Gi()||!this.Ps.handleScale.axisPressedMouseMove.price)return;const i=this.yt.Gv().Qt(),r=this.yt.cv();this.$v=!0,i.j_(r,this.Ki,t.localY)}_v(t){if(this.Ki===null||!this.Ps.handleScale.axisPressedMouseMove.price)return;const i=this.yt.Gv().Qt(),r=this.yt.cv(),o=this.Ki;i.Y_(r,o,t.localY)}rm(){if(this.Ki===null||!this.Ps.handleScale.axisPressedMouseMove.price)return;const t=this.yt.Gv().Qt(),i=this.yt.cv(),r=this.Ki;this.$v&&(this.$v=!1,t.K_(i,r))}uv(t){if(this.Ki===null||!this.Ps.handleScale.axisPressedMouseMove.price)return;const i=this.yt.Gv().Qt(),r=this.yt.cv();this.$v=!1,i.K_(r,this.Ki)}hm(t){this.Ps.handleScale.axisDoubleClickReset.price&&this.On()}am(t){this.Ki!==null&&(!this.yt.Gv().Qt().N().handleScale.axisPressedMouseMove.price||this.Ki.He()||this.Ki.Eo()||this.Cm(1))}lv(t){this.Cm(0)}um(){const t=[],i=this.Ki===null?void 0:this.Ki;return(r=>{for(let o=0;o<r.length;++o){const c=r[o].Ks(this.yt.cv(),i);for(let u=0;u<c.length;u++)t.push(c[u])}})(this.yt.cv().Dt()),t}wm({context:t,bitmapSize:i}){const{width:r,height:o}=i,c=this.yt.cv().Qt(),u=c.$(),h=c.Kd();u===h?Gc(t,0,0,r,o,u):x3(t,0,0,r,o,u,h)}gm({context:t,bitmapSize:i,horizontalPixelRatio:r}){if(this.Uv===null||this.Ki===null||!this.Ki.N().borderVisible)return;t.fillStyle=this.Ki.N().borderColor;const o=Math.max(1,Math.floor(this.lm().S*r));let c;c=this.Jv?i.width-o:0,t.fillRect(c,0,o,i.height)}bm(t){if(this.Uv===null||this.Ki===null)return;const i=this.Ki.Vl(),r=this.Ki.N(),o=this.lm(),c=this.Jv?this.Uv.width-o.C:0;r.borderVisible&&r.ticksVisible&&t.useBitmapCoordinateSpace((({context:u,horizontalPixelRatio:h,verticalPixelRatio:d})=>{u.fillStyle=r.borderColor;const m=Math.max(1,Math.floor(d)),v=Math.floor(.5*d),y=Math.round(o.C*h);u.beginPath();for(const x of i)u.rect(Math.floor(c*h),Math.round(x.Pl*d)-v,y,m);u.fill()})),t.useMediaCoordinateSpace((({context:u})=>{u.font=this._m(),u.fillStyle=r.textColor??this.Co.textColor,u.textAlign=this.Jv?"right":"left",u.textBaseline="middle";const h=this.Jv?Math.round(c-o.V):Math.round(c+o.C+o.V),d=i.map((m=>this.qv.Di(u,m.Jl)));for(let m=i.length;m--;){const v=i[m];u.fillText(v.Jl,h,v.Pl+d[m])}}))}vm(){if(this.Uv===null||this.Ki===null)return;let t=this.Uv.height/2;const i=[],r=this.Ki.Dt().slice(),o=this.yt.cv(),c=this.lm();
17this.Ki===o.Gn()&&this.yt.cv().Dt().forEach((d=>{o.Zn(d)&&r.push(d)}));const u=this.Ki.Sl()[0],h=this.Ki;r.forEach((d=>{const m=d.Ks(o,h);m.forEach((v=>{v.$i()&&v.Wi()===null&&(v.Ui(null),i.push(v))})),u===d&&m.length>0&&(t=m[0].Ei())})),this.Ki.N().alignLabels&&this.ym(i,c,t)}ym(t,i,r){if(this.Uv===null)return;const o=t.filter((u=>u.Ei()<=r)),c=t.filter((u=>u.Ei()>r));o.sort(((u,h)=>h.Ei()-u.Ei())),o.length&&c.length&&c.push(o[0]),c.sort(((u,h)=>u.Ei()-h.Ei()));for(const u of t){const h=Math.floor(u.$t(i)/2),d=u.Ei();d>-h&&d<h&&u.Ui(h),d>this.Uv.height-h&&d<this.Uv.height+h&&u.Ui(this.Uv.height-h)}vy(o,1,this.Uv.height,i),vy(c,-1,this.Uv.height,i)}Sm(t){if(this.Uv===null)return;const i=this.um(),r=this.lm(),o=this.Jv?"right":"left";i.forEach((c=>{c.qi()&&c.Tt($(this.Ki)).nt(t,r,this.qv,o)}))}xm(t){if(this.Uv===null||this.Ki===null)return;const i=this.yt.Gv().Qt(),r=[],o=this.yt.cv(),c=i.gd().Ks(o,this.Ki);c.length&&r.push(c);const u=this.lm(),h=this.Jv?"right":"left";r.forEach((d=>{d.forEach((m=>{m.Tt($(this.Ki)).nt(t,u,this.qv,h)}))}))}Cm(t){this.Jp.style.cursor=t===1?"ns-resize":"default"}do(){const t=this.om();this.Yv<t&&this.yt.Gv().Qt().Ca(),this.Yv=t}_m(){return Ec(this.Co.fontSize,this.Co.fontFamily)}}function RT(e,t){return e.qa?.(t)??[]}function xy(e,t){return e.Ys?.(t)??[]}function by(e,t){return e.ds?.(t)??[]}function OT(e,t){return e.Ha?.(t)??[]}class Um{constructor(t,i){this.Uv=Yt({width:0,height:0}),this.km=null,this.Pm=null,this.Tm=null,this.Rm=null,this.Dm=!1,this.Im=new te,this.Vm=new te,this.Bm=0,this.Em=!1,this.Am=null,this.Lm=!1,this.zm=null,this.Om=null,this.Kv=!1,this.Zv=()=>{this.Kv||this.Nm===null||this.ns().dr()},this.Xv=()=>{this.Kv||this.Nm===null||this.ns().dr()},this.Lv=t,this.Nm=i,this.Nm.nu().i(this.Fm.bind(this),this,!0),this.Wm=document.createElement("td"),this.Wm.style.padding="0",this.Wm.style.position="relative";const r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.position="relative",r.style.overflow="hidden",this.Hm=document.createElement("td"),this.Hm.style.padding="0",this.Um=document.createElement("td"),this.Um.style.padding="0",this.Wm.appendChild(r),this.sm=Es(r,Yt({width:16,height:16})),this.sm.subscribeSuggestedBitmapSizeChanged(this.Zv);const o=this.sm.canvasElement;o.style.position="absolute",o.style.zIndex="1",o.style.left="0",o.style.top="0",this.nm=Es(r,Yt({width:16,height:16})),this.nm.subscribeSuggestedBitmapSizeChanged(this.Xv);const c=this.nm.canvasElement;c.style.position="absolute",c.style.zIndex="2",c.style.left="0",c.style.top="0",this.Xp=document.createElement("tr"),this.Xp.appendChild(this.Hm),this.Xp.appendChild(this.Wm),this.Xp.appendChild(this.Um),this.$m(),this.$p=new Ic(this.nm.canvasElement,this,{dp:()=>this.Am===null&&!this.Lv.N().handleScroll.vertTouchDrag,fp:()=>this.Am===null&&!this.Lv.N().handleScroll.horzTouchDrag})}m(){this.km!==null&&this.km.m(),this.Pm!==null&&this.Pm.m(),this.Tm=null,this.nm.unsubscribeSuggestedBitmapSizeChanged(this.Xv),Cs(this.nm.canvasElement),this.nm.dispose(),this.sm.unsubscribeSuggestedBitmapSizeChanged(this.Zv),Cs(this.sm.canvasElement),this.sm.dispose(),this.Nm!==null&&(this.Nm.nu().u(this),this.Nm.m()),this.$p.m()}cv(){return $(this.Nm)}qm(t){this.Nm!==null&&this.Nm.nu().u(this),this.Nm=t,this.Nm!==null&&this.Nm.nu().i(Um.prototype.Fm.bind(this),this,!0),this.$m(),this.Lv.Zp().indexOf(this)===this.Lv.Zp().length-1?(this.Tm=this.Tm??new NT(this.Wm,this.Lv),this.Tm.kt()):(this.Tm?.Ov(),this.Tm=null)}Gv(){return this.Lv}iv(){return this.Xp}$m(){if(this.Nm!==null&&(this.jm(),this.ns().tn().length!==0)){if(this.km!==null){const t=this.Nm.U_();this.km.cs($(t))}if(this.Pm!==null){const t=this.Nm.q_();this.Pm.cs($(t))}}}Ym(){this.km!==null&&this.km.kt(),this.Pm!==null&&this.Pm.kt()}E_(){return this.Nm!==null?this.Nm.E_():0}A_(t){this.Nm&&this.Nm.A_(t)}lp(t){if(!this.Nm)return;this.Km();const i=t.localX,r=t.localY;this.Zm(i,r,t)}Pp(t){this.Km(),this.Gm(),this.Zm(t.localX,t.localY,t)}op(t){if(!this.Nm)return;this.Km();const i=t.localX,r=t.localY;this.Zm(i,r,t)}Sp(t){this.Nm!==null&&(this.Km(),this.Xm(t))}ip(t){this.Nm!==null&&this.Jm(this.Vm,t)}Xf(t){this.ip(t)}mp(t){this.Km(),this.Qm(t),this.Zm(t.localX,t.localY,t)}bp(t){this.Nm!==null&&(this.Km(),this.Em=!1,this.tw(t))}Mp(t){this.Nm!==null&&this.Xm(t)}Op(t){if(this.Em=!0,this.Am===null){const i={x:t.localX,y:t.localY};this.iw(i,i,t)}}zp(t){this.Nm!==null&&(this.Km(),this.Nm.Qt().vd(null),this.sw())}nw(){return this.Im}ew(){return this.Vm}Ip(){this.Bm=1,this.ns().dn()}Vp(t,i){if(!this.Lv.N().handleScale.pinch)return;const r=5*(i-this.Bm);this.Bm=i,this.ns().Td(t._t,r)}yp(t){this.Em=!1,this.Lm=this.Am!==null,this.Gm();const i=this.ns().gd();this.Am!==null&&i.It()&&(this.zm={x:i.si(),y:i.ni()},this.Am={x:t.localX,y:t.localY})}pp(t){if(this.Nm===null)return;const i=t.localX,r=t.localY;if(this.Am===null)this.Qm(t);else{this.Lm=!1;const o=$(this.zm),c=o.x+(i-this.Am.x),u=o.y+(r-this.Am.y);this.Zm(c,u,t)}}gp(t){this.Gv().N().trackingMode.exitMode===0&&(this.Lm=!0),this.rw(),this.tw(t)}Qn(t,i){const r=this.Nm;return r===null?null:N3(r,t,i)}hw(t,i){$(i==="left"?this.km:this.Pm).dm(Yt({width:t,height:this.Uv.height}))}sv(){return this.Uv}dm(t){bs(this.Uv,t)||(this.Uv=t,this.Kv=!0,this.sm.resizeCanvasElement(t),this.nm.resizeCanvasElement(t),this.Kv=!1,this.Wm.style.width=t.width+"px",this.Wm.style.height=t.height+"px")}aw(){const t=$(this.Nm);t.H_(t.U_()),t.H_(t.q_());for(const i of t.Sl())if(t.Zn(i)){const r=i.Ft();r!==null&&t.H_(r),i.Ws()}for(const i of t.ru())i.Ws()}nv(){return this.sm.bitmapSize}ev(t,i,r,o){const c=this.nv();if(c.width>0&&c.height>0&&(t.drawImage(this.sm.canvasElement,i,r),o)){const u=this.nm.canvasElement;t!==null&&t.drawImage(u,i,r)}}pm(t){if(t===0||this.Nm===null)return;t>1&&this.aw(),this.km!==null&&this.km.pm(t),this.Pm!==null&&this.Pm.pm(t);const i={colorSpace:this.Lv.N().layout.colorSpace};if(t!==1){this.sm.applySuggestedBitmapSize();const o=Ss(this.sm,i);o!==null&&(o.useBitmapCoordinateSpace((c=>{this.wm(c)})),this.Nm&&(this.lw(o,RT),this.ow(o),this.lw(o,xy),this.lw(o,by)))}this.nm.applySuggestedBitmapSize();const r=Ss(this.nm,i);r!==null&&(r.useBitmapCoordinateSpace((({context:o,bitmapSize:c})=>{o.clearRect(0,0,c.width,c.height)})),this._w(r),this.lw(r,OT),this.lw(r,by))}uw(){return this.km}cw(){return this.Pm}Mm(t,i){this.lw(t,i)}Fm(){this.Nm!==null&&this.Nm.nu().u(this),this.Nm=null}Xm(t){this.Jm(this.Im,t)}Jm(t,i){const r=i.localX,o=i.localY;t.v()&&t.p(this.ns().Et().wc(r),{x:r,y:o},i)}wm({context:t,bitmapSize:i}){const{width:r,height:o}=i,c=this.ns(),u=c.$(),h=c.Kd();u===h?Gc(t,0,0,r,o,h):x3(t,0,0,r,o,u,h)}
17ow(t){const i=$(this.Nm),r=i.eu().pr().Tt(i);r!==null&&r.nt(t,!1)}_w(t){this.dw(t,xy,hc,this.ns().gd())}lw(t,i){const r=$(this.Nm),o=r.Dt(),c=r.ru();for(const u of c)this.dw(t,i,Kd,u);for(const u of o)this.dw(t,i,Kd,u);for(const u of c)this.dw(t,i,hc,u);for(const u of o)this.dw(t,i,hc,u)}dw(t,i,r,o){const c=$(this.Nm),u=c.Qt().pd(),h=u!==null&&u.hu===o,d=u!==null&&h&&u.au!==void 0?u.au.ie:void 0;Fd(i,(m=>r(m,t,h,d)),o,c)}jm(){if(this.Nm===null)return;const t=this.Lv,i=this.Nm.U_().N().visible,r=this.Nm.q_().N().visible;i||this.km===null||(this.Hm.removeChild(this.km.iv()),this.km.m(),this.km=null),r||this.Pm===null||(this.Um.removeChild(this.Pm.iv()),this.Pm.m(),this.Pm=null);const o=t.Qt().Nd();i&&this.km===null&&(this.km=new yy(this,t.N(),o,"left"),this.Hm.appendChild(this.km.iv())),r&&this.Pm===null&&(this.Pm=new yy(this,t.N(),o,"right"),this.Um.appendChild(this.Pm.iv()))}fw(t){return t.Np&&this.Em||this.Am!==null}Zm(t,i,r){t=Math.max(0,Math.min(t,this.Uv.width-1)),i=Math.max(0,Math.min(i,this.Uv.height-1)),this.ns().Ad(t,i,r,$(this.Nm))}sw(){this.ns().zd()}rw(){this.Lm&&(this.Am=null,this.sw())}iw(t,i,r){this.Am=t,this.Lm=!1,this.Zm(i.x,i.y,r);const o=this.ns().gd();this.zm={x:o.si(),y:o.ni()}}ns(){return this.Lv.Qt()}tw(t){if(!this.Dm)return;const i=this.ns(),r=this.cv();if(i.X_(r,r.Rs()),this.Rm=null,this.Dm=!1,i.Vd(),this.Om!==null){const o=performance.now(),c=i.Et();this.Om.fe(c.Cc(),o),this.Om.Ec(o)||i.vn(this.Om)}}Km(){this.Am=null}Gm(){if(this.Nm){if(this.ns().dn(),document.activeElement!==document.body&&document.activeElement!==document.documentElement)$(document.activeElement).blur();else{const t=document.getSelection();t!==null&&t.removeAllRanges()}!this.Nm.Rs().Gi()&&this.ns().Et().Gi()}}Qm(t){if(this.Nm===null)return;const i=this.ns(),r=i.Et();if(r.Gi())return;const o=this.Lv.N(),c=o.handleScroll,u=o.kineticScroll;if((!c.pressedMouseMove||t.Np)&&(!c.horzTouchDrag&&!c.vertTouchDrag||!t.Np))return;const h=this.Nm.Rs(),d=performance.now();if(this.Rm!==null||this.fw(t)||(this.Rm={x:t.clientX,y:t.clientY,cf:d,pw:t.localX,mw:t.localY}),this.Rm!==null&&!this.Dm&&(this.Rm.x!==t.clientX||this.Rm.y!==t.clientY)){if(t.Np&&u.touch||!t.Np&&u.mouse){const m=r.ul();this.Om=new AT(.2/m,7/m,.997,15/m),this.Om.Dv(r.Cc(),this.Rm.cf)}else this.Om=null;h.Gi()||i.Z_(this.Nm,h,t.localY),i.Dd(t.localX),this.Dm=!0}this.Dm&&(h.Gi()||i.G_(this.Nm,h,t.localY),i.Id(t.localX),this.Om!==null&&this.Om.Dv(r.Cc(),d))}}class wy{constructor(t,i,r,o,c){this.xt=!0,this.Uv=Yt({width:0,height:0}),this.Zv=()=>this.pm(3),this.Jv=t==="left",this.hd=r.Nd,this.Ps=i,this.ww=o,this.gw=c,this.Jp=document.createElement("div"),this.Jp.style.width="25px",this.Jp.style.height="100%",this.Jp.style.overflow="hidden",this.sm=Es(this.Jp,Yt({width:16,height:16})),this.sm.subscribeSuggestedBitmapSizeChanged(this.Zv)}m(){this.sm.unsubscribeSuggestedBitmapSizeChanged(this.Zv),Cs(this.sm.canvasElement),this.sm.dispose()}iv(){return this.Jp}sv(){return this.Uv}dm(t){bs(this.Uv,t)||(this.Uv=t,this.sm.resizeCanvasElement(t),this.Jp.style.width=`${t.width}px`,this.Jp.style.height=`${t.height}px`,this.xt=!0)}pm(t){if(t<3&&!this.xt||this.Uv.width===0||this.Uv.height===0)return;this.xt=!1,this.sm.applySuggestedBitmapSize();const i=Ss(this.sm,{colorSpace:this.Ps.layout.colorSpace});i!==null&&i.useBitmapCoordinateSpace((r=>{this.wm(r),this.gm(r)}))}nv(){return this.sm.bitmapSize}ev(t,i,r){const o=this.nv();o.width>0&&o.height>0&&t.drawImage(this.sm.canvasElement,i,r)}gm({context:t,bitmapSize:i,horizontalPixelRatio:r,verticalPixelRatio:o}){if(!this.ww())return;t.fillStyle=this.Ps.timeScale.borderColor;const c=Math.floor(this.hd.N().S*r),u=Math.floor(this.hd.N().S*o),h=this.Jv?i.width-c:0;t.fillRect(h,0,c,u)}wm({context:t,bitmapSize:i}){Gc(t,0,0,i.width,i.height,this.gw())}}function Hm(e){return t=>t.Ka?.(e)??[]}const kT=Hm("normal"),DT=Hm("top"),LT=Hm("bottom");class zT{constructor(t,i){this.Mw=null,this.bw=null,this.M=null,this.Sw=!1,this.Uv=Yt({width:0,height:0}),this.xw=new te,this.qv=new Cc(5),this.Kv=!1,this.Zv=()=>{this.Kv||this.Lv.Qt().dr()},this.Xv=()=>{this.Kv||this.Lv.Qt().dr()},this.Lv=t,this.cu=i,this.Ps=t.N().layout,this.Vv=document.createElement("tr"),this.Cw=document.createElement("td"),this.Cw.style.padding="0",this.yw=document.createElement("td"),this.yw.style.padding="0",this.Jp=document.createElement("td"),this.Jp.style.height="25px",this.Jp.style.padding="0",this.kw=document.createElement("div"),this.kw.style.width="100%",this.kw.style.height="100%",this.kw.style.position="relative",this.kw.style.overflow="hidden",this.Jp.appendChild(this.kw),this.sm=Es(this.kw,Yt({width:16,height:16})),this.sm.subscribeSuggestedBitmapSizeChanged(this.Zv);const r=this.sm.canvasElement;r.style.position="absolute",r.style.zIndex="1",r.style.left="0",r.style.top="0",this.nm=Es(this.kw,Yt({width:16,height:16})),this.nm.subscribeSuggestedBitmapSizeChanged(this.Xv);const o=this.nm.canvasElement;o.style.position="absolute",o.style.zIndex="2",o.style.left="0",o.style.top="0",this.Vv.appendChild(this.Cw),this.Vv.appendChild(this.Jp),this.Vv.appendChild(this.yw),this.Pw(),this.Lv.Qt().B_().i(this.Pw.bind(this),this),this.$p=new Ic(this.nm.canvasElement,this,{dp:()=>!0,fp:()=>!this.Lv.N().handleScroll.horzTouchDrag})}m(){this.$p.m(),this.Mw!==null&&this.Mw.m(),this.bw!==null&&this.bw.m(),this.nm.unsubscribeSuggestedBitmapSizeChanged(this.Xv),Cs(this.nm.canvasElement),this.nm.dispose(),this.sm.unsubscribeSuggestedBitmapSizeChanged(this.Zv),Cs(this.sm.canvasElement),this.sm.dispose()}iv(){return this.Vv}Tw(){return this.Mw}Rw(){return this.bw}Pp(t){if(this.Sw)return;this.Sw=!0;const i=this.Lv.Qt();!i.Et().Gi()&&this.Lv.N().handleScale.axisPressedMouseMove.time&&i.Pd(t.localX)}yp(t){this.Pp(t)}Tp(){const t=this.Lv.Qt();!t.Et().Gi()&&this.Sw&&(this.Sw=!1,this.Lv.N().handleScale.axisPressedMouseMove.time&&t.Ed())}mp(t){const i=this.Lv.Qt();!i.Et().Gi()&&this.Lv.N().handleScale.axisPressedMouseMove.time&&i.Bd(t.localX)}pp(t){this.mp(t)}bp(){this.Sw=!1;const t=this.Lv.Qt();t.Et().Gi()&&!this.Lv.N().handleScale.axisPressedMouseMove.time||t.Ed()}gp(){this.bp()}ip(){this.Lv.N().handleScale.axisDoubleClickReset.time&&this.Lv.Qt().wn()}Xf(){this.ip()}lp(){this.Lv.Qt().N().handleScale.axisPressedMouseMove.time&&this.Cm(1)}zp(){this.Cm(0)}sv(){return this.Uv}Dw(){return this.xw}Iw(t,i,r){bs(this.Uv,t)||(this.Uv=t,this.Kv=!0,this.sm.resizeCanvasElement(t),this.nm.resizeCanvasElement(t),this.Kv=!1,this.Jp.style.width=`${t.width}px`,this.Jp.style.height=`${t.height}px`,this.xw.p(t)),this.Mw!==null&&this.Mw.dm(Yt({width:i,height:t.height})),this.bw!==null&&this.bw.dm(Yt({width:r,height:t.height}))}Vw(){const t=this.Bw();return Math.ceil(t.S+t.C+t.k+t.A+t.I+t.Ew)}kt(){this.Lv.Qt().Et().Vl()}nv(){return this.sm.bitmapSize}ev(t,i,r,o){const c=this.nv();if(c.width>0&&c.height>0&&(t.drawImage(this.sm.canvasElement,i,r),o)){const u=this.nm.canvasElement;t.drawImage(u,i,r)}}pm(t){if(t===0)return;const i={colorSpace:this.Ps.colorSpace};if(t!==1){this.sm.applySuggestedBitmapSize();const o=Ss(this.sm,i);o!==null&&(o.useBitmapCoordinateSpace((c=>{this.wm(c),this.gm(c),this.Aw(o,LT)})),this.bm(o),this.Aw(o,kT)),this.Mw!==null&&this.Mw.pm(t),this.bw!==null&&this.bw.pm(t)}this.nm.applySuggestedBitmapSize();const r=Ss(this.nm,i);r!==null&&(r.useBitmapCoordinateSpace((({context:o,bitmapSize:c})=>{o.clearRect(0,0,c.width,c.height)})),this.Lw([...this.Lv.Qt().tn(),this.Lv.Qt().gd()],r),this.Aw(r,DT))}Aw(t,i){const r=this.Lv.Qt().tn();for(const o of r)Fd(i,(c=>Kd(c,t,!1,void 0)),o,void 0);for(const o of r)Fd(i,(c=>hc(c,t,!1,void 0)),o,void 0)}wm({context:t,bitmapSize:i}){Gc(t,0,0,i.width,i.height,this.Lv.Qt().Kd())}gm({context:t,bitmapSize:i,verticalPixelRatio:r}){if(this.Lv.N().timeScale.borderVisible){t.fillStyle=this.zw();const o=Math.max(1,Math.floor(this.Bw().S*r));t.fillRect(0,0,i.width,o)}}bm(t){const i=this.Lv.Qt().Et(),r=i.Vl();if(!r||r.length===0)return;const o=this.cu.maxTickMarkWeight(r),c=this.Bw(),u=i.N();u.borderVisible&&u.ticksVisible&&t.useBitmapCoordinateSpace((({context:h,horizontalPixelRatio:d,verticalPixelRatio:m})=>{h.strokeStyle=this.zw(),h.fillStyle=this.zw();const v=Math.max(1,Math.floor(d)),y=Math.floor(.5*d);h.beginPath();const x=Math.round(c.C*m);for(let w=r.length;w--;){const M=Math.round(r[w].coord*d);h.rect(M-y,0,v,x)}h.fill()})),t.useMediaCoordinateSpace((({context:h})=>{const d=c.S+c.C+c.A+c.k/2;h.textAlign="center",h.textBaseline="middle",h.fillStyle=this.H(),h.font=this._m();for(const m of r)if(m.weight<o){const v=m.needAlignCoordinate?this.Ow(h,m.coord,m.label):m.coord;h.fillText(m.label,v,d)}this.Lv.N().timeScale.allowBoldLabels&&(h.font=this.Nw());for(const m of r)if(m.weight>=o){const v=m.needAlignCoordinate?this.Ow(h,m.coord,m.label):m.coord;h.fillText(m.label,v,d)}}))}Ow(t,i,r){const o=this.qv.Ii(t,r),c=o/2,u=Math.floor(i-c)+.5;return u<0?i+=Math.abs(0-u):u+o>this.Uv.width&&(i-=Math.abs(this.Uv.width-(u+o))),i}Lw(t,i){const r=this.Bw();for(const o of t)for(const c of o.fs())c.Tt().nt(i,r)}zw(){return this.Lv.N().timeScale.borderColor}H(){return this.Ps.textColor}F(){return this.Ps.fontSize}_m(){return Ec(this.F(),this.Ps.fontFamily)}Nw(){return Ec(this.F(),this.Ps.fontFamily,"bold")}Bw(){this.M===null&&(this.M={S:1,L:NaN,A:NaN,I:NaN,ts:NaN,C:5,k:NaN,P:"",Qi:new Cc,Ew:0});const t=this.M,i=this._m();if(t.P!==i){const r=this.F();t.k=r,t.P=i,t.A=3*r/12,t.I=3*r/12,t.ts=9*r/12,t.L=0,t.Ew=4*r/12,t.Qi.On()}return this.M}Cm(t){this.Jp.style.cursor=t===1?"ew-resize":"default"}Pw(){const t=this.Lv.Qt(),i=t.N();i.leftPriceScale.visible||this.Mw===null||(this.Cw.removeChild(this.Mw.iv()),this.Mw.m(),this.Mw=null),i.rightPriceScale.visible||this.bw===null||(this.yw.removeChild(this.bw.iv()),this.bw.m(),this.bw=null);const r={Nd:this.Lv.Qt().Nd()},o=()=>i.leftPriceScale.borderVisible&&t.Et().N().borderVisible,c=()=>t.Kd();i.leftPriceScale.visible&&this.Mw===null&&(this.Mw=new wy("left",i,r,o,c),this.Cw.appendChild(this.Mw.iv())),i.rightPriceScale.visible&&this.bw===null&&(this.bw=new wy("right",i,r,o,c),this.yw.appendChild(this.bw.iv()))}}const VT=!!Lr&&!!navigator.userAgentData&&navigator.userAgentData.brands.some((e=>e.brand.includes("Chromium")))&&!!Lr&&(navigator?.userAgentData?.platform?navigator.userAgentData.platform==="Windows":navigator.userAgent.toLowerCase().indexOf("win")>=0);class BT{constructor(t,i,r){var o;this.Fw=[],this.Ww=[],this.Hw=0,this.eo=0,this.S_=0,this.Uw=0,this.$w=0,this.qw=null,this.jw=!1,this.Im=new te,this.Vm=new te,this.nd=new te,this.Yw=null,this.Kw=null,this.Av=t,this.Ps=i,this.cu=r,this.Vv=document.createElement("div"),this.Vv.classList.add("tv-lightweight-charts"),this.Vv.style.overflow="hidden",this.Vv.style.direction="ltr",this.Vv.style.width="100%",this.Vv.style.height="100%",(o=this.Vv).style.userSelect="none",o.style.webkitUserSelect="none",o.style.msUserSelect="none",o.style.MozUserSelect="none",o.style.webkitTapHighlightColor="transparent",this.Zw=document.createElement("table"),this.Zw.setAttribute("cellspacing","0"),this.Vv.appendChild(this.Zw),this.Gw=this.Xw.bind(this),sd(this.Ps)&&this.Jw(!0),this.ns=new ST(this.rd.bind(this),this.Ps,r),this.Qt().Md().i(this.Qw.bind(this),this),this.tg=new zT(this,this.cu),this.Zw.appendChild(this.tg.iv());const c=i.autoSize&&this.ig();let u=this.Ps.width,h=this.Ps.height;if(c||u===0||h===0){const d=t.getBoundingClientRect();u=u||d.width,h=h||d.height}this.sg(u,h),this.ng(),t.appendChild(this.Vv),this.eg(),this.ns.Et().Oc().i(this.ns.Ca.bind(this.ns),this),this.ns.B_().i(this.ns.Ca.bind(this.ns),this)}Qt(){return this.ns}N(){return this.Ps}Zp(){return this.Fw}rg(){return this.tg}m(){this.Jw(!1),this.Hw!==0&&window.cancelAnimationFrame(this.Hw),this.ns.Md().u(this),this.ns.Et().Oc().u(this),this.ns.B_().u(this),this.ns.m();for(const t of this.Fw)this.Zw.removeChild(t.iv()),t.nw().u(this),t.ew().u(this),t.m();this.Fw=[];for(const t of this.Ww)this.hg(t);this.Ww=[],$(this.tg).m(),this.Vv.parentElement!==null&&this.Vv.parentElement.removeChild(this.Vv),this.nd.m(),this.Im.m(),this.Vm.m(),this.ag()}sg(t,i,r=!1){if(this.eo===i&&this.S_===t)return;const o=(function(h){const d=Math.floor(h.width),m=Math.floor(h.height);return Yt({width:d-d%2,height:m-m%2})})(Yt({width:t,height:i}));this.eo=o.height,this.S_=o.width;const c=this.eo+"px",u=this.S_+"px";$(this.Vv).style.height=c,$(this.Vv).style.width=u,this.Zw.style.height=c,this.Zw.style.width=u,r?this.lg(xe.yn(),performance.now()):this.ns.Ca()}pm(t){t===void 0&&(t=xe.yn());for(let i=0;i<this.Fw.length;i++)this.Fw[i].pm(t.un(i).an);this.Ps.timeScale.visible&&this.tg.pm(t._n())}cr(t){const i=sd(this.Ps);this.ns.cr(t);const r=sd(this.Ps);r!==i&&this.Jw(r),t.layout?.panes&&this.og(),this.eg(),this._g(t)}nw(){return this.Im}ew(){return this.Vm}Md(){return this.nd}ug(t=!1){this.qw!==null&&(this.lg(this.qw,performance.now()),this.qw=null);const i=this.cg(null),r=document.createElement("canvas");r.width=i.width,r.height=i.height;const o=$(r.getContext("2d"));return this.cg(o,t),r}dg(t){return t==="left"&&!this.fg()||t==="right"&&!this.pg()||this.Fw.length===0?0:$(t==="left"?this.Fw[0].uw():this.Fw[0].cw()).fm()}vg(){return this.Ps.autoSize&&this.Yw!==null}hv(){return this.Vv}mg(t){this.Kw=t,this.Kw?this.hv().style.setProperty("cursor",t):this.hv().style.removeProperty("cursor")}wg(){return this.Kw}gg(t){return Be(this.Fw[t]).sv()}
17og(){this.Ww.forEach((t=>{t.kt()}))}_g(t){(t.autoSize!==void 0||!this.Yw||t.width===void 0&&t.height===void 0)&&(t.autoSize&&!this.Yw&&this.ig(),t.autoSize===!1&&this.Yw!==null&&this.ag(),t.autoSize||t.width===void 0&&t.height===void 0||this.sg(t.width||this.S_,t.height||this.eo))}cg(t,i){let r=0,o=0;const c=this.Fw[0],u=(d,m)=>{let v=0;for(let y=0;y<this.Fw.length;y++){const x=this.Fw[y],w=$(d==="left"?x.uw():x.cw()),M=w.nv();if(t!==null&&w.ev(t,m,v,i),v+=M.height,y<this.Fw.length-1){const S=this.Ww[y],T=S.nv();t!==null&&S.ev(t,m,v),v+=T.height}}};this.fg()&&(u("left",0),r+=$(c.uw()).nv().width);for(let d=0;d<this.Fw.length;d++){const m=this.Fw[d],v=m.nv();if(t!==null&&m.ev(t,r,o,i),o+=v.height,d<this.Fw.length-1){const y=this.Ww[d],x=y.nv();t!==null&&y.ev(t,r,o),o+=x.height}}r+=c.nv().width,this.pg()&&(u("right",r),r+=$(c.cw()).nv().width);const h=(d,m,v)=>{$(d==="left"?this.tg.Tw():this.tg.Rw()).ev($(t),m,v)};if(this.Ps.timeScale.visible){const d=this.tg.nv();if(t!==null){let m=0;this.fg()&&(h("left",m,o),m=$(c.uw()).nv().width),this.tg.ev(t,m,o,i),m+=d.width,this.pg()&&h("right",m,o)}o+=d.height}return Yt({width:r,height:o})}Mg(){let t=0,i=0,r=0;for(const T of this.Fw)this.fg()&&(i=Math.max(i,$(T.uw()).om(),this.Ps.leftPriceScale.minimumWidth)),this.pg()&&(r=Math.max(r,$(T.cw()).om(),this.Ps.rightPriceScale.minimumWidth)),t+=T.E_();i=Gd(i),r=Gd(r);const o=this.S_,c=this.eo,u=Math.max(o-i-r,0),h=1*this.Ww.length,d=this.Ps.timeScale.visible;let m=d?Math.max(this.tg.Vw(),this.Ps.timeScale.minimumHeight):0;var v;m=(v=m)+v%2;const y=h+m,x=c<y?0:c-y,w=x/t;let M=0;const S=window.devicePixelRatio||1;for(let T=0;T<this.Fw.length;++T){const j=this.Fw[T];j.qm(this.ns.Xs()[T]);let _=0,N=0;N=T===this.Fw.length-1?Math.ceil((x-M)*S)/S:Math.round(j.E_()*w*S)/S,_=Math.max(N,2),M+=_,j.dm(Yt({width:u,height:_})),this.fg()&&j.hw(i,"left"),this.pg()&&j.hw(r,"right"),j.cv()&&this.ns.bd(j.cv(),_)}this.tg.Iw(Yt({width:d?u:0,height:m}),d?i:0,d?r:0),this.ns.L_(u),this.Uw!==i&&(this.Uw=i),this.$w!==r&&(this.$w=r)}Jw(t){t?this.Vv.addEventListener("wheel",this.Gw,{passive:!1}):this.Vv.removeEventListener("wheel",this.Gw)}bg(t){switch(t.deltaMode){case t.DOM_DELTA_PAGE:return 120;case t.DOM_DELTA_LINE:return 32}return VT?1/window.devicePixelRatio:1}Xw(t){if(!(t.deltaX!==0&&this.Ps.handleScroll.mouseWheel||t.deltaY!==0&&this.Ps.handleScale.mouseWheel))return;const i=this.bg(t),r=i*t.deltaX/100,o=-i*t.deltaY/100;if(t.cancelable&&t.preventDefault(),o!==0&&this.Ps.handleScale.mouseWheel){const c=Math.sign(o)*Math.min(1,Math.abs(o)),u=t.clientX-this.Vv.getBoundingClientRect().left;this.Qt().Td(u,c)}r!==0&&this.Ps.handleScroll.mouseWheel&&this.Qt().Rd(-80*r)}lg(t,i){const r=t._n();r===3&&this.Sg(),r!==3&&r!==2||(this.xg(t),this.Cg(t,i),this.tg.kt(),this.Fw.forEach((o=>{o.Ym()})),this.qw?._n()===3&&(this.qw.Sn(t),this.Sg(),this.xg(this.qw),this.Cg(this.qw,i),t=this.qw,this.qw=null)),this.pm(t)}Cg(t,i){for(const r of t.bn())this.xn(r,i)}xg(t){const i=this.ns.Xs();for(let r=0;r<i.length;r++)t.un(r).ln&&i[r].tu()}xn(t,i){const r=this.ns.Et();switch(t.fn){case 0:r.Fc();break;case 1:r.Wc(t.Wt);break;case 2:r.gn(t.Wt);break;case 3:r.Mn(t.Wt);break;case 4:r.Pc();break;case 5:t.Wt.Ec(i)||r.Mn(t.Wt.Ac(i))}}rd(t){this.qw!==null?this.qw.Sn(t):this.qw=t,this.jw||(this.jw=!0,this.Hw=window.requestAnimationFrame((i=>{if(this.jw=!1,this.Hw=0,this.qw!==null){const r=this.qw;this.qw=null,this.lg(r,i);for(const o of r.bn())if(o.fn===5&&!o.Wt.Ec(i)){this.Qt().vn(o.Wt);break}}})))}Sg(){this.ng()}hg(t){this.Zw.removeChild(t.iv()),t.m()}ng(){const t=this.ns.Xs(),i=t.length,r=this.Fw.length;for(let o=i;o<r;o++){const c=Be(this.Fw.pop());this.Zw.removeChild(c.iv()),c.nw().u(this),c.ew().u(this),c.m();const u=this.Ww.pop();u!==void 0&&this.hg(u)}for(let o=r;o<i;o++){const c=new Um(this,t[o]);if(c.nw().i(this.yg.bind(this,c),this),c.ew().i(this.kg.bind(this,c),this),this.Fw.push(c),o>0){const u=new _T(this,o-1,o);this.Ww.push(u),this.Zw.insertBefore(u.iv(),this.tg.iv())}this.Zw.insertBefore(c.iv(),this.tg.iv())}for(let o=0;o<i;o++){const c=t[o],u=this.Fw[o];u.cv()!==c?u.qm(c):u.$m()}this.eg(),this.Mg()}Pg(t,i,r,o){const c=new Map;
17t!==null&&this.ns.tn().forEach((y=>{const x=y.qs().$s(t);x!==null&&c.set(y,x)}));let u;if(t!==null){const y=this.ns.Et().es(t)?.originalTime;y!==void 0&&(u=y)}const h=this.Qt().pd(),d=h!==null&&h.hu instanceof Xc?h.hu:void 0,m=h!==null&&h.au!==void 0?h.au.te:void 0,v=this.Tg(o);return{Gr:u,js:t??void 0,Rg:i??void 0,Dg:v!==-1?v:void 0,Ig:d,Vg:c,Bg:m,Eg:r??void 0}}Tg(t){let i=-1;if(t)i=this.Fw.indexOf(t);else{const r=this.Qt().gd().Gs();r!==null&&(i=this.Qt().Xs().indexOf(r))}return i}yg(t,i,r,o){this.Im.p((()=>this.Pg(i,r,o,t)))}kg(t,i,r,o){this.Vm.p((()=>this.Pg(i,r,o,t)))}Qw(t,i,r){this.mg(this.Qt().pd()?.ou??null),this.nd.p((()=>this.Pg(t,i,r)))}eg(){const t=this.Ps.timeScale.visible?"":"none";this.tg.iv().style.display=t}fg(){return this.Fw[0].cv().U_().N().visible}pg(){return this.Fw[0].cv().q_().N().visible}ig(){return"ResizeObserver"in window&&(this.Yw=new ResizeObserver((t=>{const i=t[t.length-1];i&&this.sg(i.contentRect.width,i.contentRect.height)})),this.Yw.observe(this.Av,{box:"border-box"}),!0)}ag(){this.Yw!==null&&this.Yw.disconnect(),this.Yw=null}}function sd(e){return!!(e.handleScroll.mouseWheel||e.handleScale.mouseWheel)}function PT(e){return e.open===void 0&&e.value===void 0}function UT(e){return(function(t){return t.open!==void 0})(e)||(function(t){return t.value!==void 0})(e)}function Sy(e,t,i,r){const o=i.value,c={js:t,wt:e,Wt:[o,o,o,o],Gr:r};return i.color!==void 0&&(c.R=i.color),c}function HT(e,t,i,r){const o=i.value,c={js:t,wt:e,Wt:[o,o,o,o],Gr:r};return i.lineColor!==void 0&&(c.vt=i.lineColor),i.topColor!==void 0&&(c.eh=i.topColor),i.bottomColor!==void 0&&(c.rh=i.bottomColor),c}function ZT(e,t,i,r){const o=i.value,c={js:t,wt:e,Wt:[o,o,o,o],Gr:r};return i.topLineColor!==void 0&&(c.hh=i.topLineColor),i.bottomLineColor!==void 0&&(c.ah=i.bottomLineColor),i.topFillColor1!==void 0&&(c.oh=i.topFillColor1),i.topFillColor2!==void 0&&(c._h=i.topFillColor2),i.bottomFillColor1!==void 0&&(c.uh=i.bottomFillColor1),i.bottomFillColor2!==void 0&&(c.dh=i.bottomFillColor2),c}function YT(e,t,i,r){const o={js:t,wt:e,Wt:[i.open,i.high,i.low,i.close],Gr:r};return i.color!==void 0&&(o.R=i.color),o}function GT(e,t,i,r){const o={js:t,wt:e,Wt:[i.open,i.high,i.low,i.close],Gr:r};return i.color!==void 0&&(o.R=i.color),i.borderColor!==void 0&&(o.Ht=i.borderColor),i.wickColor!==void 0&&(o.nh=i.wickColor),o}function KT(e,t,i,r,o){const c=Be(o)(i),u=Math.max(...c),h=Math.min(...c),d=c[c.length-1],m=[d,u,h,d],{time:v,color:y,...x}=i;return{js:t,wt:e,Wt:m,Gr:r,le:x,R:y}}function gr(e){return e.Wt!==void 0}function My(e,t){return t.customValues!==void 0&&(e.Ag=t.customValues),e}function ms(e){return(t,i,r,o,c,u)=>(function(h,d){return d?d(h):PT(h)})(r,u)?My({wt:t,js:i,Gr:o},r):My(e(t,i,r,o,c),r)}function Ey(e){return{Candlestick:ms(GT),Bar:ms(YT),Area:ms(HT),Baseline:ms(ZT),Histogram:ms(Sy),Line:ms(Sy),Custom:ms(KT)}[e]}function Cy(e){return{js:0,Lg:new Map,Ea:e}}function Ty(e,t){if(e!==void 0&&e.length!==0)return{zg:t.key(e[0].wt),Og:t.key(e[e.length-1].wt)}}function jy(e){let t;return e.forEach((i=>{t===void 0&&(t=i.Gr)})),Be(t)}class FT{constructor(t){this.Ng=new Map,this.Fg=new Map,this.Wg=new Map,this.Hg=[],this.cu=t}m(){this.Ng.clear(),this.Fg.clear(),this.Wg.clear(),this.Hg=[]}Ug(t,i){let r=this.Ng.size!==0,o=!1;const c=this.Fg.get(t);if(c!==void 0)if(this.Fg.size===1)r=!1,o=!0,this.Ng.clear();else for(const d of this.Hg)d.pointData.Lg.delete(t)&&(o=!0);let u=[];if(i.length!==0){const d=i.map((w=>w.time)),m=this.cu.createConverterToInternalObj(i),v=Ey(t.wh()),y=t.rl(),x=t.hl();u=i.map(((w,M)=>{const S=m(w.time),T=this.cu.key(S);let j=this.Ng.get(T);j===void 0&&(j=Cy(S),this.Ng.set(T,j),o=!0);const _=v(S,j.js,w,d[M],y,x);return j.Lg.set(t,_),_}))}r&&this.$g(),this.qg(t,u);let h=-1;if(o){const d=[];this.Ng.forEach((m=>{d.push({timeWeight:0,time:m.Ea,pointData:m,originalTime:jy(m.Lg)})})),d.sort(((m,v)=>this.cu.key(m.time)-this.cu.key(v.time))),h=this.jg(d)}return this.Yg(t,h,(function(d,m,v){const y=Ty(d,v),x=Ty(m,v);if(y!==void 0&&x!==void 0)return{Kg:!1,Ta:y.Og>=x.Og&&y.zg>=x.zg}})(this.Fg.get(t),c,this.cu))}Hd(t){return this.Ug(t,[])}Zg(t,i,r){if(r&&t.La())throw new Error("Historical updates are not supported when conflation is enabled. Conflation requires data to be processed in order.");const o=i;(function(j){j.Gr===void 0&&(j.Gr=j.time)})(o),this.cu.preprocessData(i);const c=this.cu.createConverterToInternalObj([i])(i.time),u=this.Wg.get(t);if(!r&&u!==void 0&&this.cu.key(c)<this.cu.key(u))throw new Error(`Cannot update oldest data, last time=${u}, new time=${c}`);let h=this.Ng.get(this.cu.key(c));if(r&&h===void 0)throw new Error("Cannot update non-existing data point when historicalUpdate is true");const d=h===void 0;h===void 0&&(h=Cy(c),this.Ng.set(this.cu.key(c),h));const m=Ey(t.wh()),v=t.rl(),y=t.hl(),x=m(c,h.js,i,o.Gr,v,y),w=!r&&!d&&u!==void 0&&this.cu.key(c)===this.cu.key(u);h.Lg.set(t,x),r?this.Gg(t,x,h.js):w&&t.La()&&gr(x)?(t.kr(x),this.Xg
17(t,x)):this.Xg(t,x);const M={Ta:gr(x),Kg:r};if(!d)return this.Yg(t,-1,M);const S={timeWeight:0,time:h.Ea,pointData:h,originalTime:jy(h.Lg)},T=Dr(this.Hg,this.cu.key(S.time),((j,_)=>this.cu.key(j.time)<_));this.Hg.splice(T,0,S);for(let j=T;j<this.Hg.length;++j)Wl(this.Hg[j].pointData,j);return this.cu.fillWeightsForPoints(this.Hg,T),this.Yg(t,T,M)}Jg(t,i){const r=this.Fg.get(t);if(r===void 0||i<=0)return[[],this.Qg()];i=Math.min(i,r.length);const o=r.splice(-i).reverse();r.length===0?this.Wg.delete(t):this.Wg.set(t,r[r.length-1].wt);for(const c of o){const u=this.Ng.get(this.cu.key(c.wt));if(u&&(u.Lg.delete(t),u.Lg.size===0)){this.Ng.delete(this.cu.key(u.Ea)),this.Hg.splice(u.js,1);for(let h=u.js;h<this.Hg.length;++h)Wl(this.Hg[h].pointData,h)}}return[o,this.Yg(t,this.Hg.length-1,{Kg:!1,Ta:!1})]}Xg(t,i){let r=this.Fg.get(t);r===void 0&&(r=[],this.Fg.set(t,r));const o=r.length!==0?r[r.length-1]:null;o===null||this.cu.key(i.wt)>this.cu.key(o.wt)?gr(i)&&r.push(i):gr(i)?r[r.length-1]=i:r.splice(-1,1),this.Wg.set(t,i.wt)}Gg(t,i,r){const o=this.Fg.get(t);if(o===void 0)return;const c=Dr(o,r,((u,h)=>u.js<h));gr(i)?o[c]=i:o.splice(c,1)}qg(t,i){i.length!==0?(this.Fg.set(t,i.filter(gr)),this.Wg.set(t,i[i.length-1].wt)):(this.Fg.delete(t),this.Wg.delete(t))}$g(){for(const t of this.Hg)t.pointData.Lg.size===0&&this.Ng.delete(this.cu.key(t.time))}jg(t){let i=-1;for(let r=0;r<this.Hg.length&&r<t.length;++r){const o=this.Hg[r],c=t[r];if(this.cu.key(o.time)!==this.cu.key(c.time)){i=r;break}c.timeWeight=o.timeWeight,Wl(c.pointData,r)}if(i===-1&&this.Hg.length!==t.length&&(i=Math.min(this.Hg.length,t.length)),i===-1)return-1;for(let r=i;r<t.length;++r)Wl(t[r].pointData,r);return this.cu.fillWeightsForPoints(t,i),this.Hg=t,i}tM(){if(this.Fg.size===0)return null;let t=0;return this.Fg.forEach((i=>{i.length!==0&&(t=Math.max(t,i[i.length-1].js))})),t}Yg(t,i,r){const o=this.Qg();if(i!==-1)this.Fg.forEach(((c,u)=>{o.F_.set(u,{le:c,iM:u===t?r:void 0})})),this.Fg.has(t)||o.F_.set(t,{le:[],iM:r}),o.Et.sM=this.Hg,o.Et.nM=i;else{const c=this.Fg.get(t);o.F_.set(t,{le:c||[],iM:r})}return o}Qg(){return{F_:new Map,Et:{vc:this.tM()}}}}function Wl(e,t){e.js=t,e.Lg.forEach((i=>{i.js=t}))}function qT(e,t){return e.wt<t}function XT(e,t){return t<e.wt}function IT(e,t,i){const r=t.Aa(),o=t.bi(),c=Dr(e,r,qT),u=T3(e,o,XT);if(!i)return{from:c,to:u};let h=c,d=u;return c>0&&c<e.length&&e[c].wt>=r&&(h=c-1),u>0&&u<e.length&&e[u-1].wt<=o&&(d=u+1),{from:h,to:d}}class D3{constructor(t,i,r){this.eM=!0,this.rM=!0,this.hM=!0,this.aM=[],this.lM=null,this.oM=-1,this.ee=t,this.re=i,this._M=r}kt(t){this.eM=!0,t==="data"&&(this.rM=!0),t==="options"&&(this.hM=!0)}Tt(){return this.ee.It()?(this.uM(),this.lM===null?null:this.cM):null}dM(){this.aM=this.aM.map((t=>({...t,...this.ee.ga().gh(t.wt)})))}fM(){this.lM=null}uM(){const t=this.re.Et(),i=t.N().enableConflation?t.Hc():0;i!==this.oM&&(this.rM=!0,this.oM=i),this.rM&&(this.pM(),this.rM=!1),this.hM&&(this.dM(),this.hM=!1),this.eM&&(this.vM(),this.eM=!1)}vM(){const t=this.ee.Ft(),i=this.re.Et();if(this.fM(),i.Gi()||t.Gi())return;const r=i.Ie();if(r===null||this.ee.qs().yh()===0)return;const o=this.ee.Lt();o!==null&&(this.lM=IT(this.aM,r,this._M),this.mM(t,i,o.Wt),this.wM())}}class WT{constructor(t,i){this.gM=t,this.Ki=i}nt(t,i,r){this.gM.draw(t,this.Ki,i,r)}}class QT extends D3{constructor(t,i,r){super(t,i,!1),this.$h=r,this.cM=new WT(this.$h.renderer(),(o=>{const c=t.Lt();return c===null?null:t.Ft().Nt(o,c.Wt)}))}get ma(){return this.$h.conflationReducer}Oa(t){return this.$h.priceValueBuilder(t)}al(t){return this.$h.isWhitespace(t)}pM(){const t=this.ee.ga();this.aM=this.ee.Na().Dh().map((i=>({wt:i.js,_t:NaN,...t.gh(i.js),MM:i.le})))}mM(t,i){i.mc(this.aM,Zd(this.lM))}wM(){this.$h.update({bars:this.aM.map(JT),barSpacing:this.re.Et().ul(),visibleRange:this.lM,conflationFactor:this.re.Et().Hc()},this.ee.N())}}function JT(e){return{x:e._t,time:e.wt,originalData:e.MM,barColor:e.th}}const $T={color:"#2196f3"},tj=(e,t,i)=>{const r=Ui(i);return new QT(e,t,r)};function Zm(e){const t={value:e.Wt[3],time:e.Gr};return e.Ag!==void 0&&(t.customValues=e.Ag),t}function _y(e){const t=Zm(e);return e.R!==void 0&&(t.color=e.R),t}function ej(e){const t=Zm(e);return e.vt!==void 0&&(t.lineColor=e.vt),e.eh!==void 0&&(t.topColor=e.eh),e.rh!==void 0&&(t.bottomColor=e.rh),t}function nj(e){const t=Zm(e);return e.hh!==void 0&&(t.topLineColor=e.hh),e.ah!==void 0&&(t.bottomLineColor=e.ah),e.oh!==void 0&&(t.topFillColor1=e.oh),e._h!==void 0&&(t.topFillColor2=e._h),e.uh!==void 0&&(t.bottomFillColor1=e.uh),e.dh!==void 0&&(t.bottomFillColor2=e.dh),t}function L3(e){const t={open:e.Wt[0],high:e.Wt[1],low:e.Wt[2],close:e.Wt[3],time:e.Gr};return e.Ag!==void 0&&(t.customValues=e.Ag),t}function ij(e){const t=L3(e);return e.R!==void 0&&(t.color=e.R),t}function sj(e){const t=L3(e),{R:i,Ht:r,nh:o}=e;return i!==void 0&&(t.color=i),r!==void 0&&(t.borderColor=r),o!==void 0&&(t.wickColor=o),t}function fc(e){return{Area:ej,Line:_y,Baseline:nj,Histogram:_y,Bar:ij,Candlestick:sj,Custom:rj}[e]}function rj(e){const t=e.Gr;return{...e.le,time:t}}const aj={vertLine:{color:"#9598A1",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroun
17dColor:"#131722"},horzLine:{color:"#9598A1",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#131722"},mode:1,doNotSnapToHiddenSeriesIndices:!1},oj={vertLines:{color:"#D6DCDE",style:0,visible:!0},horzLines:{color:"#D6DCDE",style:0,visible:!0}},lj={background:{type:"solid",color:"#FFFFFF"},textColor:"#191919",fontSize:12,fontFamily:y3,panes:{enableResize:!0,separatorColor:"#E0E3EB",separatorHoverColor:"rgba(178, 181, 189, 0.2)"},attributionLogo:!0,colorSpace:"srgb",colorParsers:[]},rd={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:"#2B2B43",entireTextOnly:!1,visible:!1,ticksVisible:!1,scaleMargins:{bottom:.1,top:.2},minimumWidth:0,ensureEdgeTickMarksVisible:!1},cj={rightOffset:0,barSpacing:6,minBarSpacing:.5,maxBarSpacing:0,fixLeftEdge:!1,fixRightEdge:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!1,borderVisible:!0,borderColor:"#2B2B43",visible:!0,timeVisible:!1,secondsVisible:!0,shiftVisibleRangeOnNewBar:!0,allowShiftVisibleRangeOnWhitespaceReplacement:!1,ticksVisible:!1,uniformDistribution:!1,minimumHeight:0,allowBoldLabels:!0,ignoreWhitespaceIndices:!1,enableConflation:!1,conflationThresholdFactor:1,precomputeConflationOnInit:!1,precomputeConflationPriority:"background"};function Ay(){return{addDefaultPane:!0,width:0,height:0,autoSize:!1,layout:lj,crosshair:aj,grid:oj,overlayPriceScales:{...rd},leftPriceScale:{...rd,visible:!1},rightPriceScale:{...rd,visible:!0},timeScale:cj,localization:{locale:Lr?navigator.language:"",dateFormat:"dd MMM 'yy"},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:{time:!0,price:!0},mouseWheel:!0,pinch:!0},kineticScroll:{mouse:!1,touch:!0},trackingMode:{exitMode:1}}}class z3{constructor(t,i,r){this.Yp=t,this.bM=i,this.SM=r??0}applyOptions(t){this.Yp.Qt().md(this.bM,t,this.SM)}options(){return this.Ki().N()}width(){return Fc(this.bM)?this.Yp.dg(this.bM):0}setVisibleRange(t){this.setAutoScale(!1),this.Ki().$o(new Ne(t.from,t.to))}getVisibleRange(){let t,i,r=this.Ki().er();if(r===null)return null;if(this.Ki().io()){const o=this.Ki().m_(),c=R3(o);r=_r(r,this.Ki().no()),t=Number((Math.round(r.Ze()/o)*o).toFixed(c)),i=Number((Math.round(r.Ge()/o)*o).toFixed(c))}else t=r.Ze(),i=r.Ge();return{from:t,to:i}}setAutoScale(t){this.applyOptions({autoScale:t})}Ki(){return $(this.Yp.Qt().wd(this.bM,this.SM)).Ft}}class uj{constructor(t,i,r,o){this.Yp=t,this.yt=r,this.xM=i,this.CM=o}getHeight(){return this.yt.$t()}setHeight(t){const i=this.Yp.Qt(),r=i.Gd(this.yt);i.xd(r,t)}getStretchFactor(){return this.yt.E_()}setStretchFactor(t){this.yt.A_(t),this.Yp.Qt().Ca()}paneIndex(){return this.Yp.Qt().Gd(this.yt)}moveTo(t){const i=this.paneIndex();i!==t&&(we(t>=0&&t<this.Yp.Zp().length,"Invalid pane index"),this.Yp.Qt().yd(i,t))}getSeries(){return this.yt.F_().map((t=>this.xM(t)))??[]}getHTMLElement(){const t=this.Yp.Zp();return t&&t.length!==0&&t[this.paneIndex()]?t[this.paneIndex()].iv():null}attachPrimitive(t){this.yt.nl(t),t.attached&&t.attached({chart:this.CM,requestUpdate:()=>this.yt.Qt().Ca()})}detachPrimitive(t){this.yt.el(t)}priceScale(t){if(this.yt.V_(t)===null)throw new Error(`Cannot find price scale with id: ${t}`);return new z3(this.Yp,t,this.paneIndex())}setPreserveEmptyPane(t){this.yt.O_(t)}preserveEmptyPane(){return this.yt.N_()}addCustomSeries(t,i={},r=0){return this.CM.addCustomSeries(t,i,r)}addSeries(t,i={}){return this.CM.addSeries(t,i,this.paneIndex())}}const hj={color:"#FF0000",price:0,lineStyle:2,lineWidth:1,lineVisible:!0,axisLabelVisible:!0,title:"",axisLabelColor:"",axisLabelTextColor:""};class Ny{constructor(t){this.hr=t}applyOptions(t){this.hr.cr(t)}options(){return this.hr.N()}yM(){return this.hr}}class fj{constructor(t,i,r,o,c,u){this.kM=new te,this.ee=t,this.PM=i,this.TM=r,this.cu=c,this.CM=o,this.RM=u}m(){this.kM.m()}priceFormatter(){return this.ee.Xa()}priceToCoordinate(t){const i=this.ee.Lt();return i===null?null:this.ee.Ft().Nt(t,i.Wt)}coordinateToPrice(t){const i=this.ee.Lt();return i===null?null:this.ee.Ft().Ds(t,i.Wt)}barsInLogicalRange(t){if(t===null)return null;const i=new Nr(new eo(t.from,t.to)).Ru(),r=this.ee.qs();if(r.Gi())return null;const o=r.$s(i.Aa(),1),c=r.$s(i.bi(),-1),u=$(r.kh()),h=$(r.sn());if(o!==null&&c!==null&&o.js>c.js)return{barsBefore:t.from-u,barsAfter:h-t.to};const d={barsBefore:o===null||o.js===u?t.from-u:o.js-u,barsAfter:c===null||c.js===
17h?h-t.to:h-c.js};return o!==null&&c!==null&&(d.from=o.Gr,d.to=c.Gr),d}setData(t){this.cu,this.ee.wh(),this.PM.DM(this.ee,t),this.IM("full")}update(t,i=!1){this.ee.wh(),this.PM.VM(this.ee,t,i),this.IM("update")}pop(t=1){const i=this.PM.BM(this.ee,t);i.length!==0&&this.IM("update");const r=fc(this.seriesType());return i.map((o=>r(o)))}dataByIndex(t,i){const r=this.ee.qs().$s(t,i);return r===null?null:fc(this.seriesType())(r)}data(){const t=fc(this.seriesType());return this.ee.qs().Dh().map((i=>t(i)))}subscribeDataChanged(t){this.kM.i(t)}unsubscribeDataChanged(t){this.kM._(t)}applyOptions(t){this.ee.cr(t)}options(){return ii(this.ee.N())}priceScale(){return this.TM.priceScale(this.ee.Ft().ol(),this.getPane().paneIndex())}createPriceLine(t){const i=Je(ii(hj),t),r=this.ee.Da(i);return new Ny(r)}removePriceLine(t){this.ee.Ia(t.yM())}priceLines(){return this.ee.Va().map((t=>new Ny(t)))}seriesType(){return this.ee.wh()}lastValueData(t){const i=this.ee.Ve(t);return i.Be?{noData:!0}:{noData:!1,price:i.gt,color:i.R}}attachPrimitive(t){this.ee.nl(t),t.attached&&t.attached({chart:this.CM,series:this,requestUpdate:()=>this.ee.Qt().Ca(),horzScaleBehavior:this.cu})}detachPrimitive(t){this.ee.el(t),t.detached&&t.detached(),this.ee.Qt().Ca()}getPane(){const t=this.ee,i=$(this.ee.Qt().Kn(t));return this.RM(i)}moveToPane(t){this.ee.Qt().jd(this.ee,t)}seriesOrder(){const t=this.ee.Qt().Kn(this.ee);return t===null?-1:t.F_().indexOf(this.ee)}setSeriesOrder(t){const i=this.ee.Qt().Kn(this.ee);i!==null&&i.su(this.ee,t)}IM(t){this.kM.v()&&this.kM.p(t)}}class dj{constructor(t,i,r){this.EM=new te,this.Nu=new te,this.xw=new te,this.ns=t,this.Jh=t.Et(),this.tg=i,this.Jh.Lc().i(this.AM.bind(this)),this.Jh.zc().i(this.LM.bind(this)),this.tg.Dw().i(this.zM.bind(this)),this.cu=r}m(){this.Jh.Lc().u(this),this.Jh.zc().u(this),this.tg.Dw().u(this),this.EM.m(),this.Nu.m(),this.xw.m()}scrollPosition(){return this.Jh.Cc()}scrollToPosition(t,i){i?this.Jh.Bc(t,1e3):this.ns.Mn(t)}scrollToRealTime(){this.Jh.Vc()}getVisibleRange(){const t=this.Jh.lc();return t===null?null:{from:t.from.originalTime,to:t.to.originalTime}}setVisibleRange(t){const i={from:this.cu.convertHorzItemToInternal(t.from),to:this.cu.convertHorzItemToInternal(t.to)},r=this.Jh.cc(i);this.ns.$d(r)}getVisibleLogicalRange(){const t=this.Jh.ac();return t===null?null:{from:t.Aa(),to:t.bi()}}setVisibleLogicalRange(t){we(t.from<=t.to,"The from index cannot be after the to index."),this.ns.$d(t)}resetTimeScale(){this.ns.wn()}fitContent(){this.ns.Fc()}logicalToCoordinate(t){const i=this.ns.Et();return i.Gi()?null:i.qt(t)}coordinateToLogical(t){return this.Jh.Gi()?null:this.Jh.wc(t)}timeToIndex(t,i){const r=this.cu.convertHorzItemToInternal(t);return this.Jh.ec(r,i)}timeToCoordinate(t){const i=this.timeToIndex(t,!1);return i===null?null:this.Jh.qt(i)}coordinateToTime(t){const i=this.ns.Et(),r=i.wc(t),o=i.es(r);return o===null?null:o.originalTime}width(){return this.tg.sv().width}height(){return this.tg.sv().height}subscribeVisibleTimeRangeChange(t){this.EM.i(t)}unsubscribeVisibleTimeRangeChange(t){this.EM._(t)}subscribeVisibleLogicalRangeChange(t){this.Nu.i(t)}unsubscribeVisibleLogicalRangeChange(t){this.Nu._(t)}subscribeSizeChange(t){this.xw.i(t)}unsubscribeSizeChange(t){this.xw._(t)}applyOptions(t){this.Jh.cr(t)}options(){return{...ii(this.Jh.N()),barSpacing:this.Jh.ul()}}AM(){this.EM.v()&&this.EM.p(this.getVisibleRange())}LM(){this.Nu.v()&&this.Nu.p(this.getVisibleLogicalRange())}zM(t){this.xw.p(t.width,t.height)}}function Ry(e){return(function(t){if(Yl(t.handleScale)){const r=t.handleScale;t.handleScale={axisDoubleClickReset:{time:r,price:r},axisPressedMouseMove:{time:r,price:r},mouseWheel:r,pinch:r}}else if(t.handleScale!==void 0){const{axisPressedMouseMove:r,axisDoubleClickReset:o}=t.handleScale;Yl(r)&&(t.handleScale.axisPressedMouseMove={time:r,price:r}),Yl(o)&&(t.handleScale.axisDoubleClickReset={time:o,price:o})}const i=t.handleScroll;Yl(i)&&(t.handleScroll={horzTouchDrag:i,vertTouchDrag:i,mouseWheel:i,pressedMouseMove:i})})(e),e}class mj{constructor(t,i,r){this.OM=new Map,this.NM=new Map,this.FM=new te,this.WM=new te,this.HM=new te,this.Xc=new WeakMap,this.UM=new FT(i);const o=r===void 0?ii(Ay()):Je(ii(Ay()),Ry(r));this.$M=i,this.Yp=new BT(t,o,i),this.Yp.nw().i((u=>{this.FM.v()&&this.FM.p(this.qM(u()))}
17),this),this.Yp.ew().i((u=>{this.WM.v()&&this.WM.p(this.qM(u()))}),this),this.Yp.Md().i((u=>{this.HM.v()&&this.HM.p(this.qM(u()))}),this);const c=this.Yp.Qt();this.jM=new dj(c,this.Yp.rg(),this.$M)}remove(){this.Yp.nw().u(this),this.Yp.ew().u(this),this.Yp.Md().u(this),this.jM.m(),this.Yp.m(),this.OM.clear(),this.NM.clear(),this.FM.m(),this.WM.m(),this.HM.m(),this.UM.m()}resize(t,i,r){this.autoSizeActive()||this.Yp.sg(t,i,r)}addCustomSeries(t,i={},r=0){const o=(c=>({type:"Custom",isBuiltIn:!1,defaultOptions:{...$T,...c.defaultOptions()},YM:tj,KM:c}))(Ui(t));return this.ZM(o,i,r)}addSeries(t,i={},r=0){return this.ZM(t,i,r)}removeSeries(t){const i=Be(this.OM.get(t)),r=this.UM.Hd(i);this.Yp.Qt().Hd(i),this.GM(r),this.OM.delete(t),this.NM.delete(i)}DM(t,i){this.GM(this.UM.Ug(t,i))}VM(t,i,r){this.GM(this.UM.Zg(t,i,r))}BM(t,i){const[r,o]=this.UM.Jg(t,i);return r.length!==0&&this.GM(o),r}subscribeClick(t){this.FM.i(t)}unsubscribeClick(t){this.FM._(t)}subscribeCrosshairMove(t){this.HM.i(t)}unsubscribeCrosshairMove(t){this.HM._(t)}subscribeDblClick(t){this.WM.i(t)}unsubscribeDblClick(t){this.WM._(t)}priceScale(t,i=0){return new z3(this.Yp,t,i)}timeScale(){return this.jM}applyOptions(t){this.Yp.cr(Ry(t))}options(){return this.Yp.N()}takeScreenshot(t=!1,i=!1){let r,o;try{i||(r=this.Yp.Qt().N().crosshair.mode,this.Yp.cr({crosshair:{mode:2}})),o=this.Yp.ug(t)}finally{i||r===void 0||this.Yp.Qt().cr({crosshair:{mode:r}})}return o}addPane(t=!1){const i=this.Yp.Qt().Xd();return i.O_(t),this.XM(i)}removePane(t){this.Yp.Qt().Sd(t)}swapPanes(t,i){this.Yp.Qt().Cd(t,i)}autoSizeActive(){return this.Yp.vg()}chartElement(){return this.Yp.hv()}panes(){return this.Yp.Qt().Xs().map((t=>this.XM(t)))}paneSize(t=0){const i=this.Yp.gg(t);return{height:i.height,width:i.width}}setCrosshairPosition(t,i,r){const o=this.OM.get(r);if(o===void 0)return;const c=this.Yp.Qt().Kn(o);c!==null&&this.Yp.Qt().Ld(t,i,c)}clearCrosshairPosition(){this.Yp.Qt().zd(!0)}horzBehaviour(){return this.$M}ZM(t,i={},r=0){we(t.YM!==void 0),(function(d){if(d===void 0||d.type==="custom")return;const m=d;m.minMove!==void 0&&m.precision===void 0&&(m.precision=R3(m.minMove))})(i.priceFormat),t.type==="Candlestick"&&(function(d){d.borderColor!==void 0&&(d.borderUpColor=d.borderColor,d.borderDownColor=d.borderColor),d.wickColor!==void 0&&(d.wickUpColor=d.wickColor,d.wickDownColor=d.wickColor)})(i);const o=Je(ii(g3),ii(t.defaultOptions),i),c=t.YM,u=new Xc(this.Yp.Qt(),t.type,o,c,t.KM);this.Yp.Qt().Fd(u,r);const h=new fj(u,this,this,this,this.$M,(d=>this.XM(d)));return this.OM.set(h,u),this.NM.set(u,h),h}GM(t){const i=this.Yp.Qt();i.Od(t.Et.vc,t.Et.sM,t.Et.nM),t.F_.forEach(((r,o)=>o.ht(r.le,r.iM))),i.Et().Ju(),i.Sc()}JM(t){return Be(this.NM.get(t))}qM(t){const i=new Map;t.Vg.forEach(((o,c)=>{const u=c.wh(),h=fc(u)(o);if(u!=="Custom")we(UT(h));else{const d=c.hl();we(!d||d(h)===!1)}i.set(this.JM(c),h)}));const r=t.Ig!==void 0&&this.NM.has(t.Ig)?this.JM(t.Ig):void 0;return{time:t.Gr,logical:t.js,point:t.Rg,paneIndex:t.Dg,hoveredSeries:r,hoveredObjectId:t.Bg,seriesData:i,sourceEvent:t.Eg}}XM(t){let i=this.Xc.get(t);return i||(i=new uj(this.Yp,(r=>this.JM(r)),t,this),this.Xc.set(t,i)),i}}function pj(e){if(yo(e)){const t=document.getElementById(e);return we(t!==null,`Cannot find element in DOM with id=${e}`),t}return e}function gj(e,t,i){const r=pj(e),o=new mj(r,t,i);return t.setOptions(o.options()),o}function V3(e,t){return gj(e,new my,my.pf(t))}class B3 extends D3{constructor(t,i){super(t,i,!0)}mM(t,i,r){i.mc(this.aM,Zd(this.lM)),t.Yo(this.aM,r,Zd(this.lM))}QM(t,i){return{wt:t,gt:i,_t:NaN,ut:NaN}}pM(){const t=this.ee.ga();this.aM=this.ee.Na().Dh().map((i=>{let r;if((i.jr??1)>1){const o=i.Wt[1],c=i.Wt[2],u=i.Wt[3];r=Math.abs(o-u)>Math.abs(c-u)?o:c}else r=i.Wt[3];return this.tb(i.js,r,t)}))}}function vj(e,t,i,r,o,c,u){if(t.length===0||r.from>=t.length||r.to<=0)return;const{context:h,horizontalPixelRatio:d,verticalPixelRatio:m}=e,v=t[r.from];let y=c(e,v),x=v;if(r.to-r.from<2){const w=o/2;h.beginPath();const M={_t:v._t-w,ut:v.ut},S={_t:v._t+w,ut:v.ut};h.moveTo(M._t*d,M.ut*m),h.lineTo(S._t*d,S.ut*m),u(e,y,M,S)}else{const w=(S,T)=>{u(e,y,x,T),h.beginPath(),y=S,x=T};let M=x;h.beginPath(),h.moveTo(v._t*d,v.ut*m);for(let S=r.from+1;S<r.to;++S){M=t[S];const T=c(e,M);switch(i){case 0:h.lineTo(M._t*d,M.ut*m);break;case 1:h.lineTo(M._t*d,t[S-1].ut*m),T!==y&&(w(T,M),h.lineTo(M._t*d,t[S-1].ut*m)),h.lineTo(M._t*d,M.ut*m);break;case 2:{const[j,_]=yj(t,S-1,S);h.bezierCurveTo(j._t*d,j.ut*m,_._t*d,_.ut*m,M._t*d,M.ut*m);break}}i!==1&&T!==y&&(w(T,M),h.moveTo(M._t*d,M.ut*m))}(x!==M||x===M&&i===1)&&u(e,y,x,M)}}const Oy=6;function ad(e,t){return{_t:e._t-t._t,ut:e.ut-t.ut}}function ky(e,t){return{_t:e._t/t,ut:e.ut/t}}function yj(e,t,i){const r=Math.max(0,t-1),o=Math.min(e.length-1,i+1);var c,u;return[(c=e[t],u=ky(ad(e[i],e[r]),Oy),{_t:c._t+u._t,ut:c.ut+u.ut}),ad(e[i],ky(ad(e[o],e[t]),Oy))]}function xj(e,t){const i=e.context;i.strokeStyle=t,i.stroke()}class bj extends Ns{constructor(){super(...arguments),this.rt=null}ht(t){this.rt=t}et(t){if(this.rt===null)return;const{ot:i,lt:r,ib:o,sb:c,ct:u,Zt:h,nb:d}=this.rt;if(r===null)return;const m=t.context;m.lineCap="butt",m.lineWidth=u*t.verticalPixelRatio,Ms(m,h),m.lineJoin="round";const v=this.eb.bind(this);c!==void 0&&vj(t,i,c,r,o,v,xj),d&&(function(y,x,w,M,S){if(M.to-M.from<=0)return;const{horizontalPixelRatio:T,verticalPixelRatio:j,context:_}=y;let N=null;const D=Math.max(1,Math.floor(T))%2/2,z=w*j+D;for(let K=M.to-1;K>=M.from;--K){const Z=x[K];if(Z){const U=S(y,Z);U!==N&&(_.beginPath(),N!==null&&_.fill(),_.fillStyle=U,N=U);const W=Math.round(Z._t*T)+D,nt=Z.ut*j;_.moveTo(W,nt),_.arc(W,nt,z,0,2*Math.PI)}}_.fill()})(t,i,d,r,v)}}class wj extends bj{eb(t,i){return i.vt}}class Sj extends B3{constructor(){super(...arguments),this.cM=new wj}tb(t,i,r){return{...this.QM(t,i),...r.gh(t)}}wM(){const t=this.ee.N(),i={ot:this.aM,Zt:t.lineStyle,sb:t.lineVisible?t.lineType:void 0,ct:t.lineWidth,nb:t.pointMarkersVisible?t.pointMarkersRadius||t.lineWidth/2+2:void 0,lt:this.lM,ib:this.re.Et().ul()};this.cM.ht(i)}}const Mj={type:"Line",isBuiltIn:!0,defaultOptions:{color:"#2196f3",lineStyle:0,lineWidth:3,lineType:0,lineVisible:!0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBorderWidth:2,crosshairMarkerBackgroun
17dColor:"",lastPriceAnimation:0,pointMarkersVisible:!1},YM:(e,t)=>new Sj(e,t)};class Ej extends Ns{constructor(){super(...arguments),this.jt=null,this.Wb=[]}ht(t){this.jt=t,this.Wb=[]}et({context:t,horizontalPixelRatio:i,verticalPixelRatio:r}){if(this.jt===null||this.jt.ot.length===0||this.jt.lt===null)return;this.Wb.length||this.Hb(i);const o=Math.max(1,Math.floor(r)),c=Math.round(this.jt.Ub*r)-Math.floor(o/2),u=c+o;for(let h=this.jt.lt.from;h<this.jt.lt.to;h++){const d=this.jt.ot[h],m=this.Wb[h-this.jt.lt.from],v=Math.round(d.ut*r);let y,x;t.fillStyle=d.th,v<=c?(y=v,x=u):(y=c,x=v-Math.floor(o/2)+o),t.fillRect(m.Aa,y,m.bi-m.Aa+1,x-y)}}Hb(t){if(this.jt===null||this.jt.ot.length===0||this.jt.lt===null)return void(this.Wb=[]);const i=Math.ceil(this.jt.ul*t)<=1?0:Math.max(1,Math.floor(t)),r=Math.round(this.jt.ul*t)-i;this.Wb=new Array(this.jt.lt.to-this.jt.lt.from);for(let c=this.jt.lt.from;c<this.jt.lt.to;c++){const u=this.jt.ot[c],h=Math.round(u._t*t);let d,m;if(r%2){const v=(r-1)/2;d=h-v,m=h+v}else{const v=r/2;d=h-v,m=h+v-1}this.Wb[c-this.jt.lt.from]={Aa:d,bi:m,$b:h,oe:u._t*t,wt:u.wt}}for(let c=this.jt.lt.from+1;c<this.jt.lt.to;c++){const u=this.Wb[c-this.jt.lt.from],h=this.Wb[c-this.jt.lt.from-1];u.wt===h.wt+1&&u.Aa-h.bi!==i+1&&(h.$b>h.oe?h.bi=u.Aa-i-1:u.Aa=h.bi+i+1)}let o=Math.ceil(this.jt.ul*t);for(let c=this.jt.lt.from;c<this.jt.lt.to;c++){const u=this.Wb[c-this.jt.lt.from];u.bi<u.Aa&&(u.bi=u.Aa);const h=u.bi-u.Aa+1;o=Math.min(h,o)}if(i>0&&o<4)for(let c=this.jt.lt.from;c<this.jt.lt.to;c++){const u=this.Wb[c-this.jt.lt.from];u.bi-u.Aa+1>o&&(u.$b>u.oe?u.bi-=1:u.Aa+=1)}}}class Cj extends B3{constructor(){super(...arguments),this.cM=new Ej}tb(t,i,r){return{...this.QM(t,i),...r.gh(t)}}wM(){const t={ot:this.aM,ul:this.re.Et().ul(),lt:this.lM,Ub:this.ee.Ft().Nt(this.ee.N().base,$(this.ee.Lt()).Wt)};this.cM.ht(t)}}const Tj={type:"Histogram",isBuiltIn:!0,defaultOptions:{color:"#26a69a",base:0},YM:(e,t)=>new Cj(e,t)};({...g3});function P3(e){var t,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=P3(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function jj(){for(var e,t,i=0,r="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=P3(e))&&(r&&(r+=" "),r+=t);return r}const _j=(e,t)=>{const i=new Array(e.length+t.length);for(let r=0;r<e.length;r++)i[r]=e[r];for(let r=0;r<t.length;r++)i[e.length+r]=t[r];return i},Aj=(e,t)=>({classGroupId:e,validator:t}),U3=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),Nc="-",Dy=[],Nj="arbitrary..",Rj=e=>{const t=kj(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Oj(u);const h=u.split(Nc),d=h[0]===""&&h.length>1?1:0;return H3(h,d,t)},getConflictingClassGroupIds:(u,h)=>{if(h){const d=r[u],m=i[u];return d?m?_j(m,d):d:m||Dy}return i[u]||Dy}}},H3=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const o=e[t],c=i.nextPart.get(o);if(c){const m=H3(e,t+1,c);if(m)return m}const u=i.validators;if(u===null)return;const h=t===0?e.join(Nc):e.slice(t).join(Nc),d=u.length;for(let m=0;m<d;m++){const v=u[m];if(v.validator(h))return v.classGroupId}},Oj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),r=t.slice(0,i);return r?Nj+r:void 0})(),kj=e=>{const{theme:t,classGroups:i}=e;return Dj(i,t)},Dj=(e,t)=>{const i=U3();for(const r in e){const o=e[r];Ym(o,i,r,t)}return i},Ym=(e,t,i,r)=>{const o=e.length;for(let c=0;c<o;c++){const u=e[c];Lj(u,t,i,r)}},Lj=(e,t,i,r)=>{if(typeof e=="string"){zj(e,t,i);return}if(typeof e=="function"){Vj(e,t,i,r);return}Bj(e,t,i,r)},zj=(e,t,i)=>{const r=e===""?t:Z3(t,e);r.classGroupId=i},Vj=(e,t,i,r)=>{if(Pj(e)){Ym(e(r),t,i,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Aj(i,e))},Bj=(e,t,i,r)=>{const o=Object.entries(e),c=o.length;for(let u=0;u<c;u++){const[h,d]=o[u];Ym(d,Z3(t,h),i,r)}},Z3=(e,t)=>{let i=e;const r=t.split(Nc),o=r.length;for(let c=0;c<o;c++){const u=r[c];let h=i.nextPart.get(u);h||(h=U3(),i.nextPart.set(u,h)),i=h}return i},Pj=e=>
vendor: 6,290 bytes, line 17
17"isThemeGetter"in e&&e.isThemeGetter===!0,Uj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),r=Object.create(null);const o=(c,u)=>{i[c]=u,t++,t>e&&(t=0,r=i,i=Object.create(null))};return{get(c){let u=i[c];if(u!==void 0)return u;if((u=r[c])!==void 0)return o(c,u),u},set(c,u){c in i?i[c]=u:o(c,u)}}},qd="!",Ly=":",Hj=[],zy=(e,t,i,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:r,isExternal:o}),Zj=e=>{const{prefix:t,experimentalParseClassName:i}=e;let r=o=>{const c=[];let u=0,h=0,d=0,m;const v=o.length;for(let S=0;S<v;S++){const T=o[S];if(u===0&&h===0){if(T===Ly){c.push(o.slice(d,S)),d=S+1;continue}if(T==="/"){m=S;continue}}T==="["?u++:T==="]"?u--:T==="("?h++:T===")"&&h--}const y=c.length===0?o:o.slice(d);let x=y,w=!1;y.endsWith(qd)?(x=y.slice(0,-1),w=!0):y.startsWith(qd)&&(x=y.slice(1),w=!0);const M=m&&m>d?m-d:void 0;return zy(c,w,x,M)};if(t){const o=t+Ly,c=r;r=u=>u.startsWith(o)?c(u.slice(o.length)):zy(Hj,!1,u,void 0,!0)}if(i){const o=r;r=c=>i({className:c,parseClassName:o})}return r},Yj=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,r)=>{t.set(i,1e6+r)}),i=>{const r=[];let o=[];for(let c=0;c<i.length;c++){const u=i[c],h=u[0]==="[",d=t.has(u);h||d?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(u)):o.push(u)}return o.length>0&&(o.sort(),r.push(...o)),r}},Gj=e=>({cache:Uj(e.cacheSize),parseClassName:Zj(e),sortModifiers:Yj(e),...Rj(e)}),Kj=/\s+/,Fj=(e,t)=>{const{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],h=e.trim().split(Kj);let d="";for(let m=h.length-1;m>=0;m-=1){const v=h[m],{isExternal:y,modifiers:x,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:S}=i(v);if(y){d=v+(d.length>0?" "+d:d);continue}let T=!!S,j=r(T?M.substring(0,S):M);if(!j){if(!T){d=v+(d.length>0?" "+d:d);continue}if(j=r(M),!j){d=v+(d.length>0?" "+d:d);continue}T=!1}const _=x.length===0?"":x.length===1?x[0]:c(x).join(":"),N=w?_+qd:_,D=N+j;if(u.indexOf(D)>-1)continue;u.push(D);const z=o(j,T);for(let K=0;K<z.length;++K){const Z=z[K];u.push(N+Z)}d=v+(d.length>0?" "+d:d)}return d},qj=(...e)=>{let t=0,i,r,o="";for(;t<e.length;)(i=e[t++])&&(r=Y3(i))&&(o&&(o+=" "),o+=r);return o},Y3=e=>{if(typeof e=="string")return e;let t,i="";for(let r=0;r<e.length;r++)e[r]&&(t=Y3(e[r]))&&(i&&(i+=" "),i+=t);return i},Xj=(e,...t)=>{let i,r,o,c;const u=d=>{const m=t.reduce((v,y)=>y(v),e());return i=Gj(m),r=i.cache.get,o=i.cache.set,c=h,h(d)},h=d=>{const m=r(d);if(m)return m;const v=Fj(d,i);return o(d,v),v};return c=u,(...d)=>c(qj(...d))},Ij=[],ce=e=>{const t=i=>i[e]||Ij;return t.isThemeGetter=!0,t},G3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,K3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wj=/^\d+\/\d+$/,Qj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,t_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,e_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vr=e=>Wj.test(e),Mt=e=>!!e&&!Number.isNaN(Number(e)),Li=e=>!!e&&Number.isInteger(Number(e)),od=e=>e.endsWith("%")&&Mt(e.slice(0,-1)),ei=e=>Qj.test(e),n_=()=>!0,i_=e=>Jj.test(e)&&!$j.test(e),F3=()=>!1,s_=e=>t_.test(e),r_=e=>e_.test(e),a_=e=>!rt(e)&&!at(e),o_=e=>Hr(e,I3,F3),rt=e=>G3.test(e),ps=e=>Hr(e,W3,i_),ld=e=>Hr(e,f_,Mt),Vy=e=>Hr(e,q3,F3),l_=e=>Hr(e,X3,r_),Ql=e=>Hr(e,Q3,s_),at=e=>K3.test(e),Ya=e=>Zr(e,W3),c_=e=>Zr(e,d_),By=e=>Zr(e,q3),u_=e=>Zr(e,I3),h_=e=>Zr(e,X3),Jl=e=>Zr(e,Q3,!0),Hr=(e,t,i)=>{const r=G3.exec(e);return r?r[1]?t(r[1]):i(r[2]):!1},Zr=(e,t,i=!1)=>{const r=K3.exec(e);return r?r[1]?t(r[1]):i:!1},q3=e=>e==="position"||e==="percentage",X3=e=>e==="image"||e==="url",I3=e=>e==="length"||e==="size"||e==="bg-size",W3=e=>e==="length",f_=e=>e==="number",d_=e=>e==="family-name",Q3=e=>e==="shadow",m_=()=>{const e=ce("color"),t=ce("font"),i=ce("text"),r=ce("font-weight"),o=ce("tracking"),c=ce("leading"),u=ce("breakpoint"),h=ce("container"),d=ce("spacing"),m=ce("radius"),v=ce("shadow"),y=ce("inset-shadow"),x=ce("text-shadow"),w=ce("drop-shadow"),M=ce("blur"),S=ce("perspective"),T=ce("aspect"),j=ce("ease"),_=ce("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...D(),at,rt],K=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],U=()=>[at,rt,d],W=()=>[vr,"full","auto",...U()],nt=()=>[Li,"none","subgrid",at,rt],ct=()=>["auto",{span:["full",Li,at,rt]},Li,at,rt],ut=()=>[Li,"auto",at,rt],gt=()=>["auto","min","max","fr",at,rt],mt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],tt=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...U()],Y=()=>[vr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],V=()=>[e,at,rt],it=()=>[...D(),By,Vy,{position:[at,rt]}],ht=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",u_,o_,{size:[at,rt]}],q=()=>[od,Ya,ps],J=()=>["","none","full",m,at,rt],et=()=>["",Mt,Ya,ps],dt=()=>["solid","dashed","dotted","double"],vt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[Mt,od,By,Vy],wt=()=>["","none",M,at,rt],xt=()=>["none",Mt,at,rt],Tt=()=>["none",Mt,at,rt],Nt=()=>[Mt,at,rt],Lt=()=>[vr,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ei],breakpoint:[ei],color:[n_],container:[ei],"drop-shadow":[ei],ease:["in","out","in-out"],font:[a_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ei],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ei],shadow:[ei],spacing:["px",Mt],text:[ei],"text-shadow":[ei],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vr,rt,at,T]}
vendor: 17,286 bytes, line 17
17],container:["container"],columns:[{columns:[Mt,rt,at,h]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Li,"auto",at,rt]}],basis:[{basis:[vr,"full","auto",h,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Mt,vr,"auto","initial","none",rt]}],grow:[{grow:["",Mt,at,rt]}],shrink:[{shrink:["",Mt,at,rt]}],order:[{order:[Li,"first","last","none",at,rt]}],"grid-cols":[{"grid-cols":nt()}],"col-start-end":[{col:ct()}],"col-start":[{"col-start":ut()}],"col-end":[{"col-end":ut()}],"grid-rows":[{"grid-rows":nt()}],"row-start-end":[{row:ct()}],"row-start":[{"row-start":ut()}],"row-end":[{"row-end":ut()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":gt()}],"auto-rows":[{"auto-rows":gt()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...mt(),"normal"]}],"justify-items":[{"justify-items":[...tt(),"normal"]}],"justify-self":[{"justify-self":["auto",...tt()]}],"align-content":[{content:["normal",...mt()]}],"align-items":[{items:[...tt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...tt(),{baseline:["","last"]}]}],"place-content":[{"place-content":mt()}],"place-items":[{"place-items":[...tt(),"baseline"]}],"place-self":[{"place-self":["auto",...tt()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[h,"screen",...Y()]}],"min-w":[{"min-w":[h,"screen","none",...Y()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[u]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",i,Ya,ps]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,at,ld]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",od,rt]}],"font-family":[{font:[c_,rt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,at,rt]}],"line-clamp":[{"line-clamp":[Mt,"none",at,ld]}],leading:[{leading:[c,...U()]}],"list-image":[{"list-image":["none",at,rt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",at,rt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...dt(),"wavy"]}],"text-decoration-thickness":[{decoration:[Mt,"from-font","auto",at,ps]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Mt,"auto",at,rt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",at,rt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",at,rt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:it()}],"bg-repeat":[{bg:ht()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Li,at,rt],radial:["",at,rt],conic:[Li,at,rt]},h_,l_]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:et()}],"border-w-x":[{"border-x":et()}],"border-w-y":[{"border-y":et()}],"border-w-s":[{"border-s":et()}],"border-w-e":[{"border-e":et()}],"border-w-t":[{"border-t":et()}],"border-w-r":[{"border-r":et()}],"border-w-b":[{"border-b":et()}],"border-w-l":[{"border-l":et()}],"divide-x":[{"divide-x":et()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":et()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...dt(),"hidden","none"]}],"divide-style":[{divide:[...dt(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...dt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Mt,at,rt]}],"outline-w":[{outline:["",Mt,Ya,ps]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",v,Jl,Ql]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,Jl,Ql]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Mt,ps]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":et()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",x,Jl,Ql]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Mt,at,rt]}],"mix-blend":[{"mix-blend":[...vt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":vt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Mt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[at,rt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Mt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:it()}],"mask-repeat":[{mask:ht()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",at,rt]}],filter:[{filter:["","none",at,rt]}],blur:[{blur:wt()}],brightness:[{brightness:[Mt,at,rt]}],contrast:[{contrast:[Mt,at,rt]}],"drop-shadow":[{"drop-shadow":["","none",w,Jl,Ql]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Mt,at,rt]}],"hue-rotate":[{"hue-rotate":[Mt,at,rt]}],invert:[{invert:["",Mt,at,rt]}],saturate:[{saturate:[Mt,at,rt]}],sepia:[{sepia:["",Mt,at,rt]}],"backdrop-filter":[{"backdrop-filter":["","none",at,rt]}],"backdrop-blur":[{"backdrop-blur":wt()}],"backdrop-brightness":[{"backdrop-brightness":[Mt,at,rt]}],"backdrop-contrast":[{"backdrop-contrast":[Mt,at,rt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Mt,at,rt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Mt,at,rt]}],"backdrop-invert":[{"backdrop-invert":["",Mt,at,rt]}],"backdrop-opacity":[{"backdrop-opacity":[Mt,at,rt]}],"backdrop-saturate":[{"backdrop-saturate":[Mt,at,rt]}],"backdrop-sepia":[{"backdrop-sepia":["",Mt,at,rt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",at,rt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Mt,"initial",at,rt]}],ease:[{ease:["linear","initial",j,at,rt]}],delay:[{delay:[Mt,at,rt]}],animate:[{animate:["none",_,at,rt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,at,rt]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:xt()}],"rotate-x":[{"rotate-x":xt()}],"rotate-y":[{"rotate-y":xt()}],"rotate-z":[{"rotate-z":xt()}],scale:[{scale:Tt()}],"scale-x":[{"scale-x":Tt()}],"scale-y":[{"scale-y":Tt()}],"scale-z":[{"scale-z":Tt()}],"scale-3d":["scale-3d"],skew:[{skew:Nt()}],"skew-x":[{"skew-x":Nt()}],"skew-y":[{"skew-y":Nt()}],transform:[{transform:[at,rt,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lt()}],"translate-x":[{"translate-x":Lt()}],"translate-y":[{"translate-y":Lt()}],"translate-z":[{"translate-z":Lt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",at,rt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",at,rt]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Mt,Ya,ps,ld]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}
17,p_=Xj(m_);function Pe(...e){return p_(jj(e))}const g_={mint:"bg-[var(--mint-bg)] text-[var(--mint-text)]",coral:"bg-[var(--coral-bg)] text-[var(--coral-text)]",amber:"bg-[var(--amber-bg)] text-[var(--amber-text)]",blue:"bg-electric-blue/30 text-[var(--blue-pill-text)]",neutral:"bg-[var(--badge-bg)] text-[var(--text-secondary)]"},v_={sm:"px-1.5 py-0.5",md:"px-2 py-0.5"};function je({variant:e,size:t="sm",className:i,...r}){return p.jsx("span",{className:Pe("inline-flex shrink-0 items-center rounded-md font-mono text-label font-bold",g_[e],v_[t],i),...r})}const y_={sm:"shadow-[var(--shadow-sm)]",card:"shadow-[var(--shadow-card)]"},x_={default:"p-4",lg:"p-6",none:""};function zr({elevation:e="sm",padding:t="default",className:i,...r}){return p.jsx("div",{className:Pe("rounded-lg bg-[var(--bg-glass)]",y_[e],x_[t],i),...r})}function lo({icon:e,title:t,count:i,trailing:r,className:o,...c}){return p.jsxs("div",{className:Pe("flex items-center justify-between",o),...c,children:[p.jsxs("div",{className:"flex items-center gap-2 font-display text-lg font-bold text-[var(--text-primary)]",children:[p.jsx("span",{className:"text-electric-blue",children:e}),t,i!=null&&p.jsx("span",{className:"rounded-md bg-electric-blue/30 px-2 py-0.5 font-mono text-label font-bold text-[var(--blue-pill-text)]",children:i})]}),r]})}const b_={default:"rounded-lg bg-[var(--bg-glass)] px-4 py-3 shadow-[var(--shadow-sm)]",inset:"rounded-lg bg-[var(--bg-glass-hover)] px-3 py-2.5 shadow-[var(--shadow-xs)]"},w_={mint:"text-[var(--mint-text)]",coral:"text-[var(--coral-text)]"};function qt({label:e,value:t,sublabel:i,color:r,variant:o="default",toggle:c,className:u}){const h=r?w_[r]:"text-[var(--text-primary)]";return p.jsxs("div",{className:Pe(b_[o],u),children:[p.jsxs("div",{className:"flex items-center",children:[p.jsx("div",{className:"font-mono text-label uppercase tracking-header text-[var(--text-tertiary)]",children:e}),c]}),p.jsx("div",{className:`font-display text-heading font-bold tabular-nums ${h}`,children:t}),i&&p.jsx("div",{className:"font-mono text-label text-[var(--text-tertiary)]",children:i})]})}function Gm({className:e,...t}){return p.jsx("button",{className:Pe("flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-[var(--price-pill-border)] bg-[var(--price-pill-bg)] text-[var(--text-secondary)] transition-colors hover:text-[var(--text-primary)]",e),...t})}const S_=()=>p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48"}),p.jsx("path",{d:"M336 64h112v112"}),p.jsx("path",{d:"M224 288L440 72"})]});function co({icon:e,children:t,className:i,...r}){return p.jsxs("a",{target:"_blank",rel:"noopener noreferrer",className:Pe("inline-flex items-center gap-1.5 rounded-md border border-[var(--price-pill-border)] bg-[var(--price-pill-bg)] px-2.5 py-1 font-mono text-label font-medium text-[var(--text-secondary)] transition-colors hover:border-electric-blue/30 hover:text-electric-blue",i),...r,children:[e??p.jsx(S_,{}),t]})}function M_(e,t){const i=(e-1)*3;return`${t}-${String(i+1).padStart(2,"0")}-01`}function E_(e){const t=u3(e.ticker),i=e.quarters_analyzed,r=new Date,o=Math.ceil((r.getMonth()+1)/3),c=r.getFullYear(),u=[];for(let h=0;h<i;h++){const d=i-1-h;let m=o-d%4,v=c-Math.floor(d/4);m<=0&&(m+=4,v-=1);const x=(t*31+h*17+h*h*3>>>0)%100<e.historical_pct;let w=0;if(x){const M=(t*13+h*7>>>0)%100;M<60?w=1:M<85?w=2:M<95?w=3:w=4+M%4}u.push({label:`Q${m} '${String(v).slice(2)}`,count:w,recent:h>=i-4,time:M_(m,v)})}return u}function C_({market:e,onClose:t}){const i=f3(e),r=100-i,o=e.ai_probability,c=100-e.ai_probability,u=h3(e),h=uC(e),d=e.ev_side==="yes"?e.ev_value:-e.ev_value,m=e.ev_side==="no"?e.ev_value:-e.ev_value,v=E.useRef(null),[y,x]=E.useState(()=>document.documentElement.getAttribute("data-theme")||"dark");E.useEffect(()=>{const tt=new MutationObserver(()=>{x(document.documentElement.getAttribute("data-theme")||"dark")});return tt.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>tt.disconnect()},[]);const w=E.useMemo(()=>E_(e),[e]),M=w.filter(tt=>tt.count>0).length,T=(w.reduce((tt,k)=>tt+k.count,0)/e.quarters_analyzed).toFixed(1);E.useEffect(()=>{const tt=v.current;if(!tt)return;const k=V3(tt,{width:tt.clientWidth,height:nC,layout:{background:{type:Ac.Solid,color:"transparent"},textColor:ni("--chart-text"),fontSize:11},grid:{vertLines:{visible:!1},horzLines:{color:ni("--chart-grid")}},rightPriceScale:{borderVisible:!1,scaleMargins:{top:.1,bottom:0}},timeScale:{borderVisible:!1,fixLeftEdge:!0,fixRightEdge:!0,tickMarkFormatter:
17R=>{const q=new Date(R);return`Q${Math.ceil((q.getMonth()+1)/3)} '${String(q.getFullYear()).slice(2)}`}},handleScroll:!1,handleScale:!1,crosshair:{horzLine:{visible:!1,labelVisible:!1},vertLine:{labelVisible:!1}}}),Y=w.map(R=>({time:R.time,value:R.count,color:R.recent?ni("--chart-bar-recent"):ni("--chart-bar-historical")}));k.addSeries(Tj,{priceFormat:{type:"volume"},priceLineVisible:!1,lastValueVisible:!1}).setData(Y),k.timeScale().fitContent();const it=()=>{tt&&k.applyOptions({width:tt.clientWidth})},ht=new ResizeObserver(it);return ht.observe(tt),()=>{ht.disconnect(),k.remove()}},[w,y]);const j=E.useMemo(()=>Vm(e.ticker),[e.ticker]),_=(e.trend_pct/e.quarters_analyzed).toFixed(1),N=(Math.abs(e.trend_pct)/500).toFixed(2),D=Math.round(M/e.quarters_analyzed*100),z=w.slice(-4).filter(tt=>tt.count>0).length,K=w.slice(0,-4).filter(tt=>tt.count>0).length,Z=w.length>4?K/(w.length-4):0,U=z/4,W=Z>0?(U/Z).toFixed(2):"N/A",nt=E.useMemo(()=>{let tt=0;for(let k=w.length-1;k>=0&&w[k].count>0;k--)tt++;return tt},[w]),ct=E.useMemo(()=>{let tt=0,k=0;for(const Y of w)Y.count>0?(k++,tt=Math.max(tt,k)):k=0;return tt},[w]),ut=E.useMemo(()=>{let tt=0,k=0;for(const Y of w)Y.count===0?(k++,tt=Math.max(tt,k)):k=0;return tt},[w]),gt=E.useMemo(()=>{let tt=0;for(const k of w)tt=V2*(k.count>0?1:0)+(1-V2)*tt;return(tt*100).toFixed(1)},[w]),mt=E.useMemo(()=>h==="EMERGING"?`Mentions have been increasing over time with recent quarters showing notably higher activity (current streak: ${nt} consecutive mentions).`:h==="NONE"?"Mentions have been declining over time. The word appears less frequently in recent earnings calls.":`Mentions have been stable over time with recent quarters showing consistent activity (current streak: ${nt} consecutive mentions).`,[h,nt]);return p.jsxs("div",{className:"h-full overflow-y-auto p-6 max-md:p-4",onClick:tt=>tt.stopPropagation(),children:[p.jsxs("div",{className:"mb-8 flex items-start justify-between",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-display text-heading font-bold text-[var(--text-primary)]",children:e.target_word}),p.jsx(je,{variant:"blue",children:e.status==="active"?"OPEN":"CLOSED"})]}),p.jsx("div",{className:"mt-1 font-mono text-ui text-[var(--text-tertiary)]",children:e.ticker})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(co,{href:zm(e.ticker),onClick:tt=>tt.stopPropagation(),children:"Kalshi"}),p.jsx(Gm,{onClick:t,children:p.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:p.jsx("path",{d:"M2 2l10 10M12 2L2 12"})})})]})]}),p.jsxs(zr,{className:"mb-4",children:[p.jsx(lo,{icon:p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("rect",{x:"48",y:"80",width:"416",height:"384",rx:"48"}),p.jsx("path",{d:"M128 48v32M384 48v32M48 192h416"})]}),title:"Strike Details",trailing:p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx(je,{variant:Yc[e.ai_recommendation],children:Zc[e.ai_recommendation]}),p.jsx(je,{variant:u==="HIGH"?"mint":"amber",children:u})]}),className:"mb-1"}),p.jsxs("p",{className:"mb-3 font-body text-ui text-[var(--text-secondary)]",children:[e.company_name," · Closes ",l3(e.close_time)]}),p.jsxs("div",{className:"mb-3 grid grid-cols-3 gap-2 max-sm:grid-cols-2",children:[p.jsx(qt,{variant:"inset",label:"YES Price",value:`${i}¢`,color:"mint"}),p.jsx(qt,{variant:"inset",label:"NO Price",value:`${r}¢`,color:"coral"}),p.jsx(qt,{variant:"inset",label:"Fair Value",value:`${o}¢ / ${c}¢`}),p.jsx(qt,{variant:"inset",label:"Edge",value:`+${e.ev_value}.0¢`,color:"mint"}),p.jsx(qt,{variant:"inset",label:"Volume",value:j.toLocaleString()}),p.jsx(qt,{variant:"inset",label:"Mention Rate",value:`${e.historical_pct}%`})]}),p.jsx("div",{className:"font-mono text-label text-[var(--text-tertiary)]",children:"Expected Value per Contract"}),p.jsxs("div",{className:"mt-1.5 grid grid-cols-2 gap-2",children:[p.jsxs("div",{className:`flex items-center justify-between rounded-lg p-3 shadow-[var(--shadow-xs)] ${d>0?"bg-[var(--mint-bg)]":"bg-[var(--bg-glass-hover)]"}`,children:[p.jsx("span",{className:"font-mono text-ui text-[var(--text-secondary)]",children:"YES"}),p.jsxs("span",{className:`font-display text-heading font-bold ${d>0?"text-[var(--mint-text)]":"text-[var(--text-secondary)]"}`,children:[d>0?"+":"",d,".0¢"]})]}),p.jsxs("div",{className:`flex items-center justify-between rounded-lg p-3 shadow-[var(--shadow-xs)] ${m>0?"bg-[var(--mint-bg)]":"bg-[var(--bg-glass-hover)]"}`,children:[p.jsx("span",{className:"font-mono text-ui text-[var(--text-secondary)]",children:"NO"}),p.jsxs("span",{className:`font-display text-heading font-bold ${m>0?"text-[var(--mint-text)]":"text-[var(--text-secondary)]"}`,children:[m>0?"+":"",m,".0¢"]})]})]})]}),p.jsxs(zr,{children:[p.jsx(lo,{icon:p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("rect",{x:"96",y:"224",width:"80",height:"192",rx:"8"}),p.jsx("rect",{x:"224",y:"128",width:"80",height:"288",rx:"8"}),p.jsx("rect",{x:"352",y:"192",width:"80",height:"224",rx:"8"})]}),title:"Historical Mentions",trailing:p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsxs(je,{variant:e.trend_pct>0?"mint":e.trend_pct<0?"coral":"neutral",children:[e.trend_pct>0?"+":"",e.trend_pct,"%"]}),p.jsx(je,{variant:h==="EMERGING"?"mint":"neutral",children:h})]}),className:"mb-1"}),p.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[p.jsxs("span",{className:"font-mono text-label text-[var(--text-tertiary)]",children:["Earnings call analysis across ",e.quarters_analyzed," quarters"]}),p.jsxs("span",{className:"font-mono text-label font-bold text-[var(--text-secondary)]",children:[e.historical_pct,"% hit rate"]})]}),p.jsxs("div",{className:"mb-3",children:[p.jsx("div",{ref:v,className:"w-full rounded-md"}),p.jsxs("div",{className:"mt-1 flex items-center justify-end gap-3 font-mono text-label text-[var(--text-tertiary)]",children:[p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-electric-blue opacity-40"}),"Historical"]}),p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-electric-blue"}),"Recent (4Q)"]})]})]}),p.jsx("div",{className:"mb-3 rounded-md bg-[var(--bg-glass-hover)] px-3 py-2 font-body text-ui text-[var(--text-secondary)]",children:mt}),p.jsxs("div",{className:"mb-3 hidden grid-cols-3 gap-2 max-md:grid",children:[p.jsx(qt,{variant:"inset",label:"Total Q",value:String(e.quarters_analyzed)}),p.jsx(qt,{variant:"inset",label:"Mentioned Q",value:String(M)}),p.jsx(qt,{variant:"inset",label:"Avg / Q",value:T}),p.jsx(qt,{variant:"inset",label:"Slope",value:`${Number(_)>0?"+":""}${_}%`}),p.jsx(qt,{variant:"inset",label:"r.s (R²)",value:N}),p.jsx(qt,{variant:"inset",label:"Consistency",value:`${D}%`}),p.jsx(qt,{variant:"inset",label:"Recency",value:typeof W=="string"?W:`${W}x`})]}),p.jsxs("div",{className:"mb-3 grid grid-cols-3 gap-2 max-md:hidden",children:[p.jsx(qt,{variant:"inset",label:"Total",value:String(e.quarters_analyzed),sublabel:"quarters"}),p.jsx(qt,{variant:"inset",label:"Mentioned",value:String(M),sublabel:"quarters"}),p.jsx(qt,{variant:"inset",label:"Average",value:T,sublabel:"per quarter"})]}),p.jsxs("div",{className:"mb-3 grid grid-cols-4 gap-2 max-md:hidden",children:[p.jsx(qt,{variant:"inset",label:"Slope",value:`${Number(_)>0?"+":""}${_}%`,sublabel:"per quarter"}),p.jsx(qt,{variant:"inset",label:"r.s (R²)",value:N}),p.jsx(qt,{variant:"inset",label:"Consistency",value:`${D}%`}),p.jsx(qt,{variant:"inset",label:"Recency",value:typeof W=="string"?W:`${W}x`,sublabel:"vs historical"})]}),p.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2 font-mono text-label",children:[p.jsxs(je,{variant:"blue",size:"md",className:"font-bold",children:["Current streak: ",nt," mentions"]}),p.jsxs("span",{className:"text-[var(--text-secondary)]",children:["Longest mention streak: ",ct]}),p.jsxs("span",{className:"text-[var(--text-secondary)]",children:["Longest miss streak: ",ut]})]}),p.jsxs("div",{className:"flex items-center justify-between border-t border-[var(--div
17ider)] pt-2 font-mono text-ui",children:[p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Exponentially weighted rate"}),p.jsxs("span",{className:"font-bold text-[var(--mint-text)]",children:[gt,"%"]})]})]})]})}function T_({group:e,onClose:t}){const[i,r]=E.useState(null),[o,c]=E.useState(!1),u=d3(e.earnings_time),h=m3(e),d=E.useMemo(()=>e.markets.reduce((m,v)=>m+Vm(v.ticker),0),[e.markets]);return p.jsx("div",{className:"animate-fade-in overflow-hidden rounded-xl bg-[var(--bg-surface)] shadow-[var(--shadow-card)]",children:p.jsxs("div",{className:`flex ${i?"max-md:flex-col":""}`,children:[p.jsxs("div",{className:`overflow-y-auto p-6 max-md:p-4 transition-all duration-300 ${i?"w-1/2 max-md:w-full":"w-full"}`,children:[p.jsxs("div",{className:"mb-5",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-md border border-[var(--selected-ring)] bg-[var(--sidebar-active-bg)] font-mono text-cell font-bold text-electric-blue",children:o?e.stock_ticker.slice(0,2):p.jsx("img",{src:a3(e.stock_ticker),alt:e.stock_ticker,className:"h-full w-full object-cover",onError:()=>c(!0)})}),p.jsx("span",{className:"font-display text-lg font-bold text-[var(--text-primary)] max-md:hidden",children:e.company_name}),p.jsxs("span",{className:"font-mono text-ui text-[var(--text-secondary)] max-md:hidden",children:["(",e.stock_ticker,")"]}),p.jsx("span",{className:"hidden font-display text-lg font-bold text-[var(--text-primary)] max-md:inline",children:e.stock_ticker}),p.jsx(co,{href:zm(e.markets[0].ticker),children:"Kalshi"}),p.jsx(co,{href:o3(e.stock_ticker),children:"Live Call"}),u&&p.jsx(je,{variant:"coral",children:"CLOSING SOON"}),p.jsx("span",{className:"ml-auto flex-shrink-0",children:p.jsx(Gm,{onClick:t,children:p.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:p.jsx("path",{d:"M2 2l10 10M12 2L2 12"})})})})]}),p.jsxs("div",{className:"mt-3 flex items-center gap-3 pl-11 font-mono text-ui text-[var(--text-secondary)] max-md:pl-0 max-md:mt-2 max-md:flex-wrap",children:[p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:[p.jsx("rect",{x:"48",y:"80",width:"416",height:"384",rx:"48"}),p.jsx("path",{d:"M128 48v32M384 48v32M48 192h416"})]}),c3(e.earnings_time)]}),p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]}),e.word_count," ",e.word_count===1?"strike":"strikes"]}),p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:[p.jsx("rect",{x:"80",y:"80",width:"352",height:"352",rx:"16"}),p.jsx("path",{d:"M160 288V224M256 288V176M352 288V240"})]}),p3(d)," vol"]})]}),p.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5 pl-11 font-mono text-ui max-md:pl-0 max-md:mt-2",children:[e.buy_yes_count>0&&p.jsxs("span",{className:"font-bold text-[var(--mint-text)]",children:[e.buy_yes_count," BUY YES"]}),e.buy_yes_count>0&&(e.buy_no_count>0||e.pass_count>0)&&p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),e.buy_no_count>0&&p.jsxs("span",{className:"font-bold text-[var(--coral-text)]",children:[e.buy_no_count," BUY NO"]}),e.buy_no_count>0&&e.pass_count>0&&p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),e.pass_count>0&&p.jsxs("span",{className:"font-bold text-[var(--amber-text)]",children:[e.pass_count," PASS"]}),p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"·"}),p.jsx("span",{className:"text-[var(--text-secondary)]",children:"Best:"}),p.jsxs("span",{className:"font-bold text-[var(--text-primary)]",children:["â",e.best_word,"â"]}
17),p.jsxs("span",{className:"font-bold text-[var(--mint-text)]",children:["+",e.best_probability,"%"]}),p.jsxs(je,{variant:Yc[h],className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"64",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]}),Zc[h]]})]})]}),p.jsx("div",{className:`grid gap-3 ${i?"grid-cols-2 max-md:grid-cols-2 max-sm:grid-cols-1":"grid-cols-4 max-md:grid-cols-2 max-sm:grid-cols-1"}`,children:e.markets.map(m=>p.jsx(j_,{market:m,isSelected:i?.ticker===m.ticker,onClick:()=>r(i?.ticker===m.ticker?null:m)},m.ticker))})]}),i&&p.jsx("div",{className:"animate-slide-in-right w-1/2 border-l border-[var(--divider)] bg-[var(--bg-surface)] max-md:w-full max-md:border-l-0 max-md:border-t",children:p.jsx(C_,{market:i,onClose:()=>r(null)})})]})})}function j_({market:e,isSelected:t,onClick:i}){const r=h3(e),o=f3(e),c=100-o;return p.jsxs("div",{className:`group cursor-pointer rounded-lg p-3 transition-all hover:bg-[var(--bg-glass-active)] ${t?"bg-[var(--selected-bg)] ring-1 ring-[var(--selected-ring)] shadow-[var(--shadow-sm)]":"bg-[var(--bg-glass)] shadow-[var(--shadow-sm)]"}`,onClick:i,children:[p.jsxs("div",{className:"mb-2 flex items-start justify-between gap-2",children:[p.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[p.jsxs("span",{className:"font-display text-ui font-bold text-[var(--text-primary)] group-hover:underline group-hover:decoration-electric-blue/40 group-hover:underline-offset-2",children:['"',e.target_word,'"']}),p.jsx(je,{variant:Yc[e.ai_recommendation],children:Zc[e.ai_recommendation]}),p.jsx(je,{variant:r==="HIGH"?"mint":"amber",children:r})]}),p.jsxs("span",{className:"flex shrink-0 items-center gap-1 rounded-md border border-[var(--price-pill-border)] bg-[var(--price-pill-bg)] px-2 py-1 font-mono text-label font-medium text-[var(--text-tertiary)] transition-colors group-hover:border-electric-blue/30 group-hover:text-electric-blue",children:["Details",p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor",children:p.jsx("path",{d:"M6 3l5 5-5 5V3z"})})]})]}),p.jsxs("div",{className:"space-y-1.5 font-mono text-ui",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"AI Prob"}),p.jsxs("span",{className:"font-bold text-[var(--text-primary)]",children:[e.ai_probability,"%"]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("span",{className:"text-[var(--text-tertiary)]",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"mr-1 inline",children:[p.jsx("rect",{x:"96",y:"224",width:"80",height:"192",rx:"8"}),p.jsx("rect",{x:"224",y:"128",width:"80",height:"288",rx:"8"}),p.jsx("rect",{x:"352",y:"192",width:"80",height:"224",rx:"8"})]}),"Mention Rate"]}),p.jsxs("span",{className:"font-bold text-[var(--text-primary)]",children:[e.historical_pct,"%"]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("span",{className:"text-[var(--text-tertiary)]",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"mr-1 inline",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]}),"Trend"]}),p.jsxs(je,{variant:e.trend_pct>0?"mint":e.trend_pct<0?"coral":"neutral",children:[e.trend_pct>0?"+":"",e.trend_pct,"%"]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Current"}),p.jsxs("span",{className:"text-[var(--text-secondary)]",children:[o,"¢ ",p.jsx("span",{className:"text-[var(--mint-text)]",children:"YES"})," / ",c,"¢ ",p.jsx("span",{className:"text-[var(--coral-text)]",children:"NO"})]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Edge"}),p.jsxs("span",{className:"font-bold text-[var(--mint-text)]",children:["+",e.ev_value,".0¢"]})]})]})]})}function __(e){return e.markets.reduce((t,i)=>t+Vm(i.ticker),0)}function A_({group:e,isExpanded:t,onToggle:i}){const r=m3(e),o=d3(e.earnings_time),c=a3(e.stock_ticker),[u,h]=E.useState(!1),d=E.useMemo(()=>__(e),[e]);return t?p.jsx(T_,{group:e,onClose:i}
17):p.jsx(p.Fragment,{children:p.jsxs("div",{className:`cursor-pointer select-none rounded-xl bg-[var(--bg-surface)]/80 backdrop-blur-md px-5 py-3.5 shadow-[var(--shadow-card)] transition-[background-color,box-shadow] duration-200 hover:bg-[var(--bg-glass-hover)]/90 hover:shadow-[var(--shadow-card-hover)] max-md:px-3.5 max-md:py-3 ${o?"animate-urgent border border-[var(--coral-text)]/25":""}`,onClick:i,children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-md border border-[var(--selected-ring)] bg-[var(--sidebar-active-bg)] font-mono text-cell font-bold text-electric-blue",children:u?e.stock_ticker.slice(0,2):p.jsx("img",{src:c,alt:e.stock_ticker,className:"h-full w-full object-cover",onError:()=>h(!0)})}),p.jsx("span",{className:"font-display text-lg font-bold text-[var(--text-primary)] max-md:hidden",children:e.company_name}),p.jsxs("span",{className:"font-mono text-ui text-[var(--text-secondary)] max-md:hidden",children:["(",e.stock_ticker,")"]}),p.jsx("span",{className:"hidden font-display text-lg font-bold text-[var(--text-primary)] max-md:inline",children:e.stock_ticker}),p.jsx(co,{href:zm(e.markets[0].ticker),onClick:m=>m.stopPropagation(),children:"Kalshi"}),p.jsx(co,{href:o3(e.stock_ticker),onClick:m=>m.stopPropagation(),children:"Live Call"}),o&&p.jsx(je,{variant:"coral",children:"CLOSING SOON"}),p.jsx("span",{className:"ml-auto flex-shrink-0",children:p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",className:`text-[var(--text-tertiary)] transition-transform duration-200 ${t?"rotate-180":""}`,children:p.jsx("path",{d:"M8 11L3 5.5h10L8 11Z"})})})]}),p.jsxs("div",{className:"mt-3 flex items-center gap-3 pl-11 font-mono text-ui text-[var(--text-secondary)] max-md:pl-0 max-md:mt-2 max-md:flex-wrap",children:[p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:[p.jsx("rect",{x:"48",y:"80",width:"416",height:"384",rx:"48"}),p.jsx("path",{d:"M128 48v32M384 48v32M48 192h416"})]}),c3(e.earnings_time)]}),p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]}),e.word_count," ",e.word_count===1?"strike":"strikes"]}),p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:[p.jsx("rect",{x:"80",y:"80",width:"352",height:"352",rx:"16"}),p.jsx("path",{d:"M160 288V224M256 288V176M352 288V240"})]}),p3(d)," vol"]})]}),p.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5 pl-11 font-mono text-ui max-md:pl-0 max-md:mt-2",children:[e.buy_yes_count>0&&p.jsxs("span",{className:"font-bold text-[var(--mint-text)]",children:[e.buy_yes_count," BUY YES"]}),e.buy_yes_count>0&&(e.buy_no_count>0||e.pass_count>0)&&p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),e.buy_no_count>0&&p.jsxs("span",{className:"font-bold text-[var(--coral-text)]",children:[e.buy_no_count," BUY NO"]}),e.buy_no_count>0&&e.pass_count>0&&p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"|"}),e.pass_count>0&&p.jsxs("span",{className:"font-bold text-[var(--amber-text)]",children:[e.pass_count," PASS"]}),p.jsx("span",{className:"text-[var(--text-tertiary)]",children:"·"}),p.jsx("span",{className:"text-[var(--text-secondary)]",children:"Best:"}),p.jsxs("span",{className:"font-bold text-[var(--text-primary)]",children:["â",e.best_word,"â"]}
17),p.jsxs("span",{className:"font-bold text-[var(--mint-text)]",children:["+",e.best_probability,"%"]}),p.jsxs(je,{variant:Yc[r],className:"inline-flex items-center gap-1",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"64",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]}),Zc[r]]})]})]})})}function Km({icon:e,title:t,subtitle:i,className:r,...o}){return p.jsxs("div",{className:Pe("flex flex-col items-center gap-2 py-10 text-center",r),...o,children:[p.jsx("span",{className:"text-[var(--text-tertiary)] opacity-40",children:e}),p.jsx("span",{className:"font-body text-ui font-medium text-[var(--text-tertiary)]",children:t}),i&&p.jsx("span",{className:"text-label text-[var(--text-tertiary)] opacity-60",children:i})]})}function J3({message:e="Loadingâ¦"}){return p.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 py-20",children:[p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"animate-spin text-electric-blue",children:[p.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.2"}),p.jsx("path",{d:"M12 2a10 10 0 019.8 8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),p.jsx("span",{className:"font-body text-ui text-[var(--text-tertiary)]",children:e})]})}function $3({message:e,onRetry:t}){return p.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 py-20",children:[p.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"40",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--coral-text)]",children:[p.jsx("path",{d:"M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z"}),p.jsx("path",{d:"M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z"}),p.jsx("circle",{cx:"256",cy:"397.25",r:"20",fill:"currentColor",stroke:"none"})]}),p.jsx("span",{className:"font-body text-ui text-[var(--text-secondary)]",children:e}),t&&p.jsx("button",{onClick:t,className:"mt-1 cursor-pointer rounded-md border border-[var(--border-custom)] bg-[var(--price-pill-bg)] px-4 py-1.5 font-display text-ui font-medium text-[var(--text-secondary)] transition-colors hover:border-electric-blue/30 hover:text-electric-blue",children:"Retry"})]})}function N_({markets:e,isLoading:t,error:i,sortBy:r,search:o,expandedCompanies:c,onToggleCompany:u}){const h=E.useMemo(()=>{const m=new Map;for(const v of e){const y=m.get(v.stock_ticker);if(y){y.markets.push(v),y.word_count=y.markets.length,v.close_time<y.earliest_close&&(y.earliest_close=v.close_time),v.ai_recommendation==="buy_yes"?y.buy_yes_count++:v.ai_recommendation==="buy_no"?y.buy_no_count++:y.pass_count++;const x=B2(v.ai_probability);x==="likely"?y.likely_count++:x==="uncertain"?y.uncertain_count++:y.unlikely_count++,v.ai_probability>y.best_probability&&(y.best_word=v.target_word,y.best_probability=v.ai_probability)}else{const x=B2(v.ai_probability);m.set(v.stock_ticker,{company_name:v.company_name,stock_ticker:v.stock_ticker,markets:[v],earliest_close:v.close_time,earnings_time:v.earnings_time,word_count:1,buy_yes_count:v.ai_recommendation==="buy_yes"?1:0,buy_no_count:v.ai_recommendation==="buy_no"?1:0,pass_count:v.ai_recommendation==="pass"?1:0,likely_count:x==="likely"?1:0,uncertain_count:x==="uncertain"?1:0,unlikely_count:x==="unlikely"?1:0,best_word:v.target_word,best_probability:v.ai_probability})}}return lC(Array.from(m.values()),r)},[e,r]),d=E.useMemo(()=>{if(!o.trim())return h;const m=o.toLowerCase();return h.filter(v=>v.company_name.toLowerCase().includes(m)||v.stock_ticker.toLowerCase().includes(m)||v.markets.some(y=>y.target_word.toLowerCase().includes(m)))},[h,o]);return t?p.jsx(J3,{message:"Loading marketsâ¦"}):i?p.jsx($3,{message:i}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"flex-1 space-y-3 overflow-y-auto p-4 max-md:space-y-2 max-md:p-2",children:d.length===0&&o.trim()?p.jsx(Km,{icon:p.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"32",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z"}),p.jsx("path",{d:"M338.29 338.29L448 448"})]}),title:`No results for â${o}
17â`,subtitle:"Try a different company name, ticker, or word",className:"animate-fade-in py-16"}):d.map((m,v)=>p.jsx("div",{className:"animate-slide-up",style:{animationDelay:`${v*40}ms`},children:p.jsx(A_,{group:m,isExpanded:c.has(m.stock_ticker),onToggle:()=>u(m.stock_ticker)})},m.stock_ticker))}),p.jsxs("div",{className:"flex shrink-0 flex-wrap gap-3 border-t border-border bg-[var(--bg-glass)] px-6 py-2.5 font-mono text-label text-[var(--text-tertiary)] backdrop-blur-[var(--glass-blur)] max-md:gap-2 max-md:px-4 max-md:py-2",children:[p.jsxs("span",{children:[d.length," companies"]}),p.jsxs("span",{className:"before:mr-3 before:content-['\\00b7']",children:[e.length," strikes"]}),p.jsx("span",{className:"before:mr-3 before:content-['\\00b7']",children:"Mock data"})]})]})}const R_="modulepreload",O_=function(e){return"/"+e},Py={},Wc=function(t,i,r){let o=Promise.resolve();if(i&&i.length>0){let m=function(v){return Promise.all(v.map(y=>Promise.resolve(y).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};var u=m;document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),d=h?.nonce||h?.getAttribute("nonce");o=m(i.map(v=>{if(v=O_(v),v in Py)return;Py[v]=!0;const y=v.endsWith(".css"),x=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${x}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":R_,y||(w.as="script"),w.crossOrigin="",w.href=v,d&&w.setAttribute("nonce",d),document.head.appendChild(w),y)return new Promise((M,S)=>{w.addEventListener("load",M),w.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${v}`)))})}))}function c(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return o.then(h=>{for(const d of h||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})};async function k_(){{const{mockPositions:e}=await Wc(async()=>{const{mockPositions:t}=await import("./mock-portfolio-BndCsaW9.js");return{mockPositions:t}},[]);return e}}async function D_(){{const{mockPnlHistory:e}=await Wc(async()=>{const{mockPnlHistory:t}=await import("./mock-portfolio-BndCsaW9.js");return{mockPnlHistory:t}},[]);return e}}async function L_(){{const{mockPortfolioSummary:e}=await Wc(async()=>{const{mockPortfolioSummary:t}=await import("./mock-portfolio-BndCsaW9.js");return{mockPortfolioSummary:t}},[]);return e}}function z_(){const[e,t]=E.useState([]),[i,r]=E.useState([]),[o,c]=E.useState(null),[u,h]=E.useState(!0),[d,m]=E.useState(null);return E.useEffect(()=>{let v=!1;return Promise.all([k_(),D_(),L_()]).then(([y,x,w])=>{v||(t(y),r(x),c(w),m(null))}).catch(y=>{v||m(y instanceof Error?y.message:"Failed to load portfolio")}).finally(()=>{v||h(!1)}),()=>{v=!0}},[]),{positions:e,pnlHistory:i,summary:o,isLoading:u,error:d}}function V_({onSave:e,onCancel:t}){const[i,r]=E.useState(""),[o,c]=E.useState(""),u=i.trim().length>0&&o.trim().length>0,h=d=>{d.preventDefault(),u&&e({api_key_id:i.trim(),private_key:o.trim()})};return p.jsxs(zr,{padding:"lg",children:[p.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[p.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-electric-blue/20 bg-[var(--sidebar-active-bg)]",children:p.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"40",strokeLinecap:"round",strokeLinejoin:"round",className:"text-electric-blue",children:[p.jsx("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 00-6.7 15c0 8.5 5.2 16.7 9.6 21.3 6.6 6.9 34.8 33 40 28 15.4-15 18.5-19 24.8-25.2 9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4 15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2 5-4.6 8.6-8.9 8.7-15.6.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5 22.8-15.5 24.1-21.6-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s19 9.2 30 9.2c6.9 0 8.9-3.5 15.8-7.3"}),p.jsx("circle",{cx:"348",cy:"161",r:"68"}),p.jsx("path",{d:"M390 76l48-48M416 100l48-48"})]})}),p.jsxs("div",{children:[p.jsx("h2",{className:"font-display text-lg font-bold text-[var(--text-primary)]",children:"Connect Kalshi Account"}),p.jsx("p",{className:"font-body text-ui text-[var(--text-secondary)]",children:"Enter your API credentials to sync your portfolio"})]})]}),p.jsxs("form",{onSubmit:h,className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"mb-1.5 block font-display text-ui font-bold text-[var(--text-primary)]",children:"API Key ID"}),p.jsx("input",{type:"text",value:i,onChange:d=>r(d.target.value),placeholder:"Enter your API key ID",className:"w-full rounded-lg border border-[var(--border-custom)] bg-[var(--bg-input)] px-3.5 py-2.5 font-body text-ui text-[var(--text-primary)] placeholder-[var(--text-tertiary)] outline-none transition-colors focus:border-electric-blue/50 focus:ring-1 focus:ring-electric-blue/30"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"mb-1.5 block font-display text-ui font-bold text-[var(--text-primary)]",children:"Private Key"}),p.jsx("textarea",{value:o,onChange:d=>c(d.target.value),placeholder:"Paste your private key (RSA PEM format)",rows:3,className:"w-full resize-none rounded-lg border border-[var(--border-custom)] bg-[var(--bg-input)] px-3.5 py-2.5 font-mono text-cell text-[var(--text-primary)] placeholder-[var(--text-tertiary)] outline-none transition-colors focus:border-electric-blue/50 focus:ring-1 focus:ring-electric-blue/30"})]}),p.jsxs("p",{className:"flex items-center gap-1.5 font-mono text-label text-[var(--text-tertiary)]",children:[p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:[p.jsx("rect",{x:"128",y:"208",width:"256",height:"272",rx:"32"}),p.jsx("path",{d:"M176 208V160a80 80 0 01160 0v48"})]}),"Stored locally in your browser. Never sent to our servers."]}),p.jsxs("div",{className:"flex gap-3 pt-1",children:[p.jsx("button",{type:"button",onClick:t,className:"flex-1 cursor-pointer rounded-lg border border-[var(--border-custom)] bg-transparent px-4 py-2.5 font-display text-ui font-bold text-[var(--text-secondary)] transition-colors hover:bg-[var(--bg-glass-hover)]",children:"Cancel"}),p.jsx("button",{type:"submit",disabled:!u,className:"flex-1 cursor-pointer rounded-lg bg-electric-blue px-4 py-2.5 font-display text-ui font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",children:"Connect Account"})]})]})]})}function B_({summary:e}){const[t,i]=E.useState("$"),r=t==="$"?Qa(e.total_pnl):`${e.total_pnl_pct>=0?"+":""}${e.total_pnl_pct.toFixed(1)}%`;return p.jsxs("div",{className:"grid grid-cols-4 gap-3 max-md:grid-cols-2",children:[p.jsx(qt,{label:"Total P&L",value:r,sublabel:`${Qa(e.realized_pnl)} realized`,color:e.total_pnl>=0?"mint":"coral",toggle:p.jsx("button",{onClick:()=>i(o=>o==="$"?"%":"$"),className:"ml-auto flex h-6 w-12 cursor-pointer items-center rounded-full bg-electric-blue/30 p-0.5 transition-colors",children:p.jsx("span",{className:`flex h-5 w-5 items-center justify-center rounded-full border border-electric-blue bg-[var(--bg-glass)] text-label font-bold text-[var(--blue-pill-text)] transition-transform ${t==="%"?"translate-x-[22px]":"translate-x-0"}`,children:t})})}),p.jsx(qt,{label:"Win Rate",value:`${e.win_rate}%`,sublabel:`${e.total_trades} trades`,color:e.win_rate>=50?"mint":"coral"}),p.jsx(qt,{label:"Total Trades",value:String(e.total_trades),sublabel:`${Qa(e.unrealized_pnl)} unrealized`}),p.jsx(qt,{label:"Exposure",value:`$${e.current_exposure.toFixed(2)}`,sublabel:"at risk"})]})}function P_({data:e}){const t=E.useRef(null),[i,r]=E.useState(()=>document.documentElement.getAttribute("data-theme")||"dark");return E.useEffect(()=>{const o=new MutationObserver(()=>{r(document.documentElement.getAttribute("data-theme")||"dark")});return o.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>o.disconnect()},[]),E.useEffect(()=>{const o=t.current;if(!o||e.length===0)return;const u=e[e.length-1].value>=0?ni("--mint-text"):ni("--coral-text"),h=V3(o,{width:o.clientWidth,height:iC,layout:{background:{type:Ac.Solid,color:"transparent"},textColor:ni("--chart-text"),fontSize:11},grid:{vertLines:{visible:!1},horzLines:{color:ni("--chart-grid")}},rightPriceScale:{borderVisible:!1},timeScale:{borderVisible:!1,fixLeftEdge:!0,fixRightEdge:!0},handleScroll:{mouseWheel:!0,pressedMouseMove:!0},handleScale:{axisPressedMouseMove:!0,mouseWheel:!0},crosshair:{horzLine:{labelVisible:!0},vertLine:{labelVisible:!0}}}),d=h.addSeries(Mj,{color:u,lineWidth:2,priceFormat:{type:"custom",formatter:y=>`$${y.toFixed(2)}`},lastValueVisible:!0,priceLineVisible:!1});d.setData(e.map(y=>({time:y.time,value:y.value}
17))),d.createPriceLine({price:0,color:ni("--chart-zero-line"),lineWidth:1,lineStyle:2,axisLabelVisible:!0,title:""}),h.timeScale().fitContent();const m=()=>{o&&h.applyOptions({width:o.clientWidth})},v=new ResizeObserver(m);return v.observe(o),()=>{v.disconnect(),h.remove()}},[e,i]),p.jsxs(zr,{children:[p.jsx(lo,{icon:p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M352 144h112v112"}),p.jsx("path",{d:"M48 368l144-144 96 96 160-160"})]}),title:"P&L Over Time",className:"mb-3"}),p.jsx("div",{ref:t,className:"w-full rounded-md"}),p.jsxs("div",{className:"mt-2 flex items-center justify-end gap-3 font-mono text-label text-[var(--text-tertiary)]",children:[p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsx("span",{className:"inline-block h-0.5 w-4 rounded-full bg-[var(--mint-text)]"}),"Cumulative P&L"]}),p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsx("span",{className:"inline-block h-px w-4 border-t border-dashed border-[var(--text-tertiary)]"}),"Baseline ($0)"]})]})]})}function An(e){const t=e.status==="closed"?e.exit_price??e.current_price:e.current_price,r=(t-e.entry_price)*e.quantity/100,o=(t-e.entry_price)/e.entry_price*100;return{dollars:r,pct:o}}function t5(e,t,i=!1){const r=[...e];switch(t){case"pnl_pct_desc":return r.sort((o,c)=>An(c).pct-An(o).pct);case"pnl_pct_asc":return r.sort((o,c)=>An(o).pct-An(c).pct);case"pnl_dollar_desc":return r.sort((o,c)=>An(c).dollars-An(o).dollars);case"pnl_dollar_asc":return r.sort((o,c)=>An(o).dollars-An(c).dollars);case"date_desc":return r.sort((o,c)=>{const u=i?o.closed_at??o.entered_at:o.entered_at,h=i?c.closed_at??c.entered_at:c.entered_at;return new Date(h).getTime()-new Date(u).getTime()});case"date_asc":return r.sort((o,c)=>{const u=i?o.closed_at??o.entered_at:o.entered_at,h=i?c.closed_at??c.entered_at:c.entered_at;return new Date(u).getTime()-new Date(h).getTime()});default:return r}}const e5=[{value:"date_desc",label:"Date (Newest)"},{value:"date_asc",label:"Date (Oldest)"},{value:"pnl_dollar_desc",label:"P&L $ (High-Low)"},{value:"pnl_dollar_asc",label:"P&L $ (Low-High)"},{value:"pnl_pct_desc",label:"P&L % (High-Low)"},{value:"pnl_pct_asc",label:"P&L % (Low-High)"}];var xo=px();const U_=dx(xo);function Uy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function n5(...e){return t=>{let i=!1;const r=e.map(o=>{const c=Uy(o,t);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<r.length;o++){const c=r[o];typeof c=="function"?c():Uy(e[o],null)}}}}function Se(...e){return E.useCallback(n5(...e),e)}function Rc(e){const t=H_(e),i=E.forwardRef((r,o)=>{const{children:c,...u}=r,h=E.Children.toArray(c),d=h.find(Y_);if(d){const m=d.props.children,v=h.map(y=>y===d?E.Children.count(m)>1?E.Children.only(null):E.isValidElement(m)?m.props.children:null:y);return p.jsx(t,{...u,ref:o,children:E.isValidElement(m)?E.cloneElement(m,void 0,v):null})}return p.jsx(t,{...u,ref:o,children:c})});return i.displayName=`${e}.Slot`,i}function H_(e){const t=E.forwardRef((i,r)=>{const{children:o,...c}=i;if(E.isValidElement(o)){const u=K_(o),h=G_(c,o.props);return o.type!==E.Fragment&&(h.ref=r?n5(r,u):u),E.cloneElement(o,h)}return E.Children.count(o)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Z_=Symbol("radix.slottable");function Y_(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Z_}function G_(e,t){const i={...t};for(const r in t){const o=e[r],c=t[r];/^on[A-Z]/.test(r)?o&&c?i[r]=(...h)=>{const d=c(...h);return o(...h),d}:o&&(i[r]=o):r==="style"?i[r]={...o,...c}:r==="className"&&(i[r]=[o,c].filter(Boolean).join(" "))}return{...e,...i}}function K_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var F_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=F_.reduce((e,t)=>
vendor: 4,286 bytes, line 17
17{const i=Rc(`Primitive.${t}`),r=E.forwardRef((o,c)=>{const{asChild:u,...h}=o,d=u?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(d,{...h,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function q_(e,t){e&&xo.flushSync(()=>e.dispatchEvent(t))}var i5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),X_="VisuallyHidden",I_=E.forwardRef((e,t)=>p.jsx(ee.span,{...e,ref:t,style:{...i5,...e.style}}));I_.displayName=X_;function Fm(e,t=[]){let i=[];function r(c,u){const h=E.createContext(u),d=i.length;i=[...i,u];const m=y=>{const{scope:x,children:w,...M}=y,S=x?.[e]?.[d]||h,T=E.useMemo(()=>M,Object.values(M));return p.jsx(S.Provider,{value:T,children:w})};m.displayName=c+"Provider";function v(y,x){const w=x?.[e]?.[d]||h,M=E.useContext(w);if(M)return M;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[m,v]}const o=()=>{const c=i.map(u=>E.createContext(u));return function(h){const d=h?.[e]||c;return E.useMemo(()=>({[`__scope${e}`]:{...h,[e]:d}}),[h,d])}};return o.scopeName=e,[r,W_(o,...t)]}function W_(...e){const t=e[0];if(e.length===1)return t;const i=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const u=r.reduce((h,{useScope:d,scopeName:m})=>{const y=d(c)[`__scope${m}`];return{...h,...y}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return i.scopeName=t.scopeName,i}function Q_(e){const t=e+"CollectionProvider",[i,r]=Fm(t),[o,c]=i(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:T,children:j}=S,_=zi.useRef(null),N=zi.useRef(new Map).current;return p.jsx(o,{scope:T,itemMap:N,collectionRef:_,children:j})};u.displayName=t;const h=e+"CollectionSlot",d=Rc(h),m=zi.forwardRef((S,T)=>{const{scope:j,children:_}=S,N=c(h,j),D=Se(T,N.collectionRef);return p.jsx(d,{ref:D,children:_})});m.displayName=h;const v=e+"CollectionItemSlot",y="data-radix-collection-item",x=Rc(v),w=zi.forwardRef((S,T)=>{const{scope:j,children:_,...N}=S,D=zi.useRef(null),z=Se(T,D),K=c(v,j);return zi.useEffect(()=>(K.itemMap.set(D,{ref:D,...N}),()=>{K.itemMap.delete(D)})),p.jsx(x,{[y]:"",ref:z,children:_})});w.displayName=v;function M(S){const T=c(e+"CollectionConsumer",S);return zi.useCallback(()=>{const _=T.collectionRef.current;if(!_)return[];const N=Array.from(_.querySelectorAll(`[${y}]`));return Array.from(T.itemMap.values()).sort((K,Z)=>N.indexOf(K.ref.current)-N.indexOf(Z.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w},M,r]}function oe(e,t,{checkForDefaultPrevented:i=!0}={}){return function(o){if(e?.(o),i===!1||!o.defaultPrevented)return t?.(o)}}var Ue=globalThis?.document?E.useLayoutEffect:()=>{},J_=mx[" useInsertionEffect ".trim().toString()]||Ue;function Hy({prop:e,defaultProp:t,onChange:i=()=>{},caller:r}){const[o,c,u]=$_({defaultProp:t,onChange:i}),h=e!==void 0,d=h?e:o;{const v=E.useRef(e!==void 0);E.useEffect(()=>{const y=v.current;y!==h&&console.warn(`${r} is changing from ${y?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,r])}const m=E.useCallback(v=>{if(h){const y=tA(v)?v(e):v;y!==e&&u.current?.(y)}else c(v)},[h,e,c,u]);return[d,m]}function $_({defaultProp:e,onChange:t}){const[i,r]=E.useState(e),o=E.useRef(i),c=E.useRef(t);return J_(()=>{c.current=t},[t]),E.useEffect(()=>{o.current!==i&&(c.current?.(i),o.current=i)},[i,o]),[i,r,c]}function tA(e){return typeof e=="function"}var eA=mx[" useId ".trim().toString()]||(()=>{}),nA=0;function qm(e){const[t,i]=E.useState(eA());return Ue(()=>{i(r=>r??String(nA++))},[e]),e||(t?`radix-${t}`:"")}var iA=E.createContext(void 0);function sA(e){const t=E.useContext(iA);return e||t||"ltr"}function Ts(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...i)=>t.current?.(...i),[])}function rA(e,t=globalThis?.document){const i=Ts(e);E.useEffect(()=>{const r=o=>{o.key==="Escape"&&i(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[i,t])}
vendor: 6,532 bytes, line 17
17var aA="DismissableLayer",Xd="dismissableLayer.update",oA="dismissableLayer.pointerDownOutside",lA="dismissableLayer.focusOutside",Zy,s5=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r5=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:h,...d}=e,m=E.useContext(s5),[v,y]=E.useState(null),x=v?.ownerDocument??globalThis?.document,[,w]=E.useState({}),M=Se(t,Z=>y(Z)),S=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=S.indexOf(T),_=v?S.indexOf(v):-1,N=m.layersWithOutsidePointerEventsDisabled.size>0,D=_>=j,z=hA(Z=>{const U=Z.target,W=[...m.branches].some(nt=>nt.contains(U));!D||W||(o?.(Z),u?.(Z),Z.defaultPrevented||h?.())},x),K=fA(Z=>{const U=Z.target;[...m.branches].some(nt=>nt.contains(U))||(c?.(Z),u?.(Z),Z.defaultPrevented||h?.())},x);return rA(Z=>{_===m.layers.size-1&&(r?.(Z),!Z.defaultPrevented&&h&&(Z.preventDefault(),h()))},x),E.useEffect(()=>{if(v)return i&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Zy=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),Yy(),()=>{i&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Zy)}},[v,x,i,m]),E.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),Yy())},[v,m]),E.useEffect(()=>{const Z=()=>w({});return document.addEventListener(Xd,Z),()=>document.removeEventListener(Xd,Z)},[]),p.jsx(ee.div,{...d,ref:M,style:{pointerEvents:N?D?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,K.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,z.onPointerDownCapture)})});r5.displayName=aA;var cA="DismissableLayerBranch",uA=E.forwardRef((e,t)=>{const i=E.useContext(s5),r=E.useRef(null),o=Se(t,r);return E.useEffect(()=>{const c=r.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),p.jsx(ee.div,{...e,ref:o})});uA.displayName=cA;function hA(e,t=globalThis?.document){const i=Ts(e),r=E.useRef(!1),o=E.useRef(()=>{});return E.useEffect(()=>{const c=h=>{if(h.target&&!r.current){let d=function(){a5(oA,i,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,i]),{onPointerDownCapture:()=>r.current=!0}}function fA(e,t=globalThis?.document){const i=Ts(e),r=E.useRef(!1);return E.useEffect(()=>{const o=c=>{c.target&&!r.current&&a5(lA,i,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,i]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yy(){const e=new CustomEvent(Xd);document.dispatchEvent(e)}function a5(e,t,i,{discrete:r}){const o=i.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});t&&o.addEventListener(e,t,{once:!0}),r?q_(o,c):o.dispatchEvent(c)}var cd="focusScope.autoFocusOnMount",ud="focusScope.autoFocusOnUnmount",Gy={bubbles:!1,cancelable:!0},dA="FocusScope",o5=E.forwardRef((e,t)=>{const{loop:i=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...u}=e,[h,d]=E.useState(null),m=Ts(o),v=Ts(c),y=E.useRef(null),x=Se(t,S=>d(S)),w=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let S=function(N){if(w.paused||!h)return;const D=N.target;h.contains(D)?y.current=D:Bi(y.current,{select:!0})},T=function(N){if(w.paused||!h)return;const D=N.relatedTarget;D!==null&&(h.contains(D)||Bi(y.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const z of N)z.removedNodes.length>0&&Bi(h)};document.addEventListener("focusin",S),document.addEventListener("focusout",T);const _=new MutationObserver(j);return h&&_.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",T),_.disconnect()}}},[r,h,w.paused]),E.useEffect(()=>{if(h){Fy.add(w);const S=document.activeElement;if(!h.contains(S)){const j=new CustomEvent(cd,Gy);h.addEventListener(cd,m),h.dispatchEvent(j),j.defaultPrevented||(mA(xA(l5(h)),{select:!0}),document.activeElement===S&&Bi(h))}return()=>{h.removeEventListener(cd,m),setTimeout(()=>{const j=new CustomEvent(ud,Gy);h.addEventListener(ud,v),h.dispatchEvent(j),j.defaultPrevented||Bi(S??document.body,{select:!0}),h.removeEventListener(ud,v),Fy.remove(w)},0)}}},[h,m,v,w]);const M=E.useCallback(S=>{if(!i&&!r||w.paused)return;const T=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,j=document.activeElement;if(T&&j){const _=S.currentTarget,[N,D]=pA(_);N&&D?!S.shiftKey&&j===D?(S.preventDefault(),i&&Bi(N,{select:!0})):S.shiftKey&&j===N&&(S.preventDefault(),i&&Bi(D,{select:!0})):j===_&&S.preventDefault()}},[i,r,w.paused]);return p.jsx(ee.div,{tabIndex:-1,...u,ref:x,onKeyDown:M})});o5.displayName=dA;function mA(e,{select:t=!1}={}){const i=document.activeElement;for(const r of e)if(Bi(r,{select:t}),document.activeElement!==i)return}function pA(e){const t=l5(e),i=Ky(t,e),r=Ky(t.reverse(),e);return[i,r]}function l5(e){const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t}function Ky(e,t){for(const i of e)if(!gA(i,{upTo:t}))return i}function gA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vA(e){return e instanceof HTMLInputElement&&"select"in e}function Bi(e,{select:t=!1}={}){if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&vA(e)&&t&&e.select()}}var Fy=yA();function yA(){let e=[];return{add(t){const i=e[0];t!==i&&i?.pause(),e=qy(e,t),e.unshift(t)},remove(t){e=qy(e,t),e[0]?.resume()}}}function qy(e,t){const i=[...e],r=i.indexOf(t);return r!==-1&&i.splice(r,1),i}function xA(e){return e.filter(t=>t.tagName!=="A")}var bA="Portal",c5=E.forwardRef((e,t)=>
vendor: 6,335 bytes, lines 17-32
17{const{container:i,...r}=e,[o,c]=E.useState(!1);Ue(()=>c(!0),[]);const u=i||o&&globalThis?.document?.body;return u?U_.createPortal(p.jsx(ee.div,{...r,ref:t}),u):null});c5.displayName=bA;var hd=0;function wA(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xy()),document.body.insertAdjacentElement("beforeend",e[1]??Xy()),hd++,()=>{hd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hd--}},[])}function Xy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nn=function(){return Nn=Object.assign||function(t){for(var i,r=1,o=arguments.length;r<o;r++){i=arguments[r];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(t[c]=i[c])}return t},Nn.apply(this,arguments)};function u5(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]]);return i}function SA(e,t,i){if(i||arguments.length===2)for(var r=0,o=t.length,c;r<o;r++)(c||!(r in t))&&(c||(c=Array.prototype.slice.call(t,0,r)),c[r]=t[r]);return e.concat(c||Array.prototype.slice.call(t))}var dc="right-scroll-bar-position",mc="width-before-scroll-bar",MA="with-scroll-bars-hidden",EA="--removed-body-scroll-bar-size";function fd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CA(e,t){var i=E.useState(function(){return{value:e,callback:t,facade:{get current(){return i.value},set current(r){var o=i.value;o!==r&&(i.value=r,i.callback(r,o))}}}})[0];return i.callback=t,i.facade}var TA=typeof window<"u"?E.useLayoutEffect:E.useEffect,Iy=new WeakMap;function jA(e,t){var i=CA(null,function(r){return e.forEach(function(o){return fd(o,r)})});return TA(function(){var r=Iy.get(i);if(r){var o=new Set(r),c=new Set(e),u=i.current;o.forEach(function(h){c.has(h)||fd(h,null)}),c.forEach(function(h){o.has(h)||fd(h,u)})}Iy.set(i,e)},[e]),i}function _A(e){return e}function AA(e,t){t===void 0&&(t=_A);var i=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(c){var u=t(c,r);return i.push(u),function(){i=i.filter(function(h){return h!==u})}},assignSyncMedium:function(c){for(r=!0;i.length;){var u=i;i=[],u.forEach(c)}i={push:function(h){return c(h)},filter:function(){return i}}},assignMedium:function(c){r=!0;var u=[];if(i.length){var h=i;i=[],h.forEach(c),u=i}var d=function(){var v=u;u=[],v.forEach(c)},m=function(){return Promise.resolve().then(d)};m(),i={push:function(v){u.push(v),m()},filter:function(v){return u=u.filter(v),i}}}};return o}function NA(e){e===void 0&&(e={});var t=AA(null);return t.options=Nn({async:!0,ssr:!1},e),t}var h5=function(e){var t=e.sideCar,i=u5(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,Nn({},i))};h5.isSideCarExport=!0;function RA(e,t){return e.useMedium(t),h5}var f5=NA(),dd=function(){},Qc=E.forwardRef(function(e,t){var i=E.useRef(null),r=E.useState({onScrollCapture:dd,onWheelCapture:dd,onTouchMoveCapture:dd}),o=r[0],c=r[1],u=e.forwardProps,h=e.children,d=e.className,m=e.removeScrollBar,v=e.enabled,y=e.shards,x=e.sideCar,w=e.noRelative,M=e.noIsolation,S=e.inert,T=e.allowPinchZoom,j=e.as,_=j===void 0?"div":j,N=e.gapMode,D=u5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=x,K=jA([i,t]),Z=Nn(Nn({},D),o);return E.createElement(E.Fragment,null,v&&E.createElement(z,{sideCar:f5,removeScrollBar:m,shards:y,noRelative:w,noIsolation:M,inert:S,setCallbacks:c,allowPinchZoom:!!T,lockRef:i,gapMode:N}),u?E.cloneElement(E.Children.only(h),Nn(Nn({},Z),{ref:K})):E.createElement(_,Nn({},Z,{className:d,ref:K}),h))});Qc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qc.classNames={fullWidth:mc,zeroRight:dc};var OA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OA();return t&&e.setAttribute("nonce",t),e}function DA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function LA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zA=function(){var e=0,t=null;return{add:function(i){e==0&&(t=kA())&&(DA(t,i),LA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VA=function(){var e=zA();return function(t,i){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},d5=function(){var e=VA(),t=function(i){var r=i.styles,o=i.dynamic;return e(r,o),null};return t},BA={left:0,top:0,right:0,gap:0},md=function(e){return parseInt(e||"",10)||0},PA=function(e){var t=window.getComputedStyle(document.body),i=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[md(i),md(r),md(o)]},UA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BA;var t=PA(e),i=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-i+t[2]-t[0])}},HA=d5(),Rr="data-scroll-locked",ZA=function(e,t,i,r){var o=e.left,c=e.top,u=e.right,h=e.gap;return i===void 0&&(i="margin"),` 18 .`.concat(MA,` { 19 overflow: hidden `).concat(r,`; 20 padding-right: `).concat(h,"px ").concat(r,`; 21 } 22 body[`).concat(Rr,`] { 23 overflow: hidden `).concat(r,`; 24 overscroll-behavior: contain; 25 `).concat([t&&"position: relative ".concat(r,";"),i==="margin"&&` 26 padding-left: `.concat(o,`px; 27 padding-top: `).concat(c,`px; 28 padding-right: `).concat(u,`px; 29 margin-left:0; 30 margin-top:0; 31 margin-right: `).concat(h,"px ").concat(r,`; 32 `),i==="padding"&&"padding-right: ".concat(h,"px ").concat(r,";
32")].filter(Boolean).join(""),` 33 } 34 35 .`).concat(dc,` { 36 right: `).concat(h,"px ").concat(r,`; 37 } 38 39 .`).concat(mc,` { 40 margin-right: `).concat(h,"px ").concat(r,`; 41 } 42 43 .`).concat(dc," .").concat(dc,` { 44 right: 0 `).concat(r,`; 45 } 46 47 .`).concat(mc," .").concat(mc,` { 48 margin-right: 0 `).concat(r,`; 49 } 50 51 body[`).concat(Rr,`] { 52 `).concat(EA,": ").concat(h,`px; 53 } 54`)},Wy=function(){var e=parseInt(document.body.getAttribute(Rr)||"0",10);return isFinite(e)?e:0},YA=function(){E.useEffect(function(){return document.body.setAttribute(Rr,(Wy()+1).toString()),function(){var e=Wy()-1;e<=0?document.body.removeAttribute(Rr):document.body.setAttribute(Rr,e.toString())}},[])},GA=function(e){var t=e.noRelative,i=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;YA();var c=E.useMemo(function(){return UA(o)},[o]);return E.createElement(HA,{styles:ZA(c,!t,o,i?"":"!important")})},Id=!1;if(typeof window<"u")try{var $l=Object.defineProperty({},"passive",{get:function(){return Id=!0,!0}});window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{Id=!1}var yr=Id?{passive:!1}:!1,KA=function(e){return e.tagName==="TEXTAREA"},m5=function(e,t){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[t]!=="hidden"&&!(i.overflowY===i.overflowX&&!KA(e)&&i[t]==="visible")},FA=function(e){return m5(e,"overflowY")},qA=function(e){return m5(e,"overflowX")},Qy=function(e,t){var i=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=p5(e,r);if(o){var c=g5(e,r),u=c[1],h=c[2];if(u>h)return!0}r=r.parentNode}while(r&&r!==i.body);return!1},XA=function(e){var t=e.scrollTop,i=e.scrollHeight,r=e.clientHeight;return[t,i,r]},IA=function(e){var t=e.scrollLeft,i=e.scrollWidth,r=e.clientWidth;return[t,i,r]},p5=function(e,t){return e==="v"?FA(t):qA(t)},g5=function(e,t){return e==="v"?XA(t):IA(t)},WA=function(e,t){return e==="h"&&t==="rtl"?-1:1},QA=function(e,t,i,r,o){var c=WA(e,window.getComputedStyle(t).direction),u=c*r,h=i.target,d=t.contains(h),m=!1,v=u>0,y=0,x=0;do{if(!h)break;var w=g5(e,h),M=w[0],S=w[1],T=w[2],j=S-T-c*M;(M||j)&&p5(e,h)&&(y+=j,x+=M);var _=h.parentNode;h=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!d&&h!==document.body||d&&(t.contains(h)||t===h));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(m=!0),m},tc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jy=function(e){return[e.deltaX,e.deltaY]},$y=function(e){return e&&"current"in e?e.current:e},JA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$A=function(e){return` 55 .block-interactivity-`.concat(e,` {pointer-events: none;} 56 .allow-interactivity-`).concat(e,` {pointer-events: all;} 57`)},tN=0,xr=[];function eN(e){var t=E.useRef([]),i=E.useRef([0,0]),r=E.useRef(),o=E.useState(tN++)[0],c=E.useState(d5)[0],u=E.useRef(e);E.useEffect(function(){u.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=SA([e.lockRef.current],(e.shards||[]).map($y),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var h=E.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var j=tc(S),_=i.current,N="deltaX"in S?S.deltaX:_[0]-j[0],D="deltaY"in S?S.deltaY:_[1]-j[1],z,K=S.target,Z=Math.abs(N)>Math.abs(D)?"h":"v";if("touches"in S&&Z==="h"&&K.type==="range")return!1;var U=window.getSelection(),W=U&&U.anchorNode,nt=W?W===K||W.contains(K):!1;if(nt)return!1;var ct=Qy(Z,K);if(!ct)return!0;if(ct?z=Z:(z=Z==="v"?"h":"v",ct=Qy(Z,K)),!ct)return!1;if(!r.current&&"changedTouches"in S&&(N||D)&&(r.current=z),!z)return!0;var ut=r.current||z;return QA(ut,T,S,ut==="h"?N:D)},[]),d=E.useCallback(function(S){var T=S;if(!(!xr.length||xr[xr.length-1]!==c)){var j="deltaY"in T?Jy(T):tc(T),_=t.current.filter(function(z){return z.name===T.type&&(z.target===T.target||T.target===z.shadowParent)&&JA(z.delta,j)})[0];if(_&&_.should){T.cancelable&&T.preventDefault();return}
vendor: 15,850 bytes, line 57
57if(!_){var N=(u.current.shards||[]).map($y).filter(Boolean).filter(function(z){return z.contains(T.target)}),D=N.length>0?h(T,N[0]):!u.current.noIsolation;D&&T.cancelable&&T.preventDefault()}}},[]),m=E.useCallback(function(S,T,j,_){var N={name:S,delta:T,target:j,should:_,shadowParent:nN(j)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(D){return D!==N})},1)},[]),v=E.useCallback(function(S){i.current=tc(S),r.current=void 0},[]),y=E.useCallback(function(S){m(S.type,Jy(S),S.target,h(S,e.lockRef.current))},[]),x=E.useCallback(function(S){m(S.type,tc(S),S.target,h(S,e.lockRef.current))},[]);E.useEffect(function(){return xr.push(c),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",d,yr),document.addEventListener("touchmove",d,yr),document.addEventListener("touchstart",v,yr),function(){xr=xr.filter(function(S){return S!==c}),document.removeEventListener("wheel",d,yr),document.removeEventListener("touchmove",d,yr),document.removeEventListener("touchstart",v,yr)}},[]);var w=e.removeScrollBar,M=e.inert;return E.createElement(E.Fragment,null,M?E.createElement(c,{styles:$A(o)}):null,w?E.createElement(GA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iN=RA(f5,eN);var v5=E.forwardRef(function(e,t){return E.createElement(Qc,Nn({},e,{ref:t,sideCar:iN}))});v5.classNames=Qc.classNames;var sN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},br=new WeakMap,ec=new WeakMap,nc={},pd=0,y5=function(e){return e&&(e.host||y5(e.parentNode))},rN=function(e,t){return t.map(function(i){if(e.contains(i))return i;var r=y5(i);return r&&e.contains(r)?r:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},aN=function(e,t,i,r){var o=rN(t,Array.isArray(e)?e:[e]);nc[i]||(nc[i]=new WeakMap);var c=nc[i],u=[],h=new Set,d=new Set(o),m=function(y){!y||h.has(y)||(h.add(y),m(y.parentNode))};o.forEach(m);var v=function(y){!y||d.has(y)||Array.prototype.forEach.call(y.children,function(x){if(h.has(x))v(x);else try{var w=x.getAttribute(r),M=w!==null&&w!=="false",S=(br.get(x)||0)+1,T=(c.get(x)||0)+1;br.set(x,S),c.set(x,T),u.push(x),S===1&&M&&ec.set(x,!0),T===1&&x.setAttribute(i,"true"),M||x.setAttribute(r,"true")}catch(j){console.error("aria-hidden: cannot operate on ",x,j)}})};return v(t),h.clear(),pd++,function(){u.forEach(function(y){var x=br.get(y)-1,w=c.get(y)-1;br.set(y,x),c.set(y,w),x||(ec.has(y)||y.removeAttribute(r),ec.delete(y)),w||y.removeAttribute(i)}),pd--,pd||(br=new WeakMap,br=new WeakMap,ec=new WeakMap,nc={})}},oN=function(e,t,i){i===void 0&&(i="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=sN(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),aN(r,o,i,"aria-hidden")):function(){return null}};function lN(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function cN(e){const[t,i]=E.useState(void 0);return Ue(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let u,h;if("borderBoxSize"in c){const d=c.borderBoxSize,m=Array.isArray(d)?d[0]:d;u=m.inlineSize,h=m.blockSize}else u=e.offsetWidth,h=e.offsetHeight;i({width:u,height:h})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else i(void 0)},[e]),t}const uN=["top","right","bottom","left"],Hi=Math.min,Qe=Math.max,Oc=Math.round,ic=Math.floor,kn=e=>({x:e,y:e}),hN={left:"right",right:"left",bottom:"top",top:"bottom"},fN={start:"end",end:"start"};function Wd(e,t,i){return Qe(e,Hi(t,i))}function oi(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Yr(e){return e.split("-")[1]}function Xm(e){return e==="x"?"y":"x"}function Im(e){return e==="y"?"height":"width"}const dN=new Set(["top","bottom"]);function Rn(e){return dN.has(li(e))?"y":"x"}function Wm(e){return Xm(Rn(e))}function mN(e,t,i){i===void 0&&(i=!1);const r=Yr(e),o=Wm(e),c=Im(o);let u=o==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=kc(u)),[u,kc(u)]}function pN(e){const t=kc(e);return[Qd(e),t,Qd(t)]}function Qd(e){return e.replace(/start|end/g,t=>fN[t])}const tx=["left","right"],ex=["right","left"],gN=["top","bottom"],vN=["bottom","top"];function yN(e,t,i){switch(e){case"top":case"bottom":return i?t?ex:tx:t?tx:ex;case"left":case"right":return t?gN:vN;default:return[]}}function xN(e,t,i,r){const o=Yr(e);let c=yN(li(e),i==="start",r);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(Qd)))),c}function kc(e){return e.replace(/left|right|bottom|top/g,t=>hN[t])}function bN(e){return{top:0,right:0,bottom:0,left:0,...e}}function x5(e){return typeof e!="number"?bN(e):{top:e,right:e,bottom:e,left:e}}function Dc(e){const{x:t,y:i,width:r,height:o}=e;return{width:r,height:o,top:i,left:t,right:t+r,bottom:i+o,x:t,y:i}}function nx(e,t,i){let{reference:r,floating:o}=e;const c=Rn(t),u=Wm(t),h=Im(u),d=li(t),m=c==="y",v=r.x+r.width/2-o.width/2,y=r.y+r.height/2-o.height/2,x=r[h]/2-o[h]/2;let w;switch(d){case"top":w={x:v,y:r.y-o.height};break;case"bottom":w={x:v,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y};break;case"left":w={x:r.x-o.width,y};break;default:w={x:r.x,y:r.y}}switch(Yr(t)){case"start":w[u]-=x*(i&&m?-1:1);break;case"end":w[u]+=x*(i&&m?-1:1);break}return w}async function wN(e,t){var i;t===void 0&&(t={});const{x:r,y:o,platform:c,rects:u,elements:h,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:w=0}=oi(t,e),M=x5(w),T=h[x?y==="floating"?"reference":"floating":y],j=Dc(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(T)))==null||i?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:m,rootBoundary:v,strategy:d})),_=y==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),D=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},z=Dc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:_,offsetParent:N,strategy:d}):_);return{top:(j.top-z.top+M.top)/D.y,bottom:(z.bottom-j.bottom+M.bottom)/D.y,left:(j.left-z.left+M.left)/D.x,right:(z.right-j.right+M.right)/D.x}}const SN=async(e,t,i)=>{const{placement:r="bottom",strategy:o="absolute",middleware:c=[],platform:u}=i,h=c.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y}=nx(m,r,d),x=r,w={},M=0;for(let T=0;T<h.length;T++){var S;const{name:j,fn:_}=h[T],{x:N,y:D,data:z,reset:K}=await _({x:v,y,initialPlacement:r,placement:x,strategy:o,middlewareData:w,rects:m,platform:{...u,detectOverflow:(S=u.detectOverflow)!=null?S:wN},elements:{reference:e,floating:t}});v=N??v,y=D??y,w={...w,[j]:{...w[j],...z}},K&&M<=50&&(M++,typeof K=="object"&&(K.placement&&(x=K.placement),K.rects&&(m=K.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):K.rects),{x:v,y}=nx(m,x,d)),T=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:w}},MN=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:r,placement:o,rects:c,platform:u,elements:h,middlewareData:d}=t,{element:m,padding:v=0}=oi(e,t)||{};if(m==null)return{};const y=x5(v),x={x:i,y:r},w=Wm(o),M=Im(w),S=await u.getDimensions(m),T=w==="y",j=T?"top":"left",_=T?"bottom":"right",N=T?"clientHeight":"clientWidth",D=c.reference[M]+c.reference[w]-x[w]-c.floating[M],z=x[w]-c.reference[w],K=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let Z=K?K[N]:0;(!Z||!await(u.isElement==null?void 0:u.isElement(K)))&&(Z=h.floating[N]||c.floating[M]);const U=D/2-z/2,W=Z/2-S[M]/2-1,nt=Hi(y[j],W),ct=Hi(y[_],W),ut=nt,gt=Z-S[M]-ct,mt=Z/2-S[M]/2+U,tt=Wd(ut,mt,gt),k=!d.arrow&&Yr(o)!=null&&mt!==tt&&c.reference[M]/2-(mt<ut?nt:ct)-S[M]/2<0,Y=k?mt<ut?mt-ut:mt-gt:0;return{[w]:x[w]+Y,data:{[w]:tt,centerOffset:mt-tt-Y,...k&&{alignmentOffset:Y}},reset:k}}}),EN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,r;const{placement:o,middlewareData:c,rects:u,initialPlacement:h,platform:d,elements:m}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:S=!0,...T}=oi(e,t);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const j=li(o),_=Rn(h),N=li(h)===h,D=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!S?[kc(h)]:pN(h)),K=M!=="none";!x&&K&&z.push(...xN(h,S,M,D));const Z=[h,...z],U=await d.detectOverflow(t,T),W=[];let nt=((r=c.flip)==null?void 0:r.overflows)||[];if(v&&W.push(U[j]),y){const mt=mN(o,u,D);W.push(U[mt[0]],U[mt[1]])}if(nt=[...nt,{placement:o,overflows:W}],!W.every(mt=>mt<=0)){var ct,ut;const mt=(((ct=c.flip)==null?void 0:ct.index)||0)+1,tt=Z[mt];if(tt&&(!(y==="alignment"?_!==Rn(tt):!1)||nt.every(V=>Rn(V.placement)===_?V.overflows[0]>0:!0)))return{data:{index:mt,overflows:nt},reset:{placement:tt}};let k=(ut=nt.filter(Y=>Y.overflows[0]<=0).sort((Y,V)=>Y.overflows[1]-V.overflows[1])[0])==null?void 0:ut.placement;if(!k)switch(w){case"bestFit":{var gt;const Y=(gt=nt.filter(V=>{if(K){const it=Rn(V.placement);return it===_||it==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(it=>it>0).reduce((it,ht)=>it+ht,0)]).sort((V,it)=>V[1]-it[1])[0])==null?void 0:gt[0];Y&&(k=Y);break}case"initialPlacement":k=h;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function ix(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sx(e){return uN.some(t=>e[t]>=0)}const CN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:i,platform:r}=t,{strategy:o="referenceHidden",...c}=oi(e,t);switch(o){case"referenceHidden":{const u=await r.detectOverflow(t,{...c,elementContext:"reference"}),h=ix(u,i.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:sx(h)}}}case"escaped":{const u=await r.detectOverflow(t,{...c,altBoundary:!0}),h=ix(u,i.floating);return{data:{escapedOffsets:h,escaped:sx(h)}}}default:return{}}}}},b5=new Set(["left","top"]);async function TN(e,t){const{placement:i,platform:r,elements:o}=e,c=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=li(i),h=Yr(i),d=Rn(i)==="y",m=b5.has(u)?-1:1,v=c&&d?-1:1,y=oi(t,e);let{mainAxis:x,crossAxis:w,alignmentAxis:M}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof M=="number"&&(w=h==="end"?M*-1:M),d?{x:w*v,y:x*m}:{x:x*m,y:w*v}}const jN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,r;const{x:o,y:c,placement:u,middlewareData:h}=t,d=await TN(t,e);return u===((i=h.offset)==null?void 0:i.placement)&&(r=h.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:c+d.y,data:{...d,placement:u}}}}},_N=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:r,placement:o,platform:c}=t,{mainAxis:u=!0,crossAxis:h=!1,limiter:d={fn:j=>{let{x:_,y:N}=j;return{x:_,y:N}}},...m}=oi(e,t),v={x:i,y:r},y=await c.detectOverflow(t,m),x=Rn(li(o)),w=Xm(x);let M=v[w],S=v[x];if(u){const j=w==="y"?"top":"left",_=w==="y"?"bottom":"right",N=M+y[j],D=M-y[_];M=Wd(N,M,D)}if(h){const j=x==="y"?"top":"left",_=x==="y"?"bottom":"right",N=S+y[j],D=S-y[_];S=Wd(N,S,D)}const T=d.fn({...t,[w]:M,[x]:S});return{...T,data:{x:T.x-i,y:T.y-r,enabled:{[w]:u,[x]:h}}}}}},AN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:i,y:r,placement:o,rects:c,middlewareData:u}=t,{offset:h=0,mainAxis:d=!0,crossAxis:m=!0}=oi(e,t),v={x:i,y:r},y=Rn(o),x=Xm(y);let w=v[x],M=v[y];const S=oi(h,t),T=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const N=x==="y"?"height":"width",D=c.reference[x]-c.floating[N]+T.mainAxis,z=c.reference[x]+c.reference[N]-T.mainAxis;w<D?w=D:w>z&&(w=z)}if(m){var j,_;const N=x==="y"?"width":"height",D=b5.has(li(o)),z=c.reference[y]-c.floating[N]+(D&&((j=u.offset)==null?void 0:j[y])||0)+(D?0:T.crossAxis),K=c.reference[y]+c.reference[N]+(D?0:((_=u.offset)==null?void 0:_[y])||0)-(D?T.crossAxis:0);M<z?M=z:M>K&&(M=K)}return{[x]:w,[y]:M}}}},NN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var i,r;const{placement:o,rects:c,platform:u,elements:h}=t,{apply:d=()=>{},...m}=oi(e,t),v=await u.detectOverflow(t,m),y=li(o),x=Yr(o),w=Rn(o)==="y",{width:M,height:S}=c.floating;let T,j;y==="top"||y==="bottom"?(T=y,j=x===(await(u.isRTL==null?void 0:u.isRTL(h.floating))?"start":"end")?"left":"right"):(j=y,T=x==="end"?"top":"bottom");const _=S-v.top-v.bottom,N=M-v.left-v.right,D=Hi(S-v[T],_),z=Hi(M-v[j],N),K=!t.middlewareData.shift;let Z=D,U=z;if((i=t.middlewareData.shift)!=null&&i.enabled.x&&(U=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Z=_),K&&!x){const nt=Qe(v.left,0),ct=Qe(v.right,0),ut=Qe(v.top,0),gt=Qe(v.bottom,0);w?U=M-2*(nt!==0||ct!==0?nt+ct:Qe(v.left,v.right)):Z=S-2*(ut!==0||gt!==0?ut+gt:Qe(v.top,v.bottom))}await d({...t,availableWidth:U,availableHeight:Z});const W=await u.getDimensions(h.floating);return M!==W.width||S!==W.height?{reset:{rects:!0}}:{}}}};function Jc(){return typeof window<"u"}function Gr(e){return w5(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zn(e){var t;return(t=(w5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function w5(e){return Jc()?e instanceof Node||e instanceof $e(e).Node:!1}function wn(e){return Jc()?e instanceof Element||e instanceof $e(e).Element:!1}function Ln(e){return Jc()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function rx(e){return!Jc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}const RN=new Set(["inline","contents"]);function bo(e){const{overflow:t,overflowX:i,overflowY:r,display:o}=Sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!RN.has(o)}const ON=new Set(["table","td","th"]);function kN(e){return ON.has(Gr(e))}const DN=[":popover-open",":modal"];function $c(e){return DN.some(t=>{try{return e.matches(t)}catch{return!1}})}const LN=["transform","translate","scale","rotate","perspective"],zN=["transform","translate","scale","rotate","perspective","filter"],VN=["paint","layout","strict","content"];function Qm(e){const t=Jm(),i=wn(e)?Sn(e):e;return LN.some(r=>i[r]?i[r]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!t&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!t&&(i.filter?i.filter!=="none":!1)||zN.some(r=>(i.willChange||"").includes(r))||VN.some(r=>(i.contain||"").includes(r))}function BN(e){let t=Zi(e);for(;Ln(t)&&!Vr(t);){if(Qm(t))return t;if($c(t))return null;t=Zi(t)}return null}function Jm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PN=new Set(["html","body","#document"]);function Vr(e){return PN.has(Gr(e))}function Sn(e){return $e(e).getComputedStyle(e)}function tu(e){return wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zi(e){if(Gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rx(e)&&e.host||zn(e);return rx(t)?t.host:t}function S5(e){const t=Zi(e);return Vr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ln(t)&&bo(t)?t:S5(t)}function uo(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const o=S5(e),c=o===((r=e.ownerDocument)==null?void 0:r.body),u=$e(o);if(c){const h=Jd(u);
vendor: 2,943 bytes, line 57
57return t.concat(u,u.visualViewport||[],bo(o)?o:[],h&&i?uo(h):[])}return t.concat(o,uo(o,[],i))}function Jd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function M5(e){const t=Sn(e);let i=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ln(e),c=o?e.offsetWidth:i,u=o?e.offsetHeight:r,h=Oc(i)!==c||Oc(r)!==u;return h&&(i=c,r=u),{width:i,height:r,$:h}}function $m(e){return wn(e)?e:e.contextElement}function Or(e){const t=$m(e);if(!Ln(t))return kn(1);const i=t.getBoundingClientRect(),{width:r,height:o,$:c}=M5(t);let u=(c?Oc(i.width):i.width)/r,h=(c?Oc(i.height):i.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!h||!Number.isFinite(h))&&(h=1),{x:u,y:h}}const UN=kn(0);function E5(e){const t=$e(e);return!Jm()||!t.visualViewport?UN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HN(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==$e(e)?!1:t}function js(e,t,i,r){t===void 0&&(t=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),c=$m(e);let u=kn(1);t&&(r?wn(r)&&(u=Or(r)):u=Or(e));const h=HN(c,i,r)?E5(c):kn(0);let d=(o.left+h.x)/u.x,m=(o.top+h.y)/u.y,v=o.width/u.x,y=o.height/u.y;if(c){const x=$e(c),w=r&&wn(r)?$e(r):r;let M=x,S=Jd(M);for(;S&&r&&w!==M;){const T=Or(S),j=S.getBoundingClientRect(),_=Sn(S),N=j.left+(S.clientLeft+parseFloat(_.paddingLeft))*T.x,D=j.top+(S.clientTop+parseFloat(_.paddingTop))*T.y;d*=T.x,m*=T.y,v*=T.x,y*=T.y,d+=N,m+=D,M=$e(S),S=Jd(M)}}return Dc({width:v,height:y,x:d,y:m})}function eu(e,t){const i=tu(e).scrollLeft;return t?t.left+i:js(zn(e)).left+i}function C5(e,t){const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-eu(e,i),o=i.top+t.scrollTop;return{x:r,y:o}}function ZN(e){let{elements:t,rect:i,offsetParent:r,strategy:o}=e;const c=o==="fixed",u=zn(r),h=t?$c(t.floating):!1;if(r===u||h&&c)return i;let d={scrollLeft:0,scrollTop:0},m=kn(1);const v=kn(0),y=Ln(r);if((y||!y&&!c)&&((Gr(r)!=="body"||bo(u))&&(d=tu(r)),Ln(r))){const w=js(r);m=Or(r),v.x=w.x+r.clientLeft,v.y=w.y+r.clientTop}const x=u&&!y&&!c?C5(u,d):kn(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-d.scrollLeft*m.x+v.x+x.x,y:i.y*m.y-d.scrollTop*m.y+v.y+x.y}}function YN(e){return Array.from(e.getClientRects())}function GN(e){const t=zn(e),i=tu(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-i.scrollLeft+eu(e);const h=-i.scrollTop;return Sn(r).direction==="rtl"&&(u+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:c,x:u,y:h}}const ax=25;function KN(e,t){const i=$e(e),r=zn(e),o=i.visualViewport;let c=r.clientWidth,u=r.clientHeight,h=0,d=0;if(o){c=o.width,u=o.height;const v=Jm();(!v||v&&t==="fixed")&&(h=o.offsetLeft,d=o.offsetTop)}const m=eu(r);if(m<=0){const v=r.ownerDocument,y=v.body,x=getComputedStyle(y),w=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,M=Math.abs(r.clientWidth-y.clientWidth-w);M<=ax&&(c-=M)}
vendor: 8,949 bytes, line 57
57else m<=ax&&(c+=m);return{width:c,height:u,x:h,y:d}}const FN=new Set(["absolute","fixed"]);function qN(e,t){const i=js(e,!0,t==="fixed"),r=i.top+e.clientTop,o=i.left+e.clientLeft,c=Ln(e)?Or(e):kn(1),u=e.clientWidth*c.x,h=e.clientHeight*c.y,d=o*c.x,m=r*c.y;return{width:u,height:h,x:d,y:m}}function ox(e,t,i){let r;if(t==="viewport")r=KN(e,i);else if(t==="document")r=GN(zn(e));else if(wn(t))r=qN(t,i);else{const o=E5(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Dc(r)}function T5(e,t){const i=Zi(e);return i===t||!wn(i)||Vr(i)?!1:Sn(i).position==="fixed"||T5(i,t)}function XN(e,t){const i=t.get(e);if(i)return i;let r=uo(e,[],!1).filter(h=>wn(h)&&Gr(h)!=="body"),o=null;const c=Sn(e).position==="fixed";let u=c?Zi(e):e;for(;wn(u)&&!Vr(u);){const h=Sn(u),d=Qm(u);!d&&h.position==="fixed"&&(o=null),(c?!d&&!o:!d&&h.position==="static"&&!!o&&FN.has(o.position)||bo(u)&&!d&&T5(e,u))?r=r.filter(v=>v!==u):o=h,u=Zi(u)}return t.set(e,r),r}function IN(e){let{element:t,boundary:i,rootBoundary:r,strategy:o}=e;const u=[...i==="clippingAncestors"?$c(t)?[]:XN(t,this._c):[].concat(i),r],h=u[0],d=u.reduce((m,v)=>{const y=ox(t,v,o);return m.top=Qe(y.top,m.top),m.right=Hi(y.right,m.right),m.bottom=Hi(y.bottom,m.bottom),m.left=Qe(y.left,m.left),m},ox(t,h,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function WN(e){const{width:t,height:i}=M5(e);return{width:t,height:i}}function QN(e,t,i){const r=Ln(t),o=zn(t),c=i==="fixed",u=js(e,!0,c,t);let h={scrollLeft:0,scrollTop:0};const d=kn(0);function m(){d.x=eu(o)}if(r||!r&&!c)if((Gr(t)!=="body"||bo(o))&&(h=tu(t)),r){const w=js(t,!0,c,t);d.x=w.x+t.clientLeft,d.y=w.y+t.clientTop}else o&&m();c&&!r&&o&&m();const v=o&&!r&&!c?C5(o,h):kn(0),y=u.left+h.scrollLeft-d.x-v.x,x=u.top+h.scrollTop-d.y-v.y;return{x:y,y:x,width:u.width,height:u.height}}function gd(e){return Sn(e).position==="static"}function lx(e,t){if(!Ln(e)||Sn(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return zn(e)===i&&(i=i.ownerDocument.body),i}function j5(e,t){const i=$e(e);if($c(e))return i;if(!Ln(e)){let o=Zi(e);for(;o&&!Vr(o);){if(wn(o)&&!gd(o))return o;o=Zi(o)}return i}let r=lx(e,t);for(;r&&kN(r)&&gd(r);)r=lx(r,t);return r&&Vr(r)&&gd(r)&&!Qm(r)?i:r||BN(e)||i}const JN=async function(e){const t=this.getOffsetParent||j5,i=this.getDimensions,r=await i(e.floating);return{reference:QN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $N(e){return Sn(e).direction==="rtl"}const tR={convertOffsetParentRelativeRectToViewportRelativeRect:ZN,getDocumentElement:zn,getClippingRect:IN,getOffsetParent:j5,getElementRects:JN,getClientRects:YN,getDimensions:WN,getScale:Or,isElement:wn,isRTL:$N};function _5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eR(e,t){let i=null,r;const o=zn(e);function c(){var h;clearTimeout(r),(h=i)==null||h.disconnect(),i=null}function u(h,d){h===void 0&&(h=!1),d===void 0&&(d=1),c();const m=e.getBoundingClientRect(),{left:v,top:y,width:x,height:w}=m;if(h||t(),!x||!w)return;const M=ic(y),S=ic(o.clientWidth-(v+x)),T=ic(o.clientHeight-(y+w)),j=ic(v),N={rootMargin:-M+"px "+-S+"px "+-T+"px "+-j+"px",threshold:Qe(0,Hi(1,d))||1};let D=!0;function z(K){const Z=K[0].intersectionRatio;if(Z!==d){if(!D)return u();Z?u(!1,Z):r=setTimeout(()=>{u(!1,1e-7)},1e3)}Z===1&&!_5(m,e.getBoundingClientRect())&&u(),D=!1}try{i=new IntersectionObserver(z,{...N,root:o.ownerDocument})}catch{i=new IntersectionObserver(z,N)}i.observe(e)}return u(!0),c}function nR(e,t,i,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=$m(e),v=o||c?[...m?uo(m):[],...uo(t)]:[];v.forEach(j=>{o&&j.addEventListener("scroll",i,{passive:!0}),c&&j.addEventListener("resize",i)});const y=m&&h?eR(m,i):null;let x=-1,w=null;u&&(w=new ResizeObserver(j=>{let[_]=j;_&&_.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=w)==null||N.observe(t)})),i()}),m&&!d&&w.observe(m),w.observe(t));let M,S=d?js(e):null;d&&T();function T(){const j=js(e);S&&!_5(S,j)&&i(),S=j,M=requestAnimationFrame(T)}return i(),()=>{var j;v.forEach(_=>{o&&_.removeEventListener("scroll",i),c&&_.removeEventListener("resize",i)}),y?.(),(j=w)==null||j.disconnect(),w=null,d&&cancelAnimationFrame(M)}}const iR=jN,sR=_N,rR=EN,aR=NN,oR=CN,cx=MN,lR=AN,cR=(e,t,i)=>{const r=new Map,o={platform:tR,...i},c={...o.platform,_c:r};return SN(e,t,{...o,platform:c})};var uR=typeof document<"u",hR=function(){},pc=uR?E.useLayoutEffect:hR;function Lc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let i,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(i=e.length,i!==t.length)return!1;for(r=i;r--!==0;)if(!Lc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(r=i;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=i;r--!==0;){const c=o[r];if(!(c==="_owner"&&e.$$typeof)&&!Lc(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function A5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ux(e,t){const i=A5(e);return Math.round(t*i)/i}function vd(e){const t=E.useRef(e);return pc(()=>{t.current=e}),t}function fR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:i="absolute",middleware:r=[],platform:o,elements:{reference:c,floating:u}={},transform:h=!0,whileElementsMounted:d,open:m}=e,[v,y]=E.useState({x:0,y:0,strategy:i,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=E.useState(r);Lc(x,r)||w(r);const[M,S]=E.useState(null),[T,j]=E.useState(null),_=E.useCallback(V=>{V!==K.current&&(K.current=V,S(V))},[]),N=E.useCallback(V=>{V!==Z.current&&(Z.current=V,j(V))},[]),D=c||M,z=u||T,K=E.useRef(null),Z=E.useRef(null),U=E.useRef(v),W=d!=null,nt=vd(d),ct=vd(o),ut=vd(m),gt=E.useCallback(()=>{if(!K.current||!Z.current)return;const V={placement:t,strategy:i,middleware:x};ct.current&&(V.platform=ct.current),cR(K.current,Z.current,V).then(it=>{const ht={...it,isPositioned:ut.current!==!1};mt.current&&!Lc(U.current,ht)&&(U.current=ht,xo.flushSync(()=>{y(ht)}))})},[x,t,i,ct,ut]);pc(()=>{m===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,y(V=>({...V,isPositioned:!1})))},[m]);const mt=E.useRef(!1);pc(()=>(mt.current=!0,()=>{mt.current=!1}),[]),pc(()=>{if(D&&(K.current=D),z&&(Z.current=z),D&&z){if(nt.current)return nt.current(D,z,gt);gt()}},[D,z,gt,nt,W]);const tt=E.useMemo(()=>({reference:K,floating:Z,setReference:_,setFloating:N}),[_,N]),k=E.useMemo(()=>({reference:D,floating:z}),[D,z]),Y=E.useMemo(()=>{const V={position:i,left:0,top:0};if(!k.floating)return V;const it=ux(k.floating,v.x),ht=ux(k.floating,v.y);return h?{...V,transform:"translate("+it+"px, "+ht+"px)",...A5(k.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:it,top:ht}},[i,h,k.floating,v.x,v.y]);return E.useMemo(()=>({...v,update:gt,refs:tt,elements:k,floatingStyles:Y}),[v,gt,tt,k,Y])}const dR=e=>{function t(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){const{element:r,padding:o}=typeof e=="function"?e(i):e;return r&&t(r)?r.current!=null?cx({element:r.current,padding:o}).fn(i):{}:r?cx({element:r,padding:o}).fn(i):{}}}},mR=(e,t)=>({...iR(e),options:[e,t]}),pR=(e,t)=>({...sR(e),options:[e,t]}),gR=(e,t)=>({...lR(e),options:[e,t]}),vR=(e,t)=>({...rR(e),options:[e,t]}),yR=(e,t)=>({...aR(e),options:[e,t]}),xR=(e,t)=>({...oR(e),options:[e,t]}),bR=(e,t)=>({...dR(e),options:[e,t]});var wR="Arrow",N5=E.forwardRef((e,t)=>{const{children:i,width:r=10,height:o=5,...c}=e;return p.jsx(ee.svg,{...c,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});N5.displayName=wR;var SR=N5,t1="Popper",[R5,O5]=Fm(t1),[MR,k5]=R5(t1),D5=e=>{const{__scopePopper:t,children:i}=e,[r,o]=E.useState(null);return p.jsx(MR,{scope:t,anchor:r,onAnchorChange:o,children:i})};D5.displayName=t1;var L5="PopperAnchor",z5=E.forwardRef((e,t)=>{const{__scopePopper:i,virtualRef:r,...o}=e,c=k5(L5,i),u=E.useRef(null),h=Se(t,u),d=E.useRef(null);return E.useEffect(()=>{const m=d.current;d.current=r?.current||u.current,m!==d.current&&c.onAnchorChange(d.current)}),r?null:p.jsx(ee.div,{...o,ref:h})});z5.displayName=L5;var e1="PopperContent",[ER,CR]=R5(e1),V5=E.forwardRef((e,t)=>{const{__scopePopper:i,side:r="bottom",sideOffset:o=0,align:c="center",alignOffset:u=0,arrowPadding:h=0,avoidCollisions:d=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:w="optimized",onPlaced:M,...S}=e,T=k5(e1,i),[j,_]=E.useState(null),N=Se(t,Q=>_(Q)),[D,z]=E.useState(null),K=cN(D),Z=K?.width??0,U=K?.height??0,W=r+(c!=="center"?"-"+c:""),nt=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ct=Array.isArray(m)?m:[m],ut=ct.length>
vendor: 4,433 bytes, line 57
570,gt={padding:nt,boundary:ct.filter(jR),altBoundary:ut},{refs:mt,floatingStyles:tt,placement:k,isPositioned:Y,middlewareData:V}=fR({strategy:"fixed",placement:W,whileElementsMounted:(...Q)=>nR(...Q,{animationFrame:w==="always"}),elements:{reference:T.anchor},middleware:[mR({mainAxis:o+U,alignmentAxis:u}),d&&pR({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?gR():void 0,...gt}),d&&vR({...gt}),yR({...gt,apply:({elements:Q,rects:wt,availableWidth:xt,availableHeight:Tt})=>{const{width:Nt,height:Lt}=wt.reference,Ee=Q.floating.style;Ee.setProperty("--radix-popper-available-width",`${xt}px`),Ee.setProperty("--radix-popper-available-height",`${Tt}px`),Ee.setProperty("--radix-popper-anchor-width",`${Nt}px`),Ee.setProperty("--radix-popper-anchor-height",`${Lt}px`)}}),D&&bR({element:D,padding:h}),_R({arrowWidth:Z,arrowHeight:U}),x&&xR({strategy:"referenceHidden",...gt})]}),[it,ht]=U5(k),R=Ts(M);Ue(()=>{Y&&R?.()},[Y,R]);const q=V.arrow?.x,J=V.arrow?.y,et=V.arrow?.centerOffset!==0,[dt,vt]=E.useState();return Ue(()=>{j&&vt(window.getComputedStyle(j).zIndex)},[j]),p.jsx("div",{ref:mt.setFloating,"data-radix-popper-content-wrapper":"",style:{...tt,transform:Y?tt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:dt,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(ER,{scope:i,placedSide:it,onArrowChange:z,arrowX:q,arrowY:J,shouldHideArrow:et,children:p.jsx(ee.div,{"data-side":it,"data-align":ht,...S,ref:N,style:{...S.style,animation:Y?void 0:"none"}})})})});V5.displayName=e1;var B5="PopperArrow",TR={top:"bottom",right:"left",bottom:"top",left:"right"},P5=E.forwardRef(function(t,i){const{__scopePopper:r,...o}=t,c=CR(B5,r),u=TR[c.placedSide];return p.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:p.jsx(SR,{...o,ref:i,style:{...o.style,display:"block"}})})});P5.displayName=B5;function jR(e){return e!==null}var _R=e=>({name:"transformOrigin",options:e,fn(t){const{placement:i,rects:r,middlewareData:o}=t,u=o.arrow?.centerOffset!==0,h=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[m,v]=U5(i),y={start:"0%",center:"50%",end:"100%"}[v],x=(o.arrow?.x??0)+h/2,w=(o.arrow?.y??0)+d/2;let M="",S="";return m==="bottom"?(M=u?y:`${x}px`,S=`${-d}px`):m==="top"?(M=u?y:`${x}px`,S=`${r.floating.height+d}px`):m==="right"?(M=`${-d}px`,S=u?y:`${w}px`):m==="left"&&(M=`${r.floating.width+d}px`,S=u?y:`${w}px`),{data:{x:M,y:S}}}});function U5(e){const[t,i="center"]=e.split("-");return[t,i]}var AR=D5,NR=z5,RR=V5,OR=P5;function hx(e,[t,i]){return Math.min(i,Math.max(t,e))}var kR=[" ","Enter","ArrowUp","ArrowDown"],DR=[" ","Enter"],_s="Select",[nu,iu,LR]=Q_(_s),[Kr]=Fm(_s,[LR,O5]),su=O5(),[zR,Ki]=Kr(_s),[VR,BR]=Kr(_s),H5=e=>{const{__scopeSelect:t,children:i,open:r,defaultOpen:o,onOpenChange:c,value:u,defaultValue:h,onValueChange:d,dir:m,name:v,autoComplete:y,disabled:x,required:w,form:M}=e,S=su(t),[T,j]=E.useState(null),[_,N]=E.useState(null),[D,z]=E.useState(!1),K=sA(m),[Z,U]=Hy({prop:r,defaultProp:o??!1,onChange:c,caller:_s}),[W,nt]=Hy({prop:u,defaultProp:h,onChange:d,caller:_s}),ct=E.useRef(null),ut=T?M||!!T.closest("form"):!0,[gt,mt]=E.useState(new Set),tt=Array.from(gt).map(k=>k.props.value).join(";");return p.jsx(AR,{...S,children:p.jsxs(zR,{required:w,scope:t,trigger:T,onTriggerChange:j,valueNode:_,onValueNodeChange:N,valueNodeHasChildren:D,onValueNodeHasChildrenChange:z,contentId:qm(),value:W,onValueChange:nt,open:Z,onOpenChange:U,dir:K,triggerPointerDownPosRef:ct,disabled:x,children:[p.jsx(nu.Provider,{scope:t,children:p.jsx(VR,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(k=>{mt(Y=>new Set(Y).add(k))},[]),onNativeOptionRemove:E.useCallback(k=>{mt(Y=>{const V=new Set(Y);return V.delete(k),V})},[]),children:i})}),ut?p.jsxs(c4,{"aria-hidden":!0,required:w,tabIndex:-1,name:v,autoComplete:y,value:W,onChange:k=>nt(k.target.value),disabled:x,form:M,children:[W===void 0?p.jsx("option",{value:""}):null,Array.from(gt)]},tt):null]})})};H5.displayName=_s;var Z5="SelectTrigger",Y5=E.forwardRef((e,t)=>
vendor: 22,536 bytes, line 57
57{const{__scopeSelect:i,disabled:r=!1,...o}=e,c=su(i),u=Ki(Z5,i),h=u.disabled||r,d=Se(t,u.onTriggerChange),m=iu(i),v=E.useRef("touch"),[y,x,w]=h4(S=>{const T=m().filter(N=>!N.disabled),j=T.find(N=>N.value===u.value),_=f4(T,S,j);_!==void 0&&u.onValueChange(_.value)}),M=S=>{h||(u.onOpenChange(!0),w()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return p.jsx(NR,{asChild:!0,...c,children:p.jsx(ee.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":u4(u.value)?"":void 0,...o,ref:d,onClick:oe(o.onClick,S=>{S.currentTarget.focus(),v.current!=="mouse"&&M(S)}),onPointerDown:oe(o.onPointerDown,S=>{v.current=S.pointerType;const T=S.target;T.hasPointerCapture(S.pointerId)&&T.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(M(S),S.preventDefault())}),onKeyDown:oe(o.onKeyDown,S=>{const T=y.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&x(S.key),!(T&&S.key===" ")&&kR.includes(S.key)&&(M(),S.preventDefault())})})})});Y5.displayName=Z5;var G5="SelectValue",K5=E.forwardRef((e,t)=>{const{__scopeSelect:i,className:r,style:o,children:c,placeholder:u="",...h}=e,d=Ki(G5,i),{onValueNodeHasChildrenChange:m}=d,v=c!==void 0,y=Se(t,d.onValueNodeChange);return Ue(()=>{m(v)},[m,v]),p.jsx(ee.span,{...h,ref:y,style:{pointerEvents:"none"},children:u4(d.value)?p.jsx(p.Fragment,{children:u}):c})});K5.displayName=G5;var PR="SelectIcon",F5=E.forwardRef((e,t)=>{const{__scopeSelect:i,children:r,...o}=e;return p.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});F5.displayName=PR;var UR="SelectPortal",q5=e=>p.jsx(c5,{asChild:!0,...e});q5.displayName=UR;var As="SelectContent",X5=E.forwardRef((e,t)=>{const i=Ki(As,e.__scopeSelect),[r,o]=E.useState();if(Ue(()=>{o(new DocumentFragment)},[]),!i.open){const c=r;return c?xo.createPortal(p.jsx(I5,{scope:e.__scopeSelect,children:p.jsx(nu.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),c):null}return p.jsx(W5,{...e,ref:t})});X5.displayName=As;var yn=10,[I5,Fi]=Kr(As),HR="SelectContentImpl",ZR=Rc("SelectContent.RemoveScroll"),W5=E.forwardRef((e,t)=>{const{__scopeSelect:i,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:u,side:h,sideOffset:d,align:m,alignOffset:v,arrowPadding:y,collisionBoundary:x,collisionPadding:w,sticky:M,hideWhenDetached:S,avoidCollisions:T,...j}=e,_=Ki(As,i),[N,D]=E.useState(null),[z,K]=E.useState(null),Z=Se(t,Q=>D(Q)),[U,W]=E.useState(null),[nt,ct]=E.useState(null),ut=iu(i),[gt,mt]=E.useState(!1),tt=E.useRef(!1);E.useEffect(()=>{if(N)return oN(N)},[N]),wA();const k=E.useCallback(Q=>{const[wt,...xt]=ut().map(Lt=>Lt.ref.current),[Tt]=xt.slice(-1),Nt=document.activeElement;for(const Lt of Q)if(Lt===Nt||(Lt?.scrollIntoView({block:"nearest"}),Lt===wt&&z&&(z.scrollTop=0),Lt===Tt&&z&&(z.scrollTop=z.scrollHeight),Lt?.focus(),document.activeElement!==Nt))return},[ut,z]),Y=E.useCallback(()=>k([U,N]),[k,U,N]);E.useEffect(()=>{gt&&Y()},[gt,Y]);const{onOpenChange:V,triggerPointerDownPosRef:it}=_;E.useEffect(()=>{if(N){let Q={x:0,y:0};const wt=Tt=>{Q={x:Math.abs(Math.round(Tt.pageX)-(it.current?.x??0)),y:Math.abs(Math.round(Tt.pageY)-(it.current?.y??0))}},xt=Tt=>{Q.x<=10&&Q.y<=10?Tt.preventDefault():N.contains(Tt.target)||V(!1),document.removeEventListener("pointermove",wt),it.current=null};return it.current!==null&&(document.addEventListener("pointermove",wt),document.addEventListener("pointerup",xt,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",wt),document.removeEventListener("pointerup",xt,{capture:!0})}}},[N,V,it]),E.useEffect(()=>{const Q=()=>V(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[V]);const[ht,R]=h4(Q=>{const wt=ut().filter(Nt=>!Nt.disabled),xt=wt.find(Nt=>Nt.ref.current===document.activeElement),Tt=f4(wt,Q,xt);Tt&&setTimeout(()=>Tt.ref.current.focus())}),q=E.useCallback((Q,wt,xt)=>{const Tt=!tt.current&&!xt;(_.value!==void 0&&_.value===wt||Tt)&&(W(Q),Tt&&(tt.current=!0))},[_.value]),J=E.useCallback(()=>N?.focus(),[N]),et=E.useCallback((Q,wt,xt)=>{const Tt=!tt.current&&!xt;(_.value!==void 0&&_.value===wt||Tt)&&ct(Q)},[_.value]),dt=r==="popper"?$d:Q5,vt=dt===$d?{side:h,sideOffset:d,align:m,alignOffset:v,arrowPadding:y,collisionBoundary:x,collisionPadding:w,sticky:M,hideWhenDetached:S,avoidCollisions:T}:{};return p.jsx(I5,{scope:i,content:N,viewport:z,onViewportChange:K,itemRefCallback:q,selectedItem:U,onItemLeave:J,itemTextRefCallback:et,focusSelectedItem:Y,selectedItemText:nt,position:r,isPositioned:gt,searchRef:ht,children:p.jsx(v5,{as:ZR,allowPinchZoom:!0,children:p.jsx(o5,{asChild:!0,trapped:_.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:oe(o,Q=>{_.trigger?.focus({preventScroll:!0}),Q.preventDefault()}),children:p.jsx(r5,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:p.jsx(dt,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:Q=>Q.preventDefault(),...j,...vt,onPlaced:()=>mt(!0),ref:Z,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:oe(j.onKeyDown,Q=>{const wt=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!wt&&Q.key.length===1&&R(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Tt=ut().filter(Nt=>!Nt.disabled).map(Nt=>Nt.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Tt=Tt.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Nt=Q.target,Lt=Tt.indexOf(Nt);Tt=Tt.slice(Lt+1)}setTimeout(()=>k(Tt)),Q.preventDefault()}})})})})})})});W5.displayName=HR;var YR="SelectItemAlignedPosition",Q5=E.forwardRef((e,t)=>{const{__scopeSelect:i,onPlaced:r,...o}=e,c=Ki(As,i),u=Fi(As,i),[h,d]=E.useState(null),[m,v]=E.useState(null),y=Se(t,Z=>v(Z)),x=iu(i),w=E.useRef(!1),M=E.useRef(!0),{viewport:S,selectedItem:T,selectedItemText:j,focusSelectedItem:_}=u,N=E.useCallback(()=>{if(c.trigger&&c.valueNode&&h&&m&&S&&T&&j){const Z=c.trigger.getBoundingClientRect(),U=m.getBoundingClientRect(),W=c.valueNode.getBoundingClientRect(),nt=j.getBoundingClientRect();if(c.dir!=="rtl"){const Nt=nt.left-U.left,Lt=W.left-Nt,Ee=Z.left-Lt,Ce=Z.width+Ee,qi=Math.max(Ce,U.width),Xi=window.innerWidth-yn,Fr=hx(Lt,[yn,Math.max(yn,Xi-qi)]);h.style.minWidth=Ce+"px",h.style.left=Fr+"px"}else{const Nt=U.right-nt.right,Lt=window.innerWidth-W.right-Nt,Ee=window.innerWidth-Z.right-Lt,Ce=Z.width+Ee,qi=Math.max(Ce,U.width),Xi=window.innerWidth-yn,Fr=hx(Lt,[yn,Math.max(yn,Xi-qi)]);h.style.minWidth=Ce+"px",h.style.right=Fr+"px"}const ct=x(),ut=window.innerHeight-yn*2,gt=S.scrollHeight,mt=window.getComputedStyle(m),tt=parseInt(mt.borderTopWidth,10),k=parseInt(mt.paddingTop,10),Y=parseInt(mt.borderBottomWidth,10),V=parseInt(mt.paddingBottom,10),it=tt+k+gt+V+Y,ht=Math.min(T.offsetHeight*5,it),R=window.getComputedStyle(S),q=parseInt(R.paddingTop,10),J=parseInt(R.paddingBottom,10),et=Z.top+Z.height/2-yn,dt=ut-et,vt=T.offsetHeight/2,Q=T.offsetTop+vt,wt=tt+k+Q,xt=it-wt;if(wt<=et){const Nt=ct.length>0&&T===ct[ct.length-1].ref.current;h.style.bottom="0px";const Lt=m.clientHeight-S.offsetTop-S.offsetHeight,Ee=Math.max(dt,vt+(Nt?J:0)+Lt+Y),Ce=wt+Ee;h.style.height=Ce+"px"}else{const Nt=ct.length>0&&T===ct[0].ref.current;h.style.top="0px";const Ee=Math.max(et,tt+S.offsetTop+(Nt?q:0)+vt)+xt;h.style.height=Ee+"px",S.scrollTop=wt-et+S.offsetTop}h.style.margin=`${yn}px 0`,h.style.minHeight=ht+"px",h.style.maxHeight=ut+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[x,c.trigger,c.valueNode,h,m,S,T,j,c.dir,r]);Ue(()=>N(),[N]);const[D,z]=E.useState();Ue(()=>{m&&z(window.getComputedStyle(m).zIndex)},[m]);const K=E.useCallback(Z=>{Z&&M.current===!0&&(N(),_?.(),M.current=!1)},[N,_]);return p.jsx(KR,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:w,onScrollButtonChange:K,children:p.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:p.jsx(ee.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Q5.displayName=YR;var GR="SelectPopperPosition",$d=E.forwardRef((e,t)=>{const{__scopeSelect:i,align:r="start",collisionPadding:o=yn,...c}=e,u=su(i);return p.jsx(RR,{...u,...c,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});$d.displayName=GR;var[KR,n1]=Kr(As,{}),tm="SelectViewport",J5=E.forwardRef((e,t)=>{const{__scopeSelect:i,nonce:r,...o}=e,c=Fi(tm,i),u=n1(tm,i),h=Se(t,c.onViewportChange),d=E.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(nu.Slot,{scope:i,children:p.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:oe(o.onScroll,m=>{const v=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:x}=u;if(x?.current&&y){const w=Math.abs(d.current-v.scrollTop);if(w>0){const M=window.innerHeight-yn*2,S=parseFloat(y.style.minHeight),T=parseFloat(y.style.height),j=Math.max(S,T);if(j<M){const _=j+w,N=Math.min(M,_),D=_-N;y.style.height=N+"px",y.style.bottom==="0px"&&(v.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}d.current=v.scrollTop})})})]})});J5.displayName=tm;var $5="SelectGroup",[FR,qR]=Kr($5),XR=E.forwardRef((e,t)=>{const{__scopeSelect:i,...r}=e,o=qm();return p.jsx(FR,{scope:i,id:o,children:p.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});XR.displayName=$5;var t4="SelectLabel",IR=E.forwardRef((e,t)=>{const{__scopeSelect:i,...r}=e,o=qR(t4,i);return p.jsx(ee.div,{id:o.id,...r,ref:t})});IR.displayName=t4;var zc="SelectItem",[WR,e4]=Kr(zc),n4=E.forwardRef((e,t)=>{const{__scopeSelect:i,value:r,disabled:o=!1,textValue:c,...u}=e,h=Ki(zc,i),d=Fi(zc,i),m=h.value===r,[v,y]=E.useState(c??""),[x,w]=E.useState(!1),M=Se(t,_=>d.itemRefCallback?.(_,r,o)),S=qm(),T=E.useRef("touch"),j=()=>{o||(h.onValueChange(r),h.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(WR,{scope:i,value:r,disabled:o,textId:S,isSelected:m,onItemTextChange:E.useCallback(_=>{y(N=>N||(_?.textContent??"").trim())},[]),children:p.jsx(nu.ItemSlot,{scope:i,value:r,disabled:o,textValue:v,children:p.jsx(ee.div,{role:"option","aria-labelledby":S,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:M,onFocus:oe(u.onFocus,()=>w(!0)),onBlur:oe(u.onBlur,()=>w(!1)),onClick:oe(u.onClick,()=>{T.current!=="mouse"&&j()}),onPointerUp:oe(u.onPointerUp,()=>{T.current==="mouse"&&j()}),onPointerDown:oe(u.onPointerDown,_=>{T.current=_.pointerType}),onPointerMove:oe(u.onPointerMove,_=>{T.current=_.pointerType,o?d.onItemLeave?.():T.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:oe(u.onPointerLeave,_=>{_.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:oe(u.onKeyDown,_=>{d.searchRef?.current!==""&&_.key===" "||(DR.includes(_.key)&&j(),_.key===" "&&_.preventDefault())})})})})});n4.displayName=zc;var Ka="SelectItemText",i4=E.forwardRef((e,t)=>{const{__scopeSelect:i,className:r,style:o,...c}=e,u=Ki(Ka,i),h=Fi(Ka,i),d=e4(Ka,i),m=BR(Ka,i),[v,y]=E.useState(null),x=Se(t,j=>y(j),d.onItemTextChange,j=>h.itemTextRefCallback?.(j,d.value,d.disabled)),w=v?.textContent,M=E.useMemo(()=>p.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:T}=m;return Ue(()=>(S(M),()=>T(M)),[S,T,M]),p.jsxs(p.Fragment,{children:[p.jsx(ee.span,{id:d.textId,...c,ref:x}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?xo.createPortal(c.children,u.valueNode):null]})});i4.displayName=Ka;var s4="SelectItemIndicator",r4=E.forwardRef((e,t)=>{const{__scopeSelect:i,...r}=e;return e4(s4,i).isSelected?p.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});r4.displayName=s4;var em="SelectScrollUpButton",a4=E.forwardRef((e,t)=>{const i=Fi(em,e.__scopeSelect),r=n1(em,e.__scopeSelect),[o,c]=E.useState(!1),u=Se(t,r.onScrollButtonChange);return Ue(()=>{if(i.viewport&&i.isPositioned){let h=function(){const m=d.scrollTop>0;c(m)};const d=i.viewport;return h(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?p.jsx(l4,{...e,ref:u,onAutoScroll:()=>{const{viewport:h,selectedItem:d}=i;h&&d&&(h.scrollTop=h.scrollTop-d.offsetHeight)}}):null});a4.displayName=em;var nm="SelectScrollDownButton",o4=E.forwardRef((e,t)=>{const i=Fi(nm,e.__scopeSelect),r=n1(nm,e.__scopeSelect),[o,c]=E.useState(!1),u=Se(t,r.onScrollButtonChange);return Ue(()=>{if(i.viewport&&i.isPositioned){let h=function(){const m=d.scrollHeight-d.clientHeight,v=Math.ceil(d.scrollTop)<m;c(v)};const d=i.viewport;return h(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?p.jsx(l4,{...e,ref:u,onAutoScroll:()=>{const{viewport:h,selectedItem:d}=i;h&&d&&(h.scrollTop=h.scrollTop+d.offsetHeight)}}):null});o4.displayName=nm;var l4=E.forwardRef((e,t)=>{const{__scopeSelect:i,onAutoScroll:r,...o}=e,c=Fi("SelectScrollButton",i),u=E.useRef(null),h=iu(i),d=E.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return E.useEffect(()=>()=>d(),[d]),Ue(()=>{h().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),p.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:oe(o.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(r,50))}),onPointerMove:oe(o.onPointerMove,()=>{c.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(r,50))}),onPointerLeave:oe(o.onPointerLeave,()=>{d()})})}),QR="SelectSeparator",JR=E.forwardRef((e,t)=>{const{__scopeSelect:i,...r}=e;return p.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});JR.displayName=QR;var im="SelectArrow",$R=E.forwardRef((e,t)=>{const{__scopeSelect:i,...r}=e,o=su(i),c=Ki(im,i),u=Fi(im,i);return c.open&&u.position==="popper"?p.jsx(OR,{...o,...r,ref:t}):null});$R.displayName=im;var tO="SelectBubbleInput",c4=E.forwardRef(({__scopeSelect:e,value:t,...i},r)=>{const o=E.useRef(null),c=Se(r,o),u=lN(t);return E.useEffect(()=>{const h=o.current;if(!h)return;const d=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(d,"value").set;if(u!==t&&v){const y=new Event("change",{bubbles:!0});v.call(h,t),h.dispatchEvent(y)}},[u,t]),p.jsx(ee.select,{...i,style:{...i5,...i.style},ref:c,defaultValue:t})});c4.displayName=tO;function u4(e){return e===""||e===void 0}function h4(e){const t=Ts(e),i=E.useRef(""),r=E.useRef(0),o=E.useCallback(u=>{const h=i.current+u;t(h),(function d(m){i.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(h)},[t]),c=E.useCallback(()=>{i.current="",window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[i,o,c]}function f4(e,t,i){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,c=i?e.indexOf(i):-1;let u=eO(e,Math.max(c,0));o.length===1&&(u=u.filter(m=>m!==i));const d=u.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==i?d:void 0}function eO(e,t){return e.map((i,r)=>e[(t+r)%e.length])}var nO=H5,iO=Y5,sO=K5,rO=F5,aO=q5,oO=X5,lO=J5,cO=n4,uO=i4,hO=r4,fO=a4,dO=o4;function d4({...e}){return p.jsx(nO,{"data-slot":"select",...e})}function m4({...e}){return p.jsx(sO,{"data-slot":"select-value",...e})}function p4({className:e,size:t="default",children:i,...r}){return p.jsxs(iO,{"data-slot":"select-trigger","data-size":t,className:Pe("data-[placeholder]:text-[var(--text-tertiary)] [&_svg:not([class*='text-'])]:text-[var(--text-tertiary)] flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border-none bg-[var(--bg-glass)] px-2.5 py-1.5 font-mono text-label text-[var(--text-secondary)] whitespace-nowrap shadow-[var(--shadow-sm)] outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-auto data-[size=sm]:h-auto *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[i,p.jsx(rO,{asChild:!0,children:p.jsx(Lm,{className:"size-4 opacity-50"})})]})}function g4({className:e,children:t,position:i="item-aligned",align:r="center",...o}){return p.jsx(aO,{children:p.jsxs(oO,{"data-slot":"select-content",className:Pe("bg-[var(--bg-surface)] text-[var(--text-primary)] backdrop-blur-[40px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border-none shadow-[var(--shadow-card)]",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:i,align:r,...o,children:[p.jsx(mO,{}),p.jsx(lO,{className:Pe("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(pO,{})]})})}function v4({className:e,children:t,...i}){return p.jsxs(cO,{"data-slot":"select-item",className:Pe("focus:bg-[var(--bg-glass-hover)] focus:text-[var(--text-primary)] [&_svg:not([class*='text-'])]:text-[var(--text-tertiary)] relative flex w-full cursor-pointer items-center gap-2 rounded-md py-1.5 pr-8 pl-2 font-mono text-label text-[var(--text-secondary)] outline-hidden select-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...i,children:[p.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(hO,{children:p.jsx(gE,{className:"size-4"})})}),p.jsx(uO,{children:t})]})}function mO({className:e,...t}){return p.jsx(fO,{"data-slot":"select-scroll-up-button",className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(xE,{className:"size-4"})})}function pO({className:e,...t}){return p.jsx(dO,{"data-slot":"select-scroll-down-button",className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Lm,{className:"size-4"})})}function gO({positions:e,sortBy:t,onSortChange:i}){const r=E.useMemo(()=>t5(e,t),[e,t]);return p.jsxs(zr,{children:[p.jsx(lo,{icon:p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("rect",{x:"32",y:"128",width:"448",height:"320",rx:"48"}),p.jsx("path",{d:"M192 128V96a64 64 0 0164-64h0a64 64 0 0164 64v32"}),p.jsx("path",{d:"M32 240h448"})]}),title:"Open Positions",count:e.length,trailing:p.jsxs(d4,{value:t,onValueChange:o=>i(o),children:[p.jsx(p4,{children:p.jsx(m4,{})}),p.jsx(g4,{position:"popper",align:"end",children:e5.map(o=>p.jsx(v4,{value:o.value,children:o.label},o.value))})]}),className:"mb-3"}),r.length===0?p.jsx(Km,{icon:p.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"32",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("rect",{x:"32",y:"128",width:"448",height:"320",rx:"48"}),p.jsx("path",{d:"M192 128V96a64 64 0 0164-64h0a64 64 0 0164 64v32"}),p.jsx("path",{d:"M32 240h448"})]}),title:"No open positions",subtitle:"Your active trades will appear here"}):p.jsx("div",{className:"space-y-2",children:r.map(o=>p.jsx(vO,{position:o},o.id))})]})}function vO({position:e}){const{dollars:t,pct:i}=An(e),r=t>=0;return p.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-[var(--bg-glass)] px-4 py-3 text-ui shadow-[var(--shadow-card)] backdrop-blur-[var(--glass-blur)] transition-all hover:bg-[var(--bg-glass-hover)] hover:shadow-[var(--glass-shadow)]",children:[p.jsx(je,{variant:e.side==="yes"?"mint":"coral",className:"flex h-7 w-7 items-center justify-center rounded-md px-0 py-0 text-[10px]",children:e.side==="yes"?"Y":"N"}),p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"truncate font-display font-bold text-[var(--text-primary)]",children:e.title}),p.jsxs("span",{className:"font-mono text-label text-[var(--text-tertiary)]",children:["x",e.quantity]})]}),p.jsxs("div",{className:"font-mono text-label text-[var(--text-tertiary)]",children:[e.category," · ",e.ticker]})]}),p.jsx("div",{className:"text-right font-mono text-cell",children:p.jsxs("div",{className:"text-[var(--text-tertiary)]",children:["Entry ",e.entry_price,"c â Now ",e.current_price,"c"]})}),p.jsxs("div",{className:"text-right",children:[p.jsx("div",{className:`font-mono text-ui font-bold ${r?"text-[var(--mint-text)]":"text-[var(--coral-text)]"}`,children:Qa(t)}),p.jsxs("div",{className:`font-mono text-label font-bold ${r?"text-[var(--mint-text)]":"text-[var(--coral-text)]"}`,children:[r?"+":"",i.toFixed(1),"%"]})]})]})}function yO({positions:e,sortBy:t,onSortChange:i}){const[r,o]=E.useState(""),c=E.useMemo(()=>
57{if(!r.trim())return e;const x=r.toLowerCase();return e.filter(w=>w.title.toLowerCase().includes(x)||w.category.toLowerCase().includes(x)||w.ticker.toLowerCase().includes(x))},[e,r]),u=E.useMemo(()=>t5(c,t,!0),[c,t]),[h,d]=E.useState(!1),m=u.slice(0,z2),v=u.slice(z2),y=v.length>0;return p.jsxs(zr,{children:[p.jsx(lo,{icon:p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("circle",{cx:"256",cy:"256",r:"208"}),p.jsx("path",{d:"M256 136v120l96 64"})]}),title:"Trade History",count:e.length,trailing:p.jsxs(d4,{value:t,onValueChange:x=>i(x),children:[p.jsx(p4,{children:p.jsx(m4,{})}),p.jsx(g4,{position:"popper",align:"end",children:e5.map(x=>p.jsx(v4,{value:x.value,children:x.label},x.value))})]}),className:"mb-3"}),p.jsxs("div",{className:"relative mb-3",children:[p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[var(--text-tertiary)]",children:[p.jsx("circle",{cx:"220",cy:"220",r:"150"}),p.jsx("path",{d:"M332 332l128 128"})]}),p.jsx("input",{type:"text",placeholder:"Search trades...",value:r,onChange:x=>{o(x.target.value),d(!1)},className:"w-full rounded-lg border border-[var(--border-custom)] bg-[var(--bg-glass)] py-2 pl-9 pr-3 font-body text-ui text-[var(--text-primary)] placeholder-[var(--text-tertiary)] outline-none transition-colors focus:border-[var(--focus-border)] focus:ring-1 focus:ring-[var(--focus-ring)]"}),r&&p.jsx("button",{onClick:()=>o(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 cursor-pointer rounded p-0.5 text-[var(--text-tertiary)] transition-colors hover:text-[var(--text-secondary)]",children:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:p.jsx("path",{d:"M2 2l10 10M12 2L2 12"})})})]}),u.length===0?p.jsx(Km,{icon:r?p.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"32",strokeLinecap:"round",children:[p.jsx("circle",{cx:"220",cy:"220",r:"150"}),p.jsx("path",{d:"M332 332l128 128"})]}):p.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"32",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("circle",{cx:"256",cy:"256",r:"208"}),p.jsx("path",{d:"M256 136v120l96 64"})]}),title:r?`No trades matching "${r}"`:"No completed trades yet",subtitle:r?"Try a different search term":"Closed positions will appear here"}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"space-y-2",children:m.map(x=>p.jsx(fx,{position:x},x.id))}),y&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"grid transition-[grid-template-rows] duration-300 ease-out",style:{gridTemplateRows:h?"1fr":"0fr"},children:p.jsx("div",{className:"overflow-hidden",children:p.jsx("div",{className:"space-y-2 pt-2",children:v.map(x=>p.jsx(fx,{position:x},x.id))})})}),p.jsxs("button",{onClick:()=>d(!h),className:"animate-fade-in mt-3 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-lg border border-[var(--border-custom)] bg-[var(--price-pill-bg)] py-2 font-display text-ui font-medium text-[var(--text-secondary)] transition-all hover:border-electric-blue/30 hover:text-electric-blue hover:-translate-y-0.5 active:translate-y-0",children:[h?"Show less":`Show all ${u.length} ${r?"results":"trades"}`,p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor",className:`transition-transform duration-300 ${h?"rotate-180":""}`,children:p.jsx("path",{d:"M8 11L3 5.5h10L8 11Z"})})]})]})]})]})}function fx({position:e}){const{dollars:t,pct:i}=An(e),r=t>=0;return p.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-[var(--bg-glass)] px-4 py-3 text-ui shadow-[var(--shadow-card)] backdrop-blur-[var(--glass-blur)] transition-all hover:bg-[var(--bg-glass-hover)] hover:shadow-[var(--glass-shadow)]",children:[p.jsx("span",{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${r?"bg-[var(--mint-bg)] text-[var(--mint-text)]":"bg-[var(--coral-bg)] text-[var(--coral-text)]"}`,children:r?p.jsx("svg",{width:"14",height:"14",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"56",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M416 128L192 384l-96-96"})}):p.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:p.jsx("path",{d:"M2 2l10 10M12 2L2 12"})})}),p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"truncate font-display font-bold text-[var(--text-primary)]",children:e.title}),p.jsx(je,{variant:e.side==="yes"?"mint":"coral",className:"text-[10px]",children:e.side==="yes"?"YES":"NO"}),p.jsxs("span",{className:"shrink-0 font-mono text-label text-[var(--text-tertiary)]",children:["x",e.quantity]})]}),p.jsxs("div",{className:"font-mono text-label text-[var(--text-tertiary)]",children:[e.category," · Closed ",l3(e.closed_at)]})]}),p.jsx("div",{className:"text-right font-mono text-cell",children:p.jsxs("div",{className:"text-[var(--text-tertiary)]",children:[e.entry_price,"c â ",e.exit_price,"c"]})}),p.jsxs("div",{className:"text-right",children:[p.jsx("div",{className:`font-mono text-ui font-bold ${r?"text-[var(--mint-text)]":"text-[var(--coral-text)]"}`,children:Qa(t)}),p.jsxs("div",{className:`font-mono text-label font-bold ${r?"text-[var(--mint-text)]":"text-[var(--coral-text)]"}`,children:[r?"+":"",i.toFixed(1),"%"]})]})]})}function y4({title:e,trailing:t,className:i,...r}){return p.jsxs("div",{className:Pe("flex shrink-0 items-center justify-between px-6 pt-5 pb-2 max-md:px-4 max-md:pt-3.5",i),...r,children:[p.jsxs("h1",{className:"relative inline-block font-display text-heading font-bold uppercase tracking-tight text-white",children:[p.jsx("span",{className:"absolute inset-y-0 -left-1.5 -right-2.5 -skew-x-12 blue-gradient-grain blue-gradient-horizontal overflow-hidden"}),p.jsx("span",{className:"relative",children:e})]}),t]})}const i1="fs_kalshi_credentials";function xO(){try{const e=localStorage.getItem(i1);return e?JSON.parse(e):null}catch{return null}}function bO(e){localStorage.setItem(i1,JSON.stringify(e))}function wO(){localStorage.removeItem(i1)}function SO(){const[e,t]=E.useState(xO),[i,r]=E.useState(!1),[o,c]=E.useState("date_desc"),[u,h]=E.useState("date_desc"),{positions:d,pnlHistory:m,summary:v,isLoading:y,error:x}=z_(),w=E.useMemo(()=>d.filter(_=>_.status==="open"),[d]),M=E.useMemo(()=>d.filter(_=>_.status==="closed"),[d]),S=E.useCallback(_=>{bO(_),t(_),r(!1)},[]),T=E.useCallback(()=>{wO(),t(null),r(!1)},[]),j=!!e;return p.jsxs(p.Fragment,{children:[p.jsx(y4,{title:"PORTFOLIO",trailing:p.jsx("div",{className:"flex items-center gap-2",children:j?p.jsxs(p.Fragment,{children:[p.jsx(Gm,{onClick:()=>r(!0),title:"Update API credentials",children:p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"40",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 00-6.7 15c0 8.5 5.2 16.7 9.6 21.3 6.6 6.9 34.8 33 40 28 15.4-15 18.5-19 24.8-25.2 9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4 15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2 5-4.6 8.6-8.9 8.7-15.6.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5 22.8-15.5 24.1-21.6-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s19 9.2 30 9.2c6.9 0 8.9-3.5 15.8-7.3"}
57),p.jsx("circle",{cx:"348",cy:"161",r:"68"}),p.jsx("path",{d:"M390 76l48-48M416 100l48-48"})]})}),p.jsxs("button",{onClick:T,title:"Disconnect Kalshi account",className:"flex h-8 cursor-pointer items-center gap-1.5 rounded-md border border-[var(--price-pill-border)] bg-[var(--price-pill-bg)] px-2.5 font-mono text-label font-medium text-[var(--text-secondary)] transition-colors hover:border-[var(--coral-text)]/30 hover:text-[var(--coral-text)]",children:[p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M304 336v40a40 40 0 01-40 40H104a40 40 0 01-40-40V136a40 40 0 0140-40h152a40 40 0 0140 40v40M368 336l80-80-80-80M176 256h256"})}),"Disconnect"]})]}):p.jsxs("button",{onClick:()=>r(!0),className:"flex h-8 cursor-pointer items-center gap-1.5 rounded-md bg-electric-blue px-3 font-display text-label font-bold text-white transition-opacity hover:opacity-90",children:[p.jsxs("svg",{width:"12",he
57ight:"12",viewBox:"0 0 512 512",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 00-6.7 15c0 8.5 5.2 16.7 9.6 21.3 6.6 6.9 34.8 33 40 28 15.4-15 18.5-19 24.8-25.2 9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4 15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2 5-4.6 8.6-8.9 8.7-15.6.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5 22.8-15.5 24.1-21.6-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s19 9.2 30 9.2c6.9 0 8.9-3.5 15.8-7.3"}),p.jsx("circle",{cx:"348",cy:"161",r:"68"}),p.jsx("path",{d:"M390 76l48-48M416 100l48-48"})]}),"Connect Kalshi"]})})}),p.jsxs("div",{className:"flex-1 space-y-3 overflow-y-auto p-4 max-md:space-y-2 max-md:p-3",children:[i&&p.jsx(V_,{onSave:S,onCancel:()=>r(!1)}),y?p.jsx(J3,{message:"Loading portfolioâ¦"}):x?p.jsx($3,{message:x}):p.jsxs(p.Fragment,{children:[v&&p.jsx(B_,{summary:v}),p.jsx(P_,{data:m}),p.jsxs("div",{className:"grid grid-cols-2 gap-3 max-lg:grid-cols-1",children:[p.jsx(gO,{positions:w,sortBy:o,onSortChange:c}),p.jsx(yO,{positions:M,sortBy:u,onSortChange:h})]})]})]})]})}async function MO(){{const{mockMarkets:e}=await Wc(async()=>{const{mockMarkets:t}=await import("./mockMarkets--hbiURpy.js");return{mockMarkets:t}},[]);return e}}function EO(){const[e,t]=E.useState([]),[i,r]=E.useState(!0),[o,c]=E.useState(null);return E.useEffect(()=>{let u=!1;return MO().then(h=>{u||(t(h),c(null))}).catch(h=>{u||c(h instanceof Error?h.message:"Failed to load markets")}).finally(()=>{u||r(!1)}),()=>{u=!0}},[]),{markets:e,isLoading:i,error:o}}const CO="close_time_asc";function TO(){const[e,t]=E.useState("dark"),[i,r]=E.useState("landing"),[o,c]=E.useState(new Set),[u,h]=E.useState(""),{markets:d,isLoading:m,error:v}=EO();E.useEffect(()=>{document.documentElement.setAttribute("data-theme",e)},[e]);const y=E.useCallback(()=>{t(S=>S==="dark"?"light":"dark")},[]),x=E.useCallback(S=>{c(T=>{const j=new Set(T);return j.has(S)?j.delete(S):j.add(S),j})},[]),w=E.useCallback(()=>{r("strikes")},[]),M=i==="landing";return p.jsxs("div",{className:"animated-bg flex h-screen",children:[p.jsxs("div",{className:"animated-bg-blobs",children:[p.jsx("div",{className:"bg-blob bg-blob-1"}),p.jsx("div",{className:"bg-blob bg-blob-2"}),p.jsx("div",{className:"bg-blob bg-blob-3"})]}),p.jsx("div",{className:"animated-bg-grain"}),p.jsx(B9,{mode:"wait",children:M?p.jsx(KE,{onEnter:w,theme:e,onToggleTheme:y},"landing"):p.jsxs(kt.div,{className:"flex h-full w-full",initial:{opacity:0}
57,animate:{opacity:1},transition:{duration:.25},children:[p.jsx(J7,{theme:e,onToggleTheme:y,activePage:i,onNavigate:r}),p.jsxs("main",{className:"relative z-[1] flex min-w-0 flex-1 flex-col overflow-hidden max-md:mb-14 max-md:h-[calc(100vh-56px)]",children:[i==="strikes"&&p.jsxs(p.Fragment,{children:[p.jsx(y4,{title:"EARNINGS MENTION MARKETS"}),p.jsx(XE,{search:u,onSearchChange:h}),p.jsx(N_,{markets:d,isLoading:m,error:v,sortBy:CO,search:u,expandedCompanies:o,onToggleCompany:x})]}),i==="portfolio"&&p.jsx(SO,{})]})]},"dashboard")})]})}W6.createRoot(document.getElementById("root")).render(p.jsx(E.StrictMode,{children:p.jsx(TO,{})}));
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.